:root {
  --plum: #2d1b4e;
  --plum-2: #3d2766;
  --pink: #ff5c8a;
  --orange: #ff8a3d;
  --yellow: #ffd23f;
  --cream: #fff4e0;
  --ink: #2d1b4e;
  --ink-2: #6b5a86;
  --round: "Arial Rounded MT Bold", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--plum); color: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; padding-bottom: 72px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2 { text-wrap: balance; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: 60px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-yellow { background: var(--yellow); color: var(--plum); box-shadow: 0 6px 0 #c9a000; }
.btn-yellow:hover { box-shadow: 0 8px 0 #c9a000; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 5px 0 #c93a64; }
.btn-full { width: 100%; }
.pill-btn { background: var(--pink); color: #fff; font-weight: 800; font-size: 14px; padding: 7px 16px; border-radius: 999px; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 30; background: rgba(45, 27, 78, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--round); font-weight: 900; font-size: 20px; }
.logo span { color: var(--yellow); }

/* 首屏 */
.hero { position: relative; overflow: hidden; padding: 40px 0 150px; background: radial-gradient(circle at 80% 10%, #5a3a8c 0%, transparent 55%), var(--plum); }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; width: 150px; right: -40px; top: 10px; opacity: .9; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.leaf { position: absolute; width: 34px; animation: float 6s ease-in-out infinite; }
.leaf-1 { left: 6%; top: 18%; }
.leaf-2 { right: 14%; top: 55%; animation-delay: -2s; width: 26px; }
.leaf-3 { left: 70%; top: 8%; animation-delay: -4s; width: 22px; }
@keyframes float { 50% { transform: translateY(14px) rotate(18deg); } }
.tents { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; }
.hero-inner { position: relative; text-align: center; }
.badge { display: inline-block; background: var(--pink); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 999px; transform: rotate(-3deg); }
.hero h1 { font-family: var(--round); font-weight: 900; font-size: 52px; line-height: 1.1; margin: 18px 0 16px; letter-spacing: .02em; }
.hero h1 span { display: block; }
.hero h1 span:first-child { color: var(--yellow); }
.hero-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 15px; color: #e3d8f5; }
.hero-info b { color: #fff; }

.countdown { margin: 28px auto 0; max-width: 360px; }
.countdown-label { font-size: 13px; color: #cbbde6; margin-bottom: 8px; }
.countdown-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-nums div { background: var(--cream); color: var(--plum); border-radius: 14px; padding: 8px 0 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.countdown-nums strong { display: block; font-family: var(--round); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-nums span { font-size: 12px; color: var(--ink-2); }
.hero-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 30px; }
.hero-btns .btn { width: 100%; max-width: 320px; }

/* 区块 */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); color: var(--ink); }
.title { font-family: var(--round); font-weight: 900; font-size: 30px; text-align: center; margin-bottom: 28px; }
.title-dark { color: var(--plum); }

/* 亮点 */
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hl { border-radius: 20px; padding: 18px 16px; color: var(--plum); transition: transform .25s; }
.hl:nth-child(odd) { transform: rotate(-1.2deg); }
.hl:nth-child(even) { transform: rotate(1.2deg); }
.hl:hover { transform: rotate(0) translateY(-4px); }
.hl-pink { background: var(--pink); color: #fff; }
.hl-orange { background: var(--orange); }
.hl-yellow { background: var(--yellow); }
.hl-purple { background: #b89cff; }
.hl-num { font-family: var(--round); font-size: 34px; font-weight: 900; line-height: 1; }
.hl h3 { font-size: 16px; margin: 6px 0 4px; }
.hl p { font-size: 13px; line-height: 1.6; opacity: .85; }

/* 往届回顾 */
.section-gallery { padding-top: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery .g-main { grid-column: 1 / -1; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 13px; font-weight: 700;
  background: linear-gradient(transparent, rgba(45, 27, 78, .85));
}

/* 日程 */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.tab { flex: 1; max-width: 180px; height: 44px; border-radius: 999px; border: 2px solid var(--plum); background: transparent; color: var(--plum); font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.tab.active { background: var(--plum); color: var(--yellow); }
.timeline { list-style: none; max-width: 640px; margin: 0 auto; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 2px dashed rgba(45, 27, 78, .15); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { font-family: var(--round); font-weight: 900; font-size: 18px; color: var(--pink); padding-top: 1px; }
.timeline h3 { font-size: 17px; }
.timeline p { font-size: 14px; color: var(--ink-2); }

/* 福利 */
.perk-grid { display: grid; gap: 14px; }
.perk { display: flex; align-items: stretch; background: var(--cream); color: var(--ink); border-radius: 16px; overflow: hidden; position: relative; }
.perk-left { flex: none; width: 104px; background: var(--yellow); display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 3px dashed var(--plum); }
.perk-left strong { font-family: var(--round); font-size: 22px; font-weight: 900; }
.perk-left span { font-size: 12px; }
.perk p { padding: 16px; font-size: 14px; align-self: center; }
.perk::before, .perk::after { content: ""; position: absolute; left: 95px; width: 18px; height: 18px; border-radius: 50%; background: var(--plum); }
.perk::before { top: -9px; }
.perk::after { bottom: -9px; }

/* 报名 */
.signup { display: grid; gap: 30px; }
.signup-text .title { text-align: left; margin-bottom: 12px; }
.signup-text > p { color: var(--ink-2); font-size: 15px; }
.traffic { margin-top: 24px; background: #fff; border-radius: 16px; padding: 18px; }
.traffic h3 { font-size: 16px; margin-bottom: 8px; }
.traffic ul { list-style: none; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.traffic b { display: inline-block; min-width: 44px; color: var(--plum); }
.signup-form { background: var(--plum); color: #fff; border-radius: 22px; padding: 24px 20px; box-shadow: 0 8px 0 var(--pink); }
.form-fields { display: grid; gap: 14px; }
.signup-form > .form-fields > label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.signup-form input[type="text"], .signup-form input[type="tel"], .signup-form select {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 12px; border: 2px solid transparent; background: #fff; color: var(--ink);
  font-size: 16px; outline: none; transition: border-color .2s;
}
.signup-form input:focus, .signup-form select:focus { border-color: var(--yellow); }
.signup-form input.invalid { border-color: var(--pink); }
fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; width: 100%; }
.check { cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); font-size: 14px; font-weight: 700; transition: all .15s; }
.check input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--plum); }
.check input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.form-error { min-height: 1em; color: var(--yellow); font-size: 13px; margin: -4px 0 -4px; }
.form-note { text-align: center; font-size: 12px; color: #a996c9; }
.form-done { text-align: center; }
.ticket { background: var(--cream); color: var(--plum); border-radius: 18px; padding: 22px 18px; border: 3px dashed var(--pink); }
.ticket-top { font-size: 12px; font-weight: 800; color: var(--pink); letter-spacing: .08em; }
.ticket strong { display: block; font-family: var(--round); font-size: 28px; margin: 6px 0 4px; }
.ticket p { font-size: 14px; color: var(--ink-2); }
.ticket-no { display: inline-block; margin-top: 12px; font-family: monospace; font-size: 15px; background: var(--plum); color: var(--yellow); padding: 4px 12px; border-radius: 8px; letter-spacing: .1em; }
.done-tip { font-size: 13px; color: #cbbde6; margin-top: 14px; }

/* FAQ */
.faq-wrap { max-width: 720px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--plum-2); border-radius: 14px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--yellow); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: #d6caec; font-size: 14px; padding-bottom: 16px; }

/* 页脚 */
.footer { text-align: center; padding: 36px 0 24px; font-size: 14px; color: #cbbde6; }
.demo-note { font-size: 12px; color: #8f7bb3; margin-top: 4px; }

/* 手机底部报名条 */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  height: 52px; border-radius: 999px; background: var(--yellow); color: var(--plum); font-weight: 900;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .3s, opacity .3s;
}
.sticky-cta.away { transform: translateY(90px); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .leaf { animation: none; }
  .hl, .hl:hover { transform: none; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .wrap { padding: 0 36px; }
  .hero { padding: 72px 0 190px; }
  .sun { width: 240px; right: 6%; top: 40px; }
  .tents { height: 180px; }
  .hero h1 { font-size: 88px; }
  .hero h1 span { display: inline; }
  .hero-info { font-size: 17px; gap: 8px 28px; }
  .countdown { max-width: 440px; }
  .countdown-nums strong { font-size: 40px; }
  .hero-btns { flex-direction: row; justify-content: center; }
  .hero-btns .btn { width: auto; }
  .section { padding: 96px 0; }
  .title { font-size: 40px; margin-bottom: 40px; }
  .hl-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .hl { padding: 24px 20px; }
  .hl-num { font-size: 44px; }
  .perk-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .gallery .g-main { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery figcaption { font-size: 15px; padding: 40px 20px 16px; }
  .signup { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .signup-form { padding: 32px; }
}
