/* ============================================================
   张三的求职简历 - 主样式表 (v2 优化版)
   设计风格:现代简约 · 卡片化 · 浅/深主题 · Remix Icon 图标
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-soft: rgba(79, 70, 229, 0.10);
    --accent: #ec4899;
    --success: #10b981;
    --danger: #ef4444;

    --bg: #ffffff;
    --bg-alt: #f7f8fc;
    --bg-elevated: #ffffff;
    --bg-soft: #f1f3f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --border: #e6e8ef;
    --border-strong: #d4d8e2;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
    --shadow-primary: 0 12px 28px rgba(79, 70, 229, 0.30);

    --grad-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --grad-accent: linear-gradient(135deg, #ec4899, #f97316);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 28px;
    --container: 1160px;
    --nav-h: 70px;

    --t-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --t: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --primary-soft: rgba(129, 140, 248, 0.14);
    --accent: #f472b6;

    --bg: #0b1120;
    --bg-alt: #0f172a;
    --bg-elevated: #161f36;
    --bg-soft: #1a2340;
    --text: #e8edf6;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --border: #243049;
    --border-strong: #334155;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-primary: 0 12px 28px rgba(99, 102, 241, 0.35);

    --grad-hero: linear-gradient(135deg, #312e81 0%, #4c1d95 100%);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background var(--t), color var(--t);
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Remix Icon 基础样式 ---------- */
i[class^="ri-"], i[class*=" ri-"] {
    display: inline-block;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
}

/* ---------- 3. 滚动进度条 ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--grad-primary);
    z-index: 1100; transition: width 0.1s linear;
}

/* ---------- 4. 布局工具 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-num {
    display: inline-block; font-size: 13px; font-weight: 800;
    color: var(--primary); letter-spacing: 3px; margin-bottom: 10px;
    padding: 5px 14px; background: var(--primary-soft); border-radius: 999px;
}
.section-title { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.section-subtitle { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* ---------- 5. 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 600;
    transition: all var(--t-fast);
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn i[class^="ri-"] { font-size: 18px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-primary); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--bg-elevated); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); }
.btn-block { width: 100%; }

/* ---------- 6. 导航栏 ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    z-index: 1000; transition: all var(--t);
}
.navbar.scrolled {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom-color: var(--border); box-shadow: var(--shadow-xs);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--text); font-size: 18px; }
.logo-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--grad-primary); color: #fff;
    border-radius: 11px; font-size: 13px; font-weight: 800;
    box-shadow: var(--shadow-primary); transition: transform var(--t);
}
.logo-mark.sm { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.nav-logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.nav-menu { display: flex; gap: 4px; }
.nav-link {
    color: var(--text-muted); font-size: 15px; font-weight: 500;
    padding: 9px 15px; border-radius: var(--radius-sm); transition: all var(--t-fast);
    position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.nav-link.active { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
    width: 42px; height: 42px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--bg-soft); color: var(--text);
    border: 1px solid var(--border); transition: all var(--t-fast);
}
.theme-toggle i[class^="ri-"] { font-size: 20px; }
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); transform: rotate(-12deg); }
.theme-toggle .ri-moon-line { display: none; }
[data-theme="dark"] .theme-toggle .ri-sun-line { display: none; }
[data-theme="dark"] .theme-toggle .ri-moon-line { display: inline-block; }

.nav-cta { display: inline-flex; }

.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); }
.menu-toggle i[class^="ri-"] { font-size: 20px; }
.menu-toggle .ri-close-line { display: none; }
.menu-toggle.active .ri-menu-line { display: none; }
.menu-toggle.active .ri-close-line { display: inline-block; }

/* ---------- 7. Hero 区域 ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden;
    background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 14s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, #818cf8, transparent 70%); top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, #f472b6, transparent 70%); bottom: -120px; right: -80px; animation-delay: -4s; }
.blob-3 { width: 360px; height: 360px; background: radial-gradient(circle, #22d3ee, transparent 70%); top: 40%; right: 30%; animation-delay: -8s; opacity: 0.35; }
[data-theme="dark"] .blob { opacity: 0.35; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-30px) scale(1.06); } 66% { transform: translate(-20px,20px) scale(0.96); } }

.hero-container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }

.hero-left { max-width: 600px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    box-shadow: var(--shadow-xs); margin-bottom: 24px;
}
.hero-badge i[class^="ri-"] { font-size: 14px; color: var(--success); }

.hero-name { font-size: 60px; font-weight: 900; line-height: 1.08; letter-spacing: -2px; margin-bottom: 12px; }
.name-accent {
    background: var(--grad-primary); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title { font-size: 22px; font-weight: 600; color: var(--text-muted); margin-bottom: 22px; }
.hero-summary { color: var(--text-muted); font-size: 16.5px; max-width: 540px; margin-bottom: 26px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 34px; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.meta-item i[class^="ri-"] { font-size: 16px; color: var(--primary); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-right { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero-avatar { position: relative; width: 200px; height: 200px; }
.hero-avatar img {
    width: 200px; height: 200px; border-radius: 50%;
    border: 5px solid var(--bg-elevated); box-shadow: var(--shadow-lg);
    background: var(--bg-soft);
}
.hero-avatar::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    background: conic-gradient(from 0deg, #818cf8, #f472b6, #22d3ee, #818cf8);
    z-index: -1; animation: spin 8s linear infinite; opacity: 0.6; filter: blur(2px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-badge {
    position: absolute; bottom: 10px; right: 10px;
    background: var(--success); color: #fff;
    font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
    border: 3px solid var(--bg); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    display: inline-flex; align-items: center; gap: 6px;
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }

.hero-stats {
    display: flex; align-items: center; gap: 20px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 30px; box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num { display: inline-block; font-size: 30px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-plus { font-size: 20px; font-weight: 800; color: var(--primary); }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }
.stat-divider { width: 1px; height: 38px; background: var(--border); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; color: var(--text-muted);
    background: var(--bg-elevated); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); animation: bounce 2s infinite;
}
.scroll-hint i[class^="ri-"] { font-size: 20px; }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- 8. 关于我 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.about-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 26px; text-align: left;
    transition: all var(--t); box-shadow: var(--shadow-xs); position: relative; overflow: hidden;
}
.about-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-primary); transform: scaleX(0); transform-origin: left;
    transition: transform var(--t);
}
.about-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.about-card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
    display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary);
    transition: all var(--t);
}
.card-icon i[class^="ri-"] { font-size: 24px; }
.about-card:hover .card-icon { background: var(--grad-primary); color: #fff; transform: rotate(-6deg); }
.about-card h3 { font-size: 18px; margin-bottom: 10px; }
.about-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ---------- 9. 时间线 ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--primary-light), var(--border)); }
.timeline-item { position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -44px; top: 4px;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bg-elevated); border: 2px solid var(--primary);
    display: grid; place-items: center; color: var(--primary);
    box-shadow: 0 0 0 5px var(--bg), var(--shadow-sm);
    transition: all var(--t);
}
.timeline-dot i[class^="ri-"] { font-size: 20px; }
.timeline-item:hover .timeline-dot { background: var(--grad-primary); color: #fff; transform: scale(1.08); }
.timeline-content {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow-sm);
    transition: all var(--t);
}
.timeline-content:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: var(--primary-light); }
.timeline-date { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; }
.timeline-date i[class^="ri-"] { font-size: 14px; }
.timeline-title { font-size: 19px; font-weight: 700; margin-bottom: 5px; }
.timeline-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px; }
.timeline-subtitle i[class^="ri-"] { font-size: 14px; }
.timeline-list { display: flex; flex-direction: column; gap: 10px; }
.timeline-list li { padding-left: 28px; position: relative; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.timeline-list li i[class^="ri-"] { position: absolute; left: 0; top: 4px; font-size: 16px; color: var(--success); }

/* ---------- 10. 技能 ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.skill-category {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-xs);
    transition: all var(--t);
}
.skill-category:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.skill-cat-head { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.skill-cat-head i[class^="ri-"] { font-size: 20px; color: var(--primary); }
.skill-cat-title { font-size: 17px; }

.skill-bar { margin-bottom: 20px; }
.skill-bar:last-child { margin-bottom: 0; }
.skill-info { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.skill-info span:last-child { color: var(--primary); }
.skill-track { height: 9px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; background: var(--grad-primary); border-radius: 999px; transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1); position: relative; }
.skill-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: shine 2.5s infinite; }
@keyframes shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    padding: 8px 17px; background: var(--primary-soft); color: var(--primary);
    font-size: 14px; font-weight: 500; border-radius: 999px;
    transition: all var(--t-fast); border: 1px solid transparent; cursor: default;
}
.tag:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- 11. 项目经验 ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs);
    transition: all var(--t); display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-cover {
    height: 170px; background: linear-gradient(135deg, var(--c1, #667eea), var(--c2, #764ba2));
    display: grid; place-items: center; position: relative; overflow: hidden;
}
.project-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.3), transparent 60%); }
.project-cover i[class^="ri-"] { font-size: 48px; color: rgba(255,255,255,0.95); filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2)); position: relative; z-index: 1; transition: transform var(--t); }
.project-card:hover .project-cover i[class^="ri-"] { transform: scale(1.1) rotate(-6deg); }
.project-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.project-desc { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-sm { font-size: 12.5px; padding: 4px 11px; background: var(--bg-soft); color: var(--text-muted); border-radius: 6px; font-weight: 500; }
.project-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.project-link i[class^="ri-"] { font-size: 16px; transition: transform var(--t-fast); }
.project-link:hover i[class^="ri-"] { transform: translateX(3px); }

/* ---------- 12. 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-heading { font-size: 26px; margin-bottom: 14px; }
.contact-text { color: var(--text-muted); margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-ico {
    width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary); border-radius: 13px;
    transition: all var(--t);
}
.contact-ico i[class^="ri-"] { font-size: 22px; }
.contact-list li:hover .contact-ico { background: var(--grad-primary); color: #fff; transform: scale(1.06); }
.contact-list strong { display: block; font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--text); font-size: 15.5px; font-weight: 500; }

.contact-social { display: flex; gap: 12px; }
.social-btn {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted);
    transition: all var(--t);
}
.social-btn i[class^="ri-"] { font-size: 20px; }
.social-btn:hover { background: var(--grad-primary); color: #fff; transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-primary); }

.contact-form {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--danger); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap i[class^="ri-"] { position: absolute; left: 14px; font-size: 18px; color: var(--text-faint); pointer-events: none; transition: color var(--t-fast); }
.input-wrap.textarea { align-items: flex-start; }
.input-wrap.textarea i[class^="ri-"] { top: 14px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 13px 14px 13px 44px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit;
    transition: all var(--t-fast); resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.input-wrap:focus-within i[class^="ri-"] { color: var(--primary); }
.form-group input.invalid, .form-group textarea.invalid { border-color: var(--danger); }
.form-error { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; min-height: 16px; }
.form-success {
    margin-top: 16px; padding: 14px; background: rgba(16,185,129,0.12); color: #059669;
    border-radius: var(--radius-sm); text-align: center; font-weight: 600;
    border: 1px solid rgba(16,185,129,0.3); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-success i[class^="ri-"] { font-size: 18px; }

/* ---------- 13. 页脚 ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0 28px; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); font-size: 17px; }
.footer-text { color: var(--text-muted); font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.back-to-top { color: var(--text-muted); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: color var(--t-fast); }
.back-to-top i[class^="ri-"] { font-size: 16px; }
.back-to-top:hover { color: var(--primary); }
.footer-copy { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- 14. 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 980px) {
    .hero-container { grid-template-columns: 1fr; gap: 44px; }
    .hero-left { max-width: 100%; text-align: center; margin: 0 auto; }
    .hero-badge, .hero-meta, .hero-actions { justify-content: center; }
    .hero-summary { margin-left: auto; margin-right: auto; }
    .hero-right { flex-direction: row; justify-content: center; gap: 40px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-name { font-size: 50px; }
    .section-title { font-size: 34px; }
}

@media (max-width: 768px) {
    .section { padding: 76px 0; }
    .section-header { margin-bottom: 48px; }
    .nav-cta { display: none; }
    .nav-menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; background: var(--bg-elevated); padding: 16px;
        gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        transform: translateY(-150%); transition: transform var(--t);
        max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-link { display: block; padding: 13px 16px; }
    .menu-toggle { display: grid; }
    .skills-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-name { font-size: 40px; }
    .hero-title { font-size: 18px; }
    .hero-right { flex-direction: column; }
    .container { padding: 0 18px; }
    .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero-name { font-size: 34px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    .timeline { padding-left: 32px; }
    .timeline-dot { left: -32px; width: 34px; height: 34px; }
    .timeline-dot i[class^="ri-"] { font-size: 16px; }
    .hero-stats { padding: 18px 20px; gap: 14px; }
    .stat-num { font-size: 24px; }
    .footer-container { justify-content: center; text-align: center; }
}

/* ---------- 16. 减少动画(可访问性) ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .blob, .hero-avatar::before, .scroll-hint { animation: none; }
}

/* ---------- 17. 打印样式 ---------- */
@media print {
    .navbar, .scroll-hint, .hero-actions, .theme-toggle, .menu-toggle, .back-to-top, .contact-form, .nav-cta, .scroll-progress, .hero-bg, .footer-social { display: none !important; }
    .hero { min-height: auto; padding: 20px 0; background: none; }
    .section { padding: 24px 0; page-break-inside: avoid; }
    .reveal { opacity: 1 !important; transform: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .project-card, .timeline-content, .about-card, .skill-category { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
