/* ============================================================
   杨杰作品集 — 现代化高端极简设计系统 (Mainstream Dark Mode)
   Art Direction: Refined Obsidian & Gold (黑曜石深空 · 极简沉金)
   参考主流高质感站点：Linear / Vercel / Apple Developer
   ============================================================ */

/* ===== 设计令牌 (Design Tokens) ===== */
:root {
    /* 主流深色画布：深度消光黑曜石 */
    --bg-page:        #08090d;
    --bg-card:        rgba(16, 20, 31, 0.75);
    --bg-card-hover:  rgba(24, 30, 48, 0.88);
    --bg-surface:     #0d111c;
    --bg-subtle:      rgba(255, 255, 255, 0.035);

    /* 兼容变量，确保 JS 与组件平滑运行 */
    --bg:             var(--bg-page);
    --bg-dark:        var(--bg-page);
    --bg-card-compat: var(--bg-card);
    --panel:          #0e121d;
    --panel-2:        #141928;
    --panel-3:        #1c2236;
    --glass-bg:       rgba(14, 18, 29, 0.85);

    /* 文字阶梯 (Typography Scale) */
    --text-primary:   #f8fafc;    /* 主标题：纯净钛白 */
    --text-secondary: #94a3b8;    /* 正文：高级冷灰蓝 */
    --text-muted:     #64748b;    /* 标签/次要文字：弱灰 */
    --ink:            var(--text-primary);
    --text-strong:    var(--text-primary);
    --text-soft:      var(--text-secondary);
    --muted:          var(--text-secondary);
    --faint:          var(--text-muted);

    /* 唯一核心品牌色：沉金/黄铜 (PCB ENIG 沉金质感，纯正克制) */
    --brand-gold:     #f59e0b;    /* 核心金 */
    --brand-gold-soft:#fbbf24;    /* 亮金 */
    --brand-brass:    #d97706;    /* 沉稳黄铜 */
    --brand-glow:     rgba(245, 158, 11, 0.18);
    --brand-border:   rgba(245, 158, 11, 0.32);

    --accent:         var(--brand-gold);
    --accent-gold:    var(--brand-gold);
    --accent-amber:   var(--brand-brass);
    --on-accent:      #07080d;

    /* 语义功能色 (仅用于状态点与信号，极度克制) */
    --status-online:  #10b981;    /* 在线绿 */
    --signal-cyan:    #38bdf8;    /* 示波器波形青 */
    --accent-emerald: var(--status-online);
    --accent-blue:    var(--signal-cyan);
    --accent-cyan:    var(--signal-cyan);

    /* 发丝线与边框 (Delicate Hairlines) */
    --border-card:    rgba(255, 255, 255, 0.08);
    --border-subtle:  rgba(255, 255, 255, 0.05);
    --border-hover:   rgba(245, 158, 11, 0.42);
    --hairline:       rgba(255, 255, 255, 0.06);

    /* 排版字体栈 */
    --font-display:   'Outfit', 'Noto Sans SC', sans-serif;
    --font-body:      'Noto Sans SC', system-ui, -apple-system, sans-serif;
    --font-mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* 圆角系统 */
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      16px;
    --radius-xl:      20px;
    --radius-full:    9999px;
    --radius:         16px;

    /* 动效 */
    --dur-fast:       140ms;
    --dur-normal:     250ms;
    --dur-slow:       450ms;
    --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 基础与重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-page) !important;
    color-scheme: dark;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-page) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* 主流高端微网格质感背景 */
    background-image:
        radial-gradient(ellipse 70% 35% at 50% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 25% at 90% 45%, rgba(56, 189, 248, 0.03), transparent 60%),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
    background-attachment: fixed;
}

/* 优雅滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(245, 158, 11, 0.4); }

/* 文字选区高亮 */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #ffffff;
}

/* 焦点环 (无障碍) */
:focus-visible {
    outline: 2px solid var(--brand-gold) !important;
    outline-offset: 2px;
}

/* Loading 遮罩 */
#loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--dur-slow) ease, visibility var(--dur-slow) ease;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-ring {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--brand-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 悬浮极简玻璃导航栏 ===== */
.glass-nav {
    background: rgba(8, 9, 13, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--border-card) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    transition: all var(--dur-normal) ease;
}
#scrollProgress {
    background: linear-gradient(90deg, var(--brand-brass), var(--brand-gold), var(--brand-gold-soft));
    box-shadow: 0 0 10px var(--brand-glow);
}
.nav-status-pill {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #6ee7b7 !important;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}
.nav-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    border-radius: 2px;
    transition: width var(--dur-normal) var(--ease-out);
}
a:hover .nav-underline,
a.active .nav-underline { width: 100%; }

/* ===== 移动端抽屉菜单 (解决桌面端边缘遮挡 Bug) ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    z-index: 1001;
    background: rgba(12, 16, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-card);
    transform: translateX(100%);
    transition: transform var(--dur-normal) var(--ease-out);
}
.mobile-menu.open {
    transform: translateX(0);
}
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ===== HERO 区域：呼吸感与大气排版 ===== */
#hero {
    min-height: calc(100vh - 80px);
    padding-top: 7rem;
    padding-bottom: 4.5rem;
    position: relative;
}
.hero-title {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

/* 核心能力徽章 */
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--brand-border);
    color: var(--brand-gold-soft);
    font-size: 0.75rem;
    font-weight: 600;
}

/* 核心量化数据卡 */
.hero-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.hero-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 16px var(--brand-glow);
}

/* ===== 右侧：高精度工程分析仪 (Cockpit) ===== */
.cockpit-panel {
    background: linear-gradient(145deg, rgba(16, 20, 32, 0.94) 0%, rgba(10, 13, 22, 0.97) 100%) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow:
        0 24px 64px -12px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 30px var(--brand-glow) !important;
    backdrop-filter: blur(20px);
}
.cockpit-panel:hover {
    border-color: rgba(245, 158, 11, 0.28) !important;
}

/* 统一快捷命令 Chips (告别五颜六色，保持高科技克制) */
.terminal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}
.terminal-chip:hover {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.14);
    border-color: var(--brand-border);
    transform: translateY(-1px);
}

/* 示波器遥测数据条 */
.telemetry-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
@media (max-width: 640px) {
    .telemetry-strip { grid-template-columns: repeat(2, 1fr); }
}
.telemetry-pill {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    text-align: center;
}
.telemetry-pill-label {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.telemetry-pill-val {
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand-gold-soft);
}

/* ===== 通用卡片体系 ===== */
.modern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
}
.modern-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px var(--brand-glow);
}

/* ===== 全栈价值闭环专区 (#value-loop) ===== */
.value-loop-section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
    position: relative;
    border-top: 1px solid var(--border-subtle);
}

/* 6 阶段现代化紧凑网格 (解决全宽竖向堆叠问题) */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
    .pipeline-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .pipeline-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.85rem;
    }
}

.pipeline-step-btn {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.85rem 0.75rem !important;
    text-align: left !important;
    transition: all var(--dur-normal) var(--ease-out) !important;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 84px;
    position: relative;
    overflow: hidden;
}
.pipeline-step-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--dur-normal) ease;
}
.pipeline-step-btn:hover {
    border-color: rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-2px);
    background: var(--bg-card-hover) !important;
}
.pipeline-step-btn.active,
.pipeline-step-btn[aria-selected="true"] {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.pipeline-step-btn.active::before,
.pipeline-step-btn[aria-selected="true"]::before {
    background: var(--brand-gold);
}

.pipeline-step-num {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.pipeline-step-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.pipeline-step-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.25;
}

/* 动态阶段详情展示舱 */
.pipeline-detail-box {
    background: linear-gradient(145deg, rgba(16, 20, 31, 0.88) 0%, rgba(10, 13, 22, 0.94) 100%) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-xl) !important;
    padding: 1.75rem 2rem !important;
    margin-bottom: 1.75rem !important;
    box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(20px);
}

.pipe-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-gold-soft);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--brand-border);
}
.pipe-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* 商业赋能对比三栏卡片 */
.roi-comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .roi-comparison-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}
.roi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.4rem;
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
}
.roi-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6), 0 0 16px var(--brand-glow);
}
.roi-metric-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-gold-soft);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.roi-metric-unit {
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.25rem;
}
.roi-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--brand-gold-soft);
}

/* ===== 招聘视角切换面板 (#about) ===== */
.recruiter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}
.role-switch-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.25rem;
}
.role-switch-btn {
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    text-align: center;
    white-space: nowrap;
}
.role-switch-btn:hover {
    color: #ffffff;
}
.role-switch-btn.active {
    background: rgba(245, 158, 11, 0.18);
    color: var(--brand-gold-soft);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.recruiter-point {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.recruiter-point:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.recruiter-point-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== 技能矩阵卡片 & 标签系统 (#skills) ===== */
.skill-category-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    transition: all var(--dur-normal) var(--ease-out) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.skill-category-card:hover {
    border-color: rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px var(--brand-glow) !important;
}
.skill-category-card.dimmed {
    opacity: 0.35;
    filter: grayscale(80%);
}
.skill-category-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.skill-mastery-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}
.skill-mastery-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-brass), var(--brand-gold)) !important;
    border-radius: var(--radius-full) !important;
}

/* 技能标签体系 (统一克制美学) */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-card);
    color: #cbd5e1;
    font-size: 0.72rem;
    border-radius: var(--radius-sm);
    padding: 0.32rem 0.65rem;
    transition: all var(--dur-fast) ease;
}
.skill-tag:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--brand-border);
    color: #ffffff;
    transform: translateY(-1px);
}
.skill-tag-frontier {
    border-color: rgba(245, 158, 11, 0.25);
    color: #f1f5f9;
}
.skill-frontier-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-gold);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
    display: inline-block;
}
.skill-proof-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* 统一分类筛选按钮 */
.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}
.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}
.filter-btn.active {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: var(--brand-gold) !important;
    color: var(--brand-gold-soft) !important;
    box-shadow: 0 0 16px var(--brand-glow);
}
.filter-count {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    margin-left: 0.25rem;
    color: var(--text-muted);
}
.filter-btn.active .filter-count {
    background: rgba(245, 158, 11, 0.25);
    color: var(--brand-gold-soft);
}

/* ===== 项目板块 (18 Projects Showcase) ===== */
.project-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .project-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.project-search-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
}
.project-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.55rem 2rem 0.55rem 2.25rem;
    font-size: 0.75rem;
    color: #ffffff;
    outline: none;
    transition: all var(--dur-fast) ease;
}
.project-search-input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 12px var(--brand-glow);
}
.project-search-input::placeholder {
    color: var(--text-muted);
}

.project-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    transition: all var(--dur-normal) var(--ease-out) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}
.project-card:hover {
    border-color: var(--border-hover) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 24px var(--brand-glow) !important;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}
.project-card:hover .card-img {
    transform: scale(1.05);
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 9, 13, 0.15) 0%, rgba(8, 9, 13, 0.78) 100%);
    pointer-events: none;
}
.card-flagship-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.card-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(8, 9, 13, 0.85);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}
.card-cat-badge.shifted {
    left: auto;
    right: 12px;
}
.card-metric-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    font-size: 0.66rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--brand-gold-soft);
    background: rgba(8, 9, 13, 0.9);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
}
.stack-layer-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}
.stack-layer-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}
.card-summary {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}
.card-tag {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    transition: all var(--dur-fast) ease;
}
.card-tag:hover {
    color: var(--brand-gold-soft);
    border-color: var(--brand-border);
    background: rgba(245, 158, 11, 0.08);
}

/* ===== 工作经历 & 时间线 (#experience) ===== */
.impact-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 3.5rem;
}
@media (min-width: 1024px) {
    .impact-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}
.impact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
}
.impact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 16px var(--brand-glow);
}
.impact-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.impact-value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--brand-gold-soft);
    line-height: 1.15;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
}
.impact-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-line {
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand-gold) 0%, rgba(245, 158, 11, 0.15) 85%, transparent 100%);
}
.timeline-dot {
    position: absolute;
    left: -48px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 3px solid var(--brand-gold);
    box-shadow: 0 0 10px var(--brand-glow);
}
.timeline-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    transition: all var(--dur-normal) var(--ease-out) !important;
}
.timeline-card:hover {
    border-color: rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-2px);
}
.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}
.timeline-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--brand-gold-soft);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.55rem;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
}
.timeline-chip:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--brand-gold);
    transform: translateY(-1px);
}

/* ===== 荣誉与奖项卡片 (#awards) ===== */
.award-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    transition: all var(--dur-normal) var(--ease-out);
    position: relative;
}
.award-badge:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.6), 0 0 18px var(--brand-glow);
}

/* ===== 统一联系行动按钮 ===== */
.contact-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    transition: all var(--dur-fast) ease;
}
.contact-action-btn:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--brand-border);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===== 模态框与弹窗系统 ===== */
#projectModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-normal) ease, visibility var(--dur-normal) ease;
}
#projectModal.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
#projectModal .modal-content {
    transform: scale(0.95);
    transition: transform var(--dur-normal) var(--ease-out);
}
#projectModal.active .modal-content {
    transform: scale(1);
}

#resumeModal,
#wechatModal,
#adminModal,
#easterEggModal {
    transition: opacity var(--dur-normal) ease, visibility var(--dur-normal) ease;
}

/* ===== A4 电子简历样式 ===== */
.resume-sheet {
    background: #ffffff;
    color: #1e293b;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-body);
}
.resume-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== 回到顶部按钮 ===== */
#backToTop {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    transition: all var(--dur-fast) ease;
}
#backToTop:hover {
    background: var(--brand-gold);
    color: var(--on-accent);
    border-color: var(--brand-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--brand-glow);
}

/* ===== 全局 Toast 提示 ===== */
#toastContainer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast-msg {
    background: rgba(16, 20, 32, 0.96);
    border: 1px solid var(--border-hover);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 16px var(--brand-glow);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Section 统一间距与标头 */
.section-wrap {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
    position: relative;
    border-top: 1px solid var(--border-subtle);
}
.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 42rem;
    line-height: 1.7;
}

/* ===== A4 专属高保真简历打印规则 ===== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    #mainNav, #backToTop, #hero, #value-loop, #about, #skills, #projects, #experience, #awards, footer, #toastContainer {
        display: none !important;
    }
    #resumeModal {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: none !important;
        padding: 0 !important;
    }
    #resumeModal > div {
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
    }
}
