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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 12px 0;
}

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

.header-logo {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.logo-icon {
    font-size: 28px;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.3s;
}

.language-toggle:hover {
    border-color: #667eea;
    color: #667eea;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.language-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 130px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.language-dropdown.active .language-menu {
    display: block;
}

.lang-option {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.lang-option:hover {
    background: #f5f7fa;
    color: #667eea;
}

.lang-option.active {
    color: #667eea;
    font-weight: 600;
    background: #f0f4ff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #f0f2f5;
}

.hamburger {
    width: 18px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.hamburger:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger:nth-child(2) {
    margin-bottom: 5px;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    flex-direction: column;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-nav-close:hover {
    background: #f5f7fa;
    color: #333;
}

.mobile-nav-list {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.mobile-lang-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.mobile-lang-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-lang-option {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.mobile-lang-option:hover {
    background: #667eea;
    color: white;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-nav-item:hover {
    background: #f5f7fa;
    color: #667eea;
}

.nav {
    display: flex;
    gap: 5px;
}

.nav-item {
    padding: 10px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background: #f0f2f5;
    color: #007bff;
}

.news-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.news-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.main {
    padding: 20px 0;
    min-height: calc(100vh - 300px);
}

.main-content {
    display: flex;
    gap: 20px;
}

.content-left {
    flex: 1;
}

.content-right {
    width: 320px;
    flex-shrink: 0;
}

.featured-section {
    margin-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    /* stretch：侧栏两张图随轮播高度均分拉伸，底部与轮播大图对齐 */
    align-items: stretch;
}

.featured-main-wrapper {
    position: relative;
}

.featured-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.featured-main .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.featured-main .slide.active {
    opacity: 1;
}

.featured-main .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-main .slide:hover img {
    transform: scale(1.05);
}

.featured-main .slide .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.featured-main .slide .overlay h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0;
    margin-right: 20px;
    flex: 1;
}

.featured-main .slide .overlay .meta {
    font-size: 13px;
    opacity: 0.9;
}

.slider-dots {
    position: relative;
    bottom: auto;
    left: auto;
    display: flex;
    gap: 8px;
    z-index: 10;
    flex-shrink: 0;
}

.slider-dot {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #f7931a;
    transform: scale(1.1);
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    flex: 1;
    min-height: 140px;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.featured-item .overlay h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.ad-section {
    margin: 5px 0 20px 0;
}

.ad-banner {
    background: #e0e0e0;
    padding: 1px;
    border-radius: 8px;
}

/* 手机端优先：首屏即横向轮播，避免刷新后等样式表末尾媒体查询才变形的闪烁 */
.ad-banner .ad-carousel-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    border-radius: 7px;
    background: #e0e0e0;
}

.ad-banner .ad-carousel-strip::-webkit-scrollbar {
    display: none;
}

.ad-banner .ad-carousel-strip > .ad-item {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: 80px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.ad-banner .ad-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0 0 2px;
    margin: 0;
    list-style: none;
}

.ad-carousel-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #bdbdbd;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ad-carousel-dot.is-active {
    background: #007bff;
    transform: scale(1.2);
}

.ad-item {
    overflow: hidden;
    background: #fff;
}

.ad-item img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    background: #f5f5f5;
}

.ad-banner .ad-item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #f0f0f0;
}

.ad-section-full {
    margin: 5px 0 20px 0;
    padding: 0;
}

.ad-banner-full {
    background: #e0e0e0;
    padding: 1px;
    border-radius: 8px;
}

.ad-banner-full .ad-carousel-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    border-radius: 7px;
    background: #e0e0e0;
}

.ad-banner-full .ad-carousel-strip::-webkit-scrollbar {
    display: none;
}

.ad-banner-full .ad-carousel-strip > .ad-item {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    height: 80px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.ad-banner-full .ad-item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #f0f0f0;
}

@media (min-width: 769px) {
    .ad-banner {
        padding: 0;
        background: transparent;
    }

    .ad-banner .ad-carousel-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        overflow: visible;
        scroll-snap-type: none;
        scroll-behavior: auto;
        overscroll-behavior-x: auto;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .ad-banner .ad-carousel-strip > .ad-item {
        flex: none;
        min-width: 0;
        max-width: none;
        width: auto;
        height: auto;
        display: block;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
    }

    .ad-banner .ad-item img {
        width: 100%;
        height: 70px;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center;
    }

    .ad-banner .ad-carousel-dots {
        display: none;
    }

    .ad-banner-full .ad-carousel-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        overflow: visible;
        scroll-snap-type: none;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .ad-banner-full .ad-carousel-strip > .ad-item {
        flex: none;
        min-width: 0;
        max-width: none;
        width: auto;
        height: auto;
        display: block;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        border-radius: 0;
        background: #fff;
    }

    .ad-banner-full .ad-item img {
        width: 100%;
        height: 70px;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center;
    }
}

.news-tabs-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.news-tabs {
    display: flex;
    gap: 5px;
    padding: 15px 15px 0;
    border-bottom: 2px solid #f0f2f5;
    flex-wrap: wrap;
}

.news-tab {
    padding: 10px 18px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.news-tab:hover {
    color: #007bff;
}

.news-tab.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.news-list {
    padding: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-image {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    /* PSI CLS：固定两行，防止标题行数变化把卡片撑高（真实卡必须与 SSR 骨架同高） */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-title:hover {
    color: #007bff;
}

.news-item-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #6b7280;
}



.news-item-meta .views {
    color: #c2410c;
}

/* 仅供屏幕阅读器的隐藏标题（PSI P1-5 标题层级用） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* PSI P0-1/第四轮：新闻行固定高度，使 SSR 骨架与 JS 填充后的真实卡片完全等高，消除 CLS。
   156 = 上下 padding 30 + 内容盒 126；内容实测约 122（标题 2 行 44.8 + 间距 8 + 摘要 2 行 41.6 + 间距 8 + meta 19.4），
   留 4px 余量避免裁切；标题/摘要各自 clamp 到 2 行，不会撑高。 */
.news-item {
    height: 156px;
    overflow: hidden;
}

.news-item-skeleton {
    pointer-events: none;
}

.news-item-skeleton .skel-img {
    background: #eef1f5;
}

.skel-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: skel-shimmer 1.4s ease infinite;
}

@keyframes skel-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* PSI CLS：首屏 featured 侧栏骨架。与真实 .featured-item 同尺寸（16:9），
   使 SSR 阶段就把侧栏高度撑到位，避免 JS 填充 2 张卡片时把下方新闻区整体下推。 */
.featured-side .featured-side-skeleton {
    flex: 1;
    min-height: 140px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 37%, #eef1f5 63%);
    background-size: 400% 100%;
    animation: skel-shimmer 1.4s ease infinite;
}

.news-item-skeleton .skel-title {
    height: 16px;
    width: 55%;
    margin-bottom: 8px;
}

.news-item-skeleton .skel-line {
    height: 12px;
    margin-bottom: 10px;
}

.news-item-skeleton .skel-line-short {
    width: 78%;
    margin-bottom: 0;
}

.news-item-skeleton .skel-meta {
    height: 12px;
    width: 34%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.widget-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f0f2f5;
}

.hot-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom: none;
}

.widget-content {
    padding: 15px;
}

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

.flash-date {
    font-size: 13px;
    color: #999;
}

.flash-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.flash-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.flash-item.important .flash-time {
    color: #ff4757;
    font-weight: 600;
}

.flash-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}

.flash-time {
    font-size: 12px;
    color: #999;
}

.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-news-item {
    display: flex;
    gap: 12px;
}

.hot-news-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-news-item:nth-child(1) .hot-news-rank {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931a 100%);
}

.hot-news-item:nth-child(2) .hot-news-rank {
    background: linear-gradient(135deg, #ffa502 0%, #ff6b81 100%);
}

.hot-news-item:nth-child(3) .hot-news-rank {
    background: linear-gradient(135deg, #7bed9f 0%, #2ed573 100%);
}

.hot-news-content {
    flex: 1;
}

.hot-news-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.hot-news-title:hover {
    color: #007bff;
}

.hot-news-meta {
    font-size: 12px;
    color: #999;
}

.coin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coin-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.coin-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.coin-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coin-info {
    flex: 1;
}

.coin-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.coin-symbol {
    font-size: 12px;
    color: #999;
    margin-left: 5px;
}

.coin-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.coin-total-supply {
    font-size: 12px;
    color: #007bff;
    font-weight: 500;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.coin-launch-date {
    font-size: 11px;
    color: #999;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.coin-price {
    text-align: right;
}

.coin-price-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.coin-change {
    font-size: 12px;
}

.coin-change.up {
    color: #2ed573;
}

.coin-change.down {
    color: #ff4757;
}

.footer {
    background: #2a2a3e;
    /* 对比度：深底上 #999 对风险提示段仅约 4.5，提升到 #b3b3c2（≈6.7）以满足 AA */
    color: #b3b3c2;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-simple {
    text-align: center;
}

.footer-risk-warning {
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
}

.footer-risk-warning strong {
    color: #ffa502;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-link-separator {
    margin: 0 10px;
    /* 对比度：#9a9aab 对 #2a2a3e 约 5.1，原 #555 仅 1.9 */
    color: #9a9aab;
}

/* 独立页 /site_map.html：前几列收窄，资讯/快讯长标题列略宽，便于宽屏一排 6 栏 */
.page-site-map-wrap {
    max-width: 1320px;
    margin: 0 auto 32px;
    padding: 28px 20px 36px;
    background: #fff;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(42, 42, 62, 0.06);
}

.page-site-map-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eceef5;
    text-align: center;
}

.page-site-map-h1 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    color: #2a2a3e;
}

.page-site-map-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.page-site-map-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: start;
}

@media (min-width: 1280px) {
    .page-site-map-grid {
        grid-template-columns:
            minmax(0, 11.5rem)
            minmax(0, 11.5rem)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1.22fr)
            minmax(0, 1.22fr);
        gap: 12px 14px;
    }
}

.page-site-map-section {
    min-width: 0;
    padding: 14px 12px 16px;
    background: #f8f9fc;
    border: 1px solid #eceef5;
    border-radius: 8px;
}

.page-site-map-section .page-site-map-h2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #3a3a52;
}

.page-site-map-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 长列表：栏内滚动，避免整页被单栏拉得过长 */
.page-site-map-section .page-site-map-list {
    max-height: min(520px, 58vh);
    overflow-y: auto;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
}

.page-site-map-section .page-site-map-list::-webkit-scrollbar {
    width: 6px;
}

.page-site-map-section .page-site-map-list::-webkit-scrollbar-thumb {
    background: #c8c9d4;
    border-radius: 4px;
}

@media (max-width: 1279px) {
    .page-site-map-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .page-site-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-site-map-section .page-site-map-list {
        max-height: none;
        overflow-y: visible;
    }
}

.page-site-map-section li {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.45;
}

.page-site-map-section a {
    color: #4c5fd5;
    text-decoration: none;
    word-break: break-word;
}

.page-site-map-section a:hover {
    text-decoration: underline;
}

.page-site-map-foot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #eceef5;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

.page-site-map-foot a {
    color: #4c5fd5;
    text-decoration: none;
}

.page-site-map-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .page-site-map-wrap {
        padding: 20px 14px 28px;
    }

    .page-site-map-h1 {
        font-size: 20px;
    }

    .page-site-map-grid {
        grid-template-columns: 1fr;
    }
}

/* 主导航「资讯」下拉：分类聚合页入口 */
.nav-news-dropdown {
    position: relative;
}

.nav-news-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-caret {
    font-size: 10px;
    opacity: 0.75;
}

.nav-news-dropdown-panel {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    max-width: min(92vw, 320px);
    padding: 8px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    z-index: 1400;
}

.nav-news-dropdown.is-open .nav-news-dropdown-panel {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown-link:hover {
    background: #f5f7fa;
    color: #4c5fd5;
}

/* 侧滑菜单：资讯折叠子项 */
.mobile-nav-expand {
    border-top: 1px solid #f0f0f0;
}

.mobile-nav-expand-btn {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-expand-btn:hover {
    background: #f5f7fa;
    color: #667eea;
}

.mobile-nav-expand-caret {
    display: inline-block;
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.mobile-nav-expand.is-open .mobile-nav-expand-caret {
    transform: rotate(180deg);
}

.mobile-nav-expand-panel {
    padding-bottom: 6px;
}

.mobile-nav-sublink {
    padding-left: 36px !important;
    font-size: 14px !important;
}

.footer-bottom-simple {
    padding-top: 20px;
    border-top: 1px solid #3a3a4e;
}

.footer-copyright {
    font-size: 13px;
}

.view-more-wrapper {
    padding: 15px;
    text-align: center;
}

.view-more-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

a.view-more-btn {
    display: inline-block;
    text-decoration: none;
    line-height: normal;
    box-sizing: border-box;
}

.text-green {
    color: #2ed573;
}

.text-red {
    color: #ff4757;
}

.card {
    background: #fff;
    border-radius: 8px;
}

.table-card {
    overflow: hidden;
}

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

.table-card thead {
    background: #f8f9fa;
}

.table-card th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #f0f2f5;
}

.table-card td {
    padding: 15px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    color: #333;
}

.table-card tbody tr:hover {
    background: #f8f9fa;
}

.table-card tbody tr:last-child td {
    border-bottom: none;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: #fff;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .content-right {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main .container {
        gap: 20px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .featured-section {
        display: none;
    }
    
    .ad-banner {
        padding: 0;
        background: transparent;
    }

    .ad-section {
        margin: 2px 0 8px 0;
    }

    .ad-banner .ad-carousel-dots {
        padding: 0 0 1px;
    }
    
    .content-left {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .content-right {
        display: none;
    }
    
    .news-item {
        flex-direction: row;
        min-height: 150px;
    }

    .news-item-image {
        width: 120px;
        height: 80px;
    }

    /* PSI P1-3：移动端轮播指示器触摸目标 ≥44px（视觉圆点用 ::after 居中绘制） */
    .ad-banner .ad-carousel-dot {
        width: 44px;
        height: 44px;
        background: transparent;
        position: relative;
        flex: none;
    }

    .ad-banner .ad-carousel-dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #bdbdbd;
        transform: translate(-50%, -50%);
        transition: background 0.2s;
    }

    .ad-banner .ad-carousel-dot.is-active::after {
        background: #007bff;
    }

    .slider-dot {
        width: 44px;
        height: 44px;
    }

    .slider-dots {
        gap: 16px;
    }

    .news-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 12px 0;
        gap: 8px;
    }
    
    .news-tab {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .main {
        padding: 15px 0;
        padding-bottom: 80px;
    }
    
    .app-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        opacity: 1 !important;
        z-index: 9999 !important;
        border-top: 1px solid #e8e8e8;
        padding: 8px 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
}



.app-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.app-nav-icon {
    font-size: 22px;
    line-height: 1;
}

.app-nav-text {
    font-size: 11px;
    font-weight: 500;
}

.app-nav-item.active,
.app-nav-item:hover {
    color: #667eea;
}

.app-nav-item.active .app-nav-icon,
.app-nav-item:hover .app-nav-icon {
    transform: scale(1.1);
}

.nav-category {
    margin-bottom: 30px;
}

.nav-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.nav-category .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}

.nav-category .nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.nav-item-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.nav-item-info {
    flex: 1;
    min-width: 0;
}

.nav-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.exchange-logo-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.exchange-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exchange-logo-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.exchange-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exchange-name-link {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    display: inline-block;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.exchange-name-link:hover {
    color: #667eea;
}

.exchange-description-short {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.score-display {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

.score-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
}

.exchange-detail-card {
    padding: 30px;
}

.exchange-description {
    padding: 20px 0;
    color: #444;
    line-height: 1.8;
    font-size: 15px;
}

.exchange-description p {
    margin-bottom: 16px;
}

.exchange-description :last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .header {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-bottom: none;
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    }
    
    .header-main {
        padding: 18px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo-icon {
        font-size: 32px;
    }
    
    .logo-image {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }
    
    .logo-text {
        background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .nav {
        gap: 4px;
    }
    
    .nav-item {
        padding: 10px 14px;
        color: rgba(255,255,255,0.9);
        font-size: 15px;
        font-weight: 500;
        border-radius: 30px;
        transition: all 0.3s;
    }
    
    .nav-item:hover,
    .nav-item.active {
        background: rgba(255,255,255,0.15);
        color: #fff;
    }
    
    .language-toggle {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.9);
    }
    
    .language-toggle:hover {
        border-color: rgba(255,255,255,0.3);
        color: #fff;
    }
    
    .main {
        padding: 30px 0;
        background: #f5f7fa;
    }
    
    .container {
        max-width: 1300px;
    }
    
    .header-main .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .header-logo {
        flex-shrink: 0;
        order: 1;
    }
    
    .nav {
        flex: 1;
        justify-content: flex-end;
        margin-right: 16px;
        order: 2;
    }
    
    .header-right {
        flex-shrink: 0;
        order: 3;
    }
    
    .sidebar-card {
        background: white;
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border: 1px solid #f0f0f0;
        margin-bottom: 16px;
    }
    
    .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .sidebar-exchange-item {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 12px;
        border-radius: 12px;
        background: #f8f9fa;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .sidebar-exchange-item:last-child {
        margin-bottom: 0;
    }
    
    .sidebar-exchange-item:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateX(4px);
    }
    
    .sidebar-exchange-item:hover .sidebar-exchange-name,
    .sidebar-exchange-item:hover .sidebar-exchange-desc,
    .sidebar-exchange-item:hover .sidebar-exchange-rating {
        color: white;
    }
    
    .sidebar-exchange-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: white;
        padding: 6px;
        flex-shrink: 0;
    }
    
    .sidebar-exchange-info {
        flex: 1;
        min-width: 0;
    }
    
    .sidebar-exchange-name {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 2px;
        transition: color 0.3s;
    }
    
    .sidebar-exchange-desc {
        font-size: 11px;
        color: #5f6b7a;
        line-height: 1.4;
        transition: color 0.3s;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .sidebar-exchange-rating {
        font-size: 14px;
        font-weight: 700;
        /* 对比度：原 #10b981 在 #f8f9fa 上仅 2.4，换成 emerald-700（≈5.2）保持绿意又不失可读性 */
        color: #047857;
        flex-shrink: 0;
        transition: color 0.3s;
    }
    
    .sidebar-flash-item {
        padding: 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s;
        margin-bottom: 8px;
        background: #f8f9fa;
    }
    
    .sidebar-flash-item:last-child {
        margin-bottom: 0;
    }
    
    .sidebar-flash-item:hover {
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        transform: translateX(4px);
    }
    
    .sidebar-flash-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .sidebar-flash-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        /* 对比度：原 #667eea→#764ba2 渐变上的白字仅约 4.0，加深一档后约 6.3，10px 小字也达标 */
        background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
        color: white;
        font-size: 10px;
        font-weight: 600;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .sidebar-flash-title {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a2e;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.4;
        flex: 1;
        min-width: 0;
    }
    
    .sidebar-flash-item:hover .sidebar-flash-title {
        color: #667eea;
    }
    
    .sidebar-flash-content {
        font-size: 11px;
        color: #5f6b7a;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .sidebar-coin-item {
        display: flex;
        gap: 20px;
        align-items: center;
        padding: 15px;
        border-radius: 12px;
        background: #f8f9fa;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .sidebar-coin-item:last-child {
        margin-bottom: 0;
    }
    
    .sidebar-coin-item:hover {
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        transform: translateX(4px);
    }
    
    .sidebar-coin-logo {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: white;
        padding: 4px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .sidebar-coin-symbol {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a2e;
        transition: color 0.3s;
    }
    
    .sidebar-coin-item:hover .sidebar-coin-symbol {
        color: #667eea;
    }
    
    .sidebar-coin-supply {
        font-size: 12px;
        /* 对比度：原 #667eea 在 #f8f9fa 上仅 3.47，换成 indigo-600（≈5.96） */
        color: #4f46e5;
        font-weight: 600;
    }
    
    .sidebar-coin-year {
        font-size: 11px;
        color: #5f6b7a;
    }
    
    .sidebar-widget {
        display: none;
    }
    
    .desktop-only-meta {
        display: inline-flex !important;
    }
    
    .desktop-only-meta.source {
        align-items: center;
        padding: 2px 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 500;
    }
    
    .desktop-only-meta.news-meta-date {
        align-items: center;
    }
}
