/* ============================================================
   盛夏 · 清新淡雅 — 麦兜 3D 作品集
   ============================================================ */

:root {
  /* 配色 */
  --cream: #fdfaf4;        /* 米白底 */
  --cream-2: #f8f3e9;      /* 更暖的米色 */
  --white: #ffffff;
  --ink: #3c4a41;          /* 深灰绿文字 */
  --ink-soft: #6b7a70;     /* 次级文字 */
  --mint: #a7d8b7;         /* 薄荷绿 */
  --mint-deep: #6fb08a;    /* 深薄荷 */
  --leaf: #5b9b78;         /* 叶子绿 */
  --sky: #a7d3e8;          /* 天空蓝 */
  --sky-deep: #7db6d4;     /* 深天蓝 */
  --sun: #f6d57c;          /* 暖阳黄 */
  --sun-soft: #fbe9b0;     /* 浅阳黄 */
  --peach: #f3b4a0;        /* 蜜桃粉点缀 */
  --peach-soft: #f9d9cd;

  /* 渐变 */
  --grad-mint: linear-gradient(135deg, #c9ecd4, #9fd6b5);
  --grad-sky: linear-gradient(135deg, #cdeaf5, #9fd1e6);
  --grad-sun: linear-gradient(135deg, #fbe7a8, #f6d57c);
  --grad-peach: linear-gradient(135deg, #f9d9cd, #f2b8a6);

  /* 排版 */
  --font-serif: "Fraunces", "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 圆角 / 阴影 */
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 24px rgba(90, 130, 110, 0.10);
  --shadow-md: 0 18px 48px rgba(90, 130, 110, 0.14);
  --shadow-lg: 0 30px 70px rgba(90, 130, 110, 0.18);

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 8% -5%, #eaf6ec 0%, transparent 55%),
    radial-gradient(120% 85% at 102% 15%, #e3f1f8 0%, transparent 55%),
    radial-gradient(120% 90% at 45% 108%, #fdf2e0 0%, transparent 55%),
    #f4f6ef;
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 四时液态光斑 ---------- */
.summer-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: blobDrift 22s ease-in-out infinite;
}
.blob--mint  { width: 560px; height: 560px; background: var(--mint); top: -160px; right: -140px; }
.blob--sky   { width: 500px; height: 500px; background: var(--sky);  bottom: -140px; left: -160px; animation-delay: -7s; }
.blob--sun   { width: 380px; height: 380px; background: var(--sun-soft); top: 38%; left: 44%; opacity: 0.45; animation-delay: -13s; }
.blob--peach { width: 340px; height: 340px; background: var(--peach-soft); top: 10%; left: 28%; opacity: 0.42; animation-delay: -4s; }

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(36px, -28px) scale(1.08); }
  66%      { transform: translate(-30px, 32px) scale(0.94); }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 30px rgba(90, 130, 110, 0.08);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.nav__brand em { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.nav__logo {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  box-shadow: var(--shadow-sm);
}
.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav__links { display: flex; gap: clamp(18px, 3vw, 34px); align-items: center; }
.nav__links a {
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 6vw, 80px) 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero__inner { z-index: 2; }
.hero__logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px rgba(90, 130, 110, 0.24);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--leaf);
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--leaf);
  border-radius: 2px;
}
.hero__title { font-family: var(--font-serif); line-height: 1.08; }
.hero__line {
  display: block;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 1px;
}
.hero__name {
  display: inline-block;
  font-size: clamp(64px, 11vw, 128px);
  font-weight: 600;
  color: transparent;
  background: linear-gradient(120deg, #5b9b78 0%, #6fb08a 40%, #7db6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-top: 4px;
  letter-spacing: 4px;
}
.hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--ink);
  font-weight: 500;
}
.hero__desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
}
.hero__actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.br-desktop { display: block; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--primary {
  background: var(--grad-mint);
  color: #27443a;
  box-shadow: 0 10px 26px rgba(111, 176, 138, 0.38);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(111, 176, 138, 0.48); }
.btn--ghost {
  border: 1.5px solid rgba(91, 155, 120, 0.45);
  color: var(--leaf);
  background: transparent;
}
.btn--ghost:hover { background: rgba(167, 216, 183, 0.18); transform: translateY(-3px); }
.btn--ghost-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); }

/* Hero 插画 */
.hero__art {
  position: relative;
  z-index: 1;
  animation: floatY 7s ease-in-out infinite;
}
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(120, 160, 140, 0.22)); }
.hero__float {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.hero__float--1 { width: 16px; height: 16px; background: var(--peach); top: 18%; left: 6%; animation: floatY 5s ease-in-out infinite reverse; }
.hero__float--2 { width: 10px; height: 10px; background: var(--sun); bottom: 16%; right: 10%; animation: floatY 4.5s ease-in-out infinite; }

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 2px;
}
.hero__scroll i {
  width: 1px; height: 34px;
  background: linear-gradient(var(--leaf), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- 通用 section ---------- */
.section { padding: 110px 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section__head { text-align: center; margin-bottom: 60px; }
.section__logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(90, 130, 110, 0.2);
}
.section__tag {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--leaf);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}
.section__tag--light { color: rgba(255,255,255,0.75); }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 600;
  color: var(--ink);
}
.section__desc { margin-top: 16px; color: var(--ink-soft); font-size: 16px; }

/* ---------- 关于我 ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about__card {
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  padding: 42px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.about__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(167, 216, 183, 0.22), transparent 70%);
  pointer-events: none;
}
.about__avatar {
  width: 132px; height: 132px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: 0 14px 30px rgba(111, 176, 138, 0.4);
}
.about__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__name { font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.about__role { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.about__text { font-size: 16px; color: var(--ink-soft); }
.about__text p { margin-bottom: 18px; }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__facts {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.about__facts li {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 14px;
}
.about__facts strong { min-width: 56px; color: var(--leaf); font-weight: 600; }
.about__facts span { color: var(--ink); }

/* ---------- 作品集（视频作品） ---------- */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.works__grid--videos {
  grid-template-columns: 1fr;
  gap: 44px;
  max-width: 980px;
  margin: 0 auto;
  justify-items: center;
}
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
}
.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4ee;
}
/* 横屏视频：通栏大图 */
.video-card--landscape .video-card__media { aspect-ratio: 16 / 9; }
/* 竖屏视频：居中窄幅（像手机屏） */
.video-card--portrait { width: min(100%, 420px); }
.video-card--portrait .video-card__media { aspect-ratio: 9 / 16; }
.video-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(39, 68, 58, 0.5);
  backdrop-filter: blur(6px);
  letter-spacing: 1px;
  z-index: 2;
}

/* 底部控制栏 */
.video-card__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 36px 12px 12px;
  background: linear-gradient(to top, rgba(24, 44, 36, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.video-card__media:hover .video-card__controls,
.video-card.is-fullscreen .video-card__controls { opacity: 1; }

.v-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--leaf);
  box-shadow: 0 4px 14px rgba(24, 44, 36, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.v-btn:hover { transform: scale(1.1); background: #fff; }
.v-btn--toggle { margin-right: auto; }
.v-btn svg { width: 17px; height: 17px; }

/* 播放 / 暂停图标（CSS 绘制） */
.ico-play {
  width: 0; height: 0;
  border-left: 10px solid var(--leaf);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.ico-pause {
  width: 9px; height: 11px;
  border-left: 3px solid var(--leaf);
  border-right: 3px solid var(--leaf);
}
/* 默认播放中 → 显示「暂停」；暂停时 → 显示「播放」 */
.v-btn--toggle .ico-play { display: none; }
.video-card.is-paused .v-btn--toggle .ico-play { display: block; }
.video-card.is-paused .v-btn--toggle .ico-pause { display: none; }

/* 声音图标：默认静音 → 显示「静音」图标 */
.v-btn--mute .ico-sound { display: none; }
.video-card:not(.is-muted) .v-btn--mute .ico-sound { display: block; }
.video-card:not(.is-muted) .v-btn--mute .ico-muted { display: none; }

/* 全屏图标：默认 → 「放大」；全屏时 → 「缩小」 */
.v-btn--fullscreen .ico-compress { display: none; }
.video-card.is-fullscreen .v-btn--fullscreen .ico-compress { display: block; }
.video-card.is-fullscreen .v-btn--fullscreen .ico-expand { display: none; }

/* 全屏适配：竖屏视频完整显示（上下留黑边） */
.video-card__media:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #0f1a14;
}
.video-card__media:fullscreen .video-card__video { object-fit: contain; }
.video-card__media:fullscreen .video-card__tag { display: none; }

.video-card__body { padding: 22px 24px 26px; }
.video-card__title { font-size: 19px; font-weight: 600; color: var(--ink); }
.video-card__desc { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.7; }

/* 触屏设备常驻显示控制栏 */
@media (hover: none) {
  .video-card__controls { opacity: 1; }
}

/* ---------- 画廊（瀑布流：饮料视频 + 图片） ---------- */
.gallery {
  max-width: 980px;
  margin: 44px auto 0;
  column-count: 3;
  column-gap: 24px;
}
.gallery .video-card,
.gallery .gallery__item {
  break-inside: avoid;
  margin: 0 0 24px;
}
.gallery__item {
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery__media { position: relative; overflow: hidden; }
.gallery__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
.gallery__item:hover .gallery__media img { transform: scale(1.05); }
.gallery__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgba(39, 68, 58, 0.5);
  backdrop-filter: blur(6px);
  letter-spacing: 1px;
}
.gallery__cap { padding: 16px 18px 20px; }
.gallery__title { font-size: 16px; font-weight: 600; color: var(--ink); }
.gallery__desc { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }

/* ---------- 联系 ---------- */
.contact__card {
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 60px);
  background: linear-gradient(135deg, rgba(111,176,138,0.72) 0%, rgba(91,155,120,0.62) 45%, rgba(125,182,212,0.72) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 15%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(40% 40% at 85% 20%, rgba(251, 231, 160, 0.35), transparent 60%);
  pointer-events: none;
}
.contact__card .section__title { color: #fff; }
.contact__desc { margin-top: 18px; font-size: 16px; color: rgba(255,255,255,0.92); }
.contact__actions { display: flex; gap: 16px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.contact__meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

/* ---------- 页脚 ---------- */
.footer { padding: 40px 0; border-top: 1px solid rgba(91, 155, 120, 0.14); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand { font-weight: 700; font-size: 16px; }
.footer__brand em { font-style: normal; color: var(--ink-soft); font-weight: 400; font-size: 13px; margin-left: 6px; }
.footer__note { color: var(--ink-soft); font-size: 13px; }

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--nav-h) + 30px); }
  .hero__art { order: -1; max-width: 360px; margin: 0 auto; }
  .hero__logo { margin: 0 auto 20px; }
  .hero__actions { justify-content: center; }
  .br-desktop { display: inline; }
  .about__grid { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 20px 0 28px;
    gap: 6px;
    box-shadow: 0 20px 40px rgba(90, 130, 110, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 0; font-size: 16px; }
  .nav__toggle { display: flex; }
  .works__grid { grid-template-columns: 1fr; }
  .gallery { column-count: 1; }
  .contact__meta { flex-direction: column; gap: 10px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .hero__scroll { display: none; }
}
