/* ========================================================================
 * Design System Tokens - boringzheng portfolio
 * 三色分区：AI 紫 / 游戏绿 / 文章琥珀
 * 字体：Inter（正文、标题），JetBrains Mono（代码、数字/符号）
 * ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* --- 背景层（深空紫黑，比纯黑柔和）--- */
    --color-bg-base:        #0A0E1A;
    --color-bg-elevated:    #131829;
    --color-bg-overlay:     rgba(10, 14, 26, 0.75);

    /* --- 边框 --- */
    --color-border:         rgba(255, 255, 255, 0.08);
    --color-border-hover:   rgba(255, 255, 255, 0.18);

    /* --- 文字（语义化，不直接用 hex）--- */
    --color-text-primary:   rgba(244, 244, 245, 0.95);
    --color-text-secondary: rgba(244, 244, 245, 0.62);
    --color-text-tertiary:  rgba(244, 244, 245, 0.38);
    --color-text-muted:     rgba(244, 244, 245, 0.22);

    /* --- 强调色（三大主题）--- */
    --color-accent-ai:        #8B5CF6;   /* AI 紫 */
    --color-accent-ai-soft:   rgba(139, 92, 246, 0.12);
    --color-accent-ai-border: rgba(139, 92, 246, 0.28);
    --color-accent-ai-text:   #C4B5FD;

    --color-accent-game:        #10B981;   /* 游戏绿（薄荷） */
    --color-accent-game-soft:   rgba(16, 185, 129, 0.12);
    --color-accent-game-border: rgba(16, 185, 129, 0.28);
    --color-accent-game-text:   #6EE7B7;

    --color-accent-thought:        #F59E0B;   /* 文章琥珀 */
    --color-accent-thought-soft:   rgba(245, 158, 11, 0.12);
    --color-accent-thought-border: rgba(245, 158, 11, 0.28);
    --color-accent-thought-text:   #FCD34D;

    /* --- 状态色 --- */
    --color-success:        #10B981;
    --color-error:           #EF4444;
    --color-warning:         #F59E0B;

    /* --- 渐变 --- */
    --gradient-hero:        linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #10B981 100%);
    --gradient-ai:          linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --gradient-game:        linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
    --gradient-thought:     linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);

    /* --- 字体 --- */
    --font-sans:    'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    /* --- 字号阶梯（4/8 刻度）--- */
    --fs-xs:    0.75rem;    /* 12px */
    --fs-sm:    0.875rem;   /* 14px */
    --fs-base:  1rem;       /* 16px */
    --fs-md:    1.125rem;   /* 18px */
    --fs-lg:    1.5rem;     /* 24px */
    --fs-xl:    2rem;       /* 32px */
    --fs-2xl:   2.5rem;     /* 40px */

    /* --- 间距阶梯 --- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-8: 48px;
    --space-10: 64px;

    /* --- 圆角 --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    /* --- 阴影（统一模糊程度）--- */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.16);
    --shadow-md:  0 6px 20px rgba(0, 0, 0, 0.24);
    --shadow-lg:  0 12px 36px rgba(0, 0, 0, 0.32);
    --shadow-ai:    0 12px 36px rgba(139, 92, 246, 0.18);
    --shadow-game:  0 12px 36px rgba(16, 185, 129, 0.18);
    --shadow-thought: 0 12px 36px rgba(245, 158, 11, 0.18);

    /* --- 动画 --- */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:  150ms;
    --duration-base:  220ms;
    --duration-slow:  320ms;
}

/* ========== 全局基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--color-bg-base);
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* 数字、代码、标签等用等宽字体 */
code, kbd, pre, samp, .mono, .article-tags span, .ai-tool-card-tags span,
time, .article-meta time {
    font-family: var(--font-mono);
    font-feature-settings: 'tnum';
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== 星空 Canvas ========== */
#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== 导航栏 ========== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(10, 10, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.site-nav .logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

.site-nav .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.site-nav .nav-links a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--duration-base) var(--ease-out);
    position: relative;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
    color: var(--color-text-primary);
}

.site-nav .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-hero);
    border-radius: 1px;
}

/* ========== 页面内容区基础 ========== */
.page-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

/* ===== 首页桌面端三栏布局（≥ 1280px）===== */
/* 默认（< 1280px）：.home-layout 是普通块元素，内部 section 用各自原始的 max-width/margin/padding */
.home-layout {
    display: block;
}

@media (min-width: 1280px) {
    .home-layout {
        display: grid;
        grid-template-columns: 300px 1fr 300px;
        gap: 28px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 28px;
    }

    .home-col {
        display: flex;
        flex-direction: column;
        gap: 32px;
        min-width: 0;
    }

    .home-col-center {
        gap: 24px;
    }

    /* 侧边栏 sticky：随中间内容滚动时保持可见，贴紧顶部留白 */
        /* 注意：不限制 max-height、不设 overflow，让侧边栏内容自然完整显示，靠页面整体滚动 */
    .home-col-left,
    .home-col-right {
        position: sticky;
        top: 88px;
        align-self: start;
    }

    /* 重置各 section 的单列页面宽度 */
    .home-col .ai-tools-section,
    .home-col .open-seek-section,
    .home-col .works-section,
    .home-col .home-articles {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .home-col .section-header {
        margin-bottom: 18px;
    }

    /* 桌面端：career-tree 和 side-buttons 的单列宽度 */
    .home-col-left .career-tree-section,
    .home-col-right .side-buttons {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .home-col-left .career-tree-title {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .home-col-left .career-tree {
        padding: 2px 0;
    }

    .home-col-left .career-node {
        padding: 7px 0;
    }

    .home-col-left .career-node-icon {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }

    .home-col-left .career-node-title {
        font-size: 0.82rem;
    }

    .home-col-left .career-node-meta {
        font-size: 0.7rem;
    }

    .home-col-left .career-node-marker {
        width: 10px;
        height: 10px;
        margin-top: 5px;
    }

    .home-col-left .career-node-root .career-node-marker {
        width: 12px;
        height: 12px;
    }

    .home-col-left .career-branches {
        padding-left: 22px;
        margin-left: 5px;
    }

    .home-col-left .career-node-branch::before {
        left: -22px;
        width: 16px;
        top: 18px;
    }

    /* 桌面端：右侧栏 side-buttons 紧接 works，无额外 margin-top */
    .home-col-right .side-buttons {
        margin-top: 4px;
        gap: 8px;
    }

    .home-col-right .side-button {
        padding: 12px 14px;
        gap: 10px;
    }

    .home-col-right .side-button-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .home-col-right .side-button-title {
        font-size: 0.85rem;
    }

    /* 左侧栏：hero 卡片样式 */
    .home-col-left .hero-screen {
        max-width: none;
        padding: 0;
        gap: 16px;
    }

    .home-col-left .hero-about {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 22px;
    }

    .home-col-left .about-avatar {
        width: 60px;
        height: 60px;
    }

    .home-col-left .hero-about-text h1 {
        font-size: 1.3rem;
    }

    .home-col-left .hero-about-text .about-tagline {
        font-size: 0.82rem;
    }

    .home-col-left .hero-about-text .about-bio {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .home-col-left .hero-about-text .about-details {
        gap: 6px;
    }

    .home-col-left .hero-about-text .about-details span {
        padding: 2px 8px;
        font-size: 0.7rem;
    }

    .home-col-left .hero-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-col-left .hero-links a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .home-col-left .hero-email {
        padding: 12px 16px;
    }

    /* 中间栏：AI 工具 2 列网格（4 个卡片 = 紧凑 2x2） */
        /* 卡片高度减少约 1/3：减少 padding + 1 行 desc + 更小间距 */
    .home-col-center .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .home-col-center .ai-tools-section .section-header {
        margin-bottom: 12px;
    }

    .home-col-center .ai-tool-card {
        padding: 8px 10px;
        display: flex;
        flex-direction: column;
    }

    .home-col-center .ai-tool-card-header {
        margin-bottom: 0;
    }

    .home-col-center .ai-tool-card-icon {
        width: 26px;
        height: 26px;
    }

    .home-col-center .ai-tool-card-icon svg {
        width: 15px;
        height: 15px;
    }

    .home-col-center .ai-tool-card h3 {
        font-size: 0.88rem;
        margin: 2px 0 0;
    }

    .home-col-center .ai-tool-card-desc {
        font-size: 0.74rem;
        line-height: 1.35;
        min-height: 0;
        -webkit-line-clamp: 1;
        margin: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .home-col-center .ai-tool-card-tags {
        display: none;
    }

    .home-col-center .ai-tool-card-arrow {
        font-size: 0.68rem;
        margin-top: 3px;
    }

    .home-col-center .ai-tool-live {
        font-size: 0.58rem;
        padding: 1px 5px;
    }

    .home-col-center .open-seek-section {
        padding: 0;
        margin: 0;
    }

    /* 右侧栏：作品/经历单列 */
    .home-col-right .works-section .section-header {
        margin-bottom: 16px;
    }

    .home-col-right .works-section .hero-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-col-right .hero-card {
        padding: 14px;
        gap: 10px;
    }

    .home-col-right .hero-card h3 {
        font-size: 0.88rem;
    }

    .home-col-right .hero-card p {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
    }
}

/* ========== 第一区块：Hero Screen ========== */
.hero-screen {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* 个人简介区域 */
.hero-about {
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 28px 32px;
}

.about-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--color-accent-ai-border);
    box-shadow: var(--shadow-ai);
    background: var(--gradient-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.hero-about-text h1 {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-about-text .about-bio {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.hero-about-text .about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

.hero-about-text .about-details span {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* 作品卡片区 */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.hero-card:hover {
    background: var(--color-accent-game-soft);
    border-color: var(--color-accent-game-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-game);
}

.hero-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.hero-card h3 {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    margin-bottom: 3px;
}

.hero-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* 带封面图的卡片 */
.hero-card-with-cover {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    gap: 0;
}

.hero-card-cover {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.hero-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hero-card-with-cover:hover .hero-card-cover img {
    transform: scale(1.05);
}

.hero-card-body {
    padding: 14px 18px;
}

/* 社交链接区 */
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hero-links a {
    padding: 7px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
}

.hero-links a:hover {
    border-color: var(--color-accent-ai);
    background: var(--color-accent-ai-soft);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

/* 邮箱显示区 */
.hero-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: var(--fs-sm);
}

.hero-email-label {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-ai-soft);
    color: var(--color-accent-ai-text);
    border: 1px solid var(--color-accent-ai-border);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-email-value {
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.01em;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 1px;
    transition: color var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.hero-email-value:hover {
    color: var(--color-accent-ai-text);
    border-bottom-color: var(--color-accent-ai);
}

/* ========== 职业经历树状图 ========== */
.career-tree-section {
    padding: 30px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.career-tree-title {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    padding-left: 4px;
}

.career-tree {
    position: relative;
    padding: 4px 0;
}

.career-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}

.career-node-marker {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #2dd4bf);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.career-node-root .career-node-marker {
    width: 14px;
    height: 14px;
    margin-top: 5px;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.career-node-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.career-node-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 8px;
}

.career-node-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.career-node-meta {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: 2px;
}

/* 树状连接线：子节点到分支的垂直线 */
.career-branches {
    position: relative;
    padding-left: 28px;
    margin-left: 6px;
}

/* 从根节点到分组的垂直线 */
.career-branches::before {
    content: '';
    position: absolute;
    left: 0;
    top: -10px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(56, 189, 248, 0.4), rgba(45, 212, 191, 0.2));
    border-radius: 2px;
}

/* 每个分支节点的水平连接线 */
.career-node-branch::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 22px;
    width: 22px;
    height: 2px;
    background: linear-gradient(to right, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0.15));
    border-radius: 2px;
}

/* ========== 右侧栏按钮（4 个相同规格）========== */
.side-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 0 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.side-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
}

.side-button:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.1);
}

.side-button-icon {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.side-button-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.reduced-motion .side-button {
    transition: none;
}
.reduced-motion .side-button:hover {
    transform: none;
}

/* ========== Hero 副标题 ========== */
.about-tagline {
    font-size: var(--fs-md);
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== 导航栏 AI 工具高亮 ========== */
.site-nav .nav-links a.nav-ai-highlight {
    color: var(--color-accent-ai-text);
    padding: 6px 14px;
    background: var(--color-accent-ai-soft);
    border: 1px solid var(--color-accent-ai-border);
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.site-nav .nav-links a.nav-ai-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.2));
    opacity: 0;
    transition: opacity var(--duration-base);
}

.site-nav .nav-links a.nav-ai-highlight:hover {
    border-color: var(--color-accent-ai);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.site-nav .nav-links a.nav-ai-highlight:hover::before {
    opacity: 1;
}

.site-nav .nav-links a.nav-ai-highlight > * {
    position: relative;
    z-index: 1;
}

.site-nav .nav-links a.nav-ai-highlight.active::after {
    display: none;
}

/* ========== AI 工具 C 位区块 ========== */
.ai-tools-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    position: relative;
}

.ai-tools-section .section-header {
    margin-bottom: 28px;
    align-items: flex-end;
}

.ai-tools-section .ai-tools-title {
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-tools-subtitle {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    margin-top: 6px;
    font-weight: 400;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* AI 工具卡片入场动画（index-tagger） */
.ai-tool-card {
    animation: cardFadeIn 0.6s var(--ease-out) backwards;
}
.ai-tools-grid .ai-tool-card:nth-child(1) { animation-delay: 0.05s; }
.ai-tools-grid .ai-tool-card:nth-child(2) { animation-delay: 0.15s; }
.ai-tools-grid .ai-tool-card:nth-child(3) { animation-delay: 0.25s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 灏婇噸 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ai-tool-card,
    .about-tagline,
    .site-nav .logo,
    .ai-tool-live-dot {
        animation: none !important;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

.ai-tool-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
}

.ai-tool-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity var(--duration-slow);
    pointer-events: none;
}

.ai-tool-card:hover {
    transform: translateY(-4px);
}

.ai-tool-card:hover .ai-tool-card-glow {
    opacity: 1;
}

.ai-tool-card-content {
    position: relative;
    z-index: 1;
}

/* AI 工具卡片头部：图标 + Live 标识 */
.ai-tool-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ai-tool-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: currentColor;
    transition: transform var(--duration-base) var(--ease-spring);
}

.ai-tool-card-icon svg {
    display: block;
}

.ai-tool-card:hover .ai-tool-card-icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Live 标识 */
.ai-tool-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-family: var(--font-mono);
}

.ai-tool-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.ai-tool-card h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.ai-tool-card-desc {
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    min-height: 52px;
}

.ai-tool-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.ai-tool-card-tags span {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ai-tool-card-arrow {
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: transform var(--duration-base) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-tool-card:hover .ai-tool-card-arrow {
    transform: translateX(6px);
}

/* 塔罗 - AI 紫 */
.ai-tool-card-tarot {
    background: var(--color-accent-ai-soft);
    border-color: var(--color-accent-ai-border);
    color: var(--color-accent-ai-text);
}
.ai-tool-card-tarot:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--color-accent-ai);
    box-shadow: var(--shadow-ai);
}
.ai-tool-card-tarot .ai-tool-card-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 65%);
}
.ai-tool-card-tarot h3 { color: var(--color-accent-ai-text); }
.ai-tool-card-tarot .ai-tool-card-tags span {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-accent-ai-text);
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.ai-tool-card-tarot .ai-tool-card-arrow { color: var(--color-accent-ai-text); }

/* 情感 - 粉红渐变 */
.ai-tool-card-love {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.28);
    color: #FBCFE8;
}
.ai-tool-card-love:hover {
    background: rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 12px 36px rgba(236, 72, 153, 0.18);
}
.ai-tool-card-love .ai-tool-card-glow {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 65%);
}
.ai-tool-card-love h3 { color: #FBCFE8; }
.ai-tool-card-love .ai-tool-card-tags span {
    background: rgba(236, 72, 153, 0.2);
    color: #FBCFE8;
    border: 1px solid rgba(236, 72, 153, 0.25);
}
.ai-tool-card-love .ai-tool-card-arrow { color: #F9A8D4; }

/* 健康 - 薄荷绿（与游戏区同色系） */
.ai-tool-card-diet {
    background: var(--color-accent-game-soft);
    border-color: var(--color-accent-game-border);
    color: var(--color-accent-game-text);
}
.ai-tool-card-diet:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--color-accent-game);
    box-shadow: var(--shadow-game);
}
.ai-tool-card-diet .ai-tool-card-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 65%);
}
.ai-tool-card-diet h3 { color: var(--color-accent-game-text); }
.ai-tool-card-diet .ai-tool-card-tags span {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-accent-game-text);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.ai-tool-card-diet .ai-tool-card-arrow { color: var(--color-accent-game-text); }

/* ========== 游戏作品区 ========== */
.works-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.works-section .section-header {
    margin-bottom: 20px;
}

.works-section .hero-cards {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    .works-section .hero-cards {
        grid-template-columns: 1fr;
    }
}

/* ========== 首页文章区域 ========== */
.home-articles {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title-left {
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* 游戏作品区标题 - 薄荷绿渐变 */
.works-section .section-title-left {
    background: var(--gradient-game);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 文章区标题 - 琥珀渐变 */
.home-articles .section-title-left {
    background: var(--gradient-thought);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 项目展示 ========== */
.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 1px;
}

.projects-section {
    padding: 60px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.35s;
    cursor: pointer;
    display: block;
}

.project-card:hover {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(129, 140, 248, 0.12);
}

.project-card .card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.project-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.project-card .card-tags span {
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 12px;
    background: rgba(167, 139, 250, 0.12);
    color: rgba(196, 181, 253, 0.8);
}

/* ========== Footer ========== */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-version {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    cursor: default;
    user-select: none;
}

.icp-link {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    transition: color 0.25s;
    text-decoration: none;
}

.icp-link:hover {
    color: rgba(167, 139, 250, 0.6);
}

/* ========== 塔罗牌子页面 ========== */
.tarot-page {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarot-container {
    max-width: 700px;
    width: 100%;
    padding: 40px 20px 80px;
}

.tarot-container h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tarot-container .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

/* 模式切换 */
.mode-switcher {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
}

.mode-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.mode-btn:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(99, 102, 241, 0.3));
    color: #c4b5fd;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.2);
}

/* 本地占卜记录 */
.tarot-history-controls {
    display: flex;
    gap: 10px;
    margin: -14px 0 26px;
    flex-wrap: wrap;
}

.tarot-secondary-btn,
.tarot-action-btn {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-accent-ai-border);
    background: var(--color-accent-ai-soft);
    color: var(--color-accent-ai-text);
    font-size: var(--fs-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.tarot-secondary-btn:hover,
.tarot-action-btn:hover {
    border-color: var(--color-accent-ai);
    background: rgba(139, 92, 246, 0.18);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.tarot-secondary-btn.danger {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
}

.tarot-secondary-btn.danger:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.42);
}

.tarot-history-panel {
    margin: -10px 0 26px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--color-border);
}

.tarot-history-panel.hidden {
    display: none;
}

.history-panel-title {
    font-size: var(--fs-sm);
    color: var(--color-text-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.history-empty {
    color: var(--color-text-tertiary);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.history-item {
    width: 100%;
    text-align: left;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    padding: 12px 14px;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    font-family: var(--font-sans);
}

.history-item:hover {
    border-color: var(--color-accent-ai-border);
    background: var(--color-accent-ai-soft);
    transform: translateX(2px);
}

.history-item-time {
    font-family: var(--font-mono);
    color: var(--color-text-tertiary);
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.history-item-question {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    margin-bottom: 4px;
}

.history-item-cards {
    color: var(--color-accent-ai-text);
    font-size: 0.78rem;
    line-height: 1.4;
}

/* 琛ㄥ崟闅愯棌 */
.tarot-form.hidden {
    display: none;
}

/* 高级占卜提示框 */
.advanced-hint {
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: rgba(196, 181, 253, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
}

.advanced-hint span {
    margin-right: 4px;
}

/* 必填标记 */
.required {
    font-size: 0.78rem;
    color: rgba(250, 139, 139, 0.8);
    font-weight: 400;
}

/* 输入区域 */
.input-section {
    margin-bottom: 20px;
}

.input-section label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.input-section textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    outline: none;
}

.input-section textarea.short-textarea {
    min-height: 60px;
}

.input-hint {
    font-size: 0.78rem;
    color: var(--color-text-tertiary, #888);
    margin-top: 4px;
}

.input-section textarea:focus,
.tarot-input:focus {
    border-color: rgba(167, 139, 250, 0.5);
}

.input-section textarea::placeholder,
.tarot-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* 通用输入框 */
.tarot-input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
    color-scheme: dark;
}


/* 抽牌按钮 */
.draw-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.draw-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.draw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 牌面显示 */
#cardDisplay {
    margin: 30px 0;
    text-align: center;
}

#cardDisplay.hidden {
    display: none;
}

.tarot-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tarot-card-image-wrapper {
    width: 180px;
    height: 310px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(167, 139, 250, 0.3);
    transition: transform 0.6s;
}

.tarot-card-image-wrapper.reversed {
    transform: rotate(180deg);
}

.tarot-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-placeholder .card-icon {
    font-size: 4rem;
}

.card-info {
    text-align: center;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.card-position {
    font-size: 0.9rem;
    color: #a78bfa;
    margin-top: 4px;
}

/* 三卡牌布局 */
.three-cards-layout {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.three-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time-position-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c4b5fd;
    letter-spacing: 2px;
    padding: 4px 16px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 20px;
}

.three-card-item .tarot-card-image-wrapper {
    width: 140px;
    height: 242px;
}

.three-card-item .card-name {
    font-size: 1rem;
}

.three-card-item .card-position {
    font-size: 0.82rem;
}

/* 加载动画 */
#loading {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.6);
}

#loading.hidden {
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(167, 139, 250, 0.2);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示 */
#error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fca5a5;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

#error.hidden {
    display: none;
}

/* AI 解读结果 */
#result {
    margin-top: 30px;
}

#result.hidden {
    display: none;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#result .result-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
    padding-bottom: 4px;
}



.tarot-action-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
}

#resultContent {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    line-height: 1.8;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

#resultContent h1, #resultContent h2, #resultContent h3 {
    color: rgba(255, 255, 255, 0.9);
    margin: 18px 0 10px;
}

#resultContent h1 { font-size: 1.3rem; }
#resultContent h2 { font-size: 1.15rem; }
#resultContent h3 { font-size: 1.05rem; }

#resultContent p {
    margin-bottom: 12px;
}

#resultContent strong {
    color: #c4b5fd;
}

#resultContent ul, #resultContent ol {
    padding-left: 20px;
    margin-bottom: 12px;
}






/* ========== 音乐控制按钮 ========== */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.45);
}

.music-control.playing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(118, 75, 162, 0.6); }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .site-nav {
        padding: 12px 20px;
    }

    .site-nav .nav-links {
        gap: 18px;
    }

    .hero-about {
        flex-direction: column;
        text-align: center;
        padding: 22px 20px;
        gap: 16px;
    }

    .about-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }

    .hero-about-text h1 {
        font-size: 1.3rem;
    }

    .hero-about-text .about-details {
        justify-content: center;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .hero-links {
        gap: 8px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .tarot-container h1 {
        font-size: 1.7rem;
    }

    .tarot-card-image-wrapper {
        width: 150px;
        height: 260px;
    }

    .three-cards-layout {
        gap: 12px;
    }

    .three-card-item .tarot-card-image-wrapper {
        width: 100px;
        height: 173px;
    }

    .time-position-label {
        font-size: 0.8rem;
        padding: 3px 12px;
    }

    .three-card-item .card-name {
        font-size: 0.85rem;
    }

    .three-card-item .card-position {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .site-nav .logo {
        font-size: 1.1rem;
    }

    .site-nav .nav-links {
        gap: 12px;
    }

    .site-nav .nav-links a {
        font-size: 0.85rem;
    }

    .hero-about-text h1 {
        font-size: 1.15rem;
    }

    .hero-about-text .about-bio {
        font-size: 0.82rem;
    }

    .hero-card {
        padding: 14px;
    }

    .hero-card-with-cover {
        padding: 0;
    }

    .hero-card-cover {
        height: 100px;
    }

    .hero-card h3 {
        font-size: 0.85rem;
    }

    .hero-links a {
        padding: 5px 14px;
        font-size: 0.78rem;
    }
}

/* ========== 文章列表 ========== */
.blog-section {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* 分类标签栏 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    justify-content: center;
}

.category-tab {
    padding: 7px 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    font-family: var(--font-sans);
}

.category-tab:hover {
    border-color: var(--color-accent-thought-border);
    color: var(--color-text-primary);
    background: var(--color-accent-thought-soft);
}

.category-tab.active {
    border-color: var(--color-accent-thought);
    background: var(--color-accent-thought-soft);
    color: var(--color-accent-thought-text);
    box-shadow: 0 0 0 1px var(--color-accent-thought-border);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.article-card:hover {
    background: var(--color-accent-thought-soft);
    border-color: var(--color-accent-thought-border);
    transform: translateX(4px);
    box-shadow: var(--shadow-thought);
}

.article-card h2 {
    font-size: var(--fs-md);
    color: var(--color-text-primary);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-card > p {
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.article-meta time {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-tags span {
    padding: 2px 10px;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent-thought-text);
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-weight: 500;
}

.view-all-link {
    display: inline-block;
    font-size: 0.95rem;
    color: rgba(167, 139, 250, 0.8);
    transition: color 0.25s;
}

.view-all-link:hover {
    color: #c4b5fd;
}

/* ========== 文章详情页 ========== */
.article-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header .back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(167, 139, 250, 0.7);
    margin-bottom: 24px;
    transition: color 0.25s;
}

.article-header .back-link:hover {
    color: #c4b5fd;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-header .article-meta {
    margin-bottom: 0;
}

.article-body {
    line-height: 1.9;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
}

.article-body h2 {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.article-body h3 {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 28px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body strong {
    color: #c4b5fd;
}

.article-body code {
    background: rgba(167, 139, 250, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c4b5fd;
}

.article-body pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px 20px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
}

.article-body blockquote {
    border-left: 3px solid rgba(167, 139, 250, 0.4);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(167, 139, 250, 0.04);
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.6);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body table th,
.article-body table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.article-body table th {
    color: rgba(196, 181, 253, 0.9);
    font-weight: 600;
    background: rgba(167, 139, 250, 0.06);
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

.article-body table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.article-body table td {
    color: rgba(255, 255, 255, 0.65);
}

.article-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 32px 0;
}

.article-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.article-body a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #c4b5fd;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 0.95rem;
    }
}

/* ========== 职业经历页 ========== */
.career-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.career-page .back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(167, 139, 250, 0.7);
    margin-bottom: 24px;
    transition: color 0.25s;
}

.career-page .back-link:hover {
    color: #c4b5fd;
}

.career-title {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.career-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    margin-bottom: 48px;
}

/* 鏃堕棿绾?*/
.career-timeline {
    position: relative;
    padding-left: 32px;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.4), rgba(129, 140, 248, 0.1));
}

.career-item {
    position: relative;
    margin-bottom: 36px;
}

.career-item:last-child {
    margin-bottom: 0;
}

.career-dot {
    position: absolute;
    left: -29px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.5);
    border: 2px solid rgba(167, 139, 250, 0.3);
}

.career-dot-current {
    background: #a78bfa;
    border-color: #a78bfa;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
}

.career-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 28px;
    transition: all 0.3s;
}

.career-card:hover {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.2);
}

.career-item-current .career-card {
    border-color: rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.06);
}

.career-time {
    font-size: 0.8rem;
    color: rgba(167, 139, 250, 0.7);
    margin-bottom: 6px;
    font-weight: 500;
}

.career-card h2 {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 4px;
}

.career-company {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 12px;
}

.career-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 12px;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.career-tags span {
    padding: 2px 10px;
    font-size: 0.72rem;
    border-radius: 10px;
    background: rgba(167, 139, 250, 0.12);
    color: rgba(196, 181, 253, 0.75);
}

/* 职业经历分区 */
.career-section {
    margin-top: 48px;
}

.career-section-title {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 20px;
}

.career-edu-card {
    margin-left: 0;
}

/* 技能标签态 */
.career-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

.skill-primary {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.skill-secondary {
    background: rgba(129, 140, 248, 0.1);
    color: rgba(196, 181, 253, 0.7);
    border: 1px solid rgba(129, 140, 248, 0.15);
}

.skill-accent {
    background: rgba(250, 139, 167, 0.1);
    color: rgba(253, 181, 196, 0.8);
    border: 1px solid rgba(250, 139, 167, 0.15);
}

@media (max-width: 768px) {
    .career-title {
        font-size: 1.5rem;
    }

    .career-card h2 {
        font-size: 1.05rem;
    }

    .career-timeline {
        padding-left: 24px;
    }

    .career-dot {
        left: -21px;
    }
}

/* ============================================================
   情感大师001 - 恋爱问答页面样式
   ============================================================ */

/* ========== 验证码遮罩层 ========== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.password-box {
    text-align: center;
    padding: 50px 40px;
    max-width: 420px;
    width: 90%;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: passwordFadeIn 0.6s ease;
}

@keyframes passwordFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.password-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: passwordPulse 2s ease-in-out infinite;
}

@keyframes passwordPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.password-box h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f9a8d4, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-hint {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.password-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.password-input-group input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.password-input-group input:focus {
    border-color: rgba(192, 132, 252, 0.5);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.15);
}

.password-input-group button {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #c084fc, #f9a8d4);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    white-space: nowrap;
}

.password-input-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192, 132, 252, 0.3);
}

.password-input-group button:active {
    transform: translateY(0);
}

.password-error {
    color: #f87171;
    font-size: 0.85rem;
    min-height: 1.2em;
    transition: opacity 0.3s;
}

.password-overlay.fade-out {
    animation: passwordFadeOut 0.5s ease forwards;
}

@keyframes passwordFadeOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.love-advisor-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 80px 20px 40px;
}

.love-advisor-container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 椤堕儴 Header */
.advisor-header {
    text-align: center;
    padding: 30px 20px 24px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
}

.advisor-avatar {
    font-size: 48px;
    margin-bottom: 12px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    56% { transform: scale(1); }
}

.advisor-header h1 {
    font-size: 1.8rem;
    color: #e8d5f5;
    margin-bottom: 6px;
}

.advisor-header h1 .advisor-code {
    font-size: 0.8em;
    color: rgba(250, 139, 167, 0.8);
    margin-left: 4px;
}

.advisor-subtitle {
    color: rgba(200, 180, 220, 0.7);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.advisor-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.advisor-badges .badge {
    padding: 4px 12px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(200, 180, 220, 0.8);
}

/* 对话区域 */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 55vh;
    min-height: 300px;
    scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar {
    width: 4px;
}

.chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 4px;
}

/* 娑堟伅姘旀场 */
.chat-message {
    display: flex;
    gap: 10px;
    padding: 0 12px;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message .message-avatar {
    font-size: 28px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message .message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(220, 210, 240, 0.95);
}

.chat-message .message-content p {
    margin: 0 0 8px;
}

.chat-message .message-content p:last-child {
    margin-bottom: 0;
}

.chat-message .message-content ul {
    margin: 6px 0;
    padding-left: 18px;
}

.chat-message .message-content li {
    margin-bottom: 4px;
}

.chat-message .message-content strong {
    color: #e8d5f5;
}

/* Bot 娑堟伅 */
.bot-message {
    flex-direction: row;
}

.bot-message .message-content {
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-top-left-radius: 4px;
}

/* 鐢ㄦ埛娑堟伅 */
.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: rgba(250, 139, 167, 0.12);
    border: 1px solid rgba(250, 139, 167, 0.2);
    border-top-right-radius: 4px;
    color: rgba(253, 210, 220, 0.95);
}

/* Typing 动画 */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.5);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* 侧边问题 */
.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 14px;
}

.quick-btn {
    padding: 8px 14px;
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    color: rgba(200, 180, 220, 0.85);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
    color: #e8d5f5;
}

/* 输入区域 */
.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 14px 12px;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
    background: rgba(10, 5, 30, 0.4);
    border-radius: 0 0 16px 16px;
}

.chat-input-area textarea {
    flex: 1;
    padding: 10px 14px;
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    color: #e8d5f5;
    font-size: 0.92rem;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.chat-input-area textarea::placeholder {
    color: rgba(200, 180, 220, 0.4);
}

.chat-input-area textarea:focus {
    border-color: rgba(167, 139, 250, 0.5);
}

.send-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(250, 139, 167, 0.7), rgba(167, 139, 250, 0.7));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    align-self: flex-end;
}

.send-btn:hover {
    background: linear-gradient(135deg, rgba(250, 139, 167, 0.9), rgba(167, 139, 250, 0.9));
    transform: translateY(-1px);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Markdown 内容在聊天气泡中的样式 */
.bot-message .message-content h1,
.bot-message .message-content h2,
.bot-message .message-content h3 {
    color: #e8d5f5;
    margin: 12px 0 6px;
    font-size: 1rem;
}

.bot-message .message-content h2 { font-size: 0.95rem; }
.bot-message .message-content h3 { font-size: 0.9rem; }

.bot-message .message-content code {
    background: rgba(167, 139, 250, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
}

.bot-message .message-content blockquote {
    border-left: 3px solid rgba(250, 139, 167, 0.4);
    margin: 8px 0;
    padding: 4px 12px;
    color: rgba(200, 180, 220, 0.75);
}

.bot-message .message-content ol {
    margin: 6px 0;
    padding-left: 20px;
}

.bot-message .message-content ol li {
    margin-bottom: 4px;
}

/* 绉诲姩绔€傞厤 */
@media (max-width: 768px) {
    .love-advisor-page {
        padding: 70px 10px 20px;
    }

    .love-advisor-container {
        max-width: 100%;
    }

    .advisor-header {
        padding: 20px 12px 18px;
    }

    .advisor-header h1 {
        font-size: 1.5rem;
    }

    .chat-area {
        max-height: 50vh;
        min-height: 250px;
    }

    .chat-message .message-content {
        max-width: 85%;
        font-size: 0.88rem;
    }

    .quick-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .chat-input-area {
        padding: 10px 8px;
    }

    .send-btn {
        padding: 10px 16px;
    }
}

/* ============================================================
   个人工具汇总页面样式
   ============================================================ */

.tools-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tools-container {
    max-width: 960px;
    width: 100%;
    padding: 40px 20px 80px;
}

.tools-header {
    text-align: center;
    margin-bottom: 48px;
}

.tools-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: toolsFloat 3s ease-in-out infinite;
}

@keyframes toolsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tools-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #c4b5fd, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tools-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-card {
    position: relative;
    display: block;
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.tool-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.tool-card:hover .tool-card-glow {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-6px);
}

.tool-card-content {
    position: relative;
    z-index: 1;
}

.tool-card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.tool-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tool-card-desc {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.tool-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tool-card-tags span {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.tool-card-arrow {
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s;
}

.tool-card:hover .tool-card-arrow {
    transform: translateX(6px);
}

/* 鎰熸儏澶у笀鍗＄墖 - 绮夌传鑹茬郴 */
.tool-card-love {
    background: rgba(250, 139, 167, 0.06);
    border: 1px solid rgba(250, 139, 167, 0.15);
}

.tool-card-love:hover {
    background: rgba(250, 139, 167, 0.1);
    border-color: rgba(250, 139, 167, 0.35);
    box-shadow: 0 12px 40px rgba(250, 139, 167, 0.15);
}

.tool-card-love .tool-card-glow {
    background: radial-gradient(circle, rgba(250, 139, 167, 0.08) 0%, transparent 70%);
}

.tool-card-love h2 {
    color: rgba(253, 200, 210, 0.95);
}

.tool-card-love .tool-card-desc {
    color: rgba(253, 200, 210, 0.55);
}

.tool-card-love .tool-card-tags span {
    background: rgba(250, 139, 167, 0.12);
    color: rgba(253, 181, 196, 0.85);
}

.tool-card-love .tool-card-arrow {
    color: rgba(250, 139, 167, 0.8);
}

/* 健康饮食问答卡片 - 绿色系 */
.tool-card-diet {
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.tool-card-diet:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 12px 40px rgba(74, 222, 128, 0.15);
}

.tool-card-diet .tool-card-glow {
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
}

.tool-card-diet h2 {
    color: rgba(167, 243, 208, 0.95);
}

.tool-card-diet .tool-card-desc {
    color: rgba(167, 243, 208, 0.55);
}

.tool-card-diet .tool-card-tags span {
    background: rgba(74, 222, 128, 0.12);
    color: rgba(167, 243, 208, 0.85);
}

.tool-card-diet .tool-card-arrow {
    color: rgba(74, 222, 128, 0.8);
}

/* 塔罗牌子卡片 - 紫色系 */
.tool-card-tarot {
    background: rgba(167, 139, 250, 0.06);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.tool-card-tarot:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.15);
}

.tool-card-tarot .tool-card-glow {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
}

.tool-card-tarot h2 {
    color: rgba(196, 181, 253, 0.95);
}

.tool-card-tarot .tool-card-desc {
    color: rgba(196, 181, 253, 0.55);
}

.tool-card-tarot .tool-card-tags span {
    background: rgba(167, 139, 250, 0.12);
    color: rgba(196, 181, 253, 0.85);
}

.tool-card-tarot .tool-card-arrow {
    color: rgba(167, 139, 250, 0.8);
}

/* 任务清单工具卡片 - 橙色系 */
.tool-card-todolist {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.tool-card-todolist:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.15);
}

.tool-card-todolist .tool-card-glow {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
}

.tool-card-todolist h2 {
    color: rgba(165, 243, 252, 0.95);
}

.tool-card-todolist .tool-card-desc {
    color: rgba(165, 243, 252, 0.55);
}

.tool-card-todolist .tool-card-tags span {
    background: rgba(56, 189, 248, 0.12);
    color: rgba(165, 243, 252, 0.85);
}

.tool-card-todolist .tool-card-arrow {
    color: rgba(56, 189, 248, 0.8);
}

/* ============================================================
   任务清单 - 密码验证遮罩
   ============================================================ */

.todolist-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: passwordFadeIn 0.5s ease;
}
.todolist-auth-overlay.fade-out {
    animation: passwordFadeOut 0.5s ease forwards;
}
.todolist-auth-box {
    text-align: center;
    padding: 48px 40px;
    max-width: 400px;
    width: 90%;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.todolist-auth-icon {
    color: rgba(56, 189, 248, 0.7);
    margin-bottom: 12px;
}
.todolist-auth-box h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: rgba(165, 243, 252, 0.9);
}
.todolist-auth-hint {
    color: rgba(165, 243, 252, 0.45);
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.todolist-auth-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.todolist-auth-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.06);
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
}
.todolist-auth-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}
.todolist-auth-btn {
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    background: rgba(56, 189, 248, 0.2);
    color: rgba(165, 243, 252, 0.9);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.todolist-auth-btn:hover {
    background: rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
}
.todolist-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.todolist-auth-error {
    color: #f87171;
    font-size: 0.85rem;
    min-height: 1.2em;
    transition: opacity 0.3s;
}

/* ============================================================
   任务清单页面
   ============================================================ */

.todolist-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 80px 20px 40px;
}

.todolist-container {
    width: 100%;
    max-width: 1320px;
}

/* ===== 桌面三栏布局（≥ 1280px）===== */
.todolist-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    align-items: start;
}

.todolist-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.todolist-col-left .todolist-header {
    text-align: left;
    padding: 20px 0 0;
}

.todolist-col-left .todolist-header-icon {
    margin: 0 0 12px;
}

.todolist-col-left .todolist-stat-balance-box {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
}

.todolist-col-left .todolist-stat-balance-box .todolist-stat-num {
    font-size: 1.8rem;
}

/* 侧边筛选卡片 */
.todolist-quick-card {
    padding: 16px;
    background: rgba(56, 189, 248, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 16px;
}

.todolist-quick-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(165, 243, 252, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

/* 右侧栏 */
.todolist-col-right .todolist-quick-spends {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.todolist-col-right .todolist-quick-spend-btn {
    width: 100%;
    padding: 10px 8px;
    font-size: 0.82rem;
    justify-content: center;
}

.todolist-col-right .todolist-spend-section {
    margin-top: 0;
}

.todolist-col-right .todolist-add-row {
    flex-wrap: wrap;
}

.todolist-col-right .todolist-add-row .todolist-input {
    flex: 1 1 100%;
}

.todolist-col-right .todolist-add-row .todolist-points-input {
    flex: 0 0 auto;
    width: 70px;
}

.todolist-col-right .todolist-add-row .todolist-spend-btn {
    flex: 0 0 auto;
}

/* 非桌面环境：单列 */
@media (max-width: 1279px) {
    .todolist-layout {
        display: flex;
        flex-direction: column;
        max-width: 640px;
        margin: 0 auto;
    }

    .todolist-col-left .todolist-header {
        text-align: center;
    }

    .todolist-col-left .todolist-header-icon {
        margin: 0 auto 12px;
    }

    .todolist-col-left .todolist-stat-balance-box {
        flex-direction: column;
        justify-content: center;
        padding: 8px 16px;
    }

    .todolist-col-left .todolist-stat-balance-box .todolist-stat-num {
        font-size: 1.6rem;
    }

    .todolist-col-right .todolist-quick-spends {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .todolist-col-right .todolist-quick-spend-btn {
        flex: 1;
        min-width: 80px;
    }

    .todolist-col-right .todolist-spend-section {
        margin-top: 24px;
    }
}

/* 澶撮儴 */
.todolist-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.todolist-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    color: rgba(165, 243, 252, 0.9);
    animation: dietPulse 3s ease-in-out infinite;
}

.todolist-header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #38bdf8, #22d3ee, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.todolist-subtitle {
    color: rgba(165, 243, 252, 0.55);
    font-size: 0.9rem;
}

/* 统计区 */
.todolist-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(56, 189, 248, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 16px;
}

.todolist-stat-balance-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.15);
    min-width: 72px;
}

.todolist-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(165, 243, 252, 0.95);
    transition: color 0.2s;
}

.todolist-stat-label {
    font-size: 0.75rem;
    color: rgba(165, 243, 252, 0.45);
    margin-top: 2px;
    display: block;
}

/* 按钮微交互：按压缩放 + 焦点环 */
.todolist-add-btn:active,
.todolist-spend-btn:active,
.todolist-action-btn:active,
.todolist-quick-spend-btn:active {
    transform: scale(0.96) !important;
}

.todolist-add-btn:focus-visible,
.todolist-spend-btn:focus-visible,
.todolist-action-btn:focus-visible,
.todolist-quick-spend-btn:focus-visible,
.todolist-filter-btn:focus-visible,
.todolist-points-btn:focus-visible,
.todolist-checkbox:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.6);
    outline-offset: 2px;
}

.reduced-motion .todolist-add-btn,
.reduced-motion .todolist-spend-btn,
.reduced-motion .todolist-action-btn,
.reduced-motion .todolist-quick-spend-btn {
    transition: none !important;
}
.reduced-motion .todolist-add-btn:active,
.reduced-motion .todolist-spend-btn:active,
.reduced-motion .todolist-action-btn:active,
.reduced-motion .todolist-quick-spend-btn:active {
    transform: none !important;
}

/* 绛涢€夋爣绛?*/
.todolist-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.todolist-filter-btn {
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: transparent;
    color: rgba(165, 243, 252, 0.6);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.todolist-filter-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    color: rgba(165, 243, 252, 0.85);
}

.todolist-filter-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.5);
    color: #a5f3fc;
}

/* 娣诲姞浠诲姟鍖哄煙 */
.todolist-add-area {
    margin-bottom: 20px;
}

.todolist-add-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.todolist-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    color: #d1fae5;
    font-size: 0.92rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.todolist-input::placeholder {
    color: rgba(165, 243, 252, 0.3);
}

.todolist-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
}

/* 任务积分枚举选择（5 / 10 分） */
.todolist-points-select {
    display: flex;
    gap: 6px;
    flex: none;
}

.todolist-points-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: transparent;
    color: rgba(165, 243, 252, 0.6);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.todolist-points-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    color: rgba(165, 243, 252, 0.85);
}

.todolist-points-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.5);
    color: #a5f3fc;
}

/* 评分数字输入框 */
.todolist-points-input {
    width: 80px;
    flex: none;
    text-align: center;
    -moz-appearance: textfield;
}
.todolist-points-input::-webkit-inner-spin-button,
.todolist-points-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.todolist-add-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.7), rgba(34, 211, 238, 0.7));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.todolist-add-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(34, 211, 238, 0.9));
    transform: translateY(-1px);
}

.todolist-add-btn:active {
    transform: translateY(0);
}

/* 浠诲姟鍒楄〃 */
.todolist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
}

.todolist-empty {
    text-align: center;
    padding: 48px 20px;
    color: rgba(165, 243, 252, 0.35);
    font-size: 0.9rem;
}

/* 鍗曟潯浠诲姟 */
.todolist-task {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: rgba(56, 189, 248, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 14px;
    transition: all 0.2s;
    animation: taskSlideIn 0.25s ease-out;
}

.todolist-task-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

@keyframes taskSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.todolist-task:hover {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.2);
}

.todolist-task.completed {
    opacity: 0.5;
}

.todolist-task.completed .todolist-task-title {
    text-decoration: line-through;
    color: rgba(165, 243, 252, 0.35);
}

/* 澶嶉€夋 */
.todolist-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 2px;
    position: relative;
    padding: 0;
}

.todolist-checkbox:hover {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.1);
}

.todolist-checkbox.checked {
    background: linear-gradient(135deg, #38bdf8, #22d3ee);
    border-color: transparent;
}

.todolist-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 浠诲姟鍐呭 */
.todolist-task-body {
    flex: 1;
    min-width: 0;
}

.todolist-task-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.todolist-task-title {
    font-size: 0.92rem;
    color: rgba(209, 250, 229, 0.9);
    word-break: break-word;
}

/* 任务完成时间 */
.todolist-task-time {
    font-size: 0.7rem;
    color: rgba(165, 243, 252, 0.35);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* 绉垎寰芥爣 */
.todolist-task-points {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
    background: rgba(74, 222, 128, 0.15);
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}

/* 鍒犻櫎鎸夐挳 */
.todolist-delete-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(165, 243, 252, 0.25);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.todolist-delete-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    color: rgba(252, 165, 165, 0.8);
}

/* 编辑按钮 */
.todolist-edit-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(165, 243, 252, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    opacity: 0;
}

.todolist-task:hover .todolist-edit-btn {
    opacity: 1;
}

.todolist-edit-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: rgba(56, 189, 248, 0.8);
}

/* 内联编辑输入框 */
.todolist-task-edit-input {
    flex: 1;
    min-width: 0;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.92rem;
    color: rgba(209, 250, 229, 0.9);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.todolist-task-edit-input:focus {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

/* 搴曢儴鎿嶄綔鏍?*/
.todolist-actions {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px;
}

.todolist-action-btn {
    padding: 8px 20px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.06);
    color: rgba(252, 165, 165, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.todolist-action-btn:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: rgba(252, 165, 165, 0.9);
}

/* 导出按钮 */
.todolist-export-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.06);
    color: rgba(165, 243, 252, 0.7);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.todolist-export-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: rgba(165, 243, 252, 0.9);
}

/* 娑堣€楃Н鍒嗗尯鍩?*/
.todolist-spend-section {
    margin-top: 32px;
    padding: 24px 20px;
    background: rgba(248, 113, 113, 0.04);
    border: 1px solid rgba(248, 113, 113, 0.12);
    border-radius: 16px;
}

.todolist-spend-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.todolist-spend-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(253, 164, 138, 0.95);
    letter-spacing: -0.01em;
}

.todolist-spend-hint {
    font-size: 0.78rem;
    color: rgba(253, 164, 138, 0.45);
}

/* 蹇嵎娑堣€楁寜閽?*/
.todolist-quick-spends {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.todolist-quick-spend-btn {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.08);
    color: rgba(253, 164, 138, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.todolist-quick-spend-btn:hover {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.45);
    color: rgba(253, 164, 138, 1);
    transform: translateY(-1px);
}

.todolist-quick-spend-btn span {
    color: rgba(248, 113, 113, 0.9);
    font-weight: 600;
    margin-left: 4px;
    font-family: var(--font-mono);
}

/* 璁板綍娑堣€楁寜閽?*/
.todolist-spend-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.8), rgba(248, 113, 113, 0.8));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.todolist-spend-btn:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.95), rgba(248, 113, 113, 0.95));
    transform: translateY(-1px);
}

.todolist-spend-btn:active {
    transform: translateY(0);
}

/* 娑堣€楄褰曞垪琛?*/
.todolist-spend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    min-height: 120px;
}

.todolist-spend-section .todolist-empty {
    color: rgba(253, 164, 138, 0.35);
}

/* 鍗曟潯娑堣€楄褰?*/
.todolist-spend-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: rgba(248, 113, 113, 0.03);
    border: 1px solid rgba(248, 113, 113, 0.1);
    border-left: 3px solid rgba(248, 113, 113, 0.5);
    border-radius: 14px;
    transition: all 0.2s;
    animation: taskSlideIn 0.25s ease-out;
}

.todolist-spend-item:hover {
    background: rgba(248, 113, 113, 0.06);
    border-color: rgba(248, 113, 113, 0.2);
    border-left-color: rgba(248, 113, 113, 0.7);
}

.todolist-spend-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.todolist-spend-body {
    flex: 1;
    min-width: 0;
}

.todolist-spend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.todolist-spend-title {
    font-size: 0.92rem;
    color: rgba(254, 215, 200, 0.9);
    word-break: break-word;
}

.todolist-spend-time {
    font-size: 0.72rem;
    color: rgba(253, 164, 138, 0.45);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* 娑堣€楃Н鍒嗗窘鏍?*/
.todolist-spend-points {
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
    background: rgba(248, 113, 113, 0.15);
    color: rgba(252, 165, 165, 0.95);
    font-variant-numeric: tabular-nums;
}

/* 金额统计 */
.todolist-stat-balance-box .todolist-stat-num {
    color: rgba(165, 243, 252, 0.95);
    font-size: 1.8rem;
}

/* 同步状态指示器 */
.todolist-sync-status {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(165, 243, 252, 0.3);
    padding: 2px 0 6px;
    min-height: 1.2em;
    transition: color 0.3s;
}
.todolist-sync-status.is-syncing {
    color: rgba(165, 243, 252, 0.55);
}
.todolist-sync-status.is-syncing::after {
    content: ' 鈼?;
    animation: todolistSyncPulse 1s ease-in-out infinite;
}
.todolist-sync-status.is-error {
    color: rgba(248, 113, 113, 0.5);
}

@keyframes todolistSyncPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
.reduced-motion .todolist-sync-status.is-syncing::after {
    animation: none;
    opacity: 1;
}

.todolist-stat-positive {
    color: rgba(165, 243, 252, 0.95) !important;
}

.todolist-stat-negative {
    color: rgba(248, 113, 113, 0.9) !important;
}

.todolist-stat-overflow {
    color: #fbbf24 !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.2);
    animation: todolistOverflowPulse 1.8s ease-in-out infinite;
}

@keyframes todolistOverflowPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 14px rgba(251, 191, 36, 0.7), 0 0 30px rgba(251, 191, 36, 0.35);
        transform: scale(1.04);
    }
}

.reduced-motion .todolist-stat-overflow {
    animation: none;
    color: #f59e0b !important;
    text-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}

/* 任务清单导出适配 */
@media (max-width: 600px) {
    .todolist-page {
        padding: 70px 12px 30px;
    }

    .todolist-header h1 {
        font-size: 1.5rem;
    }

    .todolist-header-icon {
        font-size: 2.5rem;
    }

    .todolist-col-left .todolist-stats,
    .todolist-stats {
        flex-direction: column;
        gap: 12px;
        padding: 12px 12px;
    }

    .todolist-stat-num {
        font-size: 1.2rem;
    }

    .todolist-stat-balance-box {
        padding: 6px 12px;
    }

    .todolist-add-row {
        flex-wrap: wrap;
    }

    .todolist-input {
        flex: 1 1 100%;
        min-width: 0;
    }

    .todolist-points-input {
        flex: 0 0 auto;
        width: 70px;
    }

    .todolist-points-select {
        flex: 0 0 auto;
    }

    .todolist-add-btn {
        flex: 0 0 auto;
        padding: 12px 18px;
    }

    .todolist-task {
        padding: 12px 14px;
    }

    .todolist-task-title {
        font-size: 0.85rem;
    }

    .todolist-config-row {
        flex-direction: column;
        align-items: stretch;
    }

    .todolist-config-label {
        min-width: auto;
    }

    .todolist-spend-section {
        margin-top: 24px;
        padding: 18px 14px;
    }

    .todolist-spend-header h2 {
        font-size: 1rem;
    }

    .todolist-spend-hint {
        font-size: 0.72rem;
    }

    .todolist-quick-spends {
        gap: 6px;
    }

    .todolist-quick-spend-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .todolist-spend-btn {
        padding: 12px 18px;
    }

    .todolist-spend-item {
        padding: 12px 14px;
    }

    .todolist-spend-title {
        font-size: 0.85rem;
    }
}

/* 工具页响应式适配 */
@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-header h1 {
        font-size: 1.6rem;
    }

    .tool-card {
        padding: 28px 22px;
    }

    .tool-card-icon {
        font-size: 2.5rem;
    }

    .tool-card h2 {
        font-size: 1.2rem;
    }
}

/* ============================================================
   健康饮食问答（营养师）页面样式
   ============================================================ */

.diet-advisor-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 80px 20px 40px;
}

.diet-advisor-container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 椤堕儴 Header */
.diet-advisor-header {
    text-align: center;
    padding: 30px 20px 24px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.15);
}

.diet-advisor-avatar {
    font-size: 48px;
    margin-bottom: 12px;
    animation: dietPulse 3s ease-in-out infinite;
}

@keyframes dietPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.08) rotate(-3deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.08) rotate(3deg); }
}

.diet-advisor-header h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #4ade80, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.diet-advisor-subtitle {
    color: rgba(167, 243, 208, 0.6);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.diet-advisor-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.diet-advisor-badges .badge {
    padding: 4px 12px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(167, 243, 208, 0.8);
}

/* 饮食问答对话区域 */
.diet-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 55vh;
    min-height: 300px;
    scroll-behavior: smooth;
}

.diet-chat-area::-webkit-scrollbar {
    width: 4px;
}

.diet-chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.diet-chat-area::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.3);
    border-radius: 4px;
}

/* 楗椤鹃棶 Bot 娑堟伅鏍峰紡瑕嗙洊 */
.diet-advisor-page .bot-message .message-content {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-top-left-radius: 4px;
    color: rgba(209, 250, 229, 0.95);
}

.diet-advisor-page .bot-message .message-content strong {
    color: #a7f3d0;
}

.diet-advisor-page .bot-message .message-content h1,
.diet-advisor-page .bot-message .message-content h2,
.diet-advisor-page .bot-message .message-content h3 {
    color: #a7f3d0;
    margin: 12px 0 6px;
    font-size: 1rem;
}

.diet-advisor-page .bot-message .message-content h2 { font-size: 0.95rem; }
.diet-advisor-page .bot-message .message-content h3 { font-size: 0.9rem; }

.diet-advisor-page .bot-message .message-content code {
    background: rgba(74, 222, 128, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
}

.diet-advisor-page .bot-message .message-content blockquote {
    border-left: 3px solid rgba(74, 222, 128, 0.4);
    margin: 8px 0;
    padding: 4px 12px;
    color: rgba(167, 243, 208, 0.75);
}

.diet-advisor-page .bot-message .message-content ol,
.diet-advisor-page .bot-message .message-content ul {
    margin: 6px 0;
    padding-left: 20px;
}

.diet-advisor-page .bot-message .message-content li {
    margin-bottom: 4px;
}

/* 楗椤鹃棶 鐢ㄦ埛娑堟伅鏍峰紡瑕嗙洊 */
.diet-advisor-page .user-message .message-content {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-top-right-radius: 4px;
    color: rgba(209, 250, 229, 0.95);
}

/* 饮食问答 Typing 动画 */
.diet-typing-dots span {
    background: rgba(74, 222, 128, 0.5);
}

/* 饮食问答 侧边问题 */
.diet-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 14px;
}

.diet-quick-btn {
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: rgba(167, 243, 208, 0.85);
}

.diet-quick-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
    color: #a7f3d0;
}

/* 饮食问答 输入区域 */
.diet-chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 12px 14px;
    border-top: 1px solid rgba(74, 222, 128, 0.15);
    background: rgba(5, 20, 10, 0.4);
    border-radius: 0 0 16px 16px;
}

/* 鍥剧墖棰勮鍖?*/
.image-preview-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 6px;
    flex-wrap: wrap;
    animation: messageIn 0.25s ease-out;
}

.image-preview-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(74, 222, 128, 0.3);
    flex-shrink: 0;
}

.image-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.image-preview-remove:hover {
    background: rgba(239, 68, 68, 0.8);
}

.image-preview-count {
    font-size: 0.78rem;
    color: rgba(167, 243, 208, 0.55);
    white-space: nowrap;
    margin-left: 4px;
}

/* 输入行 */
.diet-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding-top: 10px;
}

.diet-input-row textarea {
    flex: 1;
    padding: 10px 14px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    color: #d1fae5;
    font-size: 0.92rem;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.diet-input-row textarea::placeholder {
    color: rgba(167, 243, 208, 0.35);
}

.diet-input-row textarea:focus {
    border-color: rgba(74, 222, 128, 0.5);
}

/* 图片上传按钮 */
.image-upload-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    background: rgba(74, 222, 128, 0.06);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.image-upload-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.45);
    transform: translateY(-1px);
}

.image-upload-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.diet-send-btn {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.7), rgba(52, 211, 153, 0.7));
}

.diet-send-btn:hover {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.9), rgba(52, 211, 153, 0.9));
}

/* 用户消息中的图片（支持多图） */
.user-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.user-sent-image {
    max-width: 180px;
    max-height: 150px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: block;
    object-fit: cover;
}

.user-sent-image:hover {
    opacity: 0.85;
}

/* 鍗曞浘鏃剁◢澶т簺 */
.user-images-grid img:only-child {
    max-width: 220px;
    max-height: 180px;
}

/* 鍥剧墖鍏ㄥ睆棰勮 */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* 楗椤鹃棶绉诲姩绔€傞厤 */
@media (max-width: 768px) {
    .diet-advisor-page {
        padding: 70px 10px 20px;
    }

    .diet-advisor-container {
        max-width: 100%;
    }

    .diet-advisor-header {
        padding: 20px 12px 18px;
    }

    .diet-advisor-header h1 {
        font-size: 1.5rem;
    }

    .diet-chat-area {
        max-height: 50vh;
        min-height: 250px;
    }

    .diet-advisor-page .chat-message .message-content {
        max-width: 85%;
        font-size: 0.88rem;
    }

    .diet-quick-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .diet-chat-input-area {
        padding: 0 8px 10px;
    }

    .diet-input-row {
        gap: 8px;
    }

    .image-upload-btn {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }

    .diet-send-btn {
        padding: 10px 16px;
    }

    .user-sent-image {
        max-width: 130px;
        max-height: 110px;
    }

    .user-images-grid img:only-child {
        max-width: 160px;
        max-height: 130px;
    }

    .image-preview-thumb {
        width: 48px;
        height: 48px;
    }
}
/* ============================================================
   全站可访问性与交互基线
   ============================================================ */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: #6d28d9;
    transform: translateY(-150%);
    transition: transform 160ms ease-out;
}

/* ========== Open Seek 视频区 ========== */
.open-seek-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px 20px 8px;
}

.open-seek-header {
    align-items: flex-end;
}

.open-seek-title {
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.open-seek-subtitle {
    margin-top: 4px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

.open-seek-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.open-seek-video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.open-seek-video-card-featured {
    grid-column: 1 / -1;
}

.open-seek-video-card:hover,
.open-seek-video-card:focus-visible {
    border-color: rgba(34, 211, 238, 0.48);
    box-shadow: 0 12px 36px rgba(14, 165, 233, 0.16);
    transform: translateY(-2px);
    outline: none;
}

.open-seek-video-card:focus-visible,
.open-seek-empty:focus-visible {
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.28), 0 12px 36px rgba(14, 165, 233, 0.16);
}

.open-seek-video-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1728;
}

.open-seek-video-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.open-seek-video-card:hover .open-seek-video-cover img {
    transform: scale(1.025);
}

.open-seek-cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 22% 26%, rgba(34, 211, 238, 0.25), transparent 32%),
        radial-gradient(circle at 78% 74%, rgba(59, 130, 246, 0.28), transparent 34%),
        linear-gradient(135deg, #101a31, #07111f);
}

.open-seek-cover-fallback span {
    color: rgba(224, 242, 254, 0.9);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.18em;
}

.open-seek-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding-left: 2px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(8, 15, 28, 0.72);
    backdrop-filter: blur(8px);
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.open-seek-video-card:hover .open-seek-play {
    background: #00aeec;
    transform: translate(-50%, -50%) scale(1.06);
}

.open-seek-video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 7px;
    border-radius: 5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
}

.open-seek-video-body {
    padding: 14px 16px 16px;
}

.open-seek-video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
    color: #67e8f9;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
}

.open-seek-video-meta time {
    color: var(--color-text-tertiary);
}

.open-seek-video-card h3 {
    margin-top: 4px;
    color: var(--color-text-primary);
    font-size: var(--fs-base);
    line-height: 1.45;
}

.open-seek-video-card p {
    margin-top: 6px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

.open-seek-empty {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 20px;
    border: 1px dashed rgba(34, 211, 238, 0.34);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(34, 211, 238, 0.045));
    transition: border-color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}

.open-seek-empty:hover {
    border-color: rgba(34, 211, 238, 0.64);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(34, 211, 238, 0.08));
}

.open-seek-empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #67e8f9;
    border-radius: var(--radius-md);
    background: rgba(34, 211, 238, 0.12);
}

.open-seek-empty strong,
.open-seek-empty small {
    display: block;
}

.open-seek-empty strong {
    color: var(--color-text-primary);
    font-size: var(--fs-base);
}

.open-seek-empty small {
    margin-top: 3px;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

.open-seek-empty-arrow {
    color: #67e8f9;
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    .open-seek-header {
        align-items: flex-start;
        gap: 12px;
    }

    .open-seek-view-all {
        flex: 0 0 auto;
    }

    .open-seek-video-grid {
        grid-template-columns: 1fr;
    }

    .open-seek-video-card-featured {
        grid-column: auto;
    }

    .open-seek-empty {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        gap: 10px;
        padding: 16px;
    }

    .open-seek-empty-icon {
        width: 40px;
        height: 40px;
    }

    .open-seek-empty small {
        font-size: var(--fs-xs);
    }
}

@media (prefers-reduced-motion: reduce) {
    .open-seek-video-card,
    .open-seek-video-cover img,
    .open-seek-play {
        transition: none;
    }
}

/* 最终级联：移动端交互目标不得被页面局部样式压回 44px 以下。 */
@media (max-width: 768px) {
    .site-nav .logo,
    .site-nav .nav-links a,
    .site-nav .nav-links a.nav-ai-highlight,
    .view-all-link,
    .icp-link,
    .category-tab,
    .mode-btn,
    .tarot-secondary-btn,
    .quick-question,
    .todolist-filter-btn,
    .todolist-points-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 3px;
}

:where(button, a, input, textarea, select) {
    touch-action: manipulation;
}

button:disabled,
input:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .todolist-page button {
        min-height: 44px;
    }

    .todolist-checkbox,
    .todolist-task-action,
    .todolist-spend-delete {
        min-width: 44px;
    }

    .site-nav {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .site-nav .logo,
    .site-nav .nav-links a,
    .view-all-link,
    .icp-link {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    .site-nav .nav-links {
        gap: 8px;
    }

    .category-tab,
    .mode-btn,
    .tarot-secondary-btn,
    .quick-question,
    .todolist-filter-btn,
    .todolist-points-btn {
        min-height: 44px;
    }

    input,
    textarea,
    select {
        font-size: 16px;
    }
}
