/* ===== 币安 Binance 深色主题风格 ===== */
:root {
    --bg-primary: #0A0E14;
    --bg-secondary: #0D1117;
    --bg-card: #12161E;
    --bg-card-hover: #161B24;
    --bg-input: #161B24;
    --border-color: #1E2530;
    --border-hover: #2A3340;
    --text-primary: #FFFFFF;
    --text-secondary: #8B949E;
    --text-tertiary: #5C6370;
    --accent: #17C6C6;
    --accent-hover: #1DE0E0;
    --accent-bg: rgba(23, 198, 198, 0.08);
    --accent-glow: rgba(23, 198, 198, 0.15);
    --blue: #3B82F6;
    --blue-bg: rgba(59, 130, 246, 0.08);
    --red: #F85149;
    --red-bg: rgba(248, 81, 73, 0.08);
    --orange: #F0883E;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #17C6C6, #0EA5A5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(23, 198, 198, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1DE0E0, #17C6C6);
    box-shadow: 0 4px 20px rgba(23, 198, 198, 0.35);
    transform: translateY(-1px);
}

.btn-white {
    background: #fff;
    color: #000;
}
.btn-white:hover {
    background: #e6e6e6;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-trade {
    background: var(--accent);
    color: #000;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
}
.btn-trade:hover {
    background: var(--accent-hover);
}

/* ===== 顶部条 ===== */
.top-banner {
    background: linear-gradient(90deg, #17C6C6, #0D7377);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}
.top-banner .banner-track {
    display: inline-block;
    white-space: nowrap;
    animation: banner-scroll 20s linear infinite;
}
.top-banner .banner-track span {
    padding: 0 40px;
}
@keyframes banner-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== 导航栏 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 60px;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.logo-svg {
    width: 32px;
    height: 32px;
}
.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.logo-text .brand {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}
.nav-menu .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu .nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-menu .nav-link.active { color: var(--accent); background: var(--accent-bg); }
.nav-menu .nav-link i { font-size: 10px; opacity: 0.5; }

.nav-search { position: relative; }
.nav-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}
.nav-search input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px 8px 34px;
    color: #fff;
    font-size: 13px;
    width: 200px;
    outline: none;
    transition: all var(--transition);
}
.nav-search input:focus {
    border-color: var(--accent);
    width: 240px;
    box-shadow: 0 0 0 2px var(--accent-bg);
}
.nav-search input::placeholder { color: var(--text-tertiary); }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.hamburger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle at center, rgba(23, 198, 198, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 100%);
    pointer-events: none;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-bg);
    border: 1px solid rgba(23, 198, 198, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 32px;
}
.hero-tag .dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, #17C6C6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 36px;
    font-weight: 700;
    display: block;
    letter-spacing: -1px;
}
.stat-num .accent {
    background: linear-gradient(135deg, #17C6C6, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 14px; color: var(--text-tertiary); margin-top: 4px; display: block; }

/* 价格卡片 */
.hero-price-card {
    max-width: 600px;
    margin: 0 auto 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-price-card .card-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.hero-price-card .card-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.hero-price-card .card-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.hero-price-card .card-tab:hover { color: #fff; }
.card-body { padding: 4px 0; }
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background var(--transition);
}
.price-row:hover { background: var(--bg-card-hover); }
.coin-info { display: flex; align-items: center; gap: 10px; }
.coin-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(23,198,198,0.2), rgba(59,130,246,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
}
.coin-name { font-size: 14px; font-weight: 600; display: block; }
.coin-full { font-size: 12px; color: var(--text-tertiary); display: block; }
.coin-price { text-align: right; }
.price-value { font-size: 14px; font-weight: 600; display: block; }
.price-change { font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.price-change.up { color: #17C6C6; background: var(--accent-bg); }
.price-change.down { color: var(--red); background: var(--red-bg); }
.card-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: center;
}
.card-footer a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.card-footer a:hover { color: var(--accent); }

/* ===== 行情滚动条 ===== */
.ticker {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 10px 0;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 25s linear infinite;
}
.ticker-group { display: flex; gap: 36px; padding-right: 36px; }
.ticker-item {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticker-item .change { font-size: 12px; font-weight: 600; }
.ticker-item .change.up { color: #17C6C6; }
.ticker-item .change.down { color: var(--red); }
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 区块标题 ===== */
.section {
    padding: 80px 0;
}
.section-label {
    text-align: center;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: #fff;
}
.section-desc {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 56px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 功能卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature-card {
    background: var(--bg-primary);
    padding: 40px 32px;
    transition: background var(--transition);
    cursor: pointer;
}
.feature-card:hover { background: var(--bg-card); }
.feature-card .icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(23,198,198,0.15), rgba(59,130,246,0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 18px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.feature-card .link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.feature-card .link:hover { gap: 8px; }

/* ===== 市场数据 ===== */
.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}
.market-card:hover {
    border-color: rgba(23, 198, 198, 0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.market-card .label { font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }
.market-card .value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.market-card .sub { font-size: 13px; font-weight: 600; }
.market-card .sub.up { color: #17C6C6; }
.market-card .sub.down { color: var(--red); }

/* ===== 币种表格 ===== */
.table-section .section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.table-section .tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 3px;
}
.table-section .tab-btn {
    padding: 7px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}
.table-section .tab-btn.active { background: var(--bg-input); color: var(--accent); }

.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.data-table thead { border-bottom: 1px solid var(--border-color); }
.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

.rank-num { color: var(--text-tertiary); font-weight: 600; width: 40px; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell-img {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(23,198,198,0.2), rgba(59,130,246,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
}
.coin-cell-name { font-weight: 600; display: block; }
.coin-cell-symbol { font-size: 12px; color: var(--text-tertiary); display: block; }
.price-cell { font-weight: 600; font-family: 'Inter', monospace; }
.change-up { color: #17C6C6; font-weight: 600; }
.change-down { color: var(--red); font-weight: 600; }

.table-footer {
    text-align: center;
    margin-top: 24px;
}

/* ===== 下载区域 ===== */
.download-section { padding: 0 0 80px; }
.download-box {
    background: linear-gradient(135deg, #0D7377, #17C6C6);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.download-box h2 { font-size: 32px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.download-box p { font-size: 16px; opacity: 0.85; color: #fff; margin-bottom: 24px; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.download-btn-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.download-btn-item:hover { background: #1a1a1a; transform: translateY(-2px); }
.download-btn-item i { font-size: 24px; }
.download-btn-item small { display: block; font-size: 10px; opacity: 0.6; }
.download-btn-item strong { font-size: 14px; }
.qr-placeholder {
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== 为什么选我们 ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
}
.why-card:hover {
    border-color: rgba(23, 198, 198, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.why-card .why-icon {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    background: var(--accent-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
}
.why-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.why-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== CTA区域 ===== */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(23, 198, 198, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}
.cta-section .cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}
.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}
.footer-logo span { color: var(--accent); }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 36px; height: 36px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: all var(--transition);
}
.footer-social a:hover { color: var(--accent); background: var(--accent-bg); }
.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a {
    font-size: 12px;
    color: var(--text-tertiary);
    text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 15px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .section-title { font-size: 28px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: 1fr; }
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .download-box { flex-direction: column; text-align: center; padding: 32px 24px; }
    .download-box h2 { font-size: 24px; }
    .nav-menu { display: none; }
    .nav-search { display: none; }
    .hamburger { display: flex; }
    .cta-section h2 { font-size: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
