:root {
  --bg: #fbf7f0;
  --bg-soft: #ffffff;
  --ink: #2b2b2b;
  --ink-soft: #6b6b6b;
  --mint: #17c3b2;
  --mint-deep: #0ea898;
  --coral: #ff6b6b;
  --coral-deep: #f25656;
  --sky: #4cc9f0;
  --sky-deep: #2fb6e0;
  --sun: #ffd166;
  --lavender: #b39ddb;
  --line: #ece4d8;
  --radius: 22px;
  --shadow: 0 18px 50px -18px rgba(60, 50, 30, 0.28);
  --shadow-sm: 0 8px 24px -12px rgba(60, 50, 30, 0.25);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -18px rgba(60, 50, 30, 0.4);
}

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  color: #fff; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand-text { font-size: 17px; letter-spacing: .5px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--mint);
  border-radius: 2px; transition: width .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ===== 首屏 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .5; z-index: 0;
}
.blob-a { width: 340px; height: 340px; background: var(--mint); top: 8%; left: 6%; }
.blob-b { width: 300px; height: 300px; background: var(--sun); top: 22%; right: 8%; }
.blob-c { width: 260px; height: 260px; background: var(--coral); bottom: 10%; left: 28%; opacity: .35; }

.hero > * { position: relative; z-index: 1; }
.hero-hello { font-size: 18px; color: var(--ink-soft); margin-bottom: 6px; }
.hero-name {
  font-size: clamp(46px, 9vw, 92px);
  font-weight: 800; letter-spacing: 4px; line-height: 1.1;
  background: linear-gradient(120deg, var(--mint-deep), var(--sky-deep) 55%, var(--coral));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 14px;
}
.hero-tagline {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600; color: var(--ink);
  margin-bottom: 14px;
}
.hero-desc { font-size: 16px; color: var(--ink-soft); max-width: 460px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--mint), var(--sky));
  color: #fff; box-shadow: 0 12px 26px -10px rgba(23, 195, 178, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(23, 195, 178, .7); }
.btn-ghost {
  border: 2px solid var(--line); color: var(--ink);
  background: rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--mint); color: var(--mint-deep); transform: translateY(-2px); }

/* ===== 通用 section ===== */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--mint-deep); text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: 1px; }
.section-sub { color: var(--ink-soft); margin-top: 8px; }

/* ===== 作品卡片 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.card-cover {
  padding: 34px 28px 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.card-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 55%);
}
.card-cover::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.card-mint .card-cover  { background: linear-gradient(135deg, var(--mint), var(--mint-deep)); }
.card-coral .card-cover { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); }
.card-sky .card-cover   { background: linear-gradient(135deg, var(--sky), var(--sky-deep)); }

.cover-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.25); padding: 4px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.cover-title { font-size: 28px; font-weight: 800; letter-spacing: 1px; position: relative; }
.cover-sub { font-size: 14px; opacity: .92; margin-top: 4px; position: relative; }

.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-desc { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.card-tags span {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line);
}
.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 700;
  color: var(--mint-deep);
}
.card-link svg { transition: transform .25s; }
.card-link:hover svg { transform: translateX(4px); }

/* ===== 关于 ===== */
.section-about { padding-top: 20px; }
.about-card, .contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.about-text { max-width: 620px; margin: 14px auto 26px; color: var(--ink-soft); }
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.about-chips span {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--ink);
  background: linear-gradient(120deg, #e8fbf7, #eaf6ff);
  border: 1px solid #d7eee9;
}

/* ===== 联系 ===== */
.contact-btn { margin-top: 22px; font-size: 16px; }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 36px 20px; color: var(--ink-soft); font-size: 14px; }

/* ===== 入场动画 ===== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .brand-text { display: none; }
  .section { padding: 56px 18px; }
}
