/* ============================================================
 * TechFlow Theme - main.css
 * 国际化前沿设计语言 v4.0
 * 参考：Vercel + Linear + Apple + Stripe + Arc + Anthropic
 * ============================================================ */

/* ============================================================
 * 0. CSS Reset & 基础层
 * ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tf-bg, #000000);
    color: var(--tf-text, #FAFAFA);
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--tf-text, #FAFAFA);
}

/* ============================================================
 * 1. 容器与排版基础
 * ============================================================ */
.tf-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.tf-container--narrow {
    max-width: 880px;
}

.tf-container--wide {
    max-width: 1440px;
}

/* 衬线大标题（编辑感） */
.tf-display {
    font-family: 'Instrument Serif', 'Times New Roman', serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--tf-text, #FAFAFA);
}

.tf-display em,
.tf-display i {
    font-style: italic;
    color: var(--tf-text-muted, #A1A1AA);
    font-weight: 400;
}

/* 渐变彩色文字 */
.tf-gradient-text {
    background: linear-gradient(
        120deg,
        var(--tf-primary, #00FF94) 0%,
        var(--tf-accent, #60A5FA) 35%,
        var(--tf-purple, #C084FC) 65%,
        var(--tf-pink, #F472B6) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: tf-gradient-shift 8s ease-in-out infinite;
}

@keyframes tf-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 等宽字体（数字/标签） */
.tf-mono {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-feature-settings: 'tnum' 1, 'ss01' 1;
    letter-spacing: -0.02em;
}

/* 字体尺寸系统 */
.tf-text-xs { font-size: 0.75rem; }
.tf-text-sm { font-size: 0.875rem; }
.tf-text-base { font-size: 1rem; }
.tf-text-lg { font-size: 1.125rem; }
.tf-text-xl { font-size: 1.25rem; }
.tf-text-2xl { font-size: 1.5rem; }
.tf-text-3xl { font-size: 2rem; }
.tf-text-4xl { font-size: 2.5rem; }
.tf-text-5xl { font-size: 3.5rem; }
.tf-text-6xl { font-size: 4.5rem; }
.tf-text-7xl { font-size: 6rem; }

@media (max-width: 768px) {
    .tf-text-7xl { font-size: 3rem; }
    .tf-text-6xl { font-size: 2.75rem; }
    .tf-text-5xl { font-size: 2.25rem; }
    .tf-text-4xl { font-size: 1.875rem; }
}

/* ============================================================
 * 2. 顶部导航（Header）
 * ============================================================ */
.tf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-tf-mode="light"] .tf-header {
    background: rgba(250, 248, 245, 0.72);
    border-bottom-color: rgba(10, 10, 10, 0.06);
}

.tf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    gap: 32px;
}

.tf-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--tf-text, #FAFAFA);
}

.tf-header__brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #60A5FA));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 14px;
}

.tf-header__brand-text {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.03em;
}

.tf-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.tf-header__nav-link {
    padding: 8px 14px;
    font-size: 0.9375rem;
    color: var(--tf-text-muted, #A1A1AA);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-header__nav-link:hover {
    color: var(--tf-text, #FAFAFA);
    background: var(--tf-surface-hover, rgba(255, 255, 255, 0.06));
}

[data-tf-mode="light"] .tf-header__nav-link:hover {
    background: rgba(10, 10, 10, 0.04);
}

.tf-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tf-header__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--tf-text-muted, #A1A1AA);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tf-header__action-btn:hover {
    color: var(--tf-text, #FAFAFA);
    background: var(--tf-surface-hover, rgba(255, 255, 255, 0.06));
}

[data-tf-mode="light"] .tf-header__action-btn:hover {
    background: rgba(10, 10, 10, 0.04);
}

.tf-header__action-btn svg {
    width: 18px;
    height: 18px;
}

/* 移动端汉堡 */
.tf-header__burger {
    display: none;
}

@media (max-width: 768px) {
    .tf-header__nav {
        display: none;
    }
    .tf-header__burger {
        display: inline-flex;
    }
}

/* 移动端菜单面板 */
.tf-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--tf-bg-elev, #0A0A0A);
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    padding: 24px clamp(20px, 4vw, 48px);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

[data-tf-mode="light"] .tf-mobile-menu {
    background: #FFFFFF;
}

.tf-mobile-menu.is-open {
    transform: translateY(0);
}

.tf-mobile-menu__link {
    display: block;
    padding: 14px 0;
    font-size: 1.25rem;
    color: var(--tf-text, #FAFAFA);
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.04));
}

.tf-mobile-menu__link:hover {
    color: var(--tf-primary, #00FF94);
}

/* ============================================================
 * 2.5  Header / Nav / Search / Mobile 完整样式
 * ============================================================ */

/*  2.5.1  Header 主容器
 *  ---------------------------------------------------------------- */
.tf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    background: var(--tf-bg-soft, rgba(10, 10, 10, 0.72));
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tf-header.is-scrolled {
    background: var(--tf-bg-soft, rgba(10, 10, 10, 0.92));
    border-bottom-color: var(--tf-border, rgba(255, 255, 255, 0.1));
}

.tf-header__inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

/*  2.5.2  Brand
 *  ---------------------------------------------------------------- */
.tf-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tf-text, #FAFAFA);
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.tf-brand__mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tf-gradient, linear-gradient(135deg, #00FF94, #8B5CF6));
    border-radius: 8px;
    color: #000;
    font-weight: 900;
    font-size: 0.875rem;
}

.tf-brand__name {
    background: var(--tf-gradient, linear-gradient(135deg, #00FF94, #8B5CF6, #FF0080));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/*  2.5.3  Desktop Nav
 *  ---------------------------------------------------------------- */
.tf-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-nav__item {
    position: relative;
}

.tf-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tf-text-dim, #A8A8A8);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.tf-nav__link:hover,
.tf-nav__link:focus {
    color: var(--tf-text, #FAFAFA);
    background: var(--tf-bg-card, rgba(255, 255, 255, 0.04));
}

.tf-nav__link.is-active {
    color: var(--tf-primary, #00FF94);
}

/*  2.5.4  Header Actions（按钮组）
 *  ---------------------------------------------------------------- */
.tf-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 36px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    color: var(--tf-text-dim, #A8A8A8);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.tf-action:hover {
    color: var(--tf-text, #FAFAFA);
    background: var(--tf-bg-card, rgba(255, 255, 255, 0.04));
    border-color: var(--tf-border-hover, rgba(255, 255, 255, 0.16));
}

.tf-action svg {
    width: 16px;
    height: 16px;
}

.tf-action--primary {
    background: var(--tf-gradient, linear-gradient(135deg, #00FF94, #8B5CF6));
    color: #000;
    border-color: transparent;
    font-weight: 600;
    padding: 0 16px;
}

.tf-action--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .tf-action__label { display: none; }
    .tf-action--primary .tf-action__label { display: inline; }
}

/*  2.5.5  Search Overlay（全屏弹层，默认隐藏）
 *  ---------------------------------------------------------------- */
.tf-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 24px 24px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tf-search-overlay.is-open {
    display: flex;
    opacity: 1;
}

.tf-search-overlay__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--tf-bg-soft, #0a0a0a);
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px);
    transition: transform 0.25s ease;
}

.tf-search-overlay.is-open .tf-search-overlay__panel {
    transform: translateY(0);
}

.tf-search-overlay__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--tf-text-dim, #A8A8A8);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tf-search-overlay__close:hover {
    color: var(--tf-text, #FAFAFA);
    background: var(--tf-bg-card, rgba(255, 255, 255, 0.06));
}

.tf-search-overlay__title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tf-text-dim, #A8A8A8);
    margin: 0 0 12px;
}

.tf-search-overlay__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--tf-bg-card, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-search-overlay__form:focus-within {
    border-color: var(--tf-primary, #00FF94);
    box-shadow: 0 0 0 4px rgba(0, 255, 148, 0.12);
}

.tf-search-overlay__form svg {
    width: 20px;
    height: 20px;
    color: var(--tf-text-dim, #A8A8A8);
    flex-shrink: 0;
}

.tf-search-overlay__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--tf-text, #FAFAFA);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.tf-search-overlay__input::placeholder {
    color: var(--tf-text-mute, #6b6b6b);
}

.tf-search-overlay__hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--tf-bg-card, rgba(255, 255, 255, 0.06));
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    color: var(--tf-text-dim, #A8A8A8);
}

/*  2.5.6  Mobile Menu Toggle & Drawer
 *  ---------------------------------------------------------------- */
.tf-mobile-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    color: var(--tf-text, #FAFAFA);
    cursor: pointer;
    padding: 0;
}

.tf-mobile-toggle svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .tf-mobile-toggle { display: inline-flex; }
    .tf-nav { display: none; }
}

.tf-mobile-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 90;
    max-height: 0;
    overflow: hidden;
    background: var(--tf-bg-soft, rgba(10, 10, 10, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    transition: max-height 0.35s ease;
}

.tf-mobile-drawer.is-open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.tf-mobile-drawer__list {
    list-style: none;
    margin: 0;
    padding: 16px 24px 32px;
}

.tf-mobile-drawer__item {
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.04));
}

.tf-mobile-drawer__link {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tf-text, #FAFAFA);
    text-decoration: none;
}

.tf-mobile-drawer__link:hover {
    color: var(--tf-primary, #00FF94);
}

/*  2.5.7  Body padding（防止 fixed header 遮挡内容）
 *  ---------------------------------------------------------------- */
body {
    padding-top: 64px;
}

/* ============================================================
 * 3. Hero 区（首页首屏）
 * ============================================================ */
.tf-hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
    background: var(--tf-bg, #000000);
}

.tf-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--tf-primary-glow, rgba(0, 255, 148, 0.15)) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: tf-float-1 20s ease-in-out infinite;
    z-index: 0;
}

.tf-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--tf-accent-glow, rgba(96, 165, 250, 0.12)) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: tf-float-2 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes tf-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.05); }
}

@keyframes tf-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 30px) scale(1.1); }
}

.tf-hero__inner {
    position: relative;
    z-index: 1;
}

.tf-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--tf-text-muted, #A1A1AA);
    margin-bottom: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-hero__eyebrow:hover {
    border-color: var(--tf-primary, #00FF94);
    color: var(--tf-text, #FAFAFA);
}

[data-tf-mode="light"] .tf-hero__eyebrow {
    background: rgba(10, 10, 10, 0.04);
    border-color: rgba(10, 10, 10, 0.08);
}

.tf-hero__eyebrow-dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #60A5FA));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 10px;
    font-weight: 700;
}

.tf-hero__title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 600;
    max-width: 900px;
    margin: 0 0 28px;
    color: var(--tf-text, #FAFAFA);
}

.tf-hero__title em {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.04em;
    background: linear-gradient(110deg, var(--tf-primary, #00FF94) 0%, var(--tf-accent, #60A5FA) 50%, var(--tf-purple, #C084FC) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tf-hero__subtitle {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--tf-text-muted, #A1A1AA);
    max-width: 640px;
    margin: 0 0 48px;
    letter-spacing: -0.01em;
}

.tf-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.tf-btn--primary {
    background: var(--tf-text, #FAFAFA);
    color: var(--tf-bg, #000000);
}

.tf-btn--primary:hover {
    background: var(--tf-primary, #00FF94);
    color: #000;
    transform: translateY(-1px);
}

.tf-btn--secondary {
    background: var(--tf-surface, rgba(255, 255, 255, 0.06));
    color: var(--tf-text, #FAFAFA);
    border-color: var(--tf-border, rgba(255, 255, 255, 0.1));
}

[data-tf-mode="light"] .tf-btn--secondary {
    background: rgba(10, 10, 10, 0.04);
    border-color: rgba(10, 10, 10, 0.1);
}

.tf-btn--secondary:hover {
    background: var(--tf-surface-hover, rgba(255, 255, 255, 0.1));
    border-color: var(--tf-border-hover, rgba(255, 255, 255, 0.16));
}

.tf-btn--ghost {
    background: transparent;
    color: var(--tf-text-muted, #A1A1AA);
}

.tf-btn--ghost:hover {
    color: var(--tf-text, #FAFAFA);
}

.tf-btn__arrow {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-btn:hover .tf-btn__arrow {
    transform: translateX(3px);
}

.tf-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    max-width: 720px;
}

.tf-hero__stat-num {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--tf-text, #FAFAFA);
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.tf-hero__stat-num em {
    font-style: italic;
    color: var(--tf-primary, #00FF94);
}

.tf-hero__stat-label {
    font-size: 0.8125rem;
    color: var(--tf-text-muted, #71717A);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .tf-hero {
        padding: 120px 0 80px;
    }
    .tf-hero__stats {
        gap: 24px;
    }
    .tf-hero__stat-num {
        font-size: 2rem;
    }
}

/* ============================================================
 * 4. 区块标题（Section Header）
 * ============================================================ */
.tf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    flex-wrap: wrap;
}

.tf-section-head__left {
    flex: 1;
    min-width: 280px;
}

.tf-section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--tf-primary, #00FF94);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.tf-section-head__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--tf-primary, #00FF94);
}

.tf-section-head__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 600;
    color: var(--tf-text, #FAFAFA);
    margin: 0;
}

.tf-section-head__title em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--tf-text-muted, #A1A1AA);
}

.tf-section-head__desc {
    font-size: 0.9375rem;
    color: var(--tf-text-muted, #A1A1AA);
    line-height: 1.6;
    max-width: 360px;
    margin-top: 4px;
}

.tf-section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tf-text-muted, #A1A1AA);
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.1));
    transition: all 0.2s;
}

.tf-section-head__link:hover {
    color: var(--tf-text, #FAFAFA);
    border-color: var(--tf-border-hover, rgba(255, 255, 255, 0.2));
}

/* ============================================================
 * 5. 幻灯片（Slider / Hero Carousel）
 * ============================================================ */
.tf-slider {
    position: relative;
    margin: 0 0 120px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--tf-surface, rgba(255, 255, 255, 0.02));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    aspect-ratio: 21 / 9;
    isolation: isolate;
}

@media (max-width: 768px) {
    .tf-slider {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
        margin-bottom: 80px;
    }
}

.tf-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.tf-slider__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.tf-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tf-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.tf-slider__content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 5vw, 64px);
    max-width: 60%;
}

@media (max-width: 768px) {
    .tf-slider__content {
        max-width: 100%;
        padding: 24px;
    }
}

.tf-slider__cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    width: fit-content;
}

.tf-slider__cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--tf-primary, #00FF94);
    box-shadow: 0 0 8px var(--tf-primary, #00FF94);
}

.tf-slider__title {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 0 0 16px;
    max-width: 700px;
}

.tf-slider__title em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--tf-primary, #00FF94);
}

.tf-slider__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', monospace;
}

.tf-slider__meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.tf-slider__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    width: fit-content;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
}

.tf-slider__cta:hover {
    color: var(--tf-primary, #00FF94);
    border-bottom-color: var(--tf-primary, #00FF94);
}

.tf-slider__cta-arrow {
    transition: transform 0.2s;
}

.tf-slider__cta:hover .tf-slider__cta-arrow {
    transform: translateX(4px);
}

.tf-slider__nav {
    position: absolute;
    bottom: clamp(24px, 4vw, 48px);
    right: clamp(24px, 4vw, 48px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .tf-slider__nav {
        bottom: 16px;
        right: 16px;
    }
}

.tf-slider__counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
}

.tf-slider__counter-current {
    color: var(--tf-primary, #00FF94);
    font-weight: 600;
}

.tf-slider__dots {
    display: flex;
    gap: 6px;
}

.tf-slider__dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.tf-slider__dot.is-active {
    background: var(--tf-primary, #00FF94);
    width: 36px;
}

/* ============================================================
 * 6. 文章卡片（Bento Grid 布局）
 * ============================================================ */
.tf-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

@media (max-width: 1024px) {
    .tf-bento {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

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

/* Bento 尺寸变体（卡片 BEM 修饰符 + bento item 双类匹配） */
.tf-bento__item--xl,
.tf-card--xl { grid-column: span 8; }
.tf-bento__item--lg,
.tf-card--lg { grid-column: span 6; }
.tf-bento__item--md,
.tf-card--md { grid-column: span 4; }
.tf-bento__item--sm,
.tf-card--sm { grid-column: span 3; }
.tf-bento__item--full,
.tf-card--full { grid-column: span 12; }

/* 归档页：3 列等宽，去掉超大占位（横向紧凑） */
.tf-bento--archive .tf-bento__item--lg,
.tf-bento--archive .tf-card--lg,
.tf-bento--archive .tf-bento__item--md,
.tf-bento--archive .tf-card--md { grid-column: span 4; }

@media (max-width: 1024px) {
    .tf-bento__item--xl,
    .tf-bento__item--lg,
    .tf-bento__item--md,
    .tf-bento__item--sm,
    .tf-card--xl,
    .tf-card--lg,
    .tf-card--md,
    .tf-card--sm {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .tf-bento__item--xl,
    .tf-bento__item--lg,
    .tf-bento__item--md,
    .tf-bento__item--sm,
    .tf-bento__item--full,
    .tf-card--xl,
    .tf-card--lg,
    .tf-card--md,
    .tf-card--sm,
    .tf-card--full {
        grid-column: 1 / -1;
    }
}

.tf-card {
    position: relative;
    display: block;
    background: var(--tf-surface, rgba(255, 255, 255, 0.025));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

[data-tf-mode="light"] .tf-card {
    background: #FFFFFF;
    border-color: rgba(10, 10, 10, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tf-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, var(--tf-primary, #00FF94) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.tf-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow:
        0 16px 40px -8px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--tf-border-hover, rgba(255, 255, 255, 0.08));
}

[data-tf-mode="light"] .tf-card:hover {
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(10, 10, 10, 0.06);
}

.tf-card:hover::before {
    opacity: 1;
}

.tf-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tf-surface-2, rgba(255, 255, 255, 0.04));
}

[data-tf-mode="light"] .tf-card__media {
    background: rgba(10, 10, 10, 0.04);
}

.tf-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-card:hover .tf-card__img {
    transform: scale(1.05);
}

.tf-card__media-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tf-card__media-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--tf-primary, #00FF94);
    box-shadow: 0 0 6px var(--tf-primary, #00FF94);
}

.tf-card__body {
    padding: 24px 24px 28px;
}

.tf-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--tf-text-muted, #71717A);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.tf-card__meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--tf-text-muted, #71717A);
}

.tf-card__title {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--tf-text, #FAFAFA);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.tf-card:hover .tf-card__title {
    color: var(--tf-primary, #00FF94);
}

[data-tf-mode="light"] .tf-card:hover .tf-card__title {
    color: #00875A;
}

.tf-card__excerpt {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--tf-text-muted, #A1A1AA);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.tf-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    font-size: 0.75rem;
    color: var(--tf-text-muted, #71717A);
    font-family: 'JetBrains Mono', monospace;
}

.tf-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-card__avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #60A5FA));
    color: #000;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tf-card__arrow {
    color: var(--tf-text-muted, #71717A);
    transition: all 0.2s;
}

.tf-card:hover .tf-card__arrow {
    color: var(--tf-primary, #00FF94);
    transform: translateX(3px);
}

/* 大卡片尺寸样式 */
.tf-bento__item--xl .tf-card__title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.tf-bento__item--xl .tf-card__media { aspect-ratio: 21 / 11; }
.tf-bento__item--lg .tf-card__media { aspect-ratio: 16 / 9; }

/* ============================================================
 * 7. 分页（Pagination）
 * ============================================================ */
.tf-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 64px 0;
    flex-wrap: wrap;
}

.tf-pagination__item {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    color: var(--tf-text-muted, #A1A1AA);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
    text-decoration: none;
}

[data-tf-mode="light"] .tf-pagination__item {
    background: #FFFFFF;
    border-color: rgba(10, 10, 10, 0.08);
}

.tf-pagination__item:hover {
    color: var(--tf-text, #FAFAFA);
    border-color: var(--tf-border-hover, rgba(255, 255, 255, 0.16));
    background: var(--tf-surface-hover, rgba(255, 255, 255, 0.08));
}

[data-tf-mode="light"] .tf-pagination__item:hover {
    background: rgba(10, 10, 10, 0.04);
    color: var(--tf-text, #0A0A0A);
}

.tf-pagination__item.is-current {
    background: var(--tf-text, #FAFAFA);
    color: var(--tf-bg, #000000);
    border-color: transparent;
}

[data-tf-mode="light"] .tf-pagination__item.is-current {
    background: var(--tf-text, #0A0A0A);
    color: #fff;
}

.tf-pagination__item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
 * 8. 文章详情页（Single / Page）
 * ============================================================ */
.tf-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 0;
}

.tf-article__head {
    margin-bottom: 48px;
}

.tf-article__cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--tf-primary, #00FF94);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.tf-article__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
}

.tf-article__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    font-size: 0.875rem;
    color: var(--tf-text-muted, #A1A1AA);
}

.tf-article__meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tf-text, #FAFAFA);
    font-weight: 500;
}

.tf-article__meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--tf-text-muted, #71717A);
}

.tf-article__hero {
    margin: 0 0 56px;
    aspect-ratio: 21 / 11;
    border-radius: 20px;
    overflow: hidden;
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
}

.tf-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-article__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--tf-text, #FAFAFA);
    letter-spacing: -0.01em;
}

.tf-article__body p {
    margin: 0 0 1.5em;
}

.tf-article__body h2 {
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 2.5em 0 1em;
    color: var(--tf-text, #FAFAFA);
}

.tf-article__body h2 em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--tf-primary, #00FF94);
}

.tf-article__body h3 {
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 600;
    margin: 2em 0 0.75em;
    letter-spacing: -0.025em;
}

.tf-article__body a {
    color: var(--tf-primary, #00FF94);
    border-bottom: 1px solid currentColor;
}

[data-tf-mode="light"] .tf-article__body a {
    color: #00875A;
}

.tf-article__body a:hover {
    opacity: 0.7;
}

.tf-article__body blockquote {
    margin: 2em 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--tf-primary, #00FF94);
    font-family: 'Instrument Serif', serif;
    font-size: 1.375rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--tf-text, #FAFAFA);
}

.tf-article__body pre {
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 2em 0;
    font-family: 'JetBrains Mono', monospace;
}

[data-tf-mode="light"] .tf-article__body pre {
    background: #F5F5F4;
    border-color: rgba(10, 10, 10, 0.08);
}

.tf-article__body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    padding: 2px 6px;
    background: var(--tf-surface, rgba(255, 255, 255, 0.06));
    border-radius: 4px;
}

[data-tf-mode="light"] .tf-article__body code {
    background: rgba(10, 10, 10, 0.06);
}

.tf-article__body pre code {
    padding: 0;
    background: transparent;
}

.tf-article__body img {
    border-radius: 16px;
    margin: 2em 0;
}

.tf-article__body ul,
.tf-article__body ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.tf-article__body ul {
    list-style: none;
}

.tf-article__body ul li {
    position: relative;
    padding-left: 0.5em;
    margin-bottom: 0.5em;
}

.tf-article__body ul li::before {
    content: '→';
    position: absolute;
    left: -1.2em;
    color: var(--tf-primary, #00FF94);
}

.tf-article__body ol {
    list-style: decimal;
}

.tf-article__body ol li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.tf-article__body table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
}

.tf-article__body th,
.tf-article__body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    font-size: 0.9375rem;
}

.tf-article__body th {
    font-weight: 600;
    color: var(--tf-text, #FAFAFA);
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
}

/* 文章 footer 标签 */
.tf-article__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 56px 0 0;
    padding-top: 32px;
    border-top: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
}

.tf-article__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--tf-text-muted, #A1A1AA);
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

[data-tf-mode="light"] .tf-article__tag {
    background: #FFFFFF;
    border-color: rgba(10, 10, 10, 0.08);
}

.tf-article__tag:hover {
    color: var(--tf-primary, #00FF94);
    border-color: var(--tf-primary, #00FF94);
}

/* ============================================================
 * 9. 404 页面
 * ============================================================ */
.tf-404 {
    text-align: center;
    padding: 120px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.tf-404__code {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94) 0%, var(--tf-accent, #60A5FA) 50%, var(--tf-purple, #C084FC) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 24px;
}

.tf-404__title {
    font-size: 1.5rem;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
}

.tf-404__desc {
    color: var(--tf-text-muted, #A1A1AA);
    margin: 0 0 32px;
}

.tf-404__actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================================
 * 10. 归档 / 搜索结果
 * ============================================================ */
.tf-archive-head {
    padding: 120px 0 48px;
    border-bottom: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    margin-bottom: 48px;
}

.tf-archive-head__eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--tf-primary, #00FF94);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.tf-archive-head__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 16px;
    font-weight: 600;
}

.tf-archive-head__title em {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--tf-text-muted, #A1A1AA);
}

.tf-archive-head__count {
    font-size: 0.9375rem;
    color: var(--tf-text-muted, #A1A1AA);
    font-family: 'JetBrains Mono', monospace;
}

.tf-archive-head__count strong {
    color: var(--tf-text, #FAFAFA);
    font-weight: 600;
}

.tf-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--tf-text-muted, #A1A1AA);
    border: 1px dashed var(--tf-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    margin: 32px 0;
}

.tf-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.tf-empty__title {
    font-size: 1.25rem;
    color: var(--tf-text, #FAFAFA);
    margin: 0 0 8px;
    font-weight: 600;
}

.tf-empty__desc {
    margin: 0 0 24px;
    font-size: 0.9375rem;
}

/* ============================================================
 * 11. 主体布局（带侧边栏）
 * ============================================================ */
.tf-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    padding: 120px 0 80px;
    align-items: start;
}

.tf-layout--no-sidebar {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .tf-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.tf-layout__main {
    min-width: 0;
}

.tf-layout__aside {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .tf-layout__aside {
        position: static;
    }
}

/* ============================================================
 * 12. 页脚（Footer）
 * ============================================================ */
.tf-footer {
    margin-top: 80px;
    padding: 64px 0 32px;
    border-top: 1px solid var(--tf-border, rgba(255, 255, 255, 0.08));
    background: var(--tf-bg-elev, #050505);
}

[data-tf-mode="light"] .tf-footer {
    background: #FAFAF9;
    border-top-color: rgba(10, 10, 10, 0.08);
}

.tf-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .tf-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

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

.tf-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tf-footer__tagline {
    color: var(--tf-text-muted, #A1A1AA);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

.tf-footer__col-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tf-text, #FAFAFA);
    margin: 0 0 16px;
    font-family: 'JetBrains Mono', monospace;
}

.tf-footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-footer__link {
    color: var(--tf-text-muted, #A1A1AA);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.tf-footer__link:hover {
    color: var(--tf-text, #FAFAFA);
}

.tf-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--tf-border, rgba(255, 255, 255, 0.06));
    flex-wrap: wrap;
    gap: 16px;
}

[data-tf-mode="light"] .tf-footer__bottom {
    border-top-color: rgba(10, 10, 10, 0.06);
}

.tf-footer__copy {
    font-size: 0.8125rem;
    color: var(--tf-text-muted, #71717A);
    font-family: 'JetBrains Mono', monospace;
}

.tf-footer__socials {
    display: flex;
    gap: 8px;
}

.tf-footer__social {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tf-surface, rgba(255, 255, 255, 0.04));
    color: var(--tf-text-muted, #A1A1AA);
    transition: all 0.2s;
}

[data-tf-mode="light"] .tf-footer__social {
    background: rgba(10, 10, 10, 0.04);
}

.tf-footer__social:hover {
    background: var(--tf-primary, #00FF94);
    color: #000;
}

/* ============================================================
 * 13. 响应式
 * ============================================================ */
@media (max-width: 640px) {
    .tf-hero__title { font-size: 2.25rem; }
    .tf-hero__actions { flex-direction: column; align-items: stretch; }
    .tf-hero__actions .tf-btn { justify-content: center; }
    .tf-card__body { padding: 20px; }
}

/* ============================================================
 * 14. 减少动画（可访问性）
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
 * 15. 工具类
 * ============================================================ */
.tf-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;
}

.tf-text-center { text-align: center; }

.tf-mt-0 { margin-top: 0 !important; }
.tf-mt-1 { margin-top: 8px; }
.tf-mt-2 { margin-top: 16px; }
.tf-mt-3 { margin-top: 24px; }
.tf-mt-4 { margin-top: 32px; }
.tf-mt-5 { margin-top: 48px; }
.tf-mt-6 { margin-top: 64px; }
.tf-mt-7 { margin-top: 80px; }
.tf-mt-8 { margin-top: 120px; }

.tf-mb-0 { margin-bottom: 0 !important; }
.tf-mb-2 { margin-bottom: 16px; }
.tf-mb-3 { margin-bottom: 24px; }
.tf-mb-4 { margin-bottom: 32px; }
.tf-mb-5 { margin-bottom: 48px; }
.tf-mb-6 { margin-bottom: 64px; }
.tf-mb-7 { margin-bottom: 80px; }

/* ============================================================
 * 侧边栏 Widget（新类名 .tf-side-widget）
 * ============================================================ */
.tf-side {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 120px;
    align-self: start;
}

.tf-side-widget {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: 20px;
    padding: 28px;
    transition: border-color 240ms ease, background 240ms ease;
}

.tf-side-widget:hover {
    border-color: var(--tf-border-hover);
}

.tf-side-widget__head {
    margin-bottom: 24px;
}

.tf-side-widget__eyebrow {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--tf-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tf-side-widget__title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--tf-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.tf-side-widget__title em {
    font-style: italic;
    background: linear-gradient(110deg, var(--tf-primary) 0%, var(--tf-accent) 50%, var(--tf-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.tf-side-widget__intro {
    font-size: 14px;
    line-height: 1.7;
    color: var(--tf-text-muted);
    margin: 0 0 24px;
}

.tf-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--tf-border);
    border: 1px solid var(--tf-border);
    border-radius: 14px;
    overflow: hidden;
}

.tf-stat {
    background: var(--tf-bg-elev);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tf-stat__num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: normal;
    font-size: 36px;
    line-height: 1;
    color: var(--tf-text);
    letter-spacing: -0.02em;
}

.tf-stat__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--tf-text-soft);
    text-transform: uppercase;
}

/* 最新文章列表 */
.tf-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.tf-side-list li {
    border-bottom: 1px solid var(--tf-border);
}

.tf-side-list li:last-child { border-bottom: none; }

.tf-side-list__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: var(--tf-text);
    transition: padding-left 240ms ease, color 240ms ease;
}

.tf-side-list__item:hover {
    padding-left: 6px;
    color: var(--tf-primary);
}

.tf-side-list__num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 22px;
    line-height: 1;
    color: var(--tf-text-soft);
    flex-shrink: 0;
    min-width: 28px;
    font-style: italic;
    transition: color 240ms ease;
}

.tf-side-list__item:hover .tf-side-list__num {
    color: var(--tf-primary);
}

.tf-side-list__body { flex: 1; min-width: 0; }

.tf-side-list__title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tf-side-list__meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--tf-text-soft);
    letter-spacing: 0.04em;
}

/* 标签云 */
.tf-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-tag {
    display: inline-flex;
    align-items: baseline;
    padding: 6px 12px;
    background: var(--tf-surface-2);
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tf-text-muted);
    text-decoration: none;
    transition: all 200ms ease;
}

.tf-tag:hover {
    background: var(--tf-primary);
    color: var(--tf-bg);
    border-color: var(--tf-primary);
    transform: translateY(-1px);
}

.tf-tag__hash {
    opacity: 0.5;
    margin-right: 1px;
    font-family: 'JetBrains Mono', monospace;
}

/* 归档 */
.tf-side-archive {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tf-side-archive__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    color: var(--tf-text);
    font-size: 13px;
    border-bottom: 1px solid var(--tf-border);
    transition: padding-left 240ms ease, color 240ms ease;
}

.tf-side-archive__item:hover {
    padding-left: 6px;
    color: var(--tf-primary);
}

.tf-side-archive__item:last-child { border-bottom: none; }

.tf-side-archive__name {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
}

.tf-side-archive__bar {
    height: 1px;
    background: var(--tf-border);
    position: relative;
    overflow: hidden;
}

.tf-side-archive__bar-fill {
    display: block;
    height: 100%;
    width: var(--w, 0%);
    background: linear-gradient(90deg, var(--tf-primary) 0%, var(--tf-accent) 100%);
    transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tf-side-archive__count {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 14px;
    color: var(--tf-text-soft);
    font-style: italic;
}

@media (max-width: 1024px) {
    .tf-side { position: static; }
}

/* ==================================================================
 * 缺失类补全 - 防止元素错位显示
 * ================================================================== */

/* Header 右侧图标按钮组 */
.tf-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.tf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--tf-text-2, #A8A8A8);
    cursor: pointer;
    transition: all 200ms ease;
    text-decoration: none;
    padding: 0;
}
.tf-icon-btn:hover {
    color: var(--tf-text, #FAFAFA);
    border-color: var(--tf-accent, #FF0080);
    background: rgba(255, 0, 128, 0.06);
}
.tf-icon-btn svg { width: 18px; height: 18px; display: block; }

/* 移动端汉堡按钮 - 默认 PC 隐藏 */
.tf-icon-btn--menu { display: none; }
@media (max-width: 1023px) {
    .tf-icon-btn--menu { display: inline-flex; }
}

/* 主菜单 - 桌面横向 */
.tf-primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 1023px) {
    .tf-primary-menu { display: none; }
}
.tf-primary-menu li { list-style: none; }
.tf-primary-menu a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--tf-text-2, #A8A8A8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 200ms ease;
}
.tf-primary-menu a:hover {
    color: var(--tf-text, #FAFAFA);
    background: rgba(255, 255, 255, 0.04);
}

/* 移动端菜单 - 默认 PC 隐藏 */
.tf-mobile {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 95;
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.tf-mobile.is-open { display: flex; }

.tf-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tf-mobile-list a {
    display: block;
    padding: 16px 20px;
    color: var(--tf-text, #FAFAFA);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 200ms ease;
}
.tf-mobile-list a:hover {
    border-color: var(--tf-accent, #FF0080);
    background: rgba(255, 0, 128, 0.06);
}

/* 移动端 backdrop-filter 兼容 */
@supports not (backdrop-filter: blur(20px)) {
    .tf-mobile { background: rgba(0, 0, 0, 0.98); }
}

/* 订阅按钮 - 渐变 */
.tf-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--tf-accent, #FF0080) 0%, var(--tf-primary, #00FF94) 100%);
    color: var(--tf-bg, #000000);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease;
    white-space: nowrap;
}
.tf-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 0, 128, 0.25);
}
.tf-cta svg { width: 14px; height: 14px; }

/* 主体内容布局 */
.tf-stories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 32px 120px;
}
.tf-stories__head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.tf-stories__title {
    font-family: var(--tf-font-serif, 'Fraunces', serif);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--tf-text, #FAFAFA);
    margin: 0;
    letter-spacing: -0.02em;
}
.tf-stories__sub {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tf-text-3, #666);
    font-family: var(--tf-font-mono, 'JetBrains Mono', monospace);
}

@media (max-width: 767px) {
    .tf-stories { padding: 60px 20px 80px; }
    .tf-stories__head { flex-direction: column; gap: 8px; margin-bottom: 32px; }
    .tf-stories__title { font-size: 36px; }
}

/* 幻灯片滑轨 */
.tf-slider-track {
    display: flex;
    transform: translateX(0);
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.tf-slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--tf-card-bg, rgba(255, 255, 255, 0.02));
}
.tf-slider-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tf-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 200ms ease;
}
.tf-slider-btn:hover { background: var(--tf-accent, #FF0080); }
.tf-slider-btn--prev { left: 16px; }
.tf-slider-btn--next { right: 16px; }
.tf-slider-btn svg { width: 18px; height: 18px; }

.tf-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.tf-slider-dot {
    width: 24px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 300ms ease;
    padding: 0;
}
.tf-slider-dot.is-active {
    background: var(--tf-accent, #FF0080);
    width: 32px;
}

.tf-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--tf-accent, #FF0080);
    z-index: 5;
    transition: width 50ms linear;
    width: 0;
}

@media (max-width: 767px) {
    .tf-slider-btn { width: 36px; height: 36px; }
    .tf-slider-btn--prev { left: 8px; }
    .tf-slider-btn--next { right: 8px; }
}

/* 站点元信息 */
.tf-site-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tf-font-mono, monospace);
    font-size: 12px;
    color: var(--tf-text-3, #666);
}
.tf-site-meta strong {
    color: var(--tf-text, #FAFAFA);
    font-weight: 600;
}

/* 通用下拉菜单 */
.tf-dropdown {
    position: relative;
    display: inline-block;
}
.tf-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.tf-dropdown.is-open .tf-dropdown__menu { display: flex; }
.tf-dropdown__menu a,
.tf-dropdown__menu button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    color: var(--tf-text-2, #A8A8A8);
    text-decoration: none;
    font-size: 13px;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    font-family: inherit;
}
.tf-dropdown__menu a:hover,
.tf-dropdown__menu button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--tf-text, #FAFAFA);
}

/* ============================================================
 * v1.0.2 全类兜底样式（确保无未定义类出现错位）
 * 覆盖所有 PHP 模板中使用的 tf-* 类
 * ============================================================ */

/* Skip link 无障碍 */
.tf-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 8px 16px;
    background: var(--tf-primary, #00FF94);
    color: #000;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
}
.tf-skip-link:focus { top: 0; }

/* Brand logo 文字 */
.tf-brand__text,
.tf-brand__dot {
    display: inline-block;
}

/* Header actions 区 */
.tf-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

/* 移动端汉堡按钮（默认 PC 隐藏） */
.tf-icon-btn--menu {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--tf-text, #FAFAFA);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.tf-icon-btn--menu:hover {
    background: rgba(255,255,255,0.05);
}
@media (max-width: 1023px) {
    .tf-icon-btn--menu { display: inline-flex; }
}

/* 图标按钮 - 通用 */
.tf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--tf-text, #FAFAFA);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease;
    font: inherit;
}
.tf-icon-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
}
.tf-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* 主题切换按钮内的图标 */
.tf-icon-btn__sun,
.tf-icon-btn__moon {
    display: block;
    width: 18px;
    height: 18px;
}
.tf-mode-dark .tf-icon-btn__sun { display: block; }
.tf-mode-dark .tf-icon-btn__moon { display: none; }
.tf-mode-light .tf-icon-btn__sun { display: none; }
.tf-mode-light .tf-icon-btn__moon { display: block; }

/* 主题切换按钮 - 强制覆盖 [hidden] */
.tf-icon-btn[hidden] { display: none !important; }

/* Header 固定悬浮态 */
.tf-header--fixed {
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* WP 原生菜单 - 兜底 */
.tf-primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tf-primary-menu > li { position: relative; }
.tf-primary-menu a,
.tf-primary-menu .menu-item > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--tf-text, #FAFAFA);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 200ms ease, color 200ms ease;
}
.tf-primary-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--tf-primary, #00FF94);
}
@media (max-width: 1023px) {
    .tf-primary-menu { display: none; }
}

/* 移动端菜单面板（默认完全隐藏） */
.tf-mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 95;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 300ms ease,
                visibility 0s linear 400ms;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 24px 24px 32px;
}
.tf-mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 300ms ease,
                visibility 0s;
}
.tf-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tf-mobile-menu__link {
    display: block;
    padding: 14px 16px;
    color: var(--tf-text, #FAFAFA);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background 200ms ease, color 200ms ease;
}
.tf-mobile-menu__link:hover,
.tf-mobile-menu__link:focus {
    background: rgba(255,255,255,0.05);
    color: var(--tf-primary, #00FF94);
}

/* 搜索弹层（默认完全隐藏） */
.tf-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 24px 24px;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 300ms ease;
}
.tf-search-overlay.is-open {
    display: flex;
    opacity: 1;
}
.tf-search-overlay__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tf-search-overlay__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    transition: border-color 200ms ease, background 200ms ease;
}
.tf-search-overlay__form:focus-within {
    border-color: var(--tf-primary, #00FF94);
    background: rgba(0, 255, 148, 0.04);
}
.tf-search-overlay__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--tf-muted, #A8A8A8);
}
.tf-search-overlay__input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--tf-text, #FAFAFA);
    font: inherit;
    font-size: 1.125rem;
    padding: 4px 0;
}
.tf-search-overlay__input::placeholder {
    color: var(--tf-muted, #A8A8A8);
}
.tf-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--tf-text, #FAFAFA);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 200ms ease;
}
.tf-search-close:hover {
    background: rgba(255,255,255,0.1);
}

/* 卡片 - 占位符 */
.tf-card__placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1d2b 0%, #2a2d3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tf-card__placeholder-glyph {
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    font-family: var(--tf-font-mono, monospace);
}

/* 卡片 - 内部链接 */
.tf-card__link {
    color: inherit;
    text-decoration: none;
}

/* 卡片 - 分类标签 */
.tf-card__cat {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0, 255, 148, 0.1);
    color: var(--tf-primary, #00FF94);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 200ms ease;
}
.tf-card__cat:hover {
    background: rgba(0, 255, 148, 0.18);
}

/* 卡片 - meta 内部分隔符 */
.tf-card__meta-divider {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.4;
}
.tf-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* CTA 按钮 */
.tf-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00FF94 0%, #00C2FF 100%);
    color: #000;
    border: 0;
    border-radius: 100px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 0 0 0 rgba(0, 255, 148, 0.4);
}
.tf-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 148, 0.25);
}
.tf-cta--ghost {
    background: transparent;
    color: var(--tf-text, #FAFAFA);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none;
}
.tf-cta--ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Stories 区块 */
.tf-stories {
    width: 100%;
}
.tf-stories__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tf-stories__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 幻灯片相关 */
.tf-slider-track,
.tf-slider-slide,
.tf-slider-btn,
.tf-slider-dots,
.tf-slider-dot,
.tf-slider-progress {
    box-sizing: border-box;
}
.tf-slider-track {
    display: flex;
    position: relative;
    overflow: hidden;
}
.tf-slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}
.tf-slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--tf-text, #FAFAFA);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease;
}
.tf-slider-btn:hover {
    background: rgba(0,0,0,0.8);
    border-color: var(--tf-primary, #00FF94);
}
.tf-slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}
.tf-slider-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border: 0;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background 200ms ease, width 200ms ease;
}
.tf-slider-dot.is-active {
    background: var(--tf-primary, #00FF94);
    width: 24px;
    border-radius: 100px;
}
.tf-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--tf-primary, #00FF94);
    transition: width 100ms linear;
    width: 0;
}

/* Site meta（站点头部元信息） */
.tf-site-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tf-muted, #A8A8A8);
    font-size: 12px;
}

/* Comment form 通用兜底 */
.comment-form,
#commentform {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.comment-form p,
#commentform p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.comment-form label,
#commentform label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tf-muted, #A8A8A8);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: var(--tf-text, #FAFAFA);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 200ms ease, background 200ms ease;
}
.comment-form input:focus,
.comment-form textarea:focus,
#commentform input:focus,
#commentform textarea:focus {
    outline: 0;
    border-color: var(--tf-primary, #00FF94);
    background: rgba(0, 255, 148, 0.04);
}
.comment-form textarea,
#commentform textarea {
    min-height: 140px;
    resize: vertical;
}
.comment-form input[type="submit"],
.comment-form .submit,
#commentform input[type="submit"],
#commentform .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #00FF94 0%, #00C2FF 100%);
    color: #000;
    border: 0;
    border-radius: 100px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.comment-form input[type="submit"]:hover,
#commentform input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 148, 0.25);
}
.comment-form input[type="checkbox"],
#commentform input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tf-primary, #00FF94);
    margin: 0;
}
.comment-form .comment-form-cookies-consent,
#commentform .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tf-muted, #A8A8A8);
    font-size: 13px;
}
.comment-form .comment-notes,
#commentform .comment-notes,
.comment-form .comment-form-comment label[for="comment"],
#commentform .comment-form-comment label {
    display: block;
}

/* Side widget 通用 */
.tf-side-widget__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 自定义滚动条（修复浏览器默认滚动条与黑色背景冲突） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
* { scrollbar-color: rgba(255,255,255,0.1) transparent; scrollbar-width: thin; }

/* ============================================================
 * v1.0.3 修复：补全缺失类（移动菜单+评论+表单+文章页）
 * ============================================================ */

/* ---- 移动菜单 ---- */
.tf-mobile-trigger {
    display: none;
    width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    border-radius: 10px; color: var(--tf-fg, #FAFAFA); cursor: pointer;
    align-items: center; justify-content: center;
}
@media (max-width: 1023px) { .tf-mobile-trigger { display: inline-flex; } }

.tf-mobile__backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.tf-mobile__panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 85vw);
    background: var(--tf-bg-elev, rgba(10,10,10,0.96));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    z-index: 95; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 24px; overflow-y: auto;
}
.tf-mobile.is-open .tf-mobile__backdrop { opacity: 1; pointer-events: auto; }
.tf-mobile.is-open .tf-mobile__panel { transform: translateX(0); }
.tf-mobile__nav { display: flex; flex-direction: column; gap: 8px; }
.tf-mobile__list { list-style: none; padding: 0; margin: 0; }
.tf-mobile__list a {
    display: block; padding: 14px 16px; color: var(--tf-fg, #FAFAFA);
    font-size: 16px; font-weight: 500; border-radius: 10px;
    transition: background 0.2s;
}
.tf-mobile__list a:hover { background: rgba(255,255,255,0.05); }
.tf-mobile-close {
    position: absolute; top: 20px; right: 20px;
    width: 36px; height: 36px; border-radius: 10px;
    background: transparent; border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    color: var(--tf-fg, #FAFAFA); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}

/* ---- 评论区 ---- */
.tf-comments__head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 32px; padding-bottom: 16px;
    border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.08));
}
.tf-comments__title {
    font-family: 'Fraunces', serif; font-size: 28px; font-weight: 500;
    color: var(--tf-fg, #FAFAFA);
}
.tf-comments__list { list-style: none; padding: 0; margin: 0 0 48px 0; }
.tf-comment {
    display: grid; grid-template-columns: 48px 1fr; gap: 16px;
    padding: 20px 0; border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.06));
}
.tf-comment__avatar img {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
}
.tf-comment__body { min-width: 0; }
.tf-comment__meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
    font-size: 13px; color: var(--tf-muted, #A8A8A8);
}
.tf-comment__author { font-weight: 600; color: var(--tf-fg, #FAFAFA); }
.tf-comment__date { color: var(--tf-muted, #A8A8A8); }
.tf-comment__content {
    color: var(--tf-fg, #FAFAFA); line-height: 1.7; font-size: 15px;
    margin: 0 0 12px 0;
}
.tf-comment__reply, .tf-comment__edit {
    background: transparent; border: 1px solid var(--tf-border, rgba(255,255,255,0.12));
    color: var(--tf-fg, #FAFAFA); padding: 6px 12px; border-radius: 8px;
    font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.tf-comment__reply:hover, .tf-comment__edit:hover {
    background: rgba(255,255,255,0.05); border-color: var(--tf-primary, #00FF94);
}
.children { list-style: none; padding-left: 32px; margin: 16px 0 0 0; }
.children .tf-comment { border-left: 2px solid var(--tf-primary, #00FF94); padding-left: 20px; }

/* ---- 评论表单 ---- */
.tf-comment-form { margin-top: 32px; }
.tf-comment-form__title {
    font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500;
    color: var(--tf-fg, #FAFAFA); margin-bottom: 8px;
}
.tf-comment-form__note {
    font-size: 13px; color: var(--tf-muted, #A8A8A8); margin-bottom: 24px;
}
.tf-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
.tf-form-row--full { grid-template-columns: 1fr; }
.tf-form-row--check { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.tf-form-label {
    display: block; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--tf-muted, #A8A8A8); margin-bottom: 6px;
}
.tf-form-input, .tf-form-textarea {
    width: 100%; padding: 12px 16px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.03));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    border-radius: 10px; color: var(--tf-fg, #FAFAFA); font-size: 15px;
    font-family: inherit; transition: all 0.2s;
}
.tf-form-input:focus, .tf-form-textarea:focus {
    outline: none; border-color: var(--tf-primary, #00FF94);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 3px rgba(0,255,148,0.1);
}
.tf-form-textarea { min-height: 140px; resize: vertical; }
.tf-form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.tf-form-check__mark { width: 18px; height: 18px; accent-color: var(--tf-primary, #00FF94); }
.tf-comment-form__submit {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border: none; border-radius: 100px;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tf-comment-form__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,255,148,0.3); }

/* ---- 文章页 ---- */
.tf-layout--article {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
@media (max-width: 1023px) { .tf-layout--article { grid-template-columns: 1fr; } }
.tf-layout__main--full { grid-column: 1 / -1; }
.tf-article__header { margin-bottom: 32px; }
.tf-article__featured {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04)); margin-bottom: 16px;
}
.tf-article__featured-caption {
    font-size: 13px; color: var(--tf-muted, #A8A8A8); text-align: center;
    margin-bottom: 32px;
}
.tf-article__excerpt {
    font-size: 18px; color: var(--tf-muted, #A8A8A8); line-height: 1.7;
    margin: 24px 0; padding: 20px 24px;
    border-left: 3px solid var(--tf-primary, #00FF94);
    background: rgba(0,255,148,0.04); border-radius: 0 12px 12px 0;
}
.tf-article__tags-label {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--tf-muted, #A8A8A8); margin-right: 12px;
}

/* ---- 面包屑 ---- */
.tf-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; color: var(--tf-muted, #A8A8A8); margin-bottom: 24px;
}
.tf-breadcrumb a { color: var(--tf-muted, #A8A8A8); transition: color 0.2s; }
.tf-breadcrumb a:hover { color: var(--tf-fg, #FAFAFA); }
.tf-breadcrumb__sep { color: rgba(255,255,255,0.2); }
.tf-breadcrumb__current { color: var(--tf-fg, #FAFAFA); font-weight: 500; }

/* ---- 作者卡 ---- */
.tf-author-card {
    display: grid; grid-template-columns: 72px 1fr; gap: 20px;
    padding: 24px; margin: 48px 0;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    border-radius: 16px;
}
.tf-author-card__avatar img {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
}
.tf-author-card__name { font-size: 18px; font-weight: 600; margin: 0 0 4px 0; }
.tf-author-card__info { display: flex; flex-direction: column; gap: 4px; }
.tf-author-card__bio { font-size: 14px; color: var(--tf-muted, #A8A8A8); line-height: 1.6; }

/* ---- 元信息行 ---- */
.tf-meta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
    padding: 16px 0; margin: 24px 0;
    border-top: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.06));
}
.tf-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.tf-meta-item__label {
    color: var(--tf-muted, #A8A8A8); text-transform: uppercase;
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}
.tf-meta-item__value { color: var(--tf-fg, #FAFAFA); font-weight: 500; }

/* ---- 侧边栏 widget 补充 ---- */
.tf-side-widget__body { padding: 24px; }
.tf-content { min-width: 0; }


/* ============================================================
 * v1.0.3 补全第二批：幻灯片+相关文章+分页+搜索触发器
 * ============================================================ */

/* ---- 幻灯片 ---- */
.tf-slider { position: relative; width: 100%; }
.tf-slider__viewport {
    position: relative; overflow: hidden; border-radius: 24px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    aspect-ratio: 16/7;
}
.tf-slider__track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); height: 100%; }
.tf-slider-slide {
    flex: 0 0 100%; min-width: 100%; position: relative;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: var(--tf-bg-elev, #050505);
}
.tf-slider__img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0;
}
.tf-slider__placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,255,148,0.08), rgba(255,0,128,0.08));
    display: flex; align-items: center; justify-content: center;
    color: var(--tf-muted, #A8A8A8); font-size: 14px;
}
.tf-slider__content {
    position: relative; z-index: 2; padding: 48px;
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(90deg, var(--tf-bg, #000) 0%, transparent 100%);
    grid-column: 1; max-width: 50%;
}
.tf-slider__content-inner { max-width: 480px; }
.tf-slider__excerpt {
    color: var(--tf-muted, #A8A8A8); font-size: 15px; line-height: 1.6;
    margin: 16px 0 24px 0;
}
.tf-slider__counter {
    position: absolute; top: 24px; right: 24px; z-index: 5;
    display: flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600;
    color: var(--tf-fg, #FAFAFA);
    background: rgba(0,0,0,0.4); padding: 8px 16px; border-radius: 100px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tf-slider__counter-divider { color: var(--tf-muted, #A8A8A8); }
.tf-slider__counter-total { color: var(--tf-muted, #A8A8A8); }
.tf-slider__controls {
    position: absolute; bottom: 24px; right: 24px; z-index: 5;
    display: flex; gap: 8px;
}
.tf-slider__btn, .tf-slider-prev, .tf-slider-next, .tf-slider-bar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--tf-fg, #FAFAFA); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.tf-slider__btn:hover, .tf-slider-prev:hover, .tf-slider-next:hover {
    background: var(--tf-primary, #00FF94); color: #000; border-color: var(--tf-primary, #00FF94);
}
.tf-slider__progress {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: rgba(255,255,255,0.06); z-index: 5;
}
.tf-slider__progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    width: 0%; transition: width 0.3s linear;
}
@media (max-width: 767px) {
    .tf-slider-slide { grid-template-columns: 1fr; }
    .tf-slider__content { max-width: 100%; padding: 24px; }
    .tf-slider__viewport { aspect-ratio: 4/5; }
}

/* ---- 相关文章 ---- */
.tf-related { margin: 64px 0 0 0; padding: 32px 0; border-top: 1px solid var(--tf-border, rgba(255,255,255,0.06)); }
.tf-related__heading {
    font-family: 'Fraunces', serif; font-size: 24px; font-weight: 500;
    margin-bottom: 24px; color: var(--tf-fg, #FAFAFA);
}
.tf-related__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.tf-related__item {
    display: block; padding: 0;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-radius: 12px; overflow: hidden; transition: all 0.2s;
}
.tf-related__item:hover { border-color: var(--tf-primary, #00FF94); transform: translateY(-2px); }
.tf-related__thumb {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    background: linear-gradient(135deg, rgba(0,255,148,0.08), rgba(255,0,128,0.08));
}
.tf-related__title {
    display: block; padding: 12px 16px;
    font-size: 15px; font-weight: 600; color: var(--tf-fg, #FAFAFA); line-height: 1.4;
}
.tf-related__date {
    display: block; padding: 0 16px 12px;
    font-size: 12px; color: var(--tf-muted, #A8A8A8);
}

/* ---- 文章正文 prose ---- */
.tf-prose {
    font-size: 17px; line-height: 1.85; color: var(--tf-fg, #FAFAFA);
    max-width: 720px; margin: 0 auto;
}
.tf-prose p { margin: 0 0 24px 0; }
.tf-prose h2, .tf-prose h3, .tf-prose h4 {
    font-family: 'Fraunces', serif; font-weight: 600;
    color: var(--tf-fg, #FAFAFA); margin: 48px 0 16px 0; line-height: 1.3;
}
.tf-prose h2 { font-size: 32px; }
.tf-prose h3 { font-size: 24px; }
.tf-prose blockquote {
    margin: 32px 0; padding: 20px 24px;
    border-left: 3px solid var(--tf-primary, #00FF94);
    background: rgba(0,255,148,0.04); border-radius: 0 12px 12px 0;
    color: var(--tf-muted, #A8A8A8); font-style: italic;
}
.tf-prose code {
    background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 14px;
}
.tf-prose pre {
    background: #0A0A0A; border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    padding: 20px; border-radius: 12px; overflow-x: auto; margin: 24px 0;
}
.tf-prose pre code { background: transparent; padding: 0; }
.tf-prose a { color: var(--tf-primary, #00FF94); text-decoration: underline; text-underline-offset: 3px; }
.tf-prose ul, .tf-prose ol { padding-left: 24px; margin: 0 0 24px 0; }
.tf-prose li { margin-bottom: 8px; }
.tf-prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }

/* ---- 分页 ---- */
.tf-page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; }
.tf-page-links__label {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--tf-muted, #A8A8A8); margin-right: 8px;
}
.tf-page-links__item {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    color: var(--tf-fg, #FAFAFA); font-size: 14px; font-weight: 500;
    transition: all 0.2s; cursor: pointer;
}
.tf-page-links__item:hover, .tf-page-links__item.is-active {
    background: var(--tf-primary, #00FF94); color: #000; border-color: var(--tf-primary, #00FF94);
}

/* ---- 搜索触发器 ---- */
.tf-search-trigger {
    width: 40px; height: 40px; border-radius: 10px;
    background: transparent; border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    color: var(--tf-fg, #FAFAFA); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.tf-search-trigger:hover { background: rgba(255,255,255,0.05); border-color: var(--tf-primary, #00FF94); }

/* ---- 搜索弹层 backdrop 补充 ---- */
.tf-search-overlay__backdrop {
    position: absolute; inset: 0; z-index: -1;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.tf-search-overlay__form { position: relative; z-index: 1; width: 100%; max-width: 720px; }

/* ---- 卡片 BEM 修饰符 ---- */
.tf-card--featured { grid-column: span 2; }

/* ---- 评论编辑 ---- */
.tf-comment__edit { font-size: 12px; }


/* ============================================================
 * v1.0.3 归档页头部（archive.php / search.php 用）
 * ============================================================ */
.tf-archive-head {
    margin: 32px 0 40px 0;
    padding: 32px 0 24px 0;
    border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.06));
}
.tf-archive-head__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tf-primary, #00FF94);
    margin-bottom: 16px;
    padding: 6px 12px;
    background: rgba(0,255,148,0.08);
    border: 1px solid rgba(0,255,148,0.2);
    border-radius: 100px;
}
.tf-archive-head__eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--tf-primary, #00FF94);
    box-shadow: 0 0 8px var(--tf-primary, #00FF94);
}
.tf-archive-head__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500; line-height: 1.1;
    color: var(--tf-fg, #FAFAFA);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}
.tf-archive-head__desc {
    font-size: 16px; color: var(--tf-muted, #A8A8A8);
    line-height: 1.6; max-width: 640px; margin: 0 0 16px 0;
}
.tf-archive-head__meta {
    display: flex; align-items: center; gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; color: var(--tf-muted, #A8A8A8);
}
.tf-archive-head__count {
    padding: 4px 10px; border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
}

/* 搜索结果内嵌表单（tf-comment-form__form-inline） */
.tf-comment-form__form-inline {
    display: flex; align-items: center; gap: 12px;
    max-width: 480px; margin: 24px auto 0;
}


/* ============================================================
 * v1.0.3 404 错误页样式
 * ============================================================ */
.tf-404 {
    text-align: center; padding: 120px 24px; max-width: 640px; margin: 0 auto;
}
.tf-404__code {
    font-family: 'Fraunces', serif; font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 500; line-height: 1;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 24px;
}
.tf-404__title {
    font-family: 'Fraunces', serif; font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500; color: var(--tf-fg, #FAFAFA); margin: 0 0 12px 0;
}
.tf-404__desc {
    font-size: 16px; color: var(--tf-muted, #A8A8A8); line-height: 1.6;
    margin: 0 0 32px 0;
}
.tf-404__search {
    display: flex; align-items: center; gap: 12px;
    max-width: 480px; margin: 0 auto 24px;
}
.tf-404__back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--tf-primary, #00FF94); font-size: 14px; font-weight: 600;
    text-decoration: none; padding: 12px 24px;
    border: 1px solid var(--tf-primary, #00FF94);
    border-radius: 100px; transition: all 0.2s;
}
.tf-404__back:hover { background: var(--tf-primary, #00FF94); color: #000; }

/* 静态独立页面（page.php） */
.tf-page { padding: 32px 0; }
.tf-page__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500; line-height: 1.2;
    color: var(--tf-fg, #FAFAFA);
    margin: 0 0 32px 0; letter-spacing: -0.02em;
}
.tf-page__content { font-size: 17px; line-height: 1.85; color: var(--tf-fg, #FAFAFA); }


/* ============================================================
 * v1.1.1 导航页专属样式（template-nav.php）
 * ============================================================ */

/* ---- Hero ---- */
.tf-nav-hero {
    position: relative;
    padding: 80px 0 56px 0;
    background:
        radial-gradient(800px 400px at 20% 20%, rgba(0,255,148,0.08), transparent 60%),
        radial-gradient(600px 300px at 80% 60%, rgba(255,0,128,0.08), transparent 60%);
    border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    overflow: hidden;
}
.tf-nav-hero__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.tf-nav-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--tf-primary, #00FF94);
    padding: 6px 14px; border-radius: 100px;
    background: rgba(0,255,148,0.08);
    border: 1px solid rgba(0,255,148,0.2);
    margin-bottom: 20px;
}
.tf-pulse {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--tf-primary, #00FF94);
    box-shadow: 0 0 8px var(--tf-primary, #00FF94);
    animation: tf-pulse 1.6s ease-in-out infinite;
}
@keyframes tf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.tf-nav-hero__title {
    font-family: 'JetBrains Mono', monospace; font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15; letter-spacing: -0.02em;
    color: var(--tf-fg, #FAFAFA); margin: 0 0 16px 0;
}
.tf-nav-hero__title em.tf-serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
.tf-nav-hero__title .tf-gradient {
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.tf-nav-hero__desc {
    font-size: 16px; color: var(--tf-muted, #A8A8A8); line-height: 1.6;
    max-width: 600px; margin: 0 auto 32px;
}
.tf-nav-hero__search {
    position: relative; display: flex; align-items: center;
    max-width: 560px; margin: 0 auto 24px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.1));
    border-radius: 100px; padding: 6px 6px 6px 20px;
    transition: all 0.2s;
}
.tf-nav-hero__search:focus-within {
    border-color: var(--tf-primary, #00FF94);
    box-shadow: 0 0 0 3px rgba(0,255,148,0.1);
    background: rgba(255,255,255,0.06);
}
.tf-nav-hero__search-icon { color: var(--tf-muted, #A8A8A8); display: flex; }
.tf-nav-hero__search-input {
    flex: 1; background: transparent; border: 0; outline: 0;
    color: var(--tf-fg, #FAFAFA); font-size: 15px; font-family: inherit;
    padding: 12px 16px; min-width: 0;
}
.tf-nav-hero__search-input::placeholder { color: var(--tf-muted, #A8A8A8); }
.tf-nav-hero__kbd {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    padding: 8px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.08); color: var(--tf-muted, #A8A8A8);
    border: 1px solid var(--tf-border, rgba(255,255,255,0.1));
}
.tf-nav-hero__quick {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px; font-size: 13px; color: var(--tf-muted, #A8A8A8);
}
.tf-nav-hero__quick-label { margin-right: 4px; }
.tf-nav-hero__chip {
    padding: 6px 14px; border-radius: 100px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    color: var(--tf-fg, #FAFAFA); font-size: 12px; font-weight: 500;
    transition: all 0.2s;
}
.tf-nav-hero__chip:hover {
    background: var(--tf-primary, #00FF94); color: #000; border-color: var(--tf-primary, #00FF94);
}

/* ---- 统计看板 ---- */
.tf-nav-stats { padding: 48px 0; }
.tf-nav-stats__grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .tf-nav-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.tf-nav-stats__cell {
    padding: 24px 20px; text-align: center;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-radius: 16px; transition: all 0.2s;
}
.tf-nav-stats__cell:hover {
    border-color: var(--tf-primary, #00FF94);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.04);
}
.tf-nav-stats__cell--accent {
    background: linear-gradient(135deg, rgba(0,255,148,0.1), rgba(255,0,128,0.1));
    border-color: rgba(0,255,148,0.3);
}
.tf-nav-stats__num {
    display: block;
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1; color: var(--tf-fg, #FAFAFA);
    margin-bottom: 8px;
}
.tf-nav-stats__cell--accent .tf-nav-stats__num {
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tf-nav-stats__label {
    display: block; font-size: 12px; font-weight: 500;
    color: var(--tf-muted, #A8A8A8);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* ---- 通用 section 头 ---- */
.tf-nav-section { padding: 64px 0; }
.tf-nav-section + .tf-nav-section { border-top: 1px solid var(--tf-border, rgba(255,255,255,0.06)); }
.tf-nav-section__head { max-width: 720px; margin-bottom: 32px; }
.tf-nav-section__eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--tf-primary, #00FF94); margin-bottom: 12px;
}
.tf-nav-section__title {
    font-family: 'Fraunces', serif; font-weight: 500;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2; letter-spacing: -0.02em;
    color: var(--tf-fg, #FAFAFA); margin: 0 0 12px 0;
}
.tf-nav-section__desc {
    font-size: 15px; color: var(--tf-muted, #A8A8A8);
    line-height: 1.6; margin: 0;
}
.tf-nav-section__desc code {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(255,255,255,0.06); color: var(--tf-fg, #FAFAFA);
}
.tf-nav-empty {
    text-align: center; padding: 48px 24px;
    color: var(--tf-muted, #A8A8A8); font-size: 14px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px dashed var(--tf-border, rgba(255,255,255,0.1));
    border-radius: 12px;
}

/* ---- 分类卡片 ---- */
.tf-nav-cats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.tf-nav-cat {
    position: relative; display: block; padding: 24px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-radius: 16px; text-decoration: none; color: inherit;
    transition: all 0.25s ease; overflow: hidden;
}
.tf-nav-cat::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--cat-color, #00FF94), transparent 70%);
    opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.tf-nav-cat:hover { transform: translateY(-3px); border-color: var(--cat-color, #00FF94); }
.tf-nav-cat:hover::before { opacity: 0.08; }
.tf-nav-cat__bar {
    position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--cat-color, #00FF94); opacity: 0.5;
    transition: opacity 0.25s, width 0.25s;
}
.tf-nav-cat:hover .tf-nav-cat__bar { opacity: 1; width: 4px; }
.tf-nav-cat__head {
    position: relative; display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 8px;
}
.tf-nav-cat__name {
    font-size: 18px; font-weight: 600; color: var(--tf-fg, #FAFAFA);
}
.tf-nav-cat__count {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
    padding: 2px 8px; border-radius: 100px;
    background: rgba(255,255,255,0.06); color: var(--cat-color, #00FF94);
}
.tf-nav-cat__desc {
    display: block; position: relative;
    font-size: 13px; color: var(--tf-muted, #A8A8A8); line-height: 1.5;
    margin-bottom: 16px; min-height: 40px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.tf-nav-cat__more {
    position: relative; display: inline-block;
    font-size: 13px; font-weight: 600; color: var(--cat-color, #00FF94);
    transition: transform 0.2s;
}
.tf-nav-cat:hover .tf-nav-cat__more { transform: translateX(4px); }

/* ---- 标签云 ---- */
.tf-nav-tags {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 10px 14px; padding: 24px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-radius: 16px;
}
.tf-nav-tag {
    display: inline-flex; align-items: baseline;
    color: var(--tf-fg, #FAFAFA); text-decoration: none;
    padding: 4px 8px; border-radius: 6px;
    transition: all 0.2s; line-height: 1.4;
}
.tf-nav-tag:hover {
    color: var(--tf-primary, #00FF94);
    background: rgba(0,255,148,0.06);
}
.tf-nav-tag__hash { color: var(--tf-muted, #A8A8A8); margin-right: 1px; }
.tf-nav-tag__count {
    margin-left: 4px; font-family: 'JetBrains Mono', monospace;
    font-size: 10px; color: var(--tf-muted, #A8A8A8);
    font-weight: 500;
}

/* ---- 月度归档 ---- */
.tf-nav-archive {
    list-style: none; padding: 0; margin: 0;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-radius: 16px; overflow: hidden;
}
.tf-nav-archive__item { border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.04)); }
.tf-nav-archive__item:last-child { border-bottom: 0; }
.tf-nav-archive__link {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 24px; color: var(--tf-fg, #FAFAFA); text-decoration: none;
    transition: all 0.2s;
}
.tf-nav-archive__link:hover { background: rgba(0,255,148,0.04); padding-left: 32px; }
.tf-nav-archive__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--tf-muted, #A8A8A8);
    box-shadow: 0 0 0 3px transparent;
    transition: all 0.2s;
}
.tf-nav-archive__link:hover .tf-nav-archive__dot {
    background: var(--tf-primary, #00FF94);
    box-shadow: 0 0 0 3px rgba(0,255,148,0.15);
}
.tf-nav-archive__label {
    flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 14px;
    color: var(--tf-fg, #FAFAFA); font-weight: 500;
}
.tf-nav-archive__count {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--tf-muted, #A8A8A8);
    padding: 2px 8px; border-radius: 100px;
    background: rgba(255,255,255,0.04);
}

/* ---- 友情链接 ---- */
.tf-nav-friends {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.tf-nav-friend {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; text-decoration: none; color: inherit;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    border-radius: 14px; transition: all 0.2s;
}
.tf-nav-friend:hover {
    border-color: var(--tf-primary, #00FF94);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.04);
}
.tf-nav-friend__avatar {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px;
    color: var(--tf-fg, #FAFAFA);
    background: linear-gradient(135deg, rgba(0,255,148,0.2), rgba(255,0,128,0.2));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.1));
    border-radius: 12px;
}
.tf-nav-friend__body { flex: 1; min-width: 0; }
.tf-nav-friend__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 4px;
}
.tf-nav-friend__name { font-size: 15px; font-weight: 600; color: var(--tf-fg, #FAFAFA); }
.tf-nav-friend__ext { color: var(--tf-muted, #A8A8A8); font-size: 14px; transition: color 0.2s; }
.tf-nav-friend:hover .tf-nav-friend__ext { color: var(--tf-primary, #00FF94); }
.tf-nav-friend__desc {
    display: block; font-size: 12px; color: var(--tf-muted, #A8A8A8); line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tf-nav-friends-empty {
    text-align: center; padding: 48px 24px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.02));
    border: 1px dashed var(--tf-border, rgba(255,255,255,0.1));
    border-radius: 16px;
}
.tf-nav-friends-empty p { color: var(--tf-muted, #A8A8A8); margin: 0 0 16px 0; }
.tf-nav-friends-empty__btn {
    display: inline-block; padding: 10px 24px; border-radius: 100px;
    background: var(--tf-primary, #00FF94); color: #000;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: transform 0.2s;
}
.tf-nav-friends-empty__btn:hover { transform: translateY(-1px); }


/* ============================================================
 * v1.2.0 AI 搜索样式
 * ============================================================ */

/* 搜索表单 Tab 切换 */
.tf-search-form { position: relative; }
.tf-search-tabs {
    display: flex; gap: 4px; padding: 4px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    border-radius: 12px; margin-bottom: 12px;
    width: fit-content;
}
.tf-search-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: transparent; border: 0;
    color: var(--tf-muted, #A8A8A8); font-size: 13px; font-weight: 600;
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.tf-search-tab:hover { color: var(--tf-fg, #FAFAFA); }
.tf-search-tab.is-active {
    background: var(--tf-fg, #FAFAFA); color: #000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* [hidden] 属性优先：让 JS 切 hidden 时真正隐藏 */
[hidden] { display: none !important; }

/* AI 抽屉 */
.tf-ai-drawer {
    position: fixed; top: 16px; right: 16px;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    z-index: 9999;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--tf-border, rgba(255,255,255,0.12));
    border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,148,0.15);
    animation: tf-ai-drawer-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tf-ai-drawer-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tf-ai-drawer__inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tf-ai-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    flex-shrink: 0;
}
.tf-ai-drawer__title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--tf-fg, #FAFAFA);
}
.tf-ai-drawer__close {
    background: transparent; border: 0; padding: 4px;
    color: var(--tf-muted, #A8A8A8); cursor: pointer; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.tf-ai-drawer__close:hover { color: var(--tf-fg, #FAFAFA); background: rgba(255,255,255,0.08); }
.tf-ai-drawer__messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 16px; min-height: 200px;
    scrollbar-width: thin;
}
.tf-ai-drawer__messages::-webkit-scrollbar { width: 6px; }
.tf-ai-drawer__messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.tf-ai-drawer__status {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-top: 1px solid var(--tf-border, rgba(255,255,255,0.06));
    flex-shrink: 0; color: var(--tf-muted, #A8A8A8); font-size: 13px;
}
.tf-ai-drawer__status-text { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* 消息气泡 */
.tf-ai-msg { max-width: 88%; line-height: 1.65; }
.tf-ai-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    color: #000; padding: 10px 16px; border-radius: 16px 16px 4px 16px;
    font-size: 14px; font-weight: 500; word-break: break-word;
}
.tf-ai-msg--ai {
    align-self: flex-start; max-width: 96%;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.08));
    color: var(--tf-fg, #FAFAFA); padding: 14px 18px;
    border-radius: 16px 16px 16px 4px; font-size: 14px;
}
.tf-ai-msg__content p { margin: 0 0 10px 0; }
.tf-ai-msg__content p:last-child { margin-bottom: 0; }
.tf-ai-msg__content strong { color: var(--tf-primary, #00FF94); font-weight: 600; }
.tf-ai-msg__content code {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    background: rgba(0,255,148,0.1); color: var(--tf-primary, #00FF94);
    padding: 2px 6px; border-radius: 4px;
}
.tf-ai-msg__content a { color: var(--tf-primary, #00FF94); text-decoration: underline; text-underline-offset: 2px; }
.tf-ai-msg__content ul, .tf-ai-msg__content ol { margin: 8px 0; padding-left: 20px; }
.tf-ai-msg__content li { margin-bottom: 4px; }
.tf-ai-msg__cursor {
    display: inline-block; width: 7px; height: 14px;
    background: var(--tf-primary, #00FF94);
    margin-left: 2px; vertical-align: text-bottom;
    animation: tf-cursor-blink 1s steps(2) infinite;
    border-radius: 1px;
}
@keyframes tf-cursor-blink { 50% { opacity: 0; } }
.tf-ai-msg__error { color: #FF6B6B; font-size: 13px; }
.tf-ai-msg--ai .tf-ai-msg__error { color: #FF6B6B; }

/* 打字指示器 */
.tf-typing { display: inline-flex; gap: 4px; }
.tf-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--tf-primary, #00FF94);
    animation: tf-typing 1.4s ease-in-out infinite;
}
.tf-typing span:nth-child(2) { animation-delay: 0.2s; }
.tf-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tf-typing {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* 小脉冲（AI 标题用） */
.tf-pulse--sm { width: 6px; height: 6px; }
@media (max-width: 768px) {
    .tf-ai-drawer { top: 8px; right: 8px; left: 8px; width: auto; }
}


/* ============================================================
 * v1.2.4 独立 AI 入口按钮 + 全站 AI 抽屉
 * ============================================================ */

/* AI 入口按钮（头部使用，渐变发光） */
.tf-ai-launcher {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(0,255,148,0.15), rgba(255,0,128,0.15));
    border: 1px solid rgba(0,255,148,0.3);
    border-radius: 100px;
    color: var(--tf-fg, #FAFAFA);
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.tf-ai-launcher::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--tf-primary, #00FF94), var(--tf-accent, #FF0080));
    opacity: 0; transition: opacity 0.25s; z-index: -1;
}
.tf-ai-launcher:hover {
    color: #000;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,255,148,0.25);
}
.tf-ai-launcher:hover::before { opacity: 1; }
.tf-ai-launcher__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    color: var(--tf-primary, #00FF94);
    transition: color 0.25s;
}
.tf-ai-launcher:hover .tf-ai-launcher__icon { color: #000; }
.tf-ai-launcher__label { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; }
.tf-ai-launcher__badge {
    display: inline-block; font-size: 9px; font-weight: 700;
    padding: 2px 5px; border-radius: 4px;
    background: var(--tf-primary, #00FF94); color: #000;
    letter-spacing: 0.06em; text-transform: uppercase;
    margin-left: 2px;
}
.tf-ai-launcher:hover .tf-ai-launcher__badge {
    background: #000; color: var(--tf-primary, #00FF94);
}
@media (max-width: 640px) {
    .tf-ai-launcher__label { display: none; }
    .tf-ai-launcher { padding: 8px 10px; }
    .tf-ai-launcher__badge { display: none; }
}

/* AI 抽屉 input 容器（独立） */
.tf-ai-drawer__input {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--tf-bg-elev, rgba(255,255,255,0.04));
    border: 1px solid var(--tf-border, rgba(255,255,255,0.1));
    border-radius: 12px; margin: 0 20px 12px 20px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.tf-ai-drawer__input:focus-within {
    border-color: var(--tf-primary, #00FF94);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(0,255,148,0.1);
}
.tf-ai-drawer__input input {
    flex: 1; background: transparent; border: 0; outline: 0;
    color: var(--tf-fg, #FAFAFA); font-size: 14px; font-family: inherit;
    min-width: 0;
}
.tf-ai-drawer__input input::placeholder { color: var(--tf-muted, #A8A8A8); }
.tf-ai-drawer__send {
    background: var(--tf-primary, #00FF94); color: #000;
    border: 0; padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    transition: transform 0.2s, opacity 0.2s;
}
.tf-ai-drawer__send:hover { transform: scale(1.05); }
.tf-ai-drawer__send:disabled { opacity: 0.5; cursor: not-allowed; }
.tf-ai-drawer__send-icon { display: inline-flex; }

/* AI 抽屉空状态 */
.tf-ai-empty {
    text-align: center; padding: 40px 20px; color: var(--tf-muted, #A8A8A8);
}
.tf-ai-empty__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,255,148,0.15), rgba(255,0,128,0.15));
    margin-bottom: 12px;
    color: var(--tf-primary, #00FF94);
}
.tf-ai-empty__title {
    font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500;
    color: var(--tf-fg, #FAFAFA); margin: 0 0 4px 0;
}
.tf-ai-empty__desc { font-size: 13px; margin: 0; }

