/* --- 通用样式 & 来自 style.css --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa; /* 日间模式背景色 (Light mode) */
    color: #212529; /* Dark text for light mode */
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    line-height: 1.6;
}

body.dark-mode {
    background-color: #1a202c; /* 暗夜模式背景色 (Dark mode) - Slightly bluish dark gray */
    color: #e2e8f0; /* Light text for dark mode - Tailwind gray-200 */
}

.container {
    max-width: 1360px; /* Wider container for more content */
    margin: 0 auto;
    padding: 20px 25px; /* Responsive padding */
}

/* --- Header 样式 (Keep your existing header styles) --- */
header {
    background-color: #2d3748; /* Darker header for contrast - Tailwind gray-800 */
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
body.dark-mode header {
    background-color: #171923; /* Even darker for dark mode */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo img { /* Ensure logo is visible on dark header */
    max-width: 130px;
    height: auto;
    filter: brightness(0) invert(1); /* Makes dark logo white if it's black */
}
body.dark-mode .logo img {
     filter: none; /* Or adjust if logo needs specific dark mode version */
}


.search-button {
    /* 原有按钮样式保持不变 */
    padding: 8px 12px; /* 确保有足够的点击区域 */
        display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    color: #666; /* 默认颜色 */
    transition: color 0.2s;
        display: block;
    margin: -2px 0 0; /* 微调垂直对齐 */
    transform: translateY(0.5px); /* 视觉补偿 */
}

/* 暗色模式适配 */
.dark-mode .search-button {
    background: #2d2d2d;
}
.dark-mode .search-icon {
    color: #ddd;
}


/* SVG 图标通用样式 */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor; /* 颜色继承父元素 */
}

/* 下拉箭头尺寸调整 */
.icon-caret-down {
    width: 0.75em;
    height: 0.75em;
    margin-left: 0.25em;
}

/* 主题图标尺寸调整 */
.icon-moon,
.icon-sun {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.3em;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav-links a, .dropdown-toggle {
    color: #e2e8f0; /* Light text for dark header */
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}
.nav-links a:hover, .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
body.dark-mode .nav-links a, body.dark-mode .dropdown-toggle {
    color: #cbd5e0; /* Tailwind gray-300 */
}
body.dark-mode .nav-links a:hover, body.dark-mode .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 8px;
    overflow: hidden; /* For rounded corners on items */
}
.dropdown-menu.active { display: block; }
.dropdown-menu a {
    color: #2d3748; /* Dark text on light menu */
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-menu a:hover {
    background-color: #f1f5f9; /* Light gray hover */
    color: #1d4ed8; /* Blue accent */
}

body.dark-mode .dropdown-menu {
    background-color: #2d3748; /* Dark menu background */
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
body.dark-mode .dropdown-menu a {
    color: #e2e8f0; /* Light text on dark menu */
}
body.dark-mode .dropdown-menu a:hover {
    background-color: #4a5568; /* Darker hover */
    color: #90cdf4; /* Light blue accent */
}


/* --- Banner 样式 --- */
.banner {
    background-image: url(https://data.gushiio.com/img/coinbanner.png);
    background-size: auto;        /* 按原尺寸显示 */
    background-repeat: repeat-x;  /* 右侧水平重复 */
    background-position: left center; /* 左侧起始，垂直居中 */
    color: white;
    text-align: center;
    padding: 45px 20px;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 100%; /* 确保容器宽度足够 */
}
body.dark-mode .banner {
    background-image: linear-gradient(to right, #4c51bf, #553c9a); /* Darker gradient */
}


/* --- Footer 样式 --- */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid #e2e8f0; /* Tailwind gray-200 */
    color: #718096; /* Tailwind gray-500 */
    font-size: 0.875rem;
}
.footer a {
    color: #4a5568; /* Tailwind gray-600 */
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer a:hover {
    color: #2c5282; /* Tailwind blue-800 */
}
body.dark-mode .footer {
    border-top-color: #2d3748; /* Tailwind gray-800 */
    color: #a0aec0; /* Tailwind gray-400 */
}
body.dark-mode .footer a {
    color: #7f9cf5; /* Tailwind indigo-400 */
}
body.dark-mode .footer a:hover {
    color: #90cdf4; /* Tailwind blue-400 */
}

/* --- Theme Toggle Button --- */
.btn.toggle-theme {
    background-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.btn.toggle-theme:hover {
    background-color: rgba(255,255,255,0.2);
}
body.dark-mode .btn.toggle-theme {
    background-color: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.1);
}
body.dark-mode .btn.toggle-theme:hover {
    background-color: rgba(0,0,0,0.3);
}

/* Section Title Styling */
.section-title {
    font-size: 1.75rem; /* Larger section titles */
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2d3748; /* Darker heading color */
}
body.dark-mode .section-title {
    color: #e2e8f0; /* Light heading color for dark mode */
}


/* --- Market Overview Section (Top Cards) --- */
.market-overview-section {
    margin-bottom: 2.5rem;
}
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
}
@media (min-width: 768px) { /* md */
    .info-cards-grid {
        /* grid-template-columns: repeat(3, 1fr); */ /* Original had 3, then 5. Adjust as needed */
    }
}
@media (min-width: 1024px) { /* lg */
    .info-cards-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 columns for 5 cards in one row */
    }
}

.info-card {
    background-color: #ffffff;
    padding: 1.25rem 1.5rem; /* 20px 24px */
    border-radius: 12px; /* Softer, larger radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Softer shadow */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
body.dark-mode .info-card {
    background-color: #2d3748; /* Tailwind gray-800 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
body.dark-mode .info-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.info-card-title {
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #718096; /* Tailwind gray-500 */
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
body.dark-mode .info-card-title {
    color: #a0aec0; /* Tailwind gray-400 */
}

.info-card-value {
    font-size: 2.1rem; /* 30px */
    font-weight: 700;
    color: #2d3748; /* Tailwind gray-800 */
    line-height: 1.5;
    margin-bottom: 0.9rem;
    margin-top: 1rem;
    white-space: nowrap; /* 新增：强制文本不换行 */
}
body.dark-mode .info-card-value {
    color: #f7fafc; /* Tailwind gray-100 */
}
.info-card-value.positive-flow { color: #38a169; /* Tailwind green-600 */ }
.info-card-value.negative-flow { color: #e53e3e; /* Tailwind red-600 */ }
body.dark-mode .info-card-value.positive-flow { color: #68d391; /* Tailwind green-400 */ }
body.dark-mode .info-card-value.negative-flow { color: #fc8181; /* Tailwind red-400 */ }


.info-card-subtext {
    font-size: 0.75rem; /* 12px */
    color: #a0aec0; /* Tailwind gray-400 */
}
body.dark-mode .info-card-subtext {
    color: #718096; /* Tailwind gray-500 */
}

.no-data {
    font-size: 0.9rem;
    color: #a0aec0;
    text-align: center;
    margin-top: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .no-data {
    color: #718096;
}

/* Fear & Greed Card Specific Styles */
.fear-greed-custom-card .fear-greed-gauge-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}
.fear-greed-custom-card .fear-greed-svg {
    max-height: 100px; 
    width: auto;
}
.fear-greed-custom-card #fg-pointer-stroke { stroke: #4a5568; } 
.fear-greed-custom-card #fg-pointer-fill { fill: #fff; } 
body.dark-mode .fear-greed-custom-card #fg-pointer-stroke { stroke: #e2e8f0; } 
body.dark-mode .fear-greed-custom-card #fg-pointer-fill { fill: #4a5568; } 

.fear-greed-custom-card .fear-greed-text-overlay {
    position: absolute;
    top: 62%; 
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.fear-greed-custom-card .fear-greed-text-overlay .current-value {
    font-size: 2rem; 
    font-weight: 700;
    line-height: 1;
    color: #2d3748; 
    margin-bottom: -83px;
    margin-top: 1.3rem;
}
.fear-greed-custom-card .fear-greed-text-overlay .description {
    font-size: 0.8rem; 
    margin-top: 5.2rem;
    font-weight: 500;
    text-transform: uppercase;
        margin-bottom: 8px;

    /* margin-top: -50px; Original style, might need adjustment */
}
body.dark-mode .fear-greed-custom-card .fear-greed-text-overlay .current-value { color: #e2e8f0; }

.fg-extreme-fear { color: #e53e3e !important; } 
.fg-fear { color: #dd6b20 !important; } 
.fg-neutral { color: #d69e2e !important; } 
.fg-greed { color: #38a169 !important; } 
.fg-extreme-greed { color: #2f855a !important; } 

body.dark-mode .fg-extreme-fear { color: #fc8181 !important; } 
body.dark-mode .fg-fear { color: #f6ad55 !important; } 
body.dark-mode .fg-neutral { color: #f6e05e !important; } 
body.dark-mode .fg-greed { color: #68d391 !important; } 
body.dark-mode .fg-extreme-greed { color: #48bb78 !important; } 


/* BTC Dominance Card Specific Styles */
.btc-dominance-custom-card .btc-dominance-content {
    margin-top: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.btc-dominance-custom-card .dominance-values p {
    font-size: 0.85rem; /* Slightly smaller for 3 items */
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}
.btc-dominance-custom-card .legend-color {
    width: 10px;  /* Slightly smaller */
    height: 10px; /* Slightly smaller */
    border-radius: 2px;
    margin-right: 6px;
    display: inline-block;
}
.btc-dominance-custom-card .dominance-values .value {
    font-weight: 600;
    color: #2d3748;
}
body.dark-mode .btc-dominance-custom-card .dominance-values .value { color: #e2e8f0; }

.btc-dominance-custom-card .color-bar-container {
    display: flex;
    height: 12px; /* Thinner bar for a cleaner look with 3 segments */
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.3rem;
    background-color: #e2e8f0; 
}
body.dark-mode .btc-dominance-custom-card .color-bar-container { background-color: #4a5568; }

.btc-dominance-custom-card .color-bar-segment {
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* Altcoin Season Card Specific Styles */
.altcoin-season-custom-card .altcoin-season-content {
    margin-top: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.altcoin-season-custom-card .progress-label {
    display: flex;
    align-items: center;
    justify-content: center; 
}
.altcoin-season-custom-card .progress-number {
    font-size: 1.75rem; 
    font-weight: 700;
    display: flex;
    align-items: baseline;
    color: #2d3748;
}
body.dark-mode .altcoin-season-custom-card .progress-number { color: #e2e8f0; }

.altcoin-season-custom-card .progress-divider {
    font-size: 1rem;
    margin: 0 4px;
    color: #a0aec0; 
}
.altcoin-season-custom-card .progress-total {
    font-size: 0.9rem;
    color: #a0aec0;
}
body.dark-mode .altcoin-season-custom-card .progress-divider,
body.dark-mode .altcoin-season-custom-card .progress-total {
    color: #718096;
}

.altcoin-season-custom-card .progress-bar-custom-container {
    height: 10px; 
    background-color: #e2e8f0; 
    border-radius: 8px; 
    overflow: hidden;
    position: relative;
    margin-top: 0.75rem;
}
body.dark-mode .altcoin-season-custom-card .progress-bar-custom-container {
    background-color: #4a5568; 
}

.altcoin-season-custom-card .progress-segments {
    display: flex;
    width: 100%;
    height: 100%;
}
.altcoin-season-custom-card .progress-segments > div { 
    flex: 1; height: 100%;
}
.altcoin-season-custom-card .progress-segment-1 { background-color: #dd6b20; } 
.altcoin-season-custom-card .progress-segment-2 { background-color: #f6ad55; } 
.altcoin-season-custom-card .progress-segment-3 { background-color: #68d391; } 
.altcoin-season-custom-card .progress-segment-4 { background-color: #38a169; } 

.altcoin-season-custom-card .progress-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #1a202c; 
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 2px solid white; 
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: left 0.5s ease-in-out;
}
body.dark-mode .altcoin-season-custom-card .progress-marker {
    background-color: #e2e8f0; 
    border-color: #2d3748; 
}

.altcoin-season-custom-card .progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 500;
}
.altcoin-season-custom-card .progress-labels .center-label {
    font-weight: 600;
    color: #4a5568;
}
body.dark-mode .altcoin-season-custom-card .progress-labels { color: #a0aec0; }
body.dark-mode .altcoin-season-custom-card .progress-labels .center-label { color: #cbd5e0; }


/* --- Hot Crypto Section --- */
.hot-crypto-section {
    background-color: #fff; 
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 2.5rem;
}
body.dark-mode .hot-crypto-section {
    background-color: #2d3748; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hot-crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; 
    gap: 1rem; 
}
.hot-crypto-header .section-title {
    margin-bottom: 0; 
    flex-grow: 1; 
}

.filter-form { /* Changed from .search-form to reflect new role */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between select, input, button */
    margin-bottom: 8px;
    margin-right: 8px;
}

.currency-selector {
    padding: 0.6rem 0.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #fff;
    color: #2d3748;
    height: calc(0.6rem * 2 + 0.9rem * 1.2 + 2px); /* Match input height */
}
body.dark-mode .currency-selector {
    background-color: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}


.search-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e0; 
    border-radius: 6px; /* Standalone radius now */
    font-size: 0.9rem;
    min-width: 200px; 
    transition: border-color 0.2s ease;
    flex-grow: 1; /* Allow input to grow if needed */
}
.search-input:focus {
    outline: none;
    border-color: #4299e1; 
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.2);
}
.search-button {
    padding: 0.6rem 0.9rem;
    background-color: #4a5568; 
    color: white;
    border: 1px solid #4a5568;
    border-radius: 6px; /* Standalone radius now */
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: calc(0.6rem * 2 + 0.9rem * 1.2 + 2px); /* Match input height */
}
.search-button:hover {
    background-color: #2d3748; 
}
body.dark-mode .search-input {
    background-color: #1a202c; 
    border-color: #4a5568; 
    color: #e2e8f0;
}
body.dark-mode .search-input:focus {
    border-color: #63b3ed; 
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.2);
}
body.dark-mode .search-button {
    background-color: #2d3748;
    border-color: #4a5568;
}
body.dark-mode .search-button:hover {
    background-color: #1a202c;
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3182ce; 
    text-decoration: none;
    padding: 0.5rem 0; 
    transition: color 0.2s ease;
}
.view-all-link:hover {
    color: #2c5282; 
    text-decoration: underline;
}
body.dark-mode .view-all-link {
    color: #63b3ed; 
}
body.dark-mode .view-all-link:hover {
    color: #90cdf4; 
}


/* Crypto Table Styling */
.table-responsive-wrapper {
    overflow-x: auto; 
    margin-bottom: 1.5rem; 
}
.crypto-table {
    width: 100%;
    border-collapse: collapse; 
    min-width: 900px; 
}
.crypto-table th, .crypto-table td {
    padding: 0.85rem 1rem; 
    text-align: left;
    font-size: 0.875rem; 
    border-bottom: 1px solid #e2e8f0; 
    white-space: nowrap; 
}
.crypto-table th {
    background-color: #f8fafc; 
    font-weight: 600;
    color: #4a5568; 
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.75rem; 
}
.crypto-table tbody tr:hover {
    background-color: #f1f5f9; 
    transition: background-color 0.15s ease-in-out;
}
.crypto-table tbody tr td:first-child { font-weight: 500; } 

body.dark-mode .crypto-table th, body.dark-mode .crypto-table td {
    border-bottom-color: #4a5568; 
    color: #cbd5e0; 
}
body.dark-mode .crypto-table th {
    background-color: #1a202c; 
    color: #a0aec0; 
}
body.dark-mode .crypto-table tbody tr:hover {
    background-color: #4a5568; 
}

.token-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
}
.token-icon {
    width: 28px; 
    height: 28px;
    border-radius: 50%;
    object-fit: cover; 
    background-color: #e2e8f0; 
}
body.dark-mode .token-icon {
    background-color: #4a5568;
}

/* NEW: Token Link Styling */
.token-name-cell .token-link {
    text-decoration: none;
    color: inherit; /* Inherits color from parent (td) */
    display: inline-flex; /* Aligns with text if needed */
    align-items: center;
}
.token-name-cell .token-link:hover {
    text-decoration: underline; /* Underline on hover for better UX */
}


.crypto-table .positive { color: #38a169; font-weight: 500; }
.crypto-table .negative { color: #e53e3e; font-weight: 500; }
body.dark-mode .crypto-table .positive { color: #68d391; }
body.dark-mode .crypto-table .negative { color: #fc8181; }

.no-data-row td {
    text-align: center;
    padding: 2rem 0;
    color: #a0aec0;
    font-style: italic;
}
body.dark-mode .no-data-row td {
    color: #718096;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; 
    margin-top: 1rem; 
}
.pagination a {
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568; 
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination a:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e0;
    color: #2d3748;
}
.pagination a.active {
    background-color: #3182ce; 
    color: white;
    border-color: #3182ce;
    cursor: default;
}
.pagination a.active:hover {
    background-color: #2b6cb0; 
}

body.dark-mode .pagination a {
    border-color: #4a5568;
    color: #a0aec0;
}
body.dark-mode .pagination a:hover {
    background-color: #2d3748;
    border-color: #718096;
    color: #e2e8f0;
}
body.dark-mode .pagination a.active {
    background-color: #63b3ed; 
    color: #1a202c; 
    border-color: #63b3ed;
}
body.dark-mode .pagination a.active:hover {
    background-color: #4299e1; 
}

/* Responsive Adjustments */
@media (max-width: 768px) { 
    .container { padding: 15px; }
    .banner { font-size: 1.5rem; padding: 30px 15px; }
    .section-title { font-size: 1.5rem; }
    .hot-crypto-header { flex-direction: column; align-items: stretch; }
    
    .filter-form { 
        flex-direction: column; 
        align-items: stretch;
        width: 100%;
    }
    .filter-form .currency-selector,
    .filter-form .search-input,
    .filter-form .search-button {
        width: 100%; /* Make form elements full width on small screens */
        min-width: 0;
    }
    .filter-form .search-input {
        border-radius: 6px; /* Full radius if on its own line */
    }
    
    .view-all-link { text-align: center; margin-top: 0.5rem; }
    .info-card-value { font-size: 1.7rem; }
    .fear-greed-custom-card .fear-greed-text-overlay .current-value { font-size: 1.75rem; }

}
@media (max-width: 480px) { 
     .info-cards-grid {
        grid-template-columns: 1fr; 
    }
    .crypto-table th, .crypto-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    .token-icon { width: 20px; height: 20px; }
    .pagination a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}



/* --- ETF Page Specific Styles --- */

.etf-data-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 2.5rem;
}

body.dark-mode .etf-data-section {
    background-color: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.etf-tabs-container {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}
body.dark-mode .etf-tabs-container {
    border-bottom-color: #4a5568;
}

nav.etf-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.etf-tab-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Overlap with container border */
    transition: color 0.2s ease, border-color 0.2s ease;
}

.etf-tab-item:hover {
    color: #2d3748;
}

.etf-tab-item.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

body.dark-mode .etf-tab-item {
    color: #a0aec0;
}
body.dark-mode .etf-tab-item:hover {
    color: #e2e8f0;
}
body.dark-mode .etf-tab-item.active {
    color: #63b3ed;
    border-bottom-color: #63b3ed;
}

.etf-table-container {
    display: none;
}
.etf-table-container.active {
    display: block;
}

.crypto-table.etf-table td.etf-ticker-cell a {
    font-weight: 600;
    color: #3182ce;
    text-decoration: none;
}
.crypto-table.etf-table td.etf-ticker-cell a:hover {
    text-decoration: underline;
}
body.dark-mode .crypto-table.etf-table td.etf-ticker-cell a {
    color: #63b3ed;
}


/* --- ETF Detail Page Styles --- */
.etf-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 12px;
    margin-bottom: 2rem;
}
body.dark-mode .etf-detail-header {
    background-color: #2d3748;
}

.etf-detail-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.etf-issuer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.etf-detail-title h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem 0;
}
.etf-detail-title p {
    margin: 0;
    color: #718096;
}
.etf-detail-title p a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}
.etf-detail-title p a:hover {
    text-decoration: underline;
}
body.dark-mode .etf-detail-title p {
    color: #a0aec0;
}
body.dark-mode .etf-detail-title p a {
    color: #63b3ed;
}

.etf-detail-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    padding-top: 0.5rem;
}
body.dark-mode .etf-detail-meta {
    color: #cbd5e0;
}
.etf-detail-meta span {
    background-color: #e2e8f0;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}
body.dark-mode .etf-detail-meta span {
    background-color: #4a5568;
}

.etf-detail-description {
    margin-bottom: 2rem;
}
.etf-detail-description h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #3182ce;
    padding-left: 0.75rem;
}
body.dark-mode .etf-detail-description h4 {
    border-left-color: #63b3ed;
}
.etf-detail-description p {
    line-height: 1.8;
    color: #4a5568;
}
body.dark-mode .etf-detail-description p {
    color: #cbd5e0;
}


.etf-detail-chart-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
body.dark-mode .etf-detail-chart-section {
    background-color: #2d3748;
}

/* Echarts Dark Mode Compatibility */
.echarts-for-react, #etf-detail-chart {
    /* Ensure chart container background is transparent to inherit body color */
    background: transparent !important;
}

/* --- style.css 新增样式 --- */

/* 让链接包裹整个卡片，并去除下划线 */
.info-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* 使链接块级化以填充空间 */
}

/* 详情页内容容器 */
.detail-page-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

body.dark-mode .detail-page-container {
    background-color: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 详情页顶部概览卡片 */
.detail-page-container .top-overview-card {
    max-width: 320px; /* 限制卡片最大宽度 */
    margin: 0 auto 2.5rem auto; /* 居中并与图表拉开距离 */
    pointer-events: none; /* 详情页内的卡片不可再次点击 */
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 550px; /* 给图表一个默认高度 */
    margin-bottom: 2.5rem;
}

/* 简介信息区域 */
.introduction-section {
    line-height: 1.8;
    color: #4a5568;
}

body.dark-mode .introduction-section {
    color: #cbd5e0;
}

.introduction-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3182ce;
    padding-left: 0.75rem;
    color: #2d3748;
}
body.dark-mode .introduction-section h3 {
    border-left-color: #63b3ed;
    color: #e2e8f0;
}

.introduction-section h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}
body.dark-mode .introduction-section h4 {
    color: #e2e8f0;
}

.introduction-section ul {
    list-style-type: none; /* 去除默认列表样式 */
    padding-left: 0;
}

.introduction-section li {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #63b3ed;
}
body.dark-mode .introduction-section li {
    background-color: #1a202c;
    border-left-color: #4299e1;
}

.introduction-section .note {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 8px;
}
body.dark-mode .introduction-section .note {
    color: #a0aec0;
    background-color: #171923;
}

/* --- style.css 新增样式 --- */

/* 季节状态显示条通用样式 */
.season-status-bar {
    text-align: center;
    margin: 0 auto 2.5rem auto; /* 顶部无间距，居中，与下方图表拉开距离 */
    padding: 0.75rem 1.5rem; /* 12px 24px 内边距 */
    border-radius: 50px; /* 圆角胶囊形状 */
    font-size: 1.1rem; /* 字体稍大 */
    font-weight: 600; /* 字体加粗 */
    max-width: 450px; /* 限制最大宽度，避免在宽屏上过长 */
    color: #fff; /* 文字默认为白色 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 添加轻微阴影增加立体感 */
    transition: all 0.3s ease;
}

/* 比特币季节样式 */
.season-status-bar.bitcoin-season {
    background: linear-gradient(45deg, #f7931a, #ffad4a); /* 时尚橙色渐变 */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 山寨币季节样式 */
.season-status-bar.altcoin-season {
    background: linear-gradient(45deg, #16C784, #48e0a4); /* 时尚绿色渐变 */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 中性状态样式 */
.season-status-bar.neutral-season {
    background: linear-gradient(45deg, #718096, #a0aec0); /* 灰色渐变 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* 暗黑模式下的阴影调整 */
body.dark-mode .season-status-bar {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .season-status-bar.neutral-season {
     background: linear-gradient(45deg, #2d3748, #4a5568);
     color: #cbd5e0;
}

/* --- index.php 新增 Tab 样式 --- */
.crypto-list-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
    flex-grow: 1; /* 占据左侧空间 */
}
body.dark-mode .crypto-list-tabs {
    border-bottom-color: #4a5568;
}

.tab-link {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* 让活动状态的边框与容器边框重叠 */
    transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-link:hover {
    color: #2d3748;
}
.tab-link.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}
body.dark-mode .tab-link {
    color: #a0aec0;
}
body.dark-mode .tab-link:hover {
    color: #e2e8f0;
}
body.dark-mode .tab-link.active {
    color: #63b3ed;
    border-bottom-color: #63b3ed;
}

/* 调整 hot-crypto-header 布局以适应 Tabs */
.hot-crypto-header {
    align-items: flex-end; /* 让表单和tabs底部对齐 */
}

@media (max-width: 992px) { /* 在平板和手机上，让tabs和搜索框垂直排列 */
    .hot-crypto-header {
        flex-direction: column;
        align-items: stretch;
    }
    .crypto-list-tabs {
        margin-bottom: 1.5rem;
    }
}


/* --- market_overview.php 栅格布局调整 --- */
@media (min-width: 1200px) { /* 调整栅格以适应更多卡片 */
    .info-cards-grid {
        /* 当屏幕足够宽时，每行最多5个，多余的自然换行 */
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}


/* --- xaut-gold-price.php 详情页样式 --- */
.detail-page-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

body.dark-mode .detail-page-container {
    background-color: #2d3748;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.detail-page-container .top-overview-card {
    max-width: 320px;
    margin: 0 auto 2.5rem auto;
    pointer-events: none; /* 详情页内的卡片不可再次点击 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* 更明显的阴影 */
}
body.dark-mode .detail-page-container .top-overview-card {
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.chart-container {
    width: 100%;
    height: 550px;
    margin-bottom: 2.5rem;
}

.introduction-section {
    line-height: 1.8;
    color: #4a5568;
    margin: 0 auto; /* 居中显示 */
}

body.dark-mode .introduction-section {
    color: #cbd5e0;
}

.introduction-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3182ce;
    padding-left: 0.75rem;
    color: #2d3748;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}
body.dark-mode .introduction-section h3 {
    border-left-color: #63b3ed;
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}

.introduction-section h4 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2d3748;
}
body.dark-mode .introduction-section h4 {
    color: #e2e8f0;
}

.introduction-section ul {
    list-style-type: none;
    padding-left: 0;
}

.introduction-section li {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #63b3ed;
    transition: transform 0.2s, box-shadow 0.2s;
}
.introduction-section li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
body.dark-mode .introduction-section li {
    background-color: #1a202c;
    border-left-color: #4299e1;
}
body.dark-mode .introduction-section li:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.introduction-section .note {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
body.dark-mode .introduction-section .note {
    color: #a0aec0;
    background-color: #171923;
    border-color: #2d3748;
}



/* --- XAUT 详情页价格英雄区样式 --- */
.price-hero-display {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
}
body.dark-mode .price-hero-display {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.3), rgba(45, 55, 72, 0));
}

.price-hero-display .price-label {
    font-size: 1rem;
    font-weight: 500;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
body.dark-mode .price-hero-display .price-label {
    color: #a0aec0;
}

.price-hero-display .current-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #D4AF37; /* Gold color */
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.2);
}

.price-hero-display .price-change {
    font-size: 1.25rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(0,0,0,0.02);
}
body.dark-mode .price-hero-display .price-change {
    background-color: rgba(255,255,255,0.05);
}

.price-hero-display .price-change.positive {
    color: #38a169;
}
.price-hero-display .price-change.negative {
    color: #e53e3e;
}
body.dark-mode .price-hero-display .price-change.positive {
    color: #68d391;
}
body.dark-mode .price-hero-display .price-change.negative {
    color: #fc8181;
}

.price-hero-display .price-change .arrow {
    font-size: 1rem;
}
.price-hero-display .price-change .timeframe {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-left: 0.25rem;
}
body.dark-mode .price-hero-display .price-change .timeframe {
     color: #718096;
}

/* === index.php 新的文件夹Tab样式 === */
.crypto-list-section {
    margin-top: 2.5rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* 让搜索框和Tab底部对齐 */
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: -1px; /* 关键：让Tab和内容区边框重叠 */
    position: relative;
    z-index: 10;
}

.list-tabs-container {
    display: flex;
    gap: 0.25rem; /* Tab之间的微小间隙 */
    margin-bottom: 3px;
}

.tab-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    background-color: #f1f5f9; /* 非激活状态的背景色 */
    color: #4a5568; /* 非激活状态的文字颜色 */
    border: 1px solid #e2e8f0; /* 非激活状态的边框 */
    border-bottom: none; /* 底部无边框 */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.tab-link:hover {
    background-color: #e2e8f0;
    color: #2d3748;
}

.tab-link.active {
    background-color: #ffffff; /* 激活状态背景色 (与内容区一致) */
    color: #3182ce; /* 激活状态文字颜色 */
    border-color: #e2e8f0;
    font-size: 1rem; /* 激活时字体稍大 */
    transform: translateY(1px); /* 稍微下移，与内容区边框对齐 */
}

.list-content-wrapper {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-top-left-radius: 0; /* 左上角变为直角，与Tab连接 */
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- Dark Mode for Tabs --- */
body.dark-mode .tab-link {
    background-color: #1a202c;
    color: #a0aec0;
    border-color: #4a5568;
}
body.dark-mode .tab-link:hover {
    background-color: #2d3748;
    color: #e2e8f0;
}
body.dark-mode .tab-link.active {
    background-color: #2d3748; /* 与内容区背景一致 */
    color: #63b3ed;
    border-color: #4a5568;
}
body.dark-mode .list-content-wrapper {
    background-color: #2d3748;
    border-color: #4a5568;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}




/* === xaut-gold-price.php 新的交易所价格头样式 === */
.exchange-style-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}
body.dark-mode .exchange-style-header {
    border-bottom-color: #4a5568;
}

.exchange-style-header .left-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exchange-style-header .token-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}
body.dark-mode .exchange-style-header .token-name {
    color: #e2e8f0;
}

.exchange-style-header .price-change {
    font-size: 1.1rem;
    font-weight: 600;
}
.exchange-style-header .price-change .timeframe {
    font-size: 0.8rem;
    color: #718096;
    margin-left: 0.5rem;
}
body.dark-mode .exchange-style-header .price-change .timeframe {
    color: #a0aec0;
}
.exchange-style-header .price-change.positive { color: #38a169; }
.exchange-style-header .price-change.negative { color: #e53e3e; }
body.dark-mode .exchange-style-header .price-change.positive { color: #68d391; }
body.dark-mode .exchange-style-header .price-change.negative { color: #fc8181; }


.exchange-style-header .right-panel {
    text-align: right;
}

.exchange-style-header .current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D4AF37; /* Gold color */
    line-height: 1.1;
    margin: 0;
}

.exchange-style-header .price-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.25rem;
}
body.dark-mode .exchange-style-header .price-label {
    color: #a0aec0;
}

/* === xaut-gold-price.php 取消简介居中 === */
.introduction-section {
    line-height: 1.8;
    color: #4a5568;
    /* 移除 max-width 和 margin: auto */
}
body.dark-mode .introduction-section {
    color: #cbd5e0;
}
.introduction-section h3 {
    text-align: left; /* 取消居中 */
    border-bottom: none; /* 移除下划线 */
    padding-bottom: 0;
}

