:root {
  --ink: #241c24;
  --muted: #786d78;
  --paper: #fbf8f5;
  --cream: #f2ebe5;
  --plum: #382432;
  --plum-2: #5a384c;
  --gold: #b88b55;
  --line: rgba(56, 36, 50, .15);
  --white: #fff;
  --shadow: 0 24px 70px rgba(44, 28, 40, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section { padding: 100px 0; }
.section-soft { background: var(--cream); }
.section-dark { color: white; background: var(--plum); }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2, .hero-copy h1, .academy-hero h1, .custom-heading h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.section-heading h2 { font-size: clamp(34px, 5vw, 58px); }
.section-heading p { color: var(--muted); font-size: 17px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 245, .91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: var(--plum); border-radius: 50%; font-family: serif; }
.brand strong { display: block; letter-spacing: .18em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.desktop-nav a { color: #5f555e; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--plum); }
.nav-cta, .primary-btn, .secondary-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  transition: .2s ease;
}
.nav-cta, .primary-btn { color: white !important; background: var(--plum); }
.nav-cta:hover, .primary-btn:hover { background: var(--plum-2); transform: translateY(-1px); }
.secondary-btn { color: var(--plum); background: transparent; }
.secondary-btn:hover { background: rgba(56, 36, 50, .06); }
.menu { display: none; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 45%, rgba(184,139,85,.15), transparent 25%),
    linear-gradient(120deg, #fbf8f5 0%, #f7f0eb 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding: 70px 0; }
.hero-copy h1 { max-width: 650px; font-size: clamp(48px, 6.7vw, 88px); }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 26px 0 32px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.proof-row strong { display: block; color: var(--plum); font-family: serif; font-size: 26px; }
.proof-row span { color: var(--muted); font-size: 12px; }
.bracelet-stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.bracelet-stage::before { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(184,139,85,.32); border-radius: 50%; }
.bracelet-ring { position: relative; width: 350px; height: 350px; animation: float 5s ease-in-out infinite; }
.bracelet-ring i { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; box-shadow: inset -7px -8px 12px rgba(0,0,0,.17), inset 5px 5px 8px rgba(255,255,255,.46), 0 8px 17px rgba(55,35,48,.18); transform: rotate(calc(var(--n) * 20deg)) translateY(-150px); }
.amethyst { background: linear-gradient(135deg,#c4a8d9,#684e82); }
.moon { background: linear-gradient(135deg,#fffdf8,#a9bfd1); }
.rose { background: linear-gradient(135deg,#f7cfda,#c57b96); }
.clear { background: linear-gradient(135deg,#fff,#b7c9d1); }
.citrine { background: linear-gradient(135deg,#ffe5a0,#c69339); }
.aqua { background: linear-gradient(135deg,#ccecf2,#5a9cae); }
.tiger { background: linear-gradient(135deg,#d49a4f,#4f3326); }
.obsidian { background: linear-gradient(135deg,#657079,#161a1d); }
.amazonite { background: linear-gradient(135deg,#bce2d6,#55998d); }
.garnet { background: linear-gradient(135deg,#a54c62,#3d1726); }
.stage-label { position: absolute; right: 0; bottom: 58px; width: 220px; padding: 18px; background: rgba(255,255,255,.84); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.stage-label small { color: var(--gold); letter-spacing: .15em; }
.stage-label strong { display: block; margin-top: 4px; font-family: serif; font-size: 21px; }
@keyframes float { 50% { transform: translateY(-12px) rotate(2deg); } }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.story-photo { position: relative; }
.story-photo img { width: 100%; height: 640px; object-fit: cover; box-shadow: var(--shadow); }
.story-photo::after { content: "天然選材 · 手工配製"; position: absolute; left: -18px; bottom: 28px; padding: 14px 20px; color: white; background: var(--plum); font-size: 13px; letter-spacing: .12em; }
.story-copy h2 { font-family: serif; font-size: clamp(38px,5vw,60px); line-height: 1.2; }
.story-copy p { color: var(--muted); }
.story-list { margin-top: 30px; display: grid; gap: 0; }
.story-list div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.story-list b { color: var(--gold); }
.story-list strong, .story-list span { display: block; }
.story-list span { color: var(--muted); font-size: 14px; }

.value-grid, .course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card, .course-card { padding: 34px; background: white; border: 1px solid var(--line); }
.value-card b, .course-card .num { color: var(--gold); font-family: serif; font-size: 30px; }
.value-card h3, .course-card h3 { margin: 24px 0 10px; font-family: serif; font-size: 26px; }
.value-card p, .course-card p { color: var(--muted); }
.final-cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.final-cta h2 { margin: 0; font-family: serif; font-size: clamp(35px,5vw,62px); }
.final-cta p { color: rgba(255,255,255,.7); }
.final-cta .primary-btn { color: var(--plum) !important; background: white; border-color: white; }

.site-footer { padding: 48px 0 30px; color: rgba(255,255,255,.72); background: #21171f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand strong { color: white; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.site-footer h4 { color: white; }
.site-footer a { display: block; margin: 8px 0; }
.footer-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

.page-hero { padding: 88px 0 56px; background: linear-gradient(125deg,#f2ebe5,#fbf8f5); }
.custom-heading h1, .academy-hero h1 { font-size: clamp(46px,7vw,78px); }
.custom-heading > p:not(.eyebrow), .academy-hero-copy > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 17px; }
.custom-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; padding: 60px 0 100px; }
.preview-panel { position: sticky; top: 98px; min-height: 650px; display: grid; place-items: center; padding: 34px; color: white; background: var(--plum); }
.custom-ring { position: relative; width: 360px; height: 360px; }
.custom-ring i { position: absolute; left: 50%; top: 50%; border-radius: 50%; box-shadow: inset -7px -8px 12px rgba(0,0,0,.18), inset 5px 5px 8px rgba(255,255,255,.45), 0 7px 14px rgba(0,0,0,.2); transform: rotate(var(--angle)) translateY(-145px); }
.preview-meta { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.preview-meta span { color: rgba(255,255,255,.6); font-size: 12px; }
.preview-meta strong { display: block; font-family: serif; font-size: 24px; }
.control-panel { display: grid; gap: 22px; }
.control-card { padding: 28px; background: white; border: 1px solid var(--line); }
.control-card h2 { margin: 0 0 5px; font-family: serif; font-size: 26px; }
.control-card > p { margin-top: 0; color: var(--muted); font-size: 14px; }
.theme-options, .bead-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.option-btn, .bead-btn { min-height: 82px; padding: 15px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.option-btn.active { color: white; background: var(--plum); border-color: var(--plum); }
.option-btn strong, .option-btn span, .bead-btn strong, .bead-btn span { display: block; }
.option-btn span, .bead-btn span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.option-btn.active span { color: rgba(255,255,255,.65); }
.bead-btn { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; min-height: 64px; }
.bead-dot { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset -4px -4px 7px rgba(0,0,0,.17), inset 3px 3px 6px rgba(255,255,255,.5); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; }
.field select, .field input[type="range"] { width: 100%; }
.field select { height: 48px; padding: 0 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.pattern-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pattern-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--cream); border: 0; border-radius: 999px; }
.pattern-chip i { width: 18px; height: 18px; border-radius: 50%; }
.control-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status { min-height: 26px; color: var(--plum); font-weight: 700; }

.academy-hero { padding: 90px 0; }
.academy-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.academy-photo { position: relative; }
.academy-photo img { width: 100%; height: 560px; object-fit: cover; box-shadow: var(--shadow); }
.academy-badge { position: absolute; right: -18px; bottom: 28px; padding: 18px 22px; color: white; background: var(--plum); }
.academy-badge strong, .academy-badge span { display: block; }
.course-card { position: relative; }
.course-card .price { display: block; margin-top: 26px; color: var(--plum); font-size: 20px; font-weight: 800; }
.course-card ul { padding-left: 18px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 50px; border-top: 1px solid rgba(255,255,255,.2); }
.timeline article { padding: 28px 24px 0 0; }
.timeline b { display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; color: var(--plum); background: white; border-radius: 50%; }
.timeline h3 { margin-top: 24px; font-family: serif; font-size: 22px; }
.timeline p { color: rgba(255,255,255,.65); font-size: 14px; }
.waitlist { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.waitlist h2 { font-family: serif; font-size: clamp(36px,5vw,60px); line-height: 1.2; }
.waitlist-form { padding: 32px; background: white; box-shadow: var(--shadow); }
.waitlist-form label { display: block; margin-bottom: 8px; font-weight: 700; }
.waitlist-form input { width: 100%; height: 50px; margin-bottom: 14px; padding: 0 14px; border: 1px solid var(--line); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; padding: 8px 12px; border: 1px solid var(--line); }
  .menu nav { position: absolute; right: 0; top: 50px; width: 210px; padding: 12px; background: white; box-shadow: var(--shadow); }
  .menu nav a { display: block; padding: 11px; }
  .hero-grid, .story-grid, .custom-layout, .academy-grid, .waitlist { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 20px; }
  .bracelet-stage { min-height: 470px; }
  .story-photo { order: 2; }
  .preview-panel { position: relative; top: 0; min-height: 560px; }
  .value-grid, .course-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 30px; }
  .final-cta { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 72px 0; }
  .hero-grid { padding: 40px 0; gap: 10px; }
  .hero-copy h1 { font-size: 49px; }
  .proof-row { grid-template-columns: 1fr; }
  .bracelet-stage { min-height: 390px; transform: scale(.84); margin: -25px -35px; }
  .stage-label { right: 20px; }
  .story-photo img { height: 440px; }
  .footer-grid { grid-template-columns: 1fr; }
  .custom-ring { transform: scale(.78); }
  .preview-panel { min-height: 490px; overflow: hidden; }
  .theme-options, .bead-options, .field-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .timeline article { border-top: 1px solid rgba(255,255,255,.2); }
  .academy-photo img { height: 430px; }
  .academy-badge { right: 10px; }
}
