/* ========================================
   TriScope - 主樣式表 (Modern Redesign)
   ======================================== */

/* 隐藏 WordPress 原生后台栏 */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* CSS Custom Properties */
:root {
    /* Brand — Mystic Purple Theme */
    --tf-primary: #8b5cf6;
    --tf-primary-dark: #7c3aed;
    --tf-primary-light: #a78bfa;
    --tf-primary-glow: rgba(139, 92, 246, 0.4);
    --tf-accent: #eab308;
    --tf-accent-rgb: 234, 179, 8;
    --tf-gold: #fbbf24;
    --tf-gold-light: #fcd34d;
    --tf-rose: #f43f5e;
    --tf-amber: #f59e0b;

    /* Surfaces */
    --tf-bg: #09090b;
    --tf-bg-elevated: #111118;
    --tf-bg-card: rgba(255, 255, 255, 0.03);
    --tf-bg-card-hover: rgba(255, 255, 255, 0.06);
    --tf-bg-input: rgba(255, 255, 255, 0.05);
    --tf-bg-glass: rgba(17, 17, 24, 0.7);

    /* Text */
    --tf-text: #f1f1f6;
    --tf-text-secondary: #a1a1aa;
    --tf-text-muted: #71717a;
    --tf-text-heading: #ffffff;

    /* Borders */
    --tf-border: rgba(255, 255, 255, 0.08);
    --tf-border-light: rgba(255, 255, 255, 0.12);
    --tf-border-glow: rgba(139, 92, 246, 0.4);

    /* Semantic */
    --tf-success: #8b5cf6;
    --tf-warning: #fbbf24;
    --tf-error: #f87171;
    --tf-info: #60a5fa;

    /* Shadows */
    --tf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --tf-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --tf-shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
    --tf-shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
    --tf-shadow-glow-lg: 0 0 80px rgba(139, 92, 246, 0.35);

    /* Radii */
    --tf-radius-xs: 6px;
    --tf-radius-sm: 10px;
    --tf-radius: 16px;
    --tf-radius-lg: 24px;
    --tf-radius-xl: 32px;
    --tf-radius-full: 9999px;

    /* Transitions */
    --tf-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --tf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --tf-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --tf-duration: 0.3s;
    --tf-duration-slow: 0.6s;

    /* Typography — Inter + Noto Sans SC (Modern Geometric Sans) */
    --tf-font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --tf-font-serif: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', Georgia, 'Times New Roman', serif;
    --tf-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', 'Courier New', monospace;

    /* Layout */
    --tf-header-h: 68px;
    --tf-sidebar-w: 300px;
    --tf-container: 1280px;

    /* Safe Area Insets (iPhone X+ notch) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);

    /* ＝＝ 豆包风格配色 ＝＝ */
    --db-bg: #1a1a1f;
    --db-sidebar-bg: #1e1e24;
    --db-bg-input: #252530;
    --db-border: rgba(255, 255, 255, 0.06);
    --db-hover: rgba(255, 255, 255, 0.04);
    --db-hover-strong: rgba(255, 255, 255, 0.07);
    --db-text: #f1f1f5;
    --db-text-secondary: #a8a8b3;
    --db-text-muted: #6b6b76;
    --db-accent: #5b6cf0;
    --db-accent-light: #7c8fff;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--tf-bg);
}

body {
    font-family: var(--tf-font-sans);
    background: var(--tf-bg);
    color: var(--tf-text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Touch optimization */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    /* Prevent iOS rubber-banding on non-scrollable areas */
    overscroll-behavior-y: none;
}

/* Scrollable areas need overscroll re-enabled */
.chat-messages, .mobile-nav, .chat-sidebar {
    overscroll-behavior-y: auto;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
}

a { color: var(--tf-primary-light); text-decoration: none; transition: color var(--tf-duration) var(--tf-ease); }
a:hover { color: var(--tf-primary); }

img, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* ============================================
   Mobile / Touch Optimization
   ============================================ */

/* Disable iOS input zoom (font-size >= 16px prevents auto-zoom) */
@media (max-width: 768px) {
    input, textarea, select, button {
        font-size: 16px !important;
    }
}

/* Prevent iOS long-press callout on interactive elements */
button, a, [role="button"], .btn, .lang-item, .nav-menu li a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Restore text selection for readable content */
p, h1, h2, h3, h4, h5, h6, li, span, .message-bubble {
    -webkit-user-select: text;
    user-select: text;
}

/* Fix iOS position:fixed when keyboard opens (mobile only) */
@media (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
        .TriScope-header {
            position: sticky;
        }
    }
}

/* Android Chrome dark mode support */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tf-font-sans);
    color: var(--tf-text-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--tf-text-secondary); }

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--tf-container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   Glass Card
   ============================================ */
.glass {
    background: var(--tf-bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--tf-border);
}

.glass-card {
    background: var(--tf-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    transition: all var(--tf-duration) var(--tf-ease-out);
}
.glass-card:hover {
    background: var(--tf-bg-card-hover);
    border-color: var(--tf-border-light);
    transform: translateY(-2px);
    box-shadow: var(--tf-shadow), 0 0 30px rgba(139, 92, 246, 0.08);
}

/* Gradient border card */
.gradient-border {
    position: relative;
    background: var(--tf-bg-card);
    border-radius: var(--tf-radius);
    overflow: hidden;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border: none;
    border-radius: var(--tf-radius-full);
    font-family: var(--tf-font-sans);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--tf-duration) var(--tf-ease-out);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--tf-primary), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
    background: linear-gradient(135deg, var(--tf-accent), #0ea572);
    color: #000;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}
.btn-accent:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--tf-text);
    border: 1px solid var(--tf-border-light);
}
.btn-outline:hover {
    border-color: var(--tf-primary);
    color: var(--tf-primary-light);
    background: rgba(139, 92, 246, 0.06);
}

.btn-ghost {
    background: transparent;
    color: var(--tf-text-secondary);
    padding: 8px 18px;
}
.btn-ghost:hover {
    color: var(--tf-text);
    background: rgba(255, 255, 255, 0.04);
}

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--tf-text-secondary);
    cursor: pointer;
    transition: all var(--tf-duration) var(--tf-ease);
}
.btn-icon:hover { background: rgba(255, 255, 255, 0.06); color: var(--tf-text); }

/* Ripple */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   Header / Navigation
   ============================================ */
.TriScope-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--tf-header-h);
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--tf-border);
    z-index: 1000;
    transition: all var(--tf-duration) var(--tf-ease);
}
.TriScope-header.scrolled {
    background: rgba(9, 9, 11, 0.92);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: var(--tf-container);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.header-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title {
    font-family: var(--tf-font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-text);
    letter-spacing: -0.01em;
}
.logo-subtitle {
    font-size: 0.65rem;
    color: var(--tf-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* 顶栏主导航（原玄藏面板菜单已释放为导航） */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: var(--tf-radius-full);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--tf-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--tf-duration) var(--tf-ease), background var(--tf-duration) var(--tf-ease);
}
.nav-link:hover {
    color: var(--tf-text);
    background: rgba(255, 255, 255, 0.05);
}
.nav-link:active {
    color: var(--tf-primary-light);
}

/* 顶栏登录入口按钮 */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: var(--tf-radius-full);
    border: 1px solid var(--tf-primary);
    background: rgba(139, 92, 246, 0.12);
    color: var(--tf-primary-light);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--tf-duration) var(--tf-ease);
}
.header-login-btn:hover {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
    color: #fff;
}

/* 玄藏 / MysticVault 入口按鈕（已移除 UI，样式保留兼容） */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}
.lang-switcher-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-full);
    color: var(--tf-text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--tf-font-sans);
    transition: all var(--tf-duration) var(--tf-ease);
}
.lang-switcher-toggle:hover {
    border-color: var(--tf-primary);
    color: var(--tf-text);
}
.lang-switcher-toggle .fa-globe {
    color: var(--tf-primary-light);
    font-size: 0.85rem;
}
.lang-arrow {
    font-size: 0.65rem;
    transition: transform var(--tf-duration) var(--tf-ease);
}
.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: rgba(20, 20, 30, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--tf-duration) var(--tf-ease-out);
    z-index: 1001;
    overflow: hidden;
    padding: 4px;
}
.lang-switcher.open .lang-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--tf-text-secondary);
    font-size: 0.88rem;
    border-radius: var(--tf-radius-sm);
    transition: all var(--tf-duration) var(--tf-ease);
    text-decoration: none;
}
.lang-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--tf-text);
}
.lang-item.active {
    background: rgba(139, 92, 246, 0.1);
    color: var(--tf-primary-light);
}
.lang-flag { font-size: 1rem; }

/* User Dropdown */
.user-dropdown { position: relative; }
.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-full);
    color: var(--tf-text);
    cursor: pointer;
    transition: all var(--tf-duration) var(--tf-ease);
    font-size: 0.9rem;
}
.user-dropdown-toggle:hover { border-color: var(--tf-primary); }
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: rgba(20, 20, 30, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    box-shadow: var(--tf-shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--tf-duration) var(--tf-ease-out);
    z-index: 1001;
    overflow: hidden;
}
.user-dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--tf-text-secondary);
    font-size: 0.9rem;
    transition: all var(--tf-duration) var(--tf-ease);
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--tf-text); }
.dropdown-item.logout:hover { color: var(--tf-error); }
.dropdown-divider { height: 1px; background: var(--tf-border); margin: 4px 0; }

/* 玄藏下拉 UI 样式已移除（玄藏按钮与面板已删除，菜单释放为顶栏导航） */

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--tf-header-h) + 40px) 0 80px;
    overflow: hidden;
    isolation: isolate;
}

/* Animated gradient mesh background */
.hero-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-mesh .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: orb-float 20s infinite ease-in-out;
}
.hero-bg-mesh .orb-1 {
    width: 600px; height: 600px;
    background: var(--tf-primary);
    top: -200px; left: -100px;
    animation-delay: 0s;
}
.hero-bg-mesh .orb-2 {
    width: 400px; height: 400px;
    background: #3b82f6;
    top: 40%; right: -10%;
    animation-delay: -7s;
    opacity: 0.2;
}
.hero-bg-mesh .orb-3 {
    width: 350px; height: 350px;
    background: var(--tf-accent);
    bottom: 10%; left: 30%;
    animation-delay: -14s;
    opacity: 0.15;
}
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 30px) scale(0.9); }
}

/* Grid overlay */
.hero-bg-grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr; /* 右侧 Hero Logo 已删除，单列居中 */
    text-align: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--tf-radius-full);
    font-size: 1.05rem;
    color: var(--tf-primary-light);
    margin-bottom: 28px;
    animation: fade-in-up 0.8s var(--tf-ease-out);
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    white-space: nowrap;
    animation: fade-in-up 0.8s var(--tf-ease-out) 0.1s both;
}
.hero-title-gradient {
    background: linear-gradient(135deg, var(--tf-primary-light) 0%, var(--tf-accent) 50%, #60a5fa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease-in-out infinite;
}
/* 中文（简/繁）标题单行；英语/德语/法语因文字较长，title_2 换行成两行 */
/* 英语版换行 */
html[lang="en-US"] .hero-title-gradient,
html[lang="en"] .hero-title-gradient {
    display: block;
}
/* 德语/法语：标题较长，允许按词断行、适当缩小字号，避免挤压右侧 Logo */
html[lang="de"] .hero-title,
html[lang="fr"] .hero-title {
    white-space: normal;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.35;
}
html[lang="de"] .hero-title-gradient,
html[lang="fr"] .hero-title-gradient {
    display: block;
}
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--tf-text-secondary);
    line-height: 1.7;
    margin: 0 auto 36px;
    max-width: 640px;
    animation: fade-in-up 0.8s var(--tf-ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 52px;
    justify-content: center;
    animation: fade-in-up 0.8s var(--tf-ease-out) 0.3s both;
}

/* Hero 快速入口气泡：命理知识 / 套餐服务（副标题下方） */
.hero-quicklinks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
    animation: fade-in-up 0.8s var(--tf-ease-out) 0.3s both;
}
/* 两个入口等宽平衡（命理知识 左 / 套餐服务 右） */
.hero-quicklinks .hero-bubble {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}
.hero-bubble {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
    color: var(--tf-primary-light);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--tf-duration) var(--tf-ease-out);
}
.hero-bubble i {
    font-size: 0.95rem;
    opacity: 0.9;
}
.hero-bubble:hover {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
}
.hero-bubble-pro {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
    color: var(--tf-gold-light);
}
.hero-bubble-pro:hover {
    background: var(--tf-accent);
    border-color: var(--tf-accent);
    color: #1a1a1a;
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.3);
}

/* Hero 登录/注册入口：位于套餐服务气泡下方（仅未登录显示） */
.hero-auth {
    display: flex;
    justify-content: center;
    margin-bottom: 52px;
    animation: fade-in-up 0.8s var(--tf-ease-out) 0.3s both;
}
.hero-auth-btn {
    background: linear-gradient(135deg, var(--tf-accent), #f59e0b);
    border-color: transparent;
    color: #1a1a1a;
    font-weight: 600;
}
.hero-auth-btn:hover {
    background: linear-gradient(135deg, var(--tf-accent), #f59e0b);
    border-color: transparent;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(251, 191, 36, 0.35);
}

/* Hero Visual 已从页面移除（右侧 Logo 删除），样式保留兼容 */

/* Hero Visual - Premium Logo Display */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fade-in-up 0.8s var(--tf-ease-out) 0.3s both;
}

.hero-logo-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-img {
    width: 75%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}


/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--tf-text-muted);
    font-size: 0.75rem;
    animation: fade-in-up 1s var(--tf-ease-out) 1s both;
}
.hero-scroll-indicator .scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid var(--tf-text-muted);
    border-radius: 11px;
    position: relative;
}
.hero-scroll-indicator .scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 8px;
    background: var(--tf-text-muted);
    border-radius: 2px;
    animation: scroll-wheel 1.6s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================================
   Animations - Keyframes
   ============================================ */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--tf-ease-out), transform 0.8s var(--tf-ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--tf-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tf-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--tf-text-muted);
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================
   Bento Grid - Features
   ============================================ */
.features-section {
    padding: 80px 0 84px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02) 30%, rgba(139, 92, 246, 0.02) 70%, transparent);
}
.features-section .section-header {
    margin-bottom: 40px;
}
.features-section .section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    margin-bottom: 10px;
}
.features-section .section-subtitle {
    font-size: 0.95rem;
}

/* 核心优势：两列网格平铺（无卡片外观，纯内容展示） */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 36px;
    max-width: 860px;
    margin: 0 auto;
}

.bento-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: default;
    position: relative;
    overflow: visible;
    text-align: left;
    transition: none;
}

.bento-card:hover {
    border-color: transparent;
    background: transparent;
    transform: none;
    box-shadow: none;
}
.bento-card:hover .bento-icon {
    transform: none;
    background: rgba(139, 92, 246, 0.08);
}

.bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-primary-light);
    font-size: 1rem;
    flex-shrink: 0;
    transition: none;
}

.bento-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--tf-text);
}

.bento-card p {
    font-size: 0.85rem;
    color: var(--tf-text-muted);
    margin: 0;
    line-height: 1.65;
}

/* ============================================
   Knowledge Section - 三大术数科普
   ============================================ */
.knowledge-section {
    padding: 80px 0 84px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.03) 30%, rgba(139, 92, 246, 0.03) 70%, transparent);
}
.knowledge-section .section-header {
    margin-bottom: 40px;
}
.knowledge-section .section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    margin-bottom: 10px;
}
.knowledge-section .section-subtitle {
    font-size: 0.95rem;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.knowledge-card {
    background: var(--tf-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 36px;
    transition: all var(--tf-duration) var(--tf-ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.knowledge-card:hover {
    border-color: var(--tf-border-light);
    background: var(--tf-bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--tf-shadow);
}
.knowledge-card-icon {
    width: 64px; height: 64px;
    border-radius: var(--tf-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.knowledge-card-icon svg {
    width: 40px; height: 40px;
    display: block;
}
.knowledge-card:nth-child(1) .knowledge-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--tf-primary-light);
}
.knowledge-card:nth-child(2) .knowledge-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--tf-accent);
}
.knowledge-card:nth-child(3) .knowledge-card-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
    color: var(--tf-info);
}
.knowledge-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tf-text);
    margin-bottom: 4px;
}
.knowledge-card-subtitle {
    font-size: 0.85rem;
    color: var(--tf-text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}
.knowledge-card-body {
    flex: 1;
}
.knowledge-card-body > p {
    font-size: 0.9rem;
    color: var(--tf-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.knowledge-tags {
    margin-bottom: 12px;
}
.knowledge-tags span {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--tf-radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tf-primary-light);
    letter-spacing: 0.04em;
}
.knowledge-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.knowledge-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 0.8rem;
    color: var(--tf-text-secondary);
    line-height: 1.6;
}
.knowledge-list li i {
    color: var(--tf-success);
    margin-top: 3px;
    flex-shrink: 0;
}

/* 必读典籍书单 */
.knowledge-books {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--tf-border);
}
.knowledge-books-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tf-primary-light);
    letter-spacing: 0.04em;
}
.knowledge-books-head i {
    font-size: 0.95rem;
    opacity: 0.9;
}
.knowledge-books-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}
.knowledge-books-list li {
    position: relative;
    padding: 6px 8px 6px 14px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 8px;
    font-size: 0.76rem;
    color: var(--tf-text-secondary);
    line-height: 1.5;
    transition: all var(--tf-duration) var(--tf-ease);
}
.knowledge-books-list li::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--tf-primary), transparent);
    opacity: 0.75;
}
.knowledge-books-list li:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.28);
    color: var(--tf-text);
    transform: translateX(2px);
}

/* 三术书单强调色：与卡片图标配色呼应 */
.knowledge-card:nth-child(1) .knowledge-books-head { color: var(--tf-primary-light); }
.knowledge-card:nth-child(2) .knowledge-books-head { color: var(--tf-accent); }
.knowledge-card:nth-child(3) .knowledge-books-head { color: var(--tf-info); }
.knowledge-card:nth-child(2) .knowledge-books-list li {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.14);
}
.knowledge-card:nth-child(2) .knowledge-books-list li:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}
.knowledge-card:nth-child(3) .knowledge-books-list li {
    background: rgba(96, 165, 250, 0.05);
    border-color: rgba(96, 165, 250, 0.14);
}
.knowledge-card:nth-child(3) .knowledge-books-list li:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

/* ============================================
   Knowledge - 三脈图结构 (Tri-Meridian Map)
   ============================================ */
.tri-map {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 56px 1fr 56px 1fr;
    align-items: stretch;
    margin-top: 4px;
}

.tri-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px 14px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: all var(--tf-duration) var(--tf-ease-out);
    -webkit-appearance: none;
    appearance: none;
}
.tri-node:hover {
    border-color: var(--tf-border-light);
    transform: translateY(-3px);
    box-shadow: var(--tf-shadow);
}
.tri-node-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.05));
    color: var(--tf-primary-light);
    transition: transform var(--tf-duration) var(--tf-ease-out), box-shadow var(--tf-duration) var(--tf-ease);
}
.tri-node-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}
.tri-node:hover .tri-node-icon {
    transform: scale(1.06);
}
.tri-node[data-tri="bazi"] .tri-node-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.05));
    color: var(--tf-accent);
}
.tri-node[data-tri="qimen"] .tri-node-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.05));
    color: var(--tf-info);
}
.tri-node-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tri-node-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tf-text);
    line-height: 1.35;
}
.tri-node-tag {
    font-size: 0.72rem;
    color: var(--tf-text-muted);
    margin: 2px 0 6px;
}
.tri-node-summary {
    font-size: 0.78rem;
    color: var(--tf-text-secondary);
    line-height: 1.55;
    min-height: 2.4em;
}
.tri-node-cue {
    margin-top: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.08);
    color: var(--tf-primary-light);
    font-size: 0.7rem;
    transition: transform 0.3s var(--tf-ease-out), background 0.3s var(--tf-ease), color 0.3s var(--tf-ease);
}
.tri-node.is-active {
    border-color: rgba(139, 92, 246, 0.45);
    background: var(--tf-bg-card-hover);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 18px 40px rgba(0, 0, 0, 0.22);
}
.tri-node.is-active .tri-node-cue {
    transform: rotate(180deg);
    background: var(--tf-primary);
    color: #fff;
}

/* 连接线：紫微 → 八字 → 奇门 */
.tri-connector {
    position: relative;
    z-index: 1;
}
.tri-connector::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tf-primary), var(--tf-accent));
    opacity: 0.45;
}
.tri-connector-b::before {
    background: linear-gradient(90deg, var(--tf-accent), var(--tf-info));
}
.tri-connector-dot {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--tf-bg);
    border: 2px solid var(--tf-primary-light);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.55);
}
.tri-connector-b .tri-connector-dot {
    border-color: var(--tf-accent);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

/* 二级弹窗 (Tri-Modal) */
.tri-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tri-modal.open {
    display: flex;
}
.tri-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.tri-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(82vh, 680px);
    overflow-y: auto;
    background: var(--tf-bg-elevated);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 32px;
    animation: triModalIn 0.25s var(--tf-ease-out);
}
.tri-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
    z-index: 2;
}
.tri-modal-close:hover {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}
@keyframes triModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tri-modal .tri-detail-content {
    display: none;
    padding: 0;
}
.tri-modal .tri-detail-content.is-active {
    display: block;
}

/* 注册 / 登录弹窗 (Auth Modal) */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.auth-modal.open {
    display: flex;
}
.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.auth-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    max-height: calc(92vh - 48px);
    overflow-y: auto;
    animation: authModalIn 0.25s var(--tf-ease-out);
}
.auth-modal#loginModal .auth-modal-dialog {
    max-width: 460px;
}
.auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
    z-index: 3;
}
.auth-modal-close:hover {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}
@keyframes authModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-modal-dialog .register-card,
.auth-modal-dialog .login-card {
    padding: 36px 32px;
}
.auth-modal-dialog::-webkit-scrollbar {
    width: 6px;
}
.auth-modal-dialog::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 3px;
}

.tri-detail-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.tri-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.05));
    color: var(--tf-primary-light);
    flex-shrink: 0;
}
.tri-detail-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}
.tri-detail-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 2px;
}
.tri-detail-head p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--tf-text-muted);
}
.tri-detail-desc {
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    line-height: 1.75;
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tf-border);
}
.tri-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tri-detail-col .knowledge-books {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.tri-detail-content[data-tri-panel="bazi"] .tri-detail-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.05));
    color: var(--tf-accent);
}
.tri-detail-content[data-tri-panel="qimen"] .tri-detail-icon {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.05));
    color: var(--tf-info);
}
.tri-detail-content[data-tri-panel="bazi"] .knowledge-books-head { color: var(--tf-accent); }
.tri-detail-content[data-tri-panel="qimen"] .knowledge-books-head { color: var(--tf-info); }
.tri-detail-content[data-tri-panel="bazi"] .knowledge-books-list li {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.14);
}
.tri-detail-content[data-tri-panel="bazi"] .knowledge-books-list li:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}
.tri-detail-content[data-tri-panel="qimen"] .knowledge-books-list li {
    background: rgba(96, 165, 250, 0.05);
    border-color: rgba(96, 165, 250, 0.14);
}
.tri-detail-content[data-tri-panel="qimen"] .knowledge-books-list li:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

/* ============================================
   How It Works - Horizontal Timeline
   ============================================ */
.how-it-works-section {
    padding: 120px 0;
    position: relative;
}

.timeline {
    display: flex;
    gap: 0;
    position: relative;
    margin-top: 56px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 56px; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tf-border-light) 20%, var(--tf-border-light) 80%, transparent);
    z-index: 0;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 12px;
}
.timeline-step:hover .timeline-dot {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    border-color: var(--tf-primary-light);
}
.timeline-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--tf-bg);
    border: 3px solid var(--tf-border-light);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: all var(--tf-duration) var(--tf-ease);
}
.timeline-step.active .timeline-dot {
    background: var(--tf-primary);
    border-color: var(--tf-primary-light);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.timeline-icon {
    width: 64px; height: 64px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tf-primary-light);
    margin: 0 auto 16px;
    transition: all var(--tf-duration) var(--tf-ease);
}
.timeline-step:hover .timeline-icon {
    border-color: var(--tf-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.timeline-step h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.timeline-step p {
    font-size: 0.88rem;
    color: var(--tf-text-muted);
    margin: 0;
}

/* ============================================
   Register Collapsible
   ============================================ */
.register-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--tf-ease-out);
}
.register-collapsible.open {
    max-height: 2000px;
}
.register-collapsible-inner {
    padding-bottom: 40px;
}

/* Close button on register card */
.register-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--tf-text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
    z-index: 2;
}
.register-close:hover {
    border-color: var(--tf-error);
    color: var(--tf-error);
    background: rgba(248, 113, 113, 0.1);
}

/* ============================================
   Register Page
   ============================================ */
.register-section {
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100 - var(--tf-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    isolation: isolate;
    overflow: hidden;
}
.register-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.register-bg-mesh .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: orb-float 20s infinite ease-in-out;
}
.register-bg-mesh .orb-1 {
    width: 500px; height: 500px;
    background: var(--tf-primary);
    top: -150px; right: -100px;
}
.register-bg-mesh .orb-2 {
    width: 350px; height: 350px;
    background: var(--tf-accent);
    bottom: -80px; left: -80px;
    animation-delay: -8s;
    opacity: 0.18;
}
.register-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
}
.register-card {
    background: var(--tf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 48px;
    box-shadow: var(--tf-shadow-lg);
}
.register-header { text-align: center; margin-bottom: 36px; }
.register-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.register-logo-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.register-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tf-text);
}
.register-subtitle {
    font-size: 0.93rem;
    color: var(--tf-text-muted);
    margin: 0;
}
.register-form .form-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tf-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tf-border);
}
.register-form .form-group { margin-bottom: 18px; }
.register-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    font-weight: 500;
}
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form input[type="date"],
.register-form input[type="time"],
.register-form select {
    width: 100%;
    padding: 13px 16px;
    background: var(--tf-bg-input);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text);
    font-size: 0.93rem;
    font-family: var(--tf-font-sans);
    transition: all var(--tf-duration) var(--tf-ease);
}
.register-form input:focus,
.register-form select:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.register-form select { cursor: pointer; }
.register-form select option { background: var(--tf-bg-elevated); color: var(--tf-text); }
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem !important;
    color: var(--tf-text-muted) !important;
    padding: 8px 0;
}
.checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--tf-primary);
    cursor: pointer;
}
.checkbox-label span { flex: 1; }
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--tf-text-muted);
}
.register-form .form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.register-form .form-row > * { min-width: 0; }
.register-form input[type="date"],
.register-form input[type="time"] { min-width: 0; }
.register-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--tf-border);
}
.register-footer p { color: var(--tf-text-muted); font-size: 0.9rem; margin: 0; }
.register-footer a { color: var(--tf-primary-light); font-weight: 600; }

/* ============================================
   Login Page
   ============================================ */
.login-section {
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100 - var(--tf-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    isolation: isolate;
    overflow: hidden;
}
/* 首页登录区：默认隐藏，点击首页「登录」按钮后才显示 */
.login-section.homepage-login {
    display: none;
}
.login-section.homepage-login.open {
    display: flex !important;
}
.login-bg-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.login-bg-mesh .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: orb-float 20s infinite ease-in-out;
}
.login-bg-mesh .orb-1 {
    width: 500px; height: 500px;
    background: var(--tf-primary);
    top: -150px; left: -100px;
}
.login-bg-mesh .orb-2 {
    width: 350px; height: 350px;
    background: var(--tf-accent);
    bottom: -80px; right: -80px;
    animation-delay: -8s;
    opacity: 0.18;
}
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
}
.login-card {
    background: var(--tf-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 48px;
    box-shadow: var(--tf-shadow-lg);
}
.login-header { text-align: center; margin-bottom: 36px; }
.login-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.login-logo-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tf-text);
}
.login-subtitle {
    font-size: 0.93rem;
    color: var(--tf-text-muted);
    margin: 0;
}
.login-form .form-group { margin-bottom: 18px; }
.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    font-weight: 500;
}
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    background: var(--tf-bg-input);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text);
    font-size: 0.93rem;
    font-family: var(--tf-font-sans);
    transition: all var(--tf-duration) var(--tf-ease);
}
.login-form input:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.forgot-link {
    font-size: 0.85rem;
    color: var(--tf-text-muted);
    text-decoration: none;
    transition: color var(--tf-duration) var(--tf-ease);
}
.forgot-link:hover { color: var(--tf-primary-light); }
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--tf-border);
}
.login-footer p { color: var(--tf-text-muted); font-size: 0.9rem; margin: 0; }
.login-footer a { color: var(--tf-primary-light); font-weight: 600; }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.04), rgba(139, 92, 246, 0.02));
    z-index: 0;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-text {
    font-size: 1.1rem;
    color: var(--tf-text-secondary);
    margin-bottom: 36px;
}

/* ============================================
   Footer
   ============================================ */
.TriScope-footer {
    background: var(--tf-bg-elevated);
    border-top: 1px solid var(--tf-border);
    padding: 72px 0 0;
}
.footer-container { max-width: var(--tf-container); margin: 0 auto; padding: 0 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-text);
    margin-bottom: 16px;
}
.footer-logo-img {
    width: 28px; height: 28px;
    border-radius: 6px;
    object-fit: cover;
}
.footer-desc {
    font-size: 0.9rem;
    color: var(--tf-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-text-muted);
    transition: all var(--tf-duration) var(--tf-ease);
}
.social-link:hover {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--tf-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-menu li { margin-bottom: 10px; }
.footer-menu li a {
    color: var(--tf-text-muted);
    font-size: 0.88rem;
    transition: all var(--tf-duration) var(--tf-ease);
}
.footer-menu li a:hover { color: var(--tf-primary-light); padding-left: 4px; }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--tf-text-muted);
    font-size: 0.88rem;
}
.footer-contact li i { color: var(--tf-primary-light); width: 16px; }
.footer-contact li a { color: var(--tf-text-muted); }
.footer-contact li a:hover { color: var(--tf-primary-light); }
.footer-contact li span { color: var(--tf-text-muted); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--tf-border);
}
.footer-copyright p { font-size: 0.83rem; color: var(--tf-text-muted); margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.83rem; color: var(--tf-text-muted); }
.footer-legal a:hover { color: var(--tf-text); }

/* ============================================
   Auth Forms (Login/Register)
   ============================================ */
.TriScope-auth-container {
    min-height: calc(var(--vh, 1vh) * 100 - var(--tf-header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}
.TriScope-auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--tf-bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 44px;
    box-shadow: var(--tf-shadow);
}
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-logo {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--tf-primary), #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
    overflow: hidden;
}
.auth-logo-img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}
.auth-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-header p { color: var(--tf-text-muted); margin: 0; font-size: 0.9rem; }

.TriScope-auth-form .form-group { margin-bottom: 18px; }
.TriScope-auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    font-weight: 500;
}
.input-with-icon { position: relative; }
.input-with-icon i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.7;
    pointer-events: none;
}
.input-with-icon input,
.input-with-icon select { padding-left: 42px !important; }
.input-with-icon.no-icon i { display: none; }
.input-with-icon.no-icon input,
.input-with-icon.no-icon select { padding-left: 16px !important; }

/* 隐藏空日期框的原生“年/月/日”占位文字（选中日期后自动恢复显示） */
input[type="date"]:invalid::-webkit-datetime-edit-fields-wrapper {
    visibility: hidden;
}

.TriScope-auth-form input[type="text"],
.TriScope-auth-form input[type="email"],
.TriScope-auth-form input[type="password"],
.TriScope-auth-form input[type="date"],
.TriScope-auth-form input[type="time"],
.TriScope-auth-form select {
    width: 100%;
    padding: 13px 16px;
    background: var(--tf-bg-input);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text);
    font-size: 0.93rem;
    font-family: var(--tf-font-sans);
    transition: all var(--tf-duration) var(--tf-ease);
}
.TriScope-auth-form input:focus,
.TriScope-auth-form select:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tf-text-muted);
    font-size: 0.88rem;
    cursor: pointer;
}
.forgot-password { font-size: 0.88rem; color: var(--tf-text-muted); }
.forgot-password:hover { color: var(--tf-primary-light); }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-row > * { min-width: 0; }
.full-width { grid-column: 1 / -1; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--tf-border);
}
.auth-footer p { color: var(--tf-text-muted); font-size: 0.9rem; margin: 0; }

/* ============================================
   Alerts
   ============================================ */
.TriScope-alert {
    padding: 12px 18px;
    border-radius: var(--tf-radius-sm);
    margin-bottom: 20px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.TriScope-alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--tf-error);
}
.TriScope-alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: var(--tf-warning);
}
.TriScope-alert-success {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--tf-success);
}
.TriScope-alert-info {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--tf-info);
}

/* ============================================
   Reports
   ============================================ */
.TriScope-reports-container {
    min-height: calc(var(--vh, 1vh) * 100 - var(--tf-header-h));
    padding: 60px 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.TriScope-reports-container h2 { margin-bottom: 32px; }
.TriScope-reports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.report-card {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    overflow: hidden;
    transition: all var(--tf-duration) var(--tf-ease-out);
}
.report-card:hover { border-color: var(--tf-border-light); box-shadow: var(--tf-shadow); }
.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tf-bg-input);
    border-bottom: 1px solid var(--tf-border);
}
.report-mode { font-size: 0.85rem; font-weight: 600; color: var(--tf-primary-light); }
.report-card-body { padding: 20px; }
.report-card-body p { font-size: 0.9rem; margin-bottom: 6px; }
.report-date { color: var(--tf-text-muted); font-size: 0.8rem !important; }
.report-card-actions { display: flex; gap: 8px; padding: 0 20px 20px; }

.TriScope-empty-state { text-align: center; padding: 80px 20px; }
.TriScope-empty-state i { font-size: 3rem; color: var(--tf-text-muted); margin-bottom: 20px; opacity: 0.3; }
.TriScope-empty-state p { font-size: 1.1rem; color: var(--tf-text-secondary); margin-bottom: 24px; }


/* ============================================
   Profile
   ============================================ */
.TriScope-profile-container {
    min-height: calc(var(--vh, 1vh) * 100 - var(--tf-header-h));
    padding: 60px 24px;
    max-width: 700px;
    margin: 0 auto;
}
.TriScope-profile-container h2 { margin-bottom: 32px; }
.profile-section {
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 28px;
    margin-bottom: 24px;
}
.profile-section h3 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tf-border);
}
.TriScope-profile-form .form-group { margin-bottom: 16px; }
.TriScope-profile-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
}
.TriScope-profile-form input,
.TriScope-profile-form select {
    width: 100%;
    padding: 11px 14px;
    background: var(--tf-bg-input);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text);
    font-size: 0.93rem;
    font-family: var(--tf-font-sans);
    transition: all var(--tf-duration) var(--tf-ease);
}
.TriScope-profile-form input:focus,
.TriScope-profile-form select:focus {
    outline: none;
    border-color: var(--tf-primary);
}
.TriScope-profile-form input:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   Notification Toast
   ============================================ */
.TriScope-notification {
    position: fixed;
    top: 24px; right: 24px;
    z-index: 9999;
    min-width: 300px; max-width: 420px;
    background: rgba(20, 20, 30, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateX(130%);
    transition: transform 0.35s var(--tf-ease-spring);
    box-shadow: var(--tf-shadow-lg);
}
.TriScope-notification.show { transform: translateX(0); }
.notification-content { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.TriScope-notification-success .notification-content i { color: var(--tf-success); }
.TriScope-notification-error .notification-content i { color: var(--tf-error); }
.TriScope-notification-info .notification-content i { color: var(--tf-info); }
.notification-close {
    background: none; border: none;
    color: var(--tf-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
    transition: color var(--tf-duration) var(--tf-ease);
}
.notification-close:hover { color: var(--tf-text); }

/* ============================================
   Loading Dots
   ============================================ */
.loading-dots {
    display: flex; gap: 6px;
    align-items: center; justify-content: center;
    padding: 10px 0;
}
.loading-dots span {
    width: 7px; height: 7px;
    background: var(--tf-primary-light);
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.typing-indicator {
    display: flex; gap: 5px;
    padding: 6px 0;
}
.typing-indicator span {
    width: 6px; height: 6px;
    background: var(--tf-text-muted);
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite;
}
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ============================================
   Admin Dashboard
   ============================================ */
.TriScope-admin-wrap { padding: 20px; }
.TriScope-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.TriScope-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.TriScope-stat-card .stat-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--tf-primary), #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}
.TriScope-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.TriScope-section h2 { margin-bottom: 20px; font-size: 1.2rem; }
.TriScope-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--tf-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}
.TriScope-badge-comprehensive { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.TriScope-badge-bazi { background: rgba(234, 179, 8, 0.15); color: #fbbf24; }
.TriScope-badge-ziwei { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.TriScope-badge-qimen { background: rgba(244, 63, 94, 0.15); color: #fda4af; }

/* ============================================
   AI Fortune-Telling UI Components
   ============================================ */

/* Thinking Card (推理过程卡片) — Left-accent design with gold pulse indicator */
.thinking-card {
    background: var(--tf-bg-card);
    border: none;
    border-left: 3px solid var(--tf-gold);
    border-radius: 0 var(--tf-radius-sm) var(--tf-radius-sm) 0;
    overflow: hidden;
    margin: 8px 0;
    transition: border-color 0.25s var(--tf-ease-out), background 0.25s var(--tf-ease-out);
}
.thinking-card:hover {
    border-left-color: var(--tf-primary-light);
    background: var(--tf-bg-card-hover);
}
.thinking-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border-bottom: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tf-text);
    cursor: pointer;
    user-select: none;
}
.thinking-header .think-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tf-gold);
    box-shadow: 0 0 6px var(--tf-accent);
    animation: thinkPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes thinkPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
.thinking-header i { 
    font-size: 0.9rem; 
    color: var(--tf-gold-light);
}
.thinking-header .thinking-status {
    font-size: 0.72rem;
    margin-left: auto;
    padding: 2px 10px;
    border-radius: var(--tf-radius-full);
    background: rgba(251, 191, 36, 0.12);
    color: var(--tf-gold-light);
    font-weight: 500;
}
.thinking-content {
    padding: 12px 16px 12px 19px;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--tf-text-secondary);
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid var(--tf-border);
}
.thinking-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Reasoning Compact (紧凑推理展示) — inline gold tag */
.reasoning-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--tf-radius-full);
    font-size: 0.78rem;
    color: var(--tf-gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Research Prose (研究报告正文) */
.research-prose {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--tf-text-secondary);
}
.research-prose h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-text-heading);
    margin: 1.5em 0 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid var(--tf-border);
}
.research-prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tf-primary-light);
    margin: 1.2em 0 0.4em;
}
.research-prose ul, .research-prose ol {
    padding-left: 1.5em;
    margin: 0.6em 0;
}
.research-prose li { margin-bottom: 0.3em; }
.research-prose strong { color: var(--tf-text); font-weight: 600; }
.research-prose em { color: var(--tf-gold); font-style: normal; }
.research-prose blockquote {
    border-left: 3px solid var(--tf-primary);
    padding: 10px 16px;
    margin: 1em 0;
    background: rgba(139, 92, 246, 0.04);
    border-radius: 0 var(--tf-radius-sm) var(--tf-radius-sm) 0;
    color: var(--tf-text-secondary);
}

/* Timeline Node */
.timeline-node {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    position: relative;
}
.timeline-node::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: -8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--tf-border), transparent);
}
.timeline-node:last-child::before { display: none; }
.timeline-node-dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--tf-primary);
    box-shadow: 0 0 8px var(--tf-primary-glow);
    flex-shrink: 0;
    margin-top: 3px;
}
.timeline-node-content { flex: 1; min-width: 0; }
.timeline-node-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tf-text);
    margin-bottom: 2px;
}

/* Chat Popover Card (对话弹出卡片) */
.chat-popover-card {
    background: var(--tf-bg-elevated);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 16px;
    box-shadow: var(--tf-shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.chat-text-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tf-text);
    margin-bottom: 8px;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.animate-shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.03) 25%, 
        rgba(255,255,255,0.08) 50%, 
        rgba(255,255,255,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

/* Fade animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme transition */
.theme-transition {
    transition: background-color 0.3s var(--tf-ease-out),
                color 0.3s var(--tf-ease-out),
                border-color 0.3s var(--tf-ease-out);
}

/* Chip selected ring (badge ring style) */
.chip-selected-ring {
    box-shadow: 0 0 0 2px var(--tf-bg), 0 0 0 4px var(--tf-primary);
}

/* Overlay backdrop */
.overlay-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Markdown inline styles */
.markdown-inline code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: var(--tf-font-mono);
    color: var(--tf-primary-light);
}
.markdown-inline pre {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    padding: 12px 16px;
    overflow-x: auto;
    font-family: var(--tf-font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
}
.markdown-inline pre code {
    background: none;
    padding: 0;
    color: var(--tf-text-secondary);
}

/* Safe area bottom for mobile */
.safe-area-bottom {
    padding-bottom: var(--safe-bottom);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139,92,246,0.03) 50%, transparent 100%);
}
/* 收费模式胶囊：只显示三个模式，点击弹窗展示收费细则 */
.pricing-map {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pricing-node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 999px; /* 胶囊 */
    border: 1px solid var(--tf-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--tf-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--tf-duration) var(--tf-ease-out);
    -webkit-appearance: none;
    appearance: none;
}
.pricing-node:hover {
    border-color: rgba(139, 92, 246, 0.45);
    color: var(--tf-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.pricing-node.is-active {
    border-color: var(--tf-primary);
    background: var(--tf-primary);
    color: #fff;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
}

/* 套餐详情弹窗（复刻 tri-modal 交互） */
.pricing-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.pricing-modal.open {
    display: flex;
}
.pricing-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pricing-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(82vh, 680px);
    overflow-y: auto;
    background: var(--tf-bg-elevated);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 32px;
    animation: pricingModalIn 0.25s var(--tf-ease-out);
}
.pricing-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
    z-index: 2;
}
.pricing-modal-close:hover {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}
@keyframes pricingModalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.pricing-modal .pricing-detail-content {
    display: none;
    padding: 0;
}
.pricing-modal .pricing-detail-content.is-active {
    display: block;
}

/* 弹窗内详情排版 */
.pricing-detail-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tf-border);
}
.pricing-detail-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.05));
    color: var(--tf-primary-light);
    font-size: 1.4rem;
}
.pricing-detail-head h3 {
    font-size: 1.25rem;
    margin: 0 0 4px;
}
.pricing-detail-price .price-amount {
    font-size: 1.4rem;
}

/* 弹窗内规格列表 */
.pricing-detail-features {
    margin-bottom: 20px;
}
.pricing-detail-features li {
    justify-content: flex-start;
}

/* 弹窗内按钮与联系提示 */
.pricing-modal .pricing-contact {
    margin: 0 0 14px;
}
.pricing-modal .btn-block {
    margin-top: 4px;
}
.pricing-modal .pricing-invite {
    margin-bottom: 14px;
}

/* 通用件：价格 / 规格 / 联系提示（弹窗与气泡共用） */
.price-amount {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--tf-primary-light);
}
.price-period {
    font-size: 0.72rem;
    color: var(--tf-text-muted);
    margin-left: 3px;
}
/* 折扣徽标（套餐价格旁） */
.price-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
/* 划线原价（折扣套餐旁） */
.price-original {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tf-text-muted);
    text-decoration: line-through;
    opacity: 0.85;
    margin-right: 2px;
}
.pricing-features {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column; /* 规格竖排列表 */
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pricing-features li {
    padding: 3px 0;
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    white-space: normal;
    text-align: center;
}
.pricing-features li i {
    color: var(--tf-primary);
    margin-right: 6px;
}
.pricing-contact {
    font-size: 0.78rem;
    margin: 0;
    text-align: center;
    color: var(--tf-text-muted);
}
.pricing-contact {
    font-size: 0.7rem;
    margin: 0;
    text-align: center;
}

/* ── 邀请码版卡片：输入框 + 兑换按钮（竖版居中） ── */
.pricing-invite {
    flex-shrink: 0;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
}
.pricing-invite-label {
    font-size: 0.72rem;
    color: var(--tf-text-muted);
    letter-spacing: 0.04em;
    text-align: center;
}
.pricing-invite-field {
    position: relative;
}
.pricing-invite-field > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tf-primary-light);
    font-size: 0.75rem;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}
.pricing-invite-field input {
    width: 100%;
    padding: 8px 10px 8px 32px;
    background: var(--tf-bg-input);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pricing-invite-field input::placeholder {
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--tf-text-muted);
    opacity: 0.65;
}
.pricing-invite-field input:focus {
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 0 18px rgba(139, 92, 246, 0.18);
}
.pricing-invite-field input:disabled {
    opacity: 0.5;
}
.pricing-invite-msg {
    min-height: 16px;
    margin: 0;
    font-size: 0.68rem;
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-detail-head h3 {
        font-size: 1.1rem;
    }
    .pricing-modal {
        padding: 16px;
    }
    .pricing-modal-dialog {
        padding: 26px 20px 28px;
        max-height: 86vh;
    }
    .pricing-modal-close {
        top: 12px;
        right: 12px;
    }
    .price-amount {
        font-size: 1.5rem;
    }
}

/* ============================================
   WooCommerce Checkout - Dark Theme Override
   ============================================ */

/* --- Page background --- */
.woocommerce-checkout,
.woocommerce-page {
    background: var(--tf-bg) !important;
    color: var(--tf-text) !important;
}

/* --- Labels & headings --- */
.woocommerce-checkout label,
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.woocommerce-checkout legend,
.wc-block-components-form label {
    color: var(--tf-text-heading) !important;
}

/* --- ALL input fields — blanket then block-specific --- */
.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-select-input select,
.woocommerce-checkout .wc-block-components-combobox input,
.wc-block-components-text-input input,
.wc-block-components-select-input select,
.wc-block-components-combobox input {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: var(--tf-text) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
}

/* --- Focus state --- */
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-select-input select:focus {
    border-color: var(--tf-primary) !important;
    box-shadow: 0 0 0 2px var(--tf-primary-glow) !important;
    outline: none !important;
}

/* --- Order summary / table --- */
.woocommerce-checkout .shop_table,
.wc-block-components-order-summary {
    background: var(--tf-bg-card) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
}
.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td {
    color: var(--tf-text) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

/* --- Payment section --- */
.woocommerce-checkout #payment,
.wc-block-components-payment-methods {
    background: var(--tf-bg-card) !important;
    border-radius: 12px !important;
}
.wc-block-components-radio-control__input {
    accent-color: var(--tf-primary) !important;
}

/* --- Coupon / discount toggle --- */
.wc-block-components-totals-coupon button {
    color: var(--tf-primary-light) !important;
}

/* --- Place order button --- */
.woocommerce-checkout button[type="submit"],
.woocommerce-checkout #place_order,
.wc-block-components-checkout-place-order-button {
    background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.woocommerce-checkout button[type="submit"]:hover,
.woocommerce-checkout #place_order:hover,
.wc-block-components-checkout-place-order-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px var(--tf-primary-glow) !important;
}

/* --- Notices --- */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    background: var(--tf-bg-card) !important;
    border-color: var(--tf-primary) !important;
    color: var(--tf-text) !important;
    border-radius: 10px !important;
}

/* ============================================
   Journey & Plans - 使用流程 · 套餐服务（合并版面）
   ============================================ */
.journey-section {
    padding: 80px 0 84px;
    position: relative;
    background:
        radial-gradient(1100px 420px at 12% 0%, rgba(139, 92, 246, 0.07), transparent 62%),
        radial-gradient(900px 380px at 88% 100%, rgba(96, 165, 250, 0.05), transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.035) 45%, rgba(139, 92, 246, 0.035) 62%, transparent 100%);
}
.journey-section .section-header {
    margin-bottom: 44px;
}

.journey-part {
    position: relative;
}

.journey-part-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tf-border);
    position: relative;
}
.journey-part-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 76px;
    height: 2px;
    background: linear-gradient(90deg, var(--tf-primary), transparent);
    border-radius: 2px;
}
.journey-part-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--tf-radius);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-primary-light);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform var(--tf-duration) var(--tf-ease-out);
}
.journey-part:hover .journey-part-icon {
    transform: scale(1.06);
}
.journey-part-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 3px;
}
.journey-part-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tf-text-muted);
}

/* 步骤时间线：编号圆点 + 流光连线 */
.journey-timeline {
    margin-top: 46px;
}
.journey-timeline::before {
    top: 17px;
    background: linear-gradient(90deg, transparent, var(--tf-primary) 25%, var(--tf-primary) 75%, transparent);
    opacity: 0.45;
}
.journey-timeline .timeline-dot {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--tf-primary-light);
    background: var(--tf-bg-card);
    border: 2px solid var(--tf-border-light);
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.06);
}
.journey-timeline .timeline-step:hover .timeline-dot {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary-light);
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.1), 0 0 22px rgba(139, 92, 246, 0.5);
}

/* 套餐部分 */
.journey-plans {
    margin-top: 96px;
}
.journey-plans .pricing-grid {
    margin-top: 0;
}

/* ============================================
   Features - 核心优势（收尾版面）
   ============================================ */
.features-closing {
    padding: 80px 0 84px;
    border-top: 1px solid var(--tf-border);
    background:
        radial-gradient(1000px 460px at 50% 0%, rgba(139, 92, 246, 0.08), transparent 65%),
        linear-gradient(180deg, rgba(139, 92, 246, 0.02), transparent 55%);
}

/* ============================================
   账号中心 (Account Center)
   ============================================ */
.account-section {
    position: relative;
    min-height: calc(100vh - var(--tf-header-h));
    padding: calc(var(--tf-header-h) + 48px) 0 64px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.account-bg-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(800px 400px at 20% 10%, rgba(139, 92, 246, 0.08), transparent 60%),
        radial-gradient(700px 380px at 85% 90%, rgba(234, 179, 8, 0.05), transparent 60%);
}
.account-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 28px;
}
.account-header {
    text-align: center;
    margin-bottom: 36px;
}
.account-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 8px;
}
.account-subtitle {
    color: var(--tf-text-muted);
    font-size: 0.95rem;
}
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.account-card {
    background: var(--tf-bg-elevated);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-lg);
    padding: 26px 24px;
    transition: all 0.3s var(--tf-ease-out);
}
.account-card:hover {
    border-color: var(--tf-border-light);
}
.account-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.account-card-head h2 {
    font-size: 1.05rem;
    margin: 0;
}
.account-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.05));
    color: var(--tf-primary-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.account-card-icon-gold {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 191, 36, 0.05));
    color: var(--tf-gold-light);
}
/* 个人资料 */
.account-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.account-avatar {
    border-radius: 50%;
    border: 2px solid var(--tf-primary);
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}
.account-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.account-profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tf-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-profile-email {
    font-size: 0.85rem;
    color: var(--tf-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-profile-meta {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.account-profile-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
}
.account-profile-meta li i {
    color: var(--tf-primary-light);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}
.account-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.account-actions .btn {
    flex: 1;
    min-width: 130px;
    white-space: nowrap;
}
/* 头像 + 更换按钮 */
.account-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.account-avatar-edit {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--tf-bg-elevated);
    background: var(--tf-primary);
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
}
.account-avatar-edit:hover {
    background: var(--tf-primary-dark);
    transform: scale(1.1);
}
.account-avatar-hint {
    min-height: 18px;
    margin: 0 0 12px;
    font-size: 0.78rem;
}
/* 修改密码卡：占满整行 */
.account-password-card {
    grid-column: 1 / -1;
}
.account-password-form {
    max-width: 640px;
}
.account-password-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.account-password-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--tf-text-secondary);
}
.account-password-form input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    background: var(--tf-bg-input);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text);
    font-size: 0.93rem;
    font-family: var(--tf-font-sans);
    transition: all var(--tf-duration) var(--tf-ease);
}
.account-password-form input[type="password"]:focus {
    outline: none;
    border-color: var(--tf-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.account-msg {
    min-height: 18px;
    margin: 4px 0 12px;
    font-size: 0.82rem;
}
/* 积分卡 */
.account-credits-card {
    display: flex;
    flex-direction: column;
}
.account-credits-balance {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.account-credits-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tf-gold-light) 0%, var(--tf-primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.account-credits-unit {
    font-size: 1rem;
    color: var(--tf-text-muted);
}
.account-credits-hint {
    font-size: 0.82rem;
    color: var(--tf-text-muted);
    margin: 0 0 22px;
    line-height: 1.6;
}
.account-credits-card .btn-block {
    margin-top: auto;
}
/* 推荐有礼卡 */
.account-refer-card {
    display: flex;
    flex-direction: column;
}
.account-refer-desc {
    font-size: 0.85rem;
    color: var(--tf-text-secondary);
    margin: 0 0 14px;
    line-height: 1.6;
}
.account-refer-code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 10px 14px;
    border: 1px dashed var(--tf-border);
    border-radius: var(--tf-radius-sm);
    background: var(--tf-bg-input);
    color: var(--tf-primary-light);
    text-align: center;
    margin-bottom: 14px;
    user-select: all;
}
.account-refer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.account-refer-link {
    font-size: 0.8rem;
    color: var(--tf-text-muted);
    word-break: break-all;
    margin: 0 0 8px;
    background: var(--tf-bg-input);
    border-radius: var(--tf-radius-sm);
    padding: 8px 10px;
    border: 1px solid var(--tf-border);
}
.account-refer-count {
    font-size: 0.82rem;
    color: var(--tf-text-muted);
    margin: 0;
}

/* ============================================
   积分明细弹窗 (Credit Detail Modal)
   ============================================ */
.credit-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.credit-modal.open {
    display: flex;
}
.credit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.credit-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(82vh, 680px);
    overflow-y: auto;
    background: var(--tf-bg-elevated);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 30px;
    animation: pricingModalIn 0.25s var(--tf-ease-out);
}
.credit-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
    z-index: 2;
}
.credit-modal-close:hover {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}
.credit-modal-head {
    margin-bottom: 18px;
    padding-right: 40px;
}
.credit-modal-head h3 {
    font-size: 1.2rem;
    margin: 0 0 6px;
}
.credit-modal-sub {
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    margin: 0;
}
.credit-modal-sub strong {
    color: var(--tf-gold-light);
}
.credit-table-wrap {
    overflow-x: auto;
}
.credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.credit-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--tf-text-muted);
    font-weight: 500;
    font-size: 0.78rem;
    border-bottom: 1px solid var(--tf-border);
    white-space: nowrap;
}
.credit-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--tf-text-secondary);
    white-space: nowrap;
}
.credit-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.credit-time {
    color: var(--tf-text-muted);
    font-size: 0.8rem;
}
.credit-type {
    color: var(--tf-text);
}
.credit-change {
    font-weight: 700;
}
.credit-change-plus {
    color: #22c55e;
}
.credit-change-minus {
    color: #ef4444;
}
.credit-balance {
    font-weight: 600;
    color: var(--tf-text);
}
.credit-empty {
    text-align: center;
    color: var(--tf-text-muted);
    padding: 40px 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    .account-password-card {
        grid-column: auto;
    }
    .account-password-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .account-section {
        padding: calc(var(--tf-header-h) + 28px) 0 48px;
    }
    .account-container {
        padding: 0 16px;
    }
    .credit-modal {
        padding: 16px;
    }
    .credit-modal-dialog {
        padding: 24px 16px 26px;
        max-height: 86vh;
    }
}

/* ===== 站长联系弹窗 ===== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.contact-modal.open {
    display: flex;
}
.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.contact-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: var(--tf-bg-elevated);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 30px;
    animation: pricingModalIn 0.25s var(--tf-ease-out);
}
.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tf-border);
    background: var(--tf-bg-card);
    color: var(--tf-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf-duration) var(--tf-ease);
    z-index: 2;
}
.contact-modal-close:hover {
    color: #fff;
    background: var(--tf-primary);
    border-color: var(--tf-primary);
}
.contact-modal-head {
    margin-bottom: 20px;
    padding-right: 40px;
}
.contact-modal-head h3 {
    font-size: 1.2rem;
    margin: 0 0 6px;
}
.contact-modal-sub {
    font-size: 0.88rem;
    color: var(--tf-text-secondary);
    margin: 0;
}
.contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
}
.contact-item-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.12);
    color: var(--tf-primary-light);
    font-size: 1.05rem;
}
.contact-item-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.contact-item-label {
    font-size: 0.72rem;
    color: var(--tf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.contact-item-value {
    font-size: 0.95rem;
    color: var(--tf-text);
    word-break: break-all;
    text-decoration: none;
}
a.contact-item-value:hover {
    color: var(--tf-primary-light);
}
@media (max-width: 480px) {
    .contact-modal-dialog {
        padding: 24px 16px 26px;
    }
}
