/* =========================================================
   Base — 全局基础
   =========================================================
   用途：
   - 全站 CSS 变量（颜色、字号、圆角、容器宽度）
   - 浏览器重置（*、body、img、a）
   - 页面容器（.tn-container）
   - 通用布局（.tn-section、.tn-grid）
   - 全站头部（.tn-header、.tn-menu、移动端汉堡）
   - 全站页脚（.tn-footer）
   
   说明：
   - 这个文件是其他所有 CSS 的依赖，不要删
   - 从项目开始就没变过，以后也很少改
   - 改颜色、字号等全局变量，只改这里
   ========================================================= */

:root {
    --tn-bg: #0a0a0c;
    --tn-bg-2: #111114;
    --tn-bg-3: #17171c;
    --tn-line: rgba(255, 255, 255, 0.08);
    --tn-line-strong: rgba(255, 255, 255, 0.16);
    --tn-text: #ececef;
    --tn-text-dim: #9a9aa5;
    --tn-text-mute: #6b6b76;
    --tn-gold: #c9a24a;
    --tn-gold-2: #e3c67a;
    --tn-gold-soft: rgba(201, 162, 74, 0.12);
    --tn-radius: 14px;
    --tn-radius-sm: 10px;
    --tn-container: 1200px;
    --tn-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --tn-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--tn-bg);
    color: var(--tn-text);
    font-family: var(--tn-font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Container ---------- */
.tn-container {
    width: 100%;
    max-width: var(--tn-container);
    margin: 0 auto;
    padding: 0 20px;
}

.tn-narrow { max-width: 800px; }

/* ---------- Section ---------- */
.tn-section { padding: 90px 0; }

.tn-section-dark {
    background: var(--tn-bg-2);
    border-top: 1px solid var(--tn-line);
    border-bottom: 1px solid var(--tn-line);
}

.tn-section-head { margin-bottom: 48px; }

.tn-section-title {
    font-family: var(--tn-serif);
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 0 0 12px;
    letter-spacing: 1px;
    position: relative;
    padding-left: 20px;
}

.tn-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(var(--tn-gold), transparent);
    border-radius: 2px;
}

.tn-section-desc { color: var(--tn-text-dim); margin: 0; font-size: 15px; }

.tn-section-more { text-align: center; margin-top: 50px; }

/* ---------- Grid ---------- */
.tn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

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

/* ---------- Header ---------- */
.tn-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--tn-line);
}

.tn-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.tn-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.tn-logo-cn {
    font-family: var(--tn-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--tn-gold-2);
}

.tn-logo-en {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--tn-text-mute);
    margin-top: 3px;
}



.tn-nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: 0.25s;
    position: relative;
}

.tn-nav-toggle:hover,
.tn-nav-toggle:focus {
    background: rgba(201, 162, 74, 0.12);
    border-color: rgba(201, 162, 74, 0.6);
}

.tn-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--tn-text);
    border-radius: 2px;
    transition: 0.3s;
    transform-origin: center;
}

.tn-nav-toggle:hover span {
    background: var(--tn-gold-2);
}

/* 点击后变 X */
.tn-nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.tn-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.tn-nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 桌面端隐藏，移动端才显示 */
@media (max-width: 768px) {
    .tn-nav-toggle { display: flex; }
}

.tn-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
}

.tn-menu li { position: relative; }

.tn-menu a {
    font-size: 14px;
    color: var(--tn-text-dim);
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.tn-menu a:hover,
.tn-menu .current-menu-item > a { color: var(--tn-gold-2); }

/* 下拉子菜单 */
.tn-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--tn-bg-3);
    border: 1px solid var(--tn-line-strong);
    border-radius: var(--tn-radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.25s;
    z-index: 50;
}

.tn-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tn-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
}

/* ---------- Footer ---------- */
.tn-footer {
    background: var(--tn-bg-2);
    border-top: 1px solid var(--tn-line);
    margin-top: 80px;
}

.tn-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 60px 20px 40px;
}

.tn-footer-brand p {
    margin: 12px 0 0;
    color: var(--tn-text-mute);
    font-size: 13px;
    letter-spacing: 1px;
}

.tn-footer-nav { display: block; }

.tn-footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.tn-footer-menu a {
    font-size: 14px;
    color: var(--tn-text-dim);
    transition: color 0.2s;
}

.tn-footer-menu a:hover { color: var(--tn-gold-2); }

.tn-footer-bottom {
    border-top: 1px solid var(--tn-line);
    padding: 22px 0;
    font-size: 12px;
    color: var(--tn-text-mute);
    letter-spacing: 1px;
}

.tn-footer-bottom .tn-container { padding: 0 20px; }

/* =========================================================
   移动端（框架层）
   ========================================================= */
@media (max-width: 768px) {
    .tn-header-inner { height: 64px; }

    .tn-nav-toggle { display: flex; }

    .tn-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--tn-line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .tn-nav.is-open { max-height: 80vh; overflow-y: auto; }

    .tn-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
    }

    .tn-menu li { border-bottom: 1px solid var(--tn-line); }
    .tn-menu li:last-child { border-bottom: none; }

    .tn-menu a {
        display: block;
        padding: 16px 0;
        font-size: 15px;
    }

    .tn-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0 0 0 16px;
    }

    .tn-section { padding: 60px 0; }
    .tn-section-head { margin-bottom: 30px; }
    .tn-grid { grid-template-columns: 1fr; gap: 18px; }
    .tn-type-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tn-footer-inner { padding: 40px 20px 30px; }
}

@media (max-width: 480px) {
    .tn-type-grid { grid-template-columns: 1fr; }
}