/* ===== 基础与变量 ===== */
:root {
  --cream: #fdf6e8;
  --cream-deep: #f6e7c4;
  --gold: #e6a94e;
  --gold-deep: #c8842f;
  --ink: #4a3d2a;
  --ink-soft: #7a6a4f;
  --white-glass: rgba(255, 252, 244, 0.62);
  --shadow: 0 18px 48px -20px rgba(140, 96, 30, 0.4);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg,
    #bfe0f2 0%,
    #cfe6ef 10%,
    #e2ebe4 20%,
    #f2f1e2 32%,
    #f9f4de 50%,
    #f8f0d4 70%,
    #f6ebc8 88%,
    #f3e6bd 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  position: relative;
}

img { display: block; max-width: 100%; }


/* ===== 磨砂导航栏 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(230, 169, 78, 0.22);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 252, 244, 0.8);
  box-shadow: 0 6px 24px -12px rgba(140, 96, 30, 0.35);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; font-size: 18px; font-weight: 600;
  box-shadow: 0 6px 14px -4px rgba(200, 132, 47, 0.6);
}
.nav__name { font-size: 17px; font-weight: 600; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link {
  color: var(--ink-soft); text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--gold-deep); }
.nav__cta {
  border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff; font-size: 14px; font-weight: 600;
  font-family: var(--font);
  box-shadow: 0 8px 18px -6px rgba(200, 132, 47, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(200, 132, 47, 0.8); }

/* ===== Hero 区 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
/* 桂花为已抠好的透明 PNG，直接叠在渐变背景上，无边框无天空块 */
.hero__flower {
  position: absolute;
  top: 0;
  width: 360px;
  max-width: 36vw;
  pointer-events: none;
}
.hero__flower--left { left: 0; transform-origin: top left; }
.hero__flower--right { right: 0; transform-origin: top right; }
.hero__content { position: relative; z-index: 2; max-width: 680px; }
.hero__hi {
  font-size: clamp(52px, 9vw, 96px);
  color: var(--gold-deep);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 6px;
  animation: fadeUp 0.9s ease both;
}
.hero__title {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 700; line-height: 1.08;
  color: var(--ink);
  animation: fadeUp 0.9s ease 0.08s both;
}
.hero__accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__slogan {
  margin: 26px auto 0;
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--ink); font-weight: 700; line-height: 1.9; max-width: 560px;
  animation: fadeUp 0.9s ease 0.16s both;
}
.hero__meta {
  margin: 26px auto 0;
  width: -webkit-fit-content;
  width: fit-content;
  text-align: center;
  font-size: clamp(12px, 1.5vw, 15px);
  color: var(--ink); font-weight: 700; line-height: 1.7;
  animation: fadeUp 0.9s ease 0.24s both;
}
.hero__meta p { margin: 0; white-space: nowrap; }
.hero__actions {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 38px; flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.24s both;
}
.btn {
  cursor: pointer; border: none;
  padding: 14px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 12px 26px -8px rgba(200, 132, 47, 0.75);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -10px rgba(200, 132, 47, 0.85); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--gold-deep);
  border: 1.5px solid rgba(230, 169, 78, 0.5);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.85); }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  font-size: 13px; color: var(--ink-soft); letter-spacing: 0.1em;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 作品区 ===== */
.works {
  position: relative; z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 32px 32px;
}
.section-head { text-align: center; margin-bottom: 54px; }
.section-head__tag {
  font-size: 13px; font-weight: 700; letter-spacing: 0.28em;
  color: var(--gold-deep); opacity: 0.75;
}
.section-head__title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 700;
  color: var(--ink); margin: 10px 0 8px;
}
.section-head__desc { font-size: 16px; color: var(--ink-soft); }

.works__actions {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 52px; flex-wrap: wrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(230, 169, 78, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
  opacity: 0; transform: translateY(30px);
}
.card.is-in { opacity: 1; transform: translateY(0); }
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -24px rgba(140, 96, 30, 0.5);
}
.card__poster {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__poster { transform: scale(1.06); }
.card__body { padding: 22px 24px 26px; }
.card__cat {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--gold-deep); text-transform: uppercase;
}
.card__title {
  font-size: 21px; font-weight: 700; color: var(--ink);
  margin: 8px 0 6px;
}
.card__note {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
  margin: 0 0 6px; opacity: 0.8;
  border-left: 2.5px solid rgba(180, 140, 70, 0.45);
  padding-left: 10px;
}
.card__date {
  font-size: 12px; color: var(--gold-deep); font-weight: 600;
  letter-spacing: 0.04em; margin: 0 0 10px;
}
.card__desc { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.card__actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.card__btn {
  cursor: pointer; font-family: var(--font);
  font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; border: none;
  background: rgba(230, 169, 78, 0.14);
  color: var(--gold-deep);
  transition: background 0.2s ease, transform 0.2s ease;
}
.card__btn:hover { background: rgba(230, 169, 78, 0.28); transform: translateY(-2px); }

/* ===== 联系区 ===== */
.contact {
  position: relative; z-index: 2;
  padding: 24px 24px 100px;
  text-align: center;
}
.contact__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--ink); }
.contact__desc { margin: 14px 0 30px; font-size: 16px; color: var(--ink-soft); }
.contact__info { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact__item {
  cursor: pointer; font-family: var(--font);
  text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 600;
  padding: 12px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(230, 169, 78, 0.35);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact__item:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.9); }
.contact__item:active { transform: translateY(-1px); }
.contact__toast {
  margin-top: 22px; min-height: 20px;
  font-size: 14px; font-weight: 600; color: var(--gold-deep);
  opacity: 0; transition: opacity 0.25s ease;
}
.contact__toast.show { opacity: 1; }
.contact__copy { margin-top: 40px; font-size: 13px; color: var(--ink-soft); opacity: 0.8; }
.contact__beian { margin-top: 36px; font-size: 12px; }
.contact__beian a {
  color: var(--ink-soft); text-decoration: none;
  opacity: 0.7; transition: opacity 0.2s ease;
}
.contact__beian a:hover { opacity: 1; text-decoration: underline; }

/* ===== 花瓣飘落层 ===== */
.petal-layer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 900;
  overflow: hidden;
}
.petal {
  position: absolute; top: -60px;
  will-change: transform;
  filter: drop-shadow(0 4px 6px rgba(160, 110, 40, 0.15));
}
.petal img { display: block; width: 100%; height: 100%; }

/* ===== 底部堆叠花瓣层（锚定视口底部，与飘落层同坐标系，落地无缝） ===== */
.petal-pile {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 170px;
  pointer-events: none; z-index: 900;
}
.petal-pile .petal {
  position: absolute; top: auto;
}

/* ===== 视频弹窗 ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.video-modal.is-open { opacity: 1; }
.video-modal__mask {
  position: absolute; inset: 0;
  background: rgba(30, 22, 10, 0.72);
  backdrop-filter: blur(4px);
}
.video-modal__box {
  position: relative; z-index: 1;
  width: min(90vw, 900px);
  transform: scale(0.96); transition: transform 0.3s ease;
}
.video-modal.is-open .video-modal__box { transform: scale(1); }
.video-modal__box video {
  width: 100%; max-height: 82vh;
  border-radius: 14px; background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  display: block;
}
.video-modal__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-modal__close:hover { transform: rotate(90deg); background: #fff; }

/* ===== 响应式：手机竖排 ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 620px) {
  .nav__links { gap: 14px; }
  .nav__link { display: none; }
  .nav__name { font-size: 15px; }
  .hero__flower { width: 190px; max-width: 42vw; }
  .hero { padding-top: 100px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .works { padding: 20px 20px 90px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .petal, .hero__scroll, .hero__hi, .hero__title, .hero__slogan, .hero__actions { animation: none !important; }
}
