/* ============================================================
   顾添益 · 个人作品集网站
   深色 / 工业蓝 · 极简高级 + 微交互
   配色呼应飞熊 WMS 设计系统（工业蓝 #4C8DFF）
   ============================================================ */

:root {
  --bg: #0B0E14;
  --bg-soft: #0E121B;
  --panel: #131722;
  --panel-2: #171C28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --txt: #E6E9F0;
  --txt-soft: #A9B0C0;
  --txt-dim: #6B7385;
  --primary: #4C8DFF;
  --primary-soft: rgba(76, 141, 255, 0.14);
  --primary-glow: rgba(76, 141, 255, 0.45);
  --accent: #38E1C4;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景柔光 */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 620px at 12% -5%, rgba(76, 141, 255, 0.16), transparent 60%),
    radial-gradient(680px 680px at 95% 8%, rgba(56, 225, 196, 0.08), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(76, 141, 255, 0.10), transparent 60%);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===================== 导航 ===================== */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
header.nav.scrolled {
  background: rgba(11, 14, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; letter-spacing: .5px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--txt-soft); }
.nav-links a { position: relative; transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--primary); border-radius: 2px; transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--txt); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(76,141,255,.9), rgba(76,141,255,0)); top: 6%; left: -6%; animation: drift1 18s var(--ease) infinite alternate; }
.blob.b2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(56,225,196,.55), rgba(56,225,196,0)); bottom: 4%; right: -4%; animation: drift2 22s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-90px, -50px) scale(1.15); } }

.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); padding: 7px 14px; border: 1px solid var(--primary-soft); border-radius: 999px; background: var(--primary-soft); margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(100deg, #fff 10%, var(--primary) 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .role { margin-top: 20px; font-size: clamp(17px, 2.2vw, 21px); color: var(--txt-soft); }
.hero .role b { color: var(--txt); font-weight: 600; }
.hero .lead { margin-top: 22px; font-size: 16.5px; color: var(--txt-dim); max-width: 640px; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #06101f; box-shadow: 0 8px 30px -8px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px var(--primary-glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--txt-soft); }
.btn-ghost:hover { color: var(--txt); border-color: var(--primary); transform: translateY(-3px); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 2px; color: var(--txt-dim); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 2px; background: var(--primary); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } }

/* ===================== 通用 section ===================== */
section { padding: 96px 0; position: relative; z-index: 1; }
.sec-head { margin-bottom: 48px; }
.sec-tag { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.sec-title { font-size: clamp(28px, 4vw, 40px); font-weight: 750; margin-top: 10px; letter-spacing: -.5px; }
.sec-sub { color: var(--txt-dim); margin-top: 12px; max-width: 620px; font-size: 15.5px; }

/* ===================== 关于 ===================== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: stretch; }
.about-card { background: linear-gradient(160deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.about-card p { color: var(--txt-soft); margin-bottom: 16px; font-size: 15.5px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card b { color: var(--txt); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; transition: transform .3s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-4px); border-color: var(--primary); }
.stat .num { font-size: 34px; font-weight: 800; background: linear-gradient(100deg, #fff, var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 13px; color: var(--txt-dim); margin-top: 4px; }

/* ===================== 核心能力 ===================== */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.cap::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .4s var(--ease); }
.cap:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.cap:hover::before { width: 100%; }
.cap .idx { font-size: 13px; color: var(--primary); font-weight: 700; font-family: "Inter", sans-serif; }
.cap p { color: var(--txt-soft); font-size: 14.5px; margin-top: 10px; }

/* ===================== 项目卡片 ===================== */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj { position: relative; background: linear-gradient(165deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.proj::after { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px; background: linear-gradient(120deg, transparent 30%, var(--primary-glow), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s; pointer-events: none; }
.proj:hover { transform: translateY(-8px); }
.proj:hover::after { opacity: 1; }
.proj .meta { font-size: 13px; color: var(--txt-dim); letter-spacing: .5px; }
.proj h3 { font-size: 21px; font-weight: 700; margin: 12px 0 14px; }
.proj p.desc { color: var(--txt-soft); font-size: 14.5px; flex: 1; }
.proj .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.proj .tags span { font-size: 12px; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.proj .more { display: inline-flex; align-items: center; gap: 6px; color: var(--txt); font-size: 14.5px; font-weight: 600; margin-top: auto; }
.proj .more .arrow { transition: transform .3s var(--ease); }
.proj:hover .more .arrow { transform: translateX(5px); }

/* ===================== 时间线（工作经历） ===================== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), transparent); }
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.tl-item .period { font-size: 13.5px; color: var(--primary); font-weight: 600; letter-spacing: .5px; }
.tl-item h3 { font-size: 19px; font-weight: 700; margin: 6px 0 4px; }
.tl-item .org { color: var(--txt-soft); font-size: 14.5px; margin-bottom: 12px; }
.tl-item ul { list-style: none; }
.tl-item ul li { position: relative; padding-left: 18px; color: var(--txt-soft); font-size: 14.5px; margin-bottom: 8px; }
.tl-item ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .7; }
.tl-item .note { color: var(--txt-dim); font-size: 13.5px; margin-top: 10px; font-style: italic; }

/* ===================== 其他项目 ===================== */
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.other-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.other-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 141, 255, .45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
.other-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 8px;
}
.other-card p {
  color: var(--txt-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.other-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.other-tags span {
  font-size: 12px;
  color: var(--primary);
  border: 1px solid rgba(76, 141, 255, .3);
  background: rgba(76, 141, 255, .08);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ===================== 教育 / 荣誉 ===================== */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edu-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.edu-card .period { color: var(--primary); font-size: 13.5px; font-weight: 600; }
.edu-card h3 { font-size: 18px; margin: 8px 0 4px; }
.edu-card .sub { color: var(--txt-soft); font-size: 14px; }
.honor-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.honor-tags span { font-size: 13px; color: var(--accent); border: 1px solid rgba(56,225,196,.3); background: rgba(56,225,196,.08); padding: 6px 12px; border-radius: 999px; }

/* ===================== 联系 / 页脚 ===================== */
.contact { text-align: center; }
.contact h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
.contact p { color: var(--txt-soft); margin: 16px auto 30px; max-width: 520px; }
.contact-box { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 14.5px; color: var(--txt-soft); transition: border-color .3s, color .3s, transform .3s; }
.chip:hover { border-color: var(--primary); color: var(--txt); transform: translateY(-3px); }
.chip .ic { color: var(--primary); }
footer { border-top: 1px solid var(--line); padding: 34px 0; text-align: center; color: var(--txt-dim); font-size: 13px; position: relative; z-index: 1; }

/* ===================== 项目详情页 ===================== */
.subhero { padding: 150px 0 50px; }
.subhero .back { display: inline-flex; align-items: center; gap: 6px; color: var(--txt-soft); font-size: 14px; margin-bottom: 22px; transition: color .25s, gap .25s; }
.subhero .back:hover { color: var(--primary); gap: 10px; }
.subhero .meta { font-size: 13.5px; color: var(--primary); letter-spacing: 1px; font-weight: 600; }
.subhero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; margin: 12px 0; letter-spacing: -.5px; }
.subhero .summary { color: var(--txt-soft); max-width: 760px; font-size: 16px; }
.proto-wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.btn-proto { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 14.5px; background: var(--primary); color: #06101f; cursor: pointer; transition: transform .25s var(--ease), box-shadow .3s; box-shadow: 0 8px 30px -8px var(--primary-glow); }
.btn-proto:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -8px var(--primary-glow); }
.btn-proto.disabled { background: var(--panel-2); color: var(--txt-dim); border: 1px dashed var(--line-strong); box-shadow: none; cursor: not-allowed; }
.proto-note { color: var(--txt-dim); font-size: 13.5px; }

/* ===================== 原型未上传对话框 ===================== */
.proto-multi .btn-proto { margin-bottom: 6px; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 10, 22, 0.74);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0;
  animation: modalFade .25s ease forwards;
}
.modal-overlay.out { animation: modalFadeOut .22s ease forwards; }
.modal-box {
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 34px 28px 26px;
  text-align: center;
  transform: translateY(14px);
  animation: modalPop .3s var(--ease) forwards;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.62);
}
.modal-icon {
  font-size: 36px; line-height: 1;
  color: var(--primary);
  margin-bottom: 14px;
  text-shadow: 0 0 24px var(--primary-glow);
}
.modal-text {
  color: var(--txt);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 26px;
}
.modal-actions {
  display: flex; gap: 12px; justify-content: center;
}
.modal-btn {
  flex: 1; max-width: 150px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.modal-close {
  background: transparent;
  color: var(--txt-soft);
  border: 1px solid var(--line-strong);
}
.modal-close:hover {
  transform: translateY(-2px);
  border-color: var(--txt-soft);
  color: var(--txt);
}
.modal-contact {
  background: var(--primary);
  color: #06101f;
  border: 1px solid var(--primary);
}
.modal-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px var(--primary-glow);
}
@keyframes modalFade { to { opacity: 1; } }
@keyframes modalFadeOut { to { opacity: 0; } }
@keyframes modalPop { to { transform: translateY(0); } }

.pblock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; margin-bottom: 22px; }
.pblock h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.pblock h2 .badge { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-soft); padding: 3px 10px; border-radius: 999px; letter-spacing: .5px; }
.pblock ul { list-style: none; }
.pblock ul li { position: relative; padding-left: 22px; color: var(--txt-soft); font-size: 15px; margin-bottom: 14px; }
.pblock ul li:last-child { margin-bottom: 0; }
.pblock ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); }
.pblock ul li b { color: var(--txt); font-weight: 600; }

/* ===================== 滚动渐显 ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .about-grid, .edu-grid, .other-grid { grid-template-columns: 1fr; }
  .cap-grid, .proj-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .cap-grid, .proj-grid, .stats { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .about-card, .pblock { padding: 24px; }
}
