@charset "UTF-8";

:root {
    --bg: #020822;
    --panel: rgba(5,16,46,.94);
    --text: #f4fbff;
    --muted: #9fb6de;
    --accent: #39f2aa;
    --accent-blue: #38b6ff;
    --shadow-big: 0 26px 80px rgba(0,0,0,.7);
}

/* 隐藏Neve默认头部底部 */
header.header,
.navbar,
.site-header,
.site-footer,
.footer--row,
.nv-footer-content,
footer.site-footer {
    display: none !important;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    background: radial-gradient(circle at 0 0, rgba(26,107,255,0.3) 0, transparent 55%),
                radial-gradient(circle at 100% 100%, rgba(17,223,140,0.3) 0, transparent 55%),
                #020822;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body {
    padding: 0;
}

/* 容器 - 全宽但内边距，确保全局居中 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto; /* 核心居中代码 */
    padding: 0 12px;
    display: block;
}

/* 移除额外的边距 */
main {
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; /* 辅助居中 */
}

/* 表格容器允许横向滚动 */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========== 顶部导航 - 完全对齐 ========== */
header.site {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, #053993 0, #0a64d0 35%, #06bf8f 100%);
    border-bottom: 1px solid rgba(46,122,211,.7);
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0;
}

.site-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 0;
    height: 60px;
    width: 100%;
}

/* Logo和站名 - 严格垂直居中 */
.brand {
    display: flex;
    align-items: center; 
    gap: 10px;
    color: #fff;
    text-decoration: none;
    height: 100%; 
}

.brand > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto; 
    line-height: normal; 
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    display: block;
}

/* 收紧行高，确保视觉垂直居中 */
.brand strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1; 
    margin-bottom: 2px; 
}

.brand .sub {
    color: rgba(223,239,255,.9);
    font-size: 11px;
    line-height: 1.1;
}

/* 主导航菜单 - 垂直居中 */
nav.menu {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    align-items: center;
    height: 60px;
}

nav.menu a {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(233,246,255,.96);
    background: rgba(4,16,43,.4);
    border: 1px solid rgba(179,219,255,.26);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: fit-content;
}

nav.menu a:hover {
    background: rgba(5,26,70,.9);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}

.burger {
    display: none;
    align-items: center;
    height: 60px;
}

.burger button {
    background: rgba(5,20,58,.9);
    border: 1px solid rgba(191,227,255,.5);
    color: #e4f3ff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 960px) {
    nav.menu {
        display: none;
    }
    .burger {
        display: flex;
    }
}

/* 抽屉菜单 */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: none;
    z-index: 80;
}

.drawer-overlay.show {
    display: block;
}

.drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82%, 380px);
    background: #020826;
    border-left: 1px solid #10243f;
    padding: 20px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

.drawer-overlay.show .drawer {
    transform: translateX(0);
}

.drawer a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    color: #e3f0ff;
    font-size: 14px;
    margin-bottom: 4px;
    text-decoration: none;
}

.drawer a:hover {
    background: #07152f;
    color: #fff;
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #10243f;
}

.drawer-head strong {
    color: #f6fbff;
}

.drawer-head button {
    background: #07152f;
    border: 1px solid #1d3b63;
    color: #cfe8ff;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

/* ========== Hero区 ========== */
.hero-section {
    margin: 0; 
    padding: 30px 0;
    background: radial-gradient(circle at 0 0, rgba(82,161,255,.18) 0, transparent 55%),
                radial-gradient(circle at 100% 0, rgba(57,237,168,.18) 0, transparent 60%),
                linear-gradient(140deg, rgba(4,19,47,.95) 0, rgba(2,8,24,.98) 60%);
    border-top: 1px solid rgba(83,168,255,.4);
    border-bottom: 1px solid rgba(83,168,255,.4);
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: none;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #a5d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
    }
}

.hero-desc {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    max-width: 600px;
    margin: 0 auto 24px;
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 6px 12px;
    }
}

.hero-stat {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(7,21,60,.6);
    border: 1px solid rgba(83,168,255,.25);
    text-align: center;
    flex: 0 1 auto;
}

.hero-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    display: inline;
}

@media (max-width: 640px) {
    .hero-stat-num {
        font-size: 16px;
    }
}

.hero-stat-label {
    font-size: 12px;
    color: var(--muted);
    display: inline;
    margin-left: 4px;
}

@media (max-width: 640px) {
    .hero-stat-label {
        font-size: 11px;
    }
}

/* ========== 搜索框 - 彻底深色透明 ========== */
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 640px) {
    .hero-search {
        flex-direction: column;
        gap: 8px;
    }
}

.hero-search-input {
    flex: 1;
    border: 1px solid rgba(72,138,222,.5);
    outline: none;
    background: transparent !important; 
    color: #f4fbff !important;
    font-size: 14px;
    padding: 12px 18px;
    width: 100%;
    border-radius: 999px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: none;
    -webkit-appearance: none;
    transition: background 0.2s, border-color 0.2s;
}

.hero-search-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.05) !important;
}

.hero-search-input::placeholder {
    color: #9fb6de !important;
    opacity: 1;
}

.hero-search-input:-webkit-autofill,
.hero-search-input:-webkit-autofill:hover,
.hero-search-input:-webkit-autofill:focus,
.hero-search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #f4fbff !important;
    caret-color: #f4fbff;
    border: 1px solid rgba(72,138,222,.5);
    border-radius: 999px;
    transition: background-color 5000s ease-in-out 0s;
}

.hero-search-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #20e0a2 0, #5fffd2 100%);
    color: #021019;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.hero-search-btn:hover {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .hero-search-btn {
        width: 100%;
        padding: 12px;
    }
}

/* 系统状态条 - 居中对齐 */
.status-bar {
    margin: 15px auto 10px; /* 居中 */
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(23,196,130,.12) 0, rgba(4,36,35,.95) 60%, rgba(10,88,66,.97) 100%);
    border: 1px solid rgba(75,230,170,.6);
    display: flex;
    align-items: center;
    justify-content: center; /* 内容居中 */
    gap: 8px;
    width: max-content;
    max-width: 100%;
    font-size: 13px;
}

@media (max-width: 640px) {
    .status-bar {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 30px;
        width: 100%;
        justify-content: flex-start; /* 手机端内容太长时左对齐好读 */
    }
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(97,255,193,.25);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    50% { opacity: 0.4; }
}

.status-text {
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .status-text {
        white-space: normal;
        line-height: 1.4;
    }
}

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

/* ========== 章节通用 ========== */
.section {
    margin: 25px auto 40px; /* 居中对齐 */
    width: 100%;
}

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

@media (max-width: 640px) {
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 640px) {
    .section-title {
        font-size: 20px;
    }
}

.section-title::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent), var(--accent-blue));
    border-radius: 3px;
}

.section-link {
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(56,182,255,.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .section-link {
        padding: 6px 16px;
        font-size: 12px;
    }
}

/* ========== 平台卡片 - 电脑端固定每行三个 ========== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 强制3列 */
    gap: 18px;
}

@media (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板2列 */
    }
}

@media (max-width: 640px) {
    .platform-grid {
        grid-template-columns: 1fr; /* 手机1列 */
        gap: 16px;
    }
}

.platform-card {
    background: rgba(7,21,60,.5);
    border-radius: 16px;
    border: 1px solid rgba(83,168,255,.25);
    padding: 18px;
    position: relative;
    backdrop-filter: blur(5px);
}

.platform-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.platform-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(56,182,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent-blue);
}

.platform-card:nth-child(1) .platform-rank,
.platform-card:nth-child(2) .platform-rank,
.platform-card:nth-child(3) .platform-rank {
    background: linear-gradient(135deg, #ffd700, #ff9966);
    color: #000;
}

.platform-header {
    margin-bottom: 12px;
    padding-right: 40px;
}

.platform-header a {
    text-decoration: none;
}

.platform-name,
a .platform-name {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover .platform-name {
    color: var(--accent-blue) !important;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.platform-tag {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    background: rgba(56,182,255,.15);
    border: 1px solid rgba(56,182,255,.3);
    color: var(--accent-blue);
}

.platform-tag.highlight {
    background: rgba(255,153,102,.15);
    border-color: rgba(255,153,102,.4);
    color: #ff9966;
}

.platform-score {
    margin-bottom: 14px;
}

.platform-score-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.platform-features {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.platform-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.platform-feature-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(56,182,255,.15);
    color: var(--accent-blue);
    font-size: 10px;
    flex-shrink: 0;
}

.platform-feature-label {
    min-width: 65px;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 640px) {
    .platform-feature-label {
        min-width: 60px;
        font-size: 11px;
    }
}

.platform-feature-value {
    color: var(--muted);
    word-break: break-word;
}

.platform-actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed rgba(83,168,255,.2);
}

.platform-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

@media (max-width: 640px) {
    .platform-btn {
        padding: 10px 8px;
        font-size: 12px;
    }
}

.platform-btn-secondary {
    background: rgba(56,182,255,.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.platform-btn-secondary:hover {
    background: rgba(56,182,255,.3);
}

.platform-btn-primary {
    background: linear-gradient(135deg, #20e0a2 0, #5fffd2 100%);
    color: #021019;
}

.platform-btn-primary:hover {
    opacity: 0.9;
}

/* ========== 内容区域 ========== */
.content-area {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .content-area {
        grid-template-columns: 1fr;
    }
}

.featured-article {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #050f26;
    display: block;
    width: 100%;
}

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

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(2,8,34,.98) 0%, rgba(2,8,34,.7) 60%, transparent);
}

@media (max-width: 640px) {
    .featured-overlay {
        padding: 12px;
    }
}

.featured-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #021019;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .featured-title {
        font-size: 16px;
    }
}

.featured-meta {
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

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

.article-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(7,21,60,.4);
    border: 1px solid rgba(83,168,255,.2);
    text-decoration: none;
    transition: border-color 0.2s;
}

.article-item:hover {
    border-color: rgba(83,168,255,.5);
}

.article-item-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item-content {
    flex: 1;
    min-width: 0;
}

.article-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-meta {
    font-size: 11px;
    color: var(--muted);
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.secondary-card {
    background: rgba(7,21,60,.35);
    border: 1px solid rgba(83,168,255,.18);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.secondary-card:hover {
    border-color: rgba(83,168,255,.5);
}

.secondary-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #050f26;
    overflow: hidden;
    display: block;
}

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

.secondary-card:hover .secondary-thumb img {
    transform: scale(1.05);
}

.secondary-content {
    padding: 12px;
}

.secondary-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    text-decoration: none;
}

.secondary-content a {
    text-decoration: none;
}

.secondary-title:hover {
    color: var(--accent-blue);
}

.secondary-meta {
    font-size: 11px;
    color: var(--muted);
}

/* ========== 页脚优化：极限紧凑 ========== */
footer.site {
    margin-top: 40px; /* 从 60px 缩小 */
    padding: 20px 0 15px; /* 从 30px 缩小 */
    background: radial-gradient(circle at top, #061a45 0, transparent 60%), #020818;
    border-top: 1px solid rgba(25,64,125,.9);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 15px; /* 从 30px 缩小 */
    margin-bottom: 15px; /* 从 25px 缩小 */
}

@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        /* 手机端改为两列显示，节省大量垂直空间 */
        grid-template-columns: 1fr 1fr; 
        gap: 12px;
    }
    .footer-col:first-child {
        /* 第一列（关于我们）横跨整行，下方其他链接两两并排 */
        grid-column: span 2; 
        margin-bottom: 5px;
    }
}

.footer-col h4 {
    margin: 0 0 8px; /* 从 14px 缩小 */
    font-size: 14px; /* 从 15px 缩小 */
    color: #dfeaff;
}

.footer-col p,
.footer-col a {
    font-size: 12px; /* 从 13px 缩小 */
    color: #a5c7ff;
    text-decoration: none;
    line-height: 1.4; /* 行高从 1.6 缩小 */
    display: block; /* 确保链接占整行，避免挤在一起 */
    margin-bottom: 4px; /* 增加一点下间距防误触 */
}

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

.footer-bottom {
    padding-top: 15px; /* 从 20px 缩小 */
    border-top: 1px dashed rgba(26,47,95,.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center; /* 手机端居中对齐更好看 */
        text-align: center;
        gap: 8px;
    }
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center; /* 图标居中 */
}

.footer-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6,24,68,.96);
    border: 1px solid rgba(42,104,186,.9);
    font-size: 10px;
    color: #d9ecff;
}