/* ============================================================
   淼淼 · 作品集 —— 暖纸 × 手作墨迹（Warm Paper & Ink）
   明亮、手工质感、去 AI 模板感
   ============================================================ */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* —— 明亮暖纸配色 —— */
    --paper:        #faf6ec;   /* 主背景：暖米白纸 */
    --paper-deep:   #f2ead8;   /* 次级背景：略深奶油 */
    --card:         #fffdf7;   /* 卡片：近白暖色 */
    --card-hover:   #fffef9;

    --ink:          #2c2a25;   /* 主文字：暖墨（非纯黑） */
    --ink-soft:     #57534a;   /* 次要文字 */
    --ink-muted:    #8a8172;   /* 弱化文字 */

    --accent:       #d0522e;   /* 主色：去饱和赭红（印章红） */
    --accent-deep:  #b23f1f;
    --accent-soft:  rgba(208, 82, 46, 0.10);
    --accent-line:  rgba(208, 82, 46, 0.22);

    --ochre:        #c99a3c;   /* 辅助点缀：赭黄（仅用于涂鸦/高亮） */
    --marker:       rgba(233, 196, 92, 0.55); /* 马克笔高亮 */

    --border:       #e6dcc5;
    --border-deep:  #d8ccb0;
    --shadow-ink:   rgba(75, 60, 40, 0.14);

    --serif: 'Fraunces', 'Noto Serif SC', Georgia, serif;
    --sans:  'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:  'JetBrains Mono', 'Courier New', monospace;
    --hand-zh: 'Ma Shan Zheng', var(--serif);
    --hand-en: 'Caveat', cursive;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* 纸张微纹理：极淡的斜向织理 */
    background-image:
        radial-gradient(circle at 15% 20%, rgba(201, 154, 60, 0.04) 0, transparent 38%),
        radial-gradient(circle at 85% 75%, rgba(208, 82, 46, 0.04) 0, transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

/* 纸纹颗粒（SVG feTurbulence 内联） */
.paper-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
    z-index: 0;
}

/* 手写体工具类 */
.hand-zh { font-family: var(--hand-zh); font-weight: 400; }
.hand-en { font-family: var(--hand-en); font-weight: 700; }

/* 马克笔高亮 */
mark {
    background: linear-gradient(120deg, transparent 2%, var(--marker) 2%, var(--marker) 96%, transparent 98%);
    color: var(--ink);
    padding: 0 2px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ===== 顶部滚动进度条 ===== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--ochre));
    z-index: 200;
    transition: width 0.1s linear;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 246, 236, 0.78);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid transparent;
    padding: 16px 0;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(250, 246, 236, 0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(75, 60, 40, 0.06);
    padding: 11px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 900;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: var(--ink) !important;
    color: var(--paper) !important;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600 !important;
    transition: transform 0.2s, background 0.25s !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { background: var(--accent) !important; transform: translateY(-2px) rotate(-1.5deg); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
    background: transparent;
    border: 1.5px solid var(--border-deep);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.25s;
}
.lang-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.lang-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    width: 24px; height: 2.5px;
    background: var(--ink); border-radius: 2px; transition: 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== 英雄区 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 75% 30%, rgba(233, 196, 92, 0.12), transparent 70%),
        radial-gradient(ellipse 70% 60% at 20% 80%, rgba(208, 82, 46, 0.07), transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;   /* 非对称：左宽右窄 */
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-hello {
    font-family: var(--hand-en);
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 4px;
    transform: rotate(-2deg);
    transform-origin: left;
}

.hero-name { position: relative; margin-bottom: 14px; }
.hero-name-zh {
    display: block;
    font-family: var(--serif);
    font-size: clamp(56px, 8vw, 88px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.02;
    letter-spacing: 2px;
}
.hero-name-en {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 4px;
    margin-top: 6px;
}
.hand-underline {
    position: absolute;
    left: 0; bottom: -14px;
    width: min(300px, 60%); height: 22px;
    color: var(--accent);
    overflow: visible;
}
.hand-underline.sm { position: static; display: inline-block; width: 150px; height: 16px; vertical-align: middle; margin-left: 6px; }
.draw-path {
    stroke-dasharray: 640;
    stroke-dashoffset: 640;
    transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.3,1);
}
.draw-path.drawn { stroke-dashoffset: 0; }

.hero-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0 18px;
    flex-wrap: wrap;
    font-size: 20px;
}
.hero-title-static { color: var(--ink-soft); }
.hero-title-roles {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px dashed var(--accent-line);
    padding-bottom: 1px;
}
.hero-title-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }

.hero-desc {
    font-size: 16px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 30px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s, background 0.25s, color 0.25s;
    will-change: transform;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 0 var(--accent-deep);
}
.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 9px 0 #8f3016;
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-deep); }
.btn-ghost {
    border: 2px solid var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px) rotate(1deg); }

.doodle-arrow {
    width: 56px; height: 38px;
    color: var(--ochre);
    transform: rotate(6deg);
    margin-left: -4px;
}
.hero-nudge {
    font-size: 20px;
    color: var(--ink-muted);
    margin-top: 12px;
    margin-left: 8px;
    transform: rotate(-2deg);
    transform-origin: left;
}

/* —— Hero 右侧拼贴 —— */
.hero-collage {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaroid {
    background: #fff;
    padding: 14px 14px 18px;
    border-radius: 4px;
    box-shadow: 0 18px 40px var(--shadow-ink), 0 2px 6px rgba(0,0,0,0.05);
    transform: rotate(-4deg);
    position: relative;
    width: 260px;
    z-index: 2;
}
.washi-tape {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    width: 110px; height: 30px;
    background: repeating-linear-gradient(45deg, rgba(233,196,92,.55), rgba(233,196,92,.55) 7px, rgba(208,82,46,.35) 7px, rgba(208,82,46,.35) 14px);
    opacity: 0.85;
    border-radius: 1px;
}
.polaroid-photo {
    aspect-ratio: 1 / 1;
    border-radius: 3px;
    background:
        radial-gradient(circle at 50% 42%, rgba(233,196,92,.35), transparent 60%),
        linear-gradient(140deg, #f6ede0, #efe3cf);
    background-color: #f5ecdd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.polaroid-monogram {
    font-family: var(--serif);
    font-size: 100px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(208,82,46,.15);
}
.polaroid-dots { display: flex; gap: 8px; }
.polaroid-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); opacity: .5; }
.polaroid-caption {
    text-align: center;
    font-size: 22px;
    color: var(--ink-soft);
    margin-top: 12px;
}

.sticky-note {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 18px var(--shadow-ink);
    z-index: 3;
}
.note-open {
    background: #fff6d6;
    color: var(--ink);
    top: 6px; right: -6px;
    transform: rotate(5deg);
    border-radius: 2px;
}
.note-open .tag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #3ba35a;
    box-shadow: 0 0 0 4px rgba(59,163,90,.18);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.note-count {
    background: var(--accent);
    color: #fff;
    bottom: 20px; left: -18px;
    transform: rotate(-6deg);
    border-radius: 3px;
    flex-direction: column;
    gap: 0;
    padding: 12px 18px;
    text-align: center;
    line-height: 1.1;
}
.note-count strong { font-family: var(--serif); font-size: 34px; font-weight: 900; }
.note-count span { font-size: 12px; opacity: .95; }

.doodle-star { position: absolute; color: var(--ochre); }
.star-1 { width: 30px; height: 30px; top: 0; left: 10%; transform: rotate(-10deg); }
.star-2 { width: 22px; height: 22px; bottom: 8px; right: 6%; }
.doodle-scribble {
    position: absolute;
    width: 130px; height: 130px;
    color: var(--accent-line);
    top: -8px; right: 2%;
    z-index: 1;
    opacity: .6;
}

/* ===== Now 状态条 ===== */
.now-strip {
    background: var(--ink);
    color: var(--paper);
    padding: 16px 0;
    position: relative;
    z-index: 1;
}
.now-container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.now-label {
    font-size: 26px;
    color: var(--ochre);
    line-height: 1;
    flex-shrink: 0;
}
.now-text { font-size: 15px; color: #e9e2d4; }

/* ===== 区块标题 ===== */
.section-header { margin-bottom: 52px; }
.section-number {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 3px;
    padding: 3px 10px;
    border: 1.5px solid var(--accent-line);
    border-radius: 999px;
}
.section-header h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: 0.5px;
    line-height: 1.15;
}
.section-header h2 .hand-underline.sm { color: var(--accent); }
.section-sub {
    margin-top: 14px;
    font-size: 16px;
    color: var(--ink-muted);
    max-width: 560px;
}

/* ===== 项目展示 ===== */
.projects { padding: 100px 0; position: relative; }

.project-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 var(--border-deep);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
    transform: rotate(-0.6deg);
    max-width: 860px;
}
.project-card.offset-right { transform: rotate(0.8deg); margin-left: auto; }
.project-card:hover {
    transform: rotate(0deg) translateY(-4px);
    border-color: var(--border-deep);
    box-shadow: 0 16px 40px var(--shadow-ink);
}
/* 聚光边框（跟随鼠标） */
.spotlight::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 18px;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(233,196,92,.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

.project-index {
    position: absolute;
    top: 18px; right: 26px;
    font-family: var(--serif);
    font-size: 84px;
    font-weight: 900;
    color: var(--accent-soft);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}
.project-card > * { position: relative; z-index: 1; }

.project-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.project-icon {
    font-size: 30px;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: var(--paper-deep);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transform: rotate(-4deg);
}
.project-meta { display: flex; gap: 8px; align-items: center; }
.project-type {
    font-size: 12px;
    color: var(--ink-soft);
    padding: 4px 12px;
    background: var(--paper-deep);
    border-radius: 999px;
}
.project-status {
    font-size: 12px;
    font-weight: 600;
    color: #2f8a4d;
    padding: 4px 12px;
    background: rgba(59,163,90,.12);
    border: 1px solid rgba(59,163,90,.25);
    border-radius: 999px;
}
.project-name {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 14px;
}
.project-name span {
    font-family: var(--serif);
    font-style: italic;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-left: 8px;
}
.project-desc {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.9;
    margin-bottom: 20px;
    max-width: 680px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.project-tags span {
    font-family: var(--mono);
    font-size: 12px;
    padding: 4px 11px;
    background: var(--paper);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    color: var(--ink-soft);
    transition: all 0.2s;
}
.project-tags span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.project-links { display: flex; gap: 16px; }
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 9px 18px;
    border: 2px solid var(--accent);
    border-radius: 999px;
    transition: all 0.25s;
}
.project-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ===== 工具箱 ===== */
.toolkit { padding: 100px 0; background: var(--paper-deep); position: relative; }

/* 跑马灯 */
.marquee {
    overflow: hidden;
    padding: 22px 0;
    margin: 8px 0 56px;
    border-top: 2px dashed var(--border-deep);
    border-bottom: 2px dashed var(--border-deep);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
    animation: marquee 26s linear infinite;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--ink);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:not(.m-dot):hover { color: var(--accent); }
.m-dot { color: var(--ochre); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.exp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.exp-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 3px 0 var(--border-deep);
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
    grid-column: span 3;
    position: relative;
}
.exp-card:hover { transform: translateY(-5px) rotate(-0.8deg); box-shadow: 0 14px 32px var(--shadow-ink); border-color: var(--border-deep); }
.exp-card-main {
    grid-column: span 6;
    background: linear-gradient(135deg, var(--card), rgba(233,196,92,.10));
    border-color: var(--accent-line);
}
.exp-card-wide { grid-column: span 6; }
.exp-icon {
    font-size: 26px;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    background: var(--paper-deep);
    border-radius: 12px;
    margin-bottom: 14px;
    transform: rotate(-3deg);
}
.exp-card h3 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}
.exp-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
.marker-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 22px;
    color: var(--accent);
    transform: rotate(-3deg);
}

/* ===== 关于我 ===== */
.about { padding: 100px 0; position: relative; }
.about-container { max-width: 760px; }
.about-lead {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
}
.about-content p {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 18px;
    line-height: 1.95;
}
.signature {
    font-family: var(--hand-zh);
    font-size: 34px;
    color: var(--accent);
    margin-top: 8px;
    transform: rotate(-2deg);
    transform-origin: left;
}

.facts {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 44px;
}
.facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 14px;
    color: var(--ink-soft);
    box-shadow: 0 3px 0 var(--border-deep);
    transition: transform 0.25s, box-shadow 0.25s;
}
.facts li:nth-child(odd) { transform: rotate(-1deg); }
.facts li:nth-child(even) { transform: rotate(1deg); }
.facts li:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 0 12px 26px var(--shadow-ink); }
.fact-emoji { font-size: 24px; }

/* ===== 联系方式 ===== */
.contact {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(208,82,46,.10), transparent 70%),
        var(--paper-deep);
}
.contact-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; }
.contact-inner .section-number { margin: 0 auto 16px; }
.contact-title {
    font-family: var(--serif);
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.1;
}
.contact-desc {
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto 36px;
    font-size: 16px;
}
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 0 var(--ink);
    transition: transform 0.2s, box-shadow 0.2s, background 0.25s, color 0.25s;
}
.contact-item:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--accent-deep);
}
.contact-item:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-deep); }
.contact-icon { font-size: 18px; }
.contact-hand {
    font-size: 26px;
    color: var(--accent);
    margin-top: 32px;
    transform: rotate(-2deg);
    display: inline-block;
}

/* ===== 页脚 ===== */
.footer { padding: 34px 0; border-top: 1.5px dashed var(--border-deep); background: var(--paper); }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer p { font-size: 13px; color: var(--ink-muted); }
.footer-note { font-family: var(--hand-en); font-size: 20px !important; color: var(--accent) !important; }

/* ===== 滚动揭示动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .exp-card, .exp-card-main, .exp-card-wide { grid-column: span 6; }
    .exp-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(250, 246, 236, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px 28px;
        border-bottom: 1px solid var(--border);
        gap: 18px;
        box-shadow: 0 12px 30px var(--shadow-ink);
    }

    .hero { padding: 110px 0 40px; }
    .hero-container { grid-template-columns: 1fr; gap: 60px; }
    .hero-collage { order: -1; height: 340px; transform: scale(.92); }
    .hand-underline { width: 240px; }

    .project-card, .project-card.offset-right { transform: rotate(0deg); padding: 28px; }
    .project-index { font-size: 60px; top: 14px; right: 18px; }

    .facts { grid-template-columns: 1fr; }
    .footer-container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-name-zh { font-size: 48px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .doodle-arrow, .hero-nudge { display: none; }
    .marquee-track { font-size: 24px; }
    .polaroid { width: 220px; }
    .polaroid-monogram { font-size: 80px; }
}

/* ===== 尊重减弱动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .draw-path { stroke-dashoffset: 0; }
    .marquee-track { animation: none; }
}
