/* ========== Lumina 薰衣草设计系统（源自 DESIGN.md） ========== */
:root {
  --surface: #FAF9FE;
  --surface-low: #faf0ff;
  --surface-container: #f5eaff;
  --surface-high: #f1e3ff;
  --surface-highest: #ecdcff;
  --surface-lowest: #ffffff;
  --on-surface: #1F1135;
  --on-surface-variant: #4a454f;
  --primary: #7C5D9F;
  --primary-deep: #634585;
  --on-primary: #ffffff;
  --primary-fixed: #efdbff;
  --secondary: #F472B6;
  --outline: #cdc3d0;
  --outline-strong: #7c7580;
  --shadow-ambient: 0px 20px 40px rgba(31, 17, 53, 0.05);
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --font-display: 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Hanken Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航：玻璃拟态浮动条 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 254, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--secondary); }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-deep); }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--on-surface);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-body);
}
.lang-btn:hover { background: var(--surface-highest); }

@media (min-width: 768px) {
  .nav-inner { padding: 16px 64px; }
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 64px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 480px;
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(219, 184, 255, 0.45), transparent 70%),
    radial-gradient(ellipse 45% 55% at 80% 30%, rgba(252, 121, 189, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(239, 219, 255, 0.5), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-fixed);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--on-surface-variant);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s cubic-bezier(.2,0,0,1);
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 93, 159, .3); }
.btn-ghost { background: transparent; color: var(--on-surface); border-color: var(--outline-strong); }
.btn-ghost:hover { border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); }

@media (min-width: 768px) {
  .hero { padding: 130px 64px 90px; }
  .hero h1 { font-size: 60px; }
  .hero p { font-size: 20px; }
}

/* ---------- 统计条 ---------- */
.stats {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 22px 12px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--primary-deep);
}
.stat span { font-size: 13px; color: var(--on-surface-variant); }
@media (min-width: 768px) {
  .stats { padding: 0 64px; gap: 24px; }
  .stat { padding: 30px 16px; }
  .stat b { font-size: 36px; }
}

/* ---------- 主体容器 ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { main { padding: 0 64px; } }

.section { margin-top: 64px; }
@media (min-width: 768px) { .section { margin-top: 110px; } }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--on-surface-variant); margin-top: 8px; }
@media (min-width: 768px) { .section-head h2 { font-size: 40px; } }

/* ---------- 筛选 chips ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.chip {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-lowest);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 作品网格 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 32px;
}
@media (min-width: 768px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,0,0,1), box-shadow .4s cubic-bezier(.2,0,0,1);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-ambient); }

.card-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,0,0,1);
  display: block;
}
.card:hover .card-cover img { transform: scale(1.06); }

/* 无图时的渐变占位 */
.cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  transition: transform .7s cubic-bezier(.2,0,0,1);
}
.card:hover .cover-ph { transform: scale(1.06); }
.ph-0 { background: linear-gradient(135deg, #7C5D9F, #dbb8ff); }
.ph-1 { background: linear-gradient(135deg, #a43073, #fc79bd); }
.ph-2 { background: linear-gradient(135deg, #4b5366, #bfc6dd); }
.ph-3 { background: linear-gradient(135deg, #634585, #F472B6); }

.type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(250, 249, 254, 0.8);
  backdrop-filter: blur(20px);
  color: var(--primary-deep);
  border: 1px solid rgba(205, 195, 208, .6);
}

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-desc {
  color: var(--on-surface-variant);
  font-size: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--primary-deep);
}
.card-btn {
  margin-top: 18px;
  width: 100%;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.card-btn:hover { background: var(--primary); color: #fff; }
.card-btn.disabled { border-color: var(--outline); color: var(--outline-strong); cursor: default; }
.card-btn.disabled:hover { background: transparent; color: var(--outline-strong); }

.empty-tip {
  text-align: center;
  color: var(--on-surface-variant);
  padding: 60px 0;
  grid-column: 1 / -1;
}

/* ---------- 关于区块 ---------- */
.about {
  background: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 768px) { .about { grid-template-columns: 1.2fr 1fr; padding: 64px; } }
.about h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
}
@media (min-width: 768px) { .about h2 { font-size: 34px; } }
.about p { color: var(--on-surface-variant); }
.about-visual {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(252,121,189,.5), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(124,93,159,.55), transparent 65%),
    linear-gradient(135deg, #efdbff, #f5eaff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--primary-deep);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: 100px;
  border-top: 1px solid var(--outline);
  padding: 56px 20px 40px;
  background: var(--surface-low);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  footer { padding: 64px; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--on-surface); }
.footer-slogan { color: var(--on-surface-variant); font-size: 14px; margin-top: 6px; max-width: 300px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--outline);
  text-underline-offset: 4px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 12px; color: var(--on-surface-variant); opacity: .75; line-height: 1.8; }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all .8s cubic-bezier(.2,0,0,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 语言切换 ---------- */
html[lang="en"] .lang-zh { display: none !important; }
html[lang="zh-CN"] .lang-en { display: none !important; }
