/* ==========================================================================
   🎨 AI食刻 - 完整高密度极简浅色控制舱样式表 (style.css)
   ========================================================================== */

:root {
    --bg-main: #fbf9f3;          /* 高级暖玉米白纸张底色 */
    --bg-card: #ffffff;          /* 工业纯白卡片基底 */
    --bg-topbar: #f5f2e9;        /* 顶置控制舱 */
    --text-primary: #0f1423;     /* 高级深钛墨黑主文字 */
    --text-secondary: #5e6b7e;   /* 结构流石灰副文字 */
    --tech-blue: #1d4ed8;        /* 严谨的深海科技蓝 */
    --tech-green: #059669;       /* 能源工业绿 */
    --border-crisp: rgba(15, 20, 35, 0.08); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    padding-top: 210px;          /* 压缩未滚动时的头部基础高度占用 */
}

/* ================= 1. 置顶复合矩阵主舱 (常驻吸顶，一体化缓动收缩) ================= */
.fixed-header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-topbar);
    border-bottom: 1px solid rgba(15, 20, 35, 0.1);
    box-shadow: 0 4px 20px rgba(15, 20, 35, 0.01);
    z-index: 1000;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
    padding-bottom: 10px;
}

.top-brand-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 75px; /* 高度微压缩 */
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-left .domain {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.topbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.topbar-center h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar-center .sub-tagline {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 1px;
    display: block;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-right {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tech-blue);
}

/* 导航分类行 */
.sticky-nav-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.column-header {
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--text-primary);
    position: relative;
}
.column-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--tech-blue);
}
.column-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.column-header .en-translation {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= 滚动吸顶紧凑变轨状态 ================= */
.fixed-header-container.is-scrolled {
    background-color: rgba(245, 242, 233, 0.96); 
    backdrop-filter: blur(10px);
    padding-bottom: 4px;
    box-shadow: 0 10px 30px rgba(15, 20, 35, 0.03);
}
.fixed-header-container.is-scrolled .top-brand-bar {
    height: 44px;
    padding: 0 30px;
}
.fixed-header-container.is-scrolled .topbar-center h1 {
    font-size: 1.25rem;
}
.fixed-header-container.is-scrolled .topbar-center .sub-tagline {
    opacity: 0; height: 0px; margin-top: 0px; overflow: hidden;
}
.fixed-header-container.is-scrolled .column-header {
    padding-bottom: 4px;
}
.fixed-header-container.is-scrolled .column-header h2 {
    font-size: 1.05rem; 
}
.fixed-header-container.is-scrolled .en-translation {
    opacity: 0; height: 0px; margin-top: 0px; overflow: hidden;
}

/* ================= 2. ✨ 全新重构：高密度扁平数据列表 ================= */
.main-container {
    max-width: 1240px;
    margin: 24px auto 40px auto;
    padding: 0 24px;
}

.columns-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

/* 💡 第一二列核心变动：扁平化流线排 */
.dense-item-row {
    background: var(--bg-card);
    border: 1px solid var(--border-crisp);
    border-radius: 6px;
    padding: 12px 16px; /* 大幅缩小内边距，极其紧凑 */
    margin-bottom: 10px; /* 卡片间距大幅缩小 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.dense-item-row:hover {
    border-color: rgba(29, 78, 216, 0.25);
    background-color: #fffdf9;
    transform: translateX(2px); /* 悬停时轻微向右滑动提示，替代大阴影 */
}

.row-info-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.row-title-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}
.row-main-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ✨ 微型密码标签胶囊：完美融进同一行，不再突兀占空间 */
.mini-vault-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: rgba(5, 150, 105, 0.08);
    color: var(--tech-green);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.row-en-title {
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* 极简无框右侧文本链接按钮 */
.row-link-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tech-blue);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: rgba(29, 78, 216, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.row-link-btn:hover {
    background-color: var(--tech-blue);
    color: #ffffff;
}

/* 💡 第三列核心变动：新闻与特点也同步紧凑化 */
.dense-news-card {
    background: var(--bg-card);
    border: 1px solid rgba(29, 78, 216, 0.15);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 14px;
}
.news-badge-tag {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    background-color: rgba(29, 78, 216, 0.06);
    color: var(--tech-blue);
    padding: 1px 4px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.news-summary-text { margin-top: 4px; }
.news-timeline-footer {
    font-size: 0.65rem; color: var(--text-secondary); margin-top: 10px; padding-top: 6px; border-top: 1px dashed rgba(15,20,35,0.05); font-family: monospace;
}

/* 紧凑型折叠信息特点卡 */
.dense-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-crisp);
    border-left: 3px solid var(--tech-green);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.info-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.info-dot-indicator {
    width: 4px; height: 4px; background-color: var(--tech-green); border-radius: 50%;
}
.dense-info-card h4 {
    font-size: 0.95rem; font-weight: 700; color: var(--text-primary);
}
.dense-info-card p {
    font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; text-align: justify;
}

/* ================= 3. 下层生态与页脚 ================= */
.bottom-ecosystem {
    max-width: 1192px;
    margin: 30px auto 20px auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: center;
}
.media-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-crisp);
    border-radius: 6px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.media-banner .btn-action { background-color: var(--tech-blue); color: #fff; text-decoration: none; font-size: 0.78rem; font-weight: 600; padding: 8px 14px; border-radius: 4px; }

.donate-mini-box {
    background: var(--bg-card);
    border: 1px solid var(--border-crisp);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.donate-qr { width: 52px; height: 52px; border: 1px solid rgba(15,20,35,0.05); padding: 2px; background: #fff; border-radius: 3px; }
.donate-txt h4 { font-size: 0.78rem; font-weight: 700; }
.donate-txt p { font-size: 0.65rem; color: var(--text-secondary); margin-top: 1px; }

footer { text-align: center; padding: 30px 0; font-size: 0.72rem; color: var(--text-secondary); border-top: 1px solid var(--border-crisp); }

@media (max-width: 900px) {
    body { padding-top: 150px; }
    .top-brand-bar { display: flex; flex-direction: column; height: auto; padding: 10px; gap: 4px; }
    .topbar-center { position: relative; left: 0; top: 0; transform: none; }
    .sticky-nav-bar { grid-template-columns: 1fr; gap: 6px; padding: 4px 12px; }
    .columns-cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .bottom-ecosystem { grid-template-columns: 1fr; gap: 16px; }
    .media-banner { flex-direction: column; gap: 10px; text-align: center; }
}