/* ============================================================
   张吴轩越 · 作品集
   配色：纸白底 + 墨色字 + 橘红强调（与作品配色呼应）
   背景：柔和渐变光晕 + 极淡网格纹理，营造纸感与数字感的叠加
   ============================================================ */

:root {
  --paper:  #f4f1ea;
  --paper2: #fbf9f5;
  --ink:    #22262b;
  --ink2:   #5b6470;
  --line:   #ddd7ca;
  --accent: #e66a33;
  --accent-dark: #c4521f;
  --radius: 16px;
  --wrap: 1040px;

  /* 背景取作品里的五个颜色 */
  --c-orange: #e66a33;
  --c-blue:   #7fa8c2;
  --c-yellow: #f2c878;
  --c-cream:  #f7eed9;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 全局背景层：固定不动，随页面滚动透出来 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* 左上暖光 */
    radial-gradient(760px 520px at 8% -6%,  rgba(230, 106, 51, .13), transparent 62%),
    /* 右上冷光 */
    radial-gradient(680px 480px at 96% 4%,  rgba(127, 168, 194, .16), transparent 64%),
    /* 中部暖黄 */
    radial-gradient(620px 440px at 78% 46%, rgba(242, 200, 120, .12), transparent 66%),
    /* 底部柔光 */
    radial-gradient(820px 560px at 20% 104%, rgba(127, 168, 194, .10), transparent 68%),
    /* 极淡网格，呼应「代码 / 数字」气质 */
    repeating-linear-gradient(0deg,   rgba(34,38,43,.028) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg,  rgba(34,38,43,.028) 0 1px, transparent 1px 56px);
}

/* 内容压在背景层之上 */
.nav, .hero, .works, .about, .footer { position: relative; z-index: 1; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo { font-size: 17px; font-weight: 800; letter-spacing: .5px; }

.nav__logo span {
  font-size: 13px; font-weight: 500; color: var(--ink2);
  margin-left: 6px;
}

.nav__links { display: flex; gap: 26px; font-size: 14px; }

.nav__links a {
  color: var(--ink2);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav__links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- 首页 ---------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero__name {
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__tagline {
  font-size: clamp(16px, 2.2vw, 21px);
  color: var(--ink2);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero__tagline strong { color: var(--ink); font-weight: 700; }

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

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s, background .18s, color .18s, border-color .18s;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink2);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* 首页装饰：柔和光斑，与作品配色同源 */
.hero__deco {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}

.dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);   /* 柔化，避免生硬的色块 */
}

.dot--1 {
  width: 420px; height: 420px;
  background: var(--c-blue);
  opacity: .42;
  right: -110px; top: -130px;
}

.dot--2 {
  width: 260px; height: 260px;
  background: var(--c-orange);
  opacity: .30;
  right: 210px; bottom: -90px;
}

.dot--3 {
  width: 190px; height: 190px;
  background: var(--c-yellow);
  opacity: .46;
  right: 90px; top: 150px;
}

/* 细描边圆：给光斑加一点结构感 */
.dot::after {
  content: "";
  position: absolute; inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(34, 38, 43, .07);
  filter: none;
}

/* ---------------- 区块标题 ---------------- */
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-lead { color: var(--ink2); font-size: 15px; margin-bottom: 44px; }

/* ---------------- 作品区 ---------------- */
.works { padding: 88px 0; }

.work {
  /* 半透明 + 模糊：让背后的渐变光晕透出来，卡片更有层次 */
  background: rgba(251, 249, 245, .84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(221, 215, 202, .9);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(34, 38, 43, .05);
}

.work__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.work__no {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  padding-top: 6px;
  min-width: 26px;
}

.work__title { flex: 1 1 320px; }

.work__title h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.work__oneline { font-size: 15px; color: var(--ink2); }

.work__toggle {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent);
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s;
}

.work__toggle:hover { background: var(--accent); color: #fff; }
.work__toggle.is-on { background: var(--accent); color: #fff; }

/* 四行信息：标题 / 一句话 / 创作思路 / 技术 */
.work__meta {
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}

.work__row {
  display: flex;
  gap: 14px;
  padding: 7px 0;
  font-size: 14px;
}

.work__row dt {
  flex: 0 0 76px;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  padding-top: 1px;
}

.work__row dd { flex: 1; color: var(--ink2); line-height: 1.8; }

/* 作品内嵌舞台 */
.work__stage { margin-top: 18px; display: none; }

.work__stage.is-open { display: block; }

.work__note {
  font-size: 13px;
  color: var(--ink2);
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 9px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.work__frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #222;
  line-height: 0;
}

.work__frame iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

/* ---------------- 关于我 ---------------- */
.about {
  padding: 88px 0;
  /* 上下边缘柔和融入背景，不做生硬的色块分割 */
  background: linear-gradient(180deg,
    rgba(251, 249, 245, 0)    0%,
    rgba(251, 249, 245, .90) 10%,
    rgba(251, 249, 245, .90) 90%,
    rgba(251, 249, 245, 0)   100%);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.about__card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(34, 38, 43, .05);
}

.about__label {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.about__value { font-size: 16px; font-weight: 600; }
.about__value a { color: var(--ink); border-bottom: 1px solid var(--line); }
.about__value a:hover { color: var(--accent); border-color: var(--accent); }

.about__text {
  font-size: 15px;
  color: var(--ink2);
  max-width: 760px;
  line-height: 1.95;
}

/* ---------------- 页脚 ---------------- */
.footer { padding: 44px 0; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy { font-size: 13px; color: var(--ink2); }
.footer__mail { font-size: 13px; }
.footer__mail a { color: var(--accent); font-weight: 600; }

/* ---------------- 手机 ---------------- */
@media (max-width: 720px) {
  .nav__links { gap: 16px; font-size: 13px; }
  .nav__logo span { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding: 52px 24px; }
  .works, .about { padding: 56px 0; }
  .work { padding: 20px; }
  .work__toggle { width: 100%; text-align: center; }
  .work__row { flex-direction: column; gap: 2px; }
  .work__row dt { flex: none; }
  .work__frame iframe { height: 420px; }
  .dot--1 { width: 200px; height: 200px; right: -60px; }
  .dot--2 { width: 120px; height: 120px; right: 100px; }
  .dot--3 { display: none; }
}
