:root {
    /* 配色方案 - 简洁现代 */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* 背景色 */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    
    /* 文字色 */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    /* 边框 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

/* 深色模式 */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --border-color: #334155;
    --border-light: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* 应用容器 */
.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* 顶部导航栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    width: 40px;
    height: 40px;
}

.logo svg {
    width: 100%;
    height: 100%;
}

.brand h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-actions {
    display: flex;
    gap: var(--space-sm);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* 资产概览栏 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card.total {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.stat-card.total .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.stat-value.up {
    color: var(--danger);
}

.stat-value.down {
    color: var(--success);
}

/* 主体布局 */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-md);
    flex: 1;
    min-height: 0;
}

/* 侧边栏 */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2,
.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.fund-list-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
}

.fund-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* 基金列表项 */
.fund-list-item {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.fund-list-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.fund-list-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: var(--primary-light);
}

.fund-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
}

.fund-list-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.fund-list-rate {
    font-weight: 700;
    font-size: 14px;
}

.fund-list-rate.up {
    color: var(--danger);
}

.fund-list-rate.down {
    color: var(--success);
}

.fund-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fund-list-code {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: 'Fira Code', monospace;
}

.fund-list-value {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 内容区域 */
.content-area {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-height: 0;
}

/* 市场指数栏 */
.indices-bar {
    display: flex;
    gap: var(--space-md);
    background: var(--bg-card);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.index-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.index-item:hover {
    background: var(--bg-hover);
}

.index-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.index-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
}

/* 主要内容网格 */
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-md);
    flex: 1;
    min-height: 0;
}

/* 图表面板 */
.chart-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.period-tabs {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.chart-wrapper {
    flex: 1;
    padding: var(--space-md);
    min-height: 0;
}

/* 新闻面板 */
.news-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-badge {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.news-list-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.news-item {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.news-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.news-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-right: var(--space-sm);
}

.news-title {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* 行情面板 */
.market-panel {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    max-height: 300px;
}

.market-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-tabs {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.market-list-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.market-item:hover {
    background: var(--bg-hover);
}

.market-fund-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.market-fund-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.market-fund-code {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: 'Fira Code', monospace;
}

.market-fund-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.market-nav {
    font-weight: 600;
    font-size: 14px;
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
}

.market-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.market-change.up {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.market-change.down {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 280px 1fr;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    
    .news-panel {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: var(--space-sm);
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        max-height: 400px;
    }
    
    .indices-bar {
        flex-wrap: wrap;
    }
    
    .index-item {
        flex: 1 1 calc(50% - var(--space-md));
    }
}

/* 深色模式特定样式 */
[data-theme="dark"] .stat-card.total {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

[data-theme="dark"] .fund-list-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.5);
}

[data-theme="dark"] .icon-btn:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* 弹窗样式（保持原有样式） */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 90%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-content h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.modal-content input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-primary {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-md);
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* iOS 编辑弹窗样式 */
.ios-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.ios-modal.active {
    display: block;
}

.ios-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ios-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.ios-modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.ios-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.ios-fund-code {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: 'Fira Code', monospace;
}

.ios-modal-body {
    padding: var(--space-lg);
}

.ios-modal-actions {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.ios-btn-cancel,
.ios-btn-delete,
.ios-btn-save {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ios-btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.ios-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.ios-btn-save {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

/* 交易区域样式 */
.trade-section {
    margin-bottom: var(--space-lg);
}

.trade-tabs {
    display: flex;
    gap: var(--space-sm);
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.trade-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.trade-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.trade-notice {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 13px;
    color: var(--warning);
}

.ios-input-group {
    margin-bottom: var(--space-md);
}

.ios-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.amount-input-wrapper,
.shares-input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-input-wrapper input {
    padding-left: 40px !important;
}

.shares-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-tertiary);
}

.max-shares-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--space-xs);
}

.quick-shares-buttons {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.quick-share-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.quick-share-btn.all {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.fee-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.fee-label {
    color: var(--text-secondary);
}

.fee-value {
    font-weight: 600;
    color: var(--text-primary);
}

.trade-preview {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.preview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.preview-row:last-child {
    margin-bottom: 0;
}

.preview-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.preview-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.current-holding-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.section-title-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.holding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.holding-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.holding-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.holding-value {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
}

.holding-value.positive {
    color: var(--danger);
}

.holding-value.negative {
    color: var(--success);
}

/* 新闻弹窗 */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.news-modal.active {
    display: block;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.news-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.news-modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-time {
    font-size: 13px;
    color: var(--text-tertiary);
}

.news-modal-tag {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.news-modal-body {
    padding: var(--space-lg);
}

.news-modal-body h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.news-modal-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.news-modal-close {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-modal-close:hover {
    background: var(--bg-hover);
}

/* 数据状态 */
.data-status {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    font-size: 12px;
    z-index: 100;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    color: var(--text-secondary);
}

/* ========== 图表样式 - 养基宝风格 ========== */

/* 图表Tab切换 */
.chart-tabs-container {
    padding: var(--space-md) var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.chart-tabs {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.chart-tab {
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.chart-tab:hover {
    color: var(--text-primary);
}

.chart-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.chart-tab.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* 图表内容切换 */
.chart-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chart-content.active {
    display: flex;
}

/* 关联板块样式 */
.sector-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
}

.sector-date {
    color: var(--text-tertiary);
}

.sector-name {
    color: var(--text-primary);
    font-weight: 500;
}

.sector-change {
    font-weight: 600;
}

.sector-change.up {
    color: var(--danger);
}

.sector-change.down {
    color: var(--success);
}

.sector-sentiment {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-light);
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.sentiment-label {
    font-size: 12px;
}

.sentiment-label.bullish {
    color: var(--danger);
}

.sentiment-label.bearish {
    color: var(--success);
}

.sentiment-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 业绩走势样式 */
.performance-header {
    padding: var(--space-sm) var(--space-md);
}

.performance-legend {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.legend-item.fund {
    color: var(--primary);
    font-weight: 600;
}

.legend-item.market {
    color: var(--warning);
}

.legend-item.cost {
    color: var(--text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item.fund .legend-dot {
    background: var(--primary);
}

.legend-item.market .legend-dot {
    background: var(--warning);
}

.legend-line {
    width: 12px;
    height: 2px;
    background: var(--text-tertiary);
    border-radius: 1px;
}

.period-tabs-small {
    display: flex;
    gap: var(--space-xs);
    padding: 0 var(--space-md) var(--space-sm);
    justify-content: center;
}

.period-btn {
    padding: 4px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    color: var(--text-primary);
}

.period-btn.active {
    background: var(--bg-secondary);
    color: var(--primary);
    font-weight: 500;
}
