/* 专业交易平台样式 - TradingView/Bloomberg风格 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* 深色专业主题 */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-card: #1c2128;
    --bg-hover: #262c36;
    
    /* 边框 */
    --border-primary: #30363d;
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* 文字 */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* 强调色 */
    --accent-blue: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-yellow: #d29922;
    --accent-purple: #a371f7;
    
    /* 图表色 */
    --chart-line: #58a6ff;
    --chart-area: rgba(88, 166, 255, 0.1);
    
    /* 渐变 */
    --gradient-green: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    --gradient-blue: linear-gradient(135deg, #1f6feb 0%, #58a6ff 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 头部导航 ===== */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

nav a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* ===== 页面标题区 ===== */
.page-header {
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--border-primary);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== 统计概览卡片 ===== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-box-value {
    font-size: 24px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-box-value.positive {
    color: var(--accent-green);
}

.stat-box-value.negative {
    color: var(--accent-red);
}

.stat-box-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.stat-box-change.up {
    color: var(--accent-green);
    background: rgba(63, 185, 80, 0.1);
}

.stat-box-change.down {
    color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

/* ===== 信号源卡片 ===== */
.providers-section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-icon {
    width: 24px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.provider-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.provider-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.provider-info {
    display: flex;
    gap: 14px;
}

.provider-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.provider-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.provider-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(63, 185, 80, 0.1);
    color: var(--accent-green);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.provider-badge-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.provider-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.provider-stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.provider-stat-value {
    font-size: 16px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.provider-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.provider-chart {
    height: 60px;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.provider-chart-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

.chart-bar {
    flex: 1;
    margin: 0 1px;
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}

.chart-bar.positive { background: var(--accent-green); }
.chart-bar.negative { background: var(--accent-red); }

.provider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

.provider-footer-info {
    font-size: 13px;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-green);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(46, 160, 67, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

/* ===== 详情页 ===== */
.detail-header {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-primary);
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.detail-info {
    display: flex;
    gap: 20px;
}

.detail-avatar {
    width: 72px;
    height: 72px;
    background: var(--gradient-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.detail-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.detail-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.detail-stat {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.detail-stat-value {
    font-size: 22px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}

.detail-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== 图表区域 ===== */
.chart-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-primary);
}

.chart-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
}

.chart-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 8px;
}

.chart-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.chart-area {
    height: 300px;
    position: relative;
}

/* ===== 表格 ===== */
.table-section {
    padding: 32px 0;
}

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--bg-hover);
}

.symbol-cell {
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.type-buy {
    color: var(--accent-green);
    font-weight: 600;
}

.type-sell {
    color: var(--accent-red);
    font-weight: 600;
}

.profit-positive {
    color: var(--accent-green);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.profit-negative {
    color: var(--accent-red);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== 页脚 ===== */
footer {
    border-top: 1px solid var(--border-primary);
    padding: 32px 0;
    margin-top: 60px;
}

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

.footer-text {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* ===== 响应式 - 平板 ===== */
@media (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== 响应式 - 移动端 ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* 头部导航 */
    .header-content {
        height: 56px;
    }
    
    .logo {
        font-size: 16px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    nav ul {
        gap: 4px;
    }
    
    nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* 页面标题 */
    .page-header {
        padding: 24px 0 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .page-subtitle {
        font-size: 13px;
    }
    
    /* 统计概览 */
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 16px 0;
    }
    
    .stat-box {
        padding: 14px;
        border-radius: 10px;
    }
    
    .stat-box-label {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .stat-box-value {
        font-size: 18px;
    }
    
    /* 信号源卡片 */
    .providers-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .provider-card {
        padding: 16px;
        border-radius: 10px;
    }
    
    .provider-card-header {
        margin-bottom: 14px;
    }
    
    .provider-info {
        gap: 10px;
    }
    
    .provider-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .provider-name {
        font-size: 14px;
    }
    
    .provider-meta {
        font-size: 11px;
    }
    
    .provider-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .provider-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-bottom: 14px;
    }
    
    .provider-stat {
        padding: 10px 4px;
        border-radius: 6px;
    }
    
    .provider-stat-value {
        font-size: 13px;
    }
    
    .provider-stat-label {
        font-size: 9px;
    }
    
    .provider-chart {
        height: 50px;
        margin-bottom: 12px;
    }
    
    .provider-footer {
        padding-top: 12px;
    }
    
    .provider-footer-info {
        font-size: 11px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* 详情页移动端 */
    .detail-header {
        padding: 20px 0;
    }
    
    .detail-header-top {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .detail-info {
        gap: 12px;
    }
    
    .detail-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 10px;
    }
    
    .detail-name {
        font-size: 18px;
    }
    
    .detail-desc {
        font-size: 12px;
    }
    
    .detail-tags {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    /* 观摩盘和免责声明移动端 */
    .investor-info,
    .disclaimer-info {
        margin-right: 0 !important;
        margin-bottom: 12px;
        max-width: 100% !important;
    }
    
    /* 统计数据行移动端 */
    .stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .stat-item {
        padding: 12px 8px !important;
        border-radius: 8px !important;
    }
    
    .stat-item-value {
        font-size: 16px !important;
    }
    
    .stat-item-label {
        font-size: 9px !important;
    }
    
    /* 三栏概览移动端 */
    .signal-overview {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 16px !important;
    }
    
    .growth-rate {
        font-size: 36px !important;
    }
    
    .fund-item {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .fund-label {
        width: 50px !important;
        font-size: 11px !important;
    }
    
    .fund-value {
        width: auto !important;
        font-size: 12px !important;
    }
    
    .fund-bar-container {
        width: 100% !important;
        flex: none !important;
    }
    
    /* 图表区域移动端 */
    .chart-container {
        padding: 14px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .chart-stats {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
    }
    
    .chart-stat-value {
        font-size: 14px !important;
    }
    
    .chart-stat-label {
        font-size: 10px !important;
    }
    
    .chart-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .chart-area {
        height: 250px !important;
    }
    
    /* 月度表格移动端 */
    .monthly-stats {
        padding: 12px !important;
        overflow-x: auto;
    }
    
    .monthly-table {
        font-size: 10px !important;
        min-width: 600px;
    }
    
    .monthly-table th,
    .monthly-table td {
        padding: 6px 4px !important;
    }
    
    /* 表格移动端 */
    .table-header {
        padding: 12px 14px;
    }
    
    .table-title {
        font-size: 14px;
    }
    
    th {
        padding: 10px 12px;
        font-size: 10px;
    }
    
    td {
        padding: 12px;
        font-size: 12px;
    }
    
    /* 页脚移动端 */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-text {
        font-size: 11px;
    }
    
    .footer-links {
        gap: 16px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
}

/* ===== 响应式 - 超小屏幕 ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    nav a {
        padding: 8px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .provider-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-stats {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 500px;
    }
}
