/* ============================================================
   蛋仔派对全国赛 · 共享样式 v1.1
   马卡龙色系 / 圆润 Q 版 / 纯静态无外部依赖
   ============================================================ */

:root {
  --pink: #ff5e8a;
  --pink-d: #ef4d7d;
  --purple: #7b6cf6;
  --yellow: #ffc53d;
  --teal: #2ec4b6;
  --cream: #fff7ee;
  --bg: #fffdf9;
  --ink: #2d2b3e;
  --muted: #8b8a9c;
  --line: #f3e5da;
  --ok: #18a058;
  --err: #e5484d;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(45, 43, 62, 0.08);
  --shadow-pink: 0 10px 26px rgba(255, 94, 138, 0.35);
  --font: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-bar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; max-width: 1180px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, #ffe1ec, #ffc8a3);
  border: 2px solid #fff; box-shadow: var(--shadow-pink);
}
.brand-text { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.brand-text small { display: block; font-size: 0.72rem; color: var(--pink-d); font-weight: 700; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: #ffe9f1; color: var(--pink-d); }
.nav a.active { background: var(--pink); color: #fff; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: none;
  font-size: 26px; cursor: pointer; color: var(--ink); line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s, box-shadow .18s, background .2s;
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #ff8f5e);
  color: #fff; box-shadow: var(--shadow-pink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 94, 138, .45); }
.btn-ghost {
  background: #fff; color: var(--pink-d); border: 2px solid var(--pink);
}
.btn-ghost:hover { background: #fff0f4; transform: translateY(-2px); }
.btn-dark {
  background: linear-gradient(135deg, #2d2b3e, #4a4766); color: #fff;
}
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 15px 40px; font-size: 1.1rem; }

/* ---------- 徽章 / 标签 ---------- */
.pill {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: #ffe9f1; color: var(--pink-d);
}
.pill.purple { background: #ece9ff; color: var(--purple); }
.pill.yellow { background: #fff3d6; color: #a06a00; }
.pill.teal { background: #ddf7f3; color: #0e8f82; }
.pill.gray { background: #f0eff6; color: var(--muted); }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section.tint { background: linear-gradient(180deg, #fffdf9, #fff2f6); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-eyebrow { color: var(--pink-d); font-weight: 800; letter-spacing: 3px; font-size: .85rem; }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; margin: 6px 0 10px; }
.sec-sub { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(1000px 460px at 8% -10%, #ffe3ee 0%, transparent 60%),
    radial-gradient(820px 420px at 92% -5%, #fff1d6 0%, transparent 55%),
    linear-gradient(180deg, #fff8f2, #fffdf9);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 900; line-height: 1.15; letter-spacing: 1px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 16px 0 26px; color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: .88rem; }
.hero-note b { color: var(--pink-d); }

/* Hero 装饰：CSS 蛋仔 */
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.egg {
  width: 210px; height: 268px; position: relative;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(165deg, #ffffff 20%, #ffd9e4 85%);
  border: 4px solid #ffb3c8;
  box-shadow: 0 24px 50px rgba(255, 94, 138, .28), inset 0 -14px 30px rgba(255, 143, 94, .15);
}
.egg .crown { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); font-size: 46px; }
.egg .eye { position: absolute; top: 110px; width: 16px; height: 22px; border-radius: 50%; background: #3a3648; }
.egg .eye.l { left: 56px; } .egg .eye.r { right: 56px; }
.egg .blush { position: absolute; top: 140px; width: 22px; height: 12px; border-radius: 50%; background: rgba(255, 94, 138, .35); }
.egg .blush.l { left: 40px; } .egg .blush.r { right: 40px; }
.egg .mouth { position: absolute; top: 146px; left: 50%; transform: translateX(-50%); width: 34px; height: 16px; border-bottom: 4px solid #3a3648; border-radius: 0 0 34px 34px; }
.egg .foot { position: absolute; bottom: -16px; width: 44px; height: 26px; border-radius: 50%; background: #ffb34d; border: 3px solid #f0942f; }
.egg .foot.l { left: 38px; } .egg .foot.r { right: 38px; }

.float-egg { position: absolute; font-size: 30px; opacity: .5; animation: bob 5s ease-in-out infinite; }
.f1 { top: 8%; left: 4%; animation-delay: .2s; }
.f2 { bottom: 10%; left: 12%; animation-delay: 1.1s; font-size: 24px; }
.f3 { top: 20%; right: 2%; animation-delay: .6s; font-size: 26px; }
.f4 { bottom: 6%; right: 16%; animation-delay: 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(8deg); } }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; background: linear-gradient(120deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---------- 倒计时 ---------- */
.countdown { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cd-box {
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  min-width: 86px; padding: 14px 10px 10px; text-align: center; box-shadow: var(--shadow);
}
.cd-num { font-size: 2rem; font-weight: 900; color: var(--pink-d); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-label { font-size: .78rem; color: var(--muted); }
.cd-title { font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .ico { font-size: 34px; margin-bottom: 12px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 800; }
.card p, .card li { color: #55536a; font-size: .95rem; }
.card ul { padding-left: 18px; }

/* ---------- 时间线 ---------- */
.tl { position: relative; padding-left: 30px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--pink), var(--purple)); opacity: .5; }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 4px solid var(--pink); box-shadow: 0 0 0 3px #ffe3ee; }
.tl-item.done::before { border-color: var(--teal); box-shadow: 0 0 0 3px #ddf7f3; }
.tl-date { font-size: .82rem; font-weight: 800; color: var(--pink-d); }
.tl-item.done .tl-date { color: var(--teal); }
.tl-item.now::before { border-color: var(--yellow); box-shadow: 0 0 0 3px #fff3d6; }
.tl-item.now .tl-date { color: #a06a00; }
.tl-title { font-weight: 800; margin: 2px 0 4px; }
.tl-desc { color: var(--muted); font-size: .92rem; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th { background: #fff2f6; color: var(--pink-d); font-weight: 800; text-align: left; padding: 14px 18px; font-size: .9rem; white-space: nowrap; }
.tbl td { padding: 13px 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.tbl tr:nth-child(even) td { background: #fffaf7; }
.tbl td b { color: var(--pink-d); }

/* ---------- 提示条 ---------- */
.notice { background: #fff7e0; border: 2px solid #ffe08a; border-radius: 16px; padding: 16px 20px; color: #8a5b00; margin-bottom: 26px; }
.notice b { color: #6b4400; }
.notice li { margin: 6px 0 6px 18px; }

/* ---------- 表单 ---------- */
.form-card { max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.field label .req { color: var(--err); }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 94, 138, .12); }
textarea.input { resize: vertical; min-height: 90px; }
.field.invalid .input { border-color: var(--err); }
.err { display: none; color: var(--err); font-size: .84rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: #55536a; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pink); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- 成功页 / 参赛证 ---------- */
.success-box { text-align: center; }
.confetti { font-size: 44px; margin-bottom: 10px; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success-num {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(120deg, var(--pink), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0;
}
.ticket {
  max-width: 560px; margin: 24px auto; background: linear-gradient(135deg, #fff, #fff0f4);
  border: 2px dashed var(--pink); border-radius: 22px; padding: 26px 30px; text-align: left;
  box-shadow: var(--shadow);
}
.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ticket-head .brand-logo { width: 40px; height: 40px; }
.ticket-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.ticket-fields .tf label { font-size: .78rem; color: var(--muted); }
.ticket-fields .tf div { font-weight: 800; }
.ticket-num { margin-top: 16px; border-top: 1px dashed #ffc3d4; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.ticket-num label { font-size: .82rem; color: var(--muted); }
.ticket-num b { font-size: 1.3rem; color: var(--pink-d); letter-spacing: 1px; }

/* ---------- 录取通知书 ---------- */
.letter { position: relative; max-width: 720px; margin: 0 auto; background: linear-gradient(160deg, #fffdf7, #fff1e3); border: 2px solid #f3c98b; border-radius: 26px; padding: 40px 44px; box-shadow: 0 16px 40px rgba(243, 201, 139, .35); }
.letter-seal { position: absolute; right: 30px; top: 30px; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ff8fb0, #c62868); color: #fff; display: grid; place-items: center; text-align: center; font-size: .78rem; font-weight: 800; line-height: 1.3; transform: rotate(10deg); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .35), 0 10px 20px rgba(198, 40, 104, .3); }
.letter h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 4px; }
.letter .letter-sub { color: #a06a00; font-weight: 700; margin-bottom: 24px; }
.letter p { color: #5d4a33; margin-bottom: 14px; }
.letter .letter-no { margin-top: 22px; font-weight: 800; color: #8a5b00; }
.letter .letter-foot { margin-top: 26px; text-align: right; color: #8a6a44; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(45,43,62,.04); }
.faq-q { padding: 18px 22px; font-weight: 800; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; user-select: none; }
.faq-q .arrow { transition: transform .25s; color: var(--pink); font-size: 1.1rem; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a div { padding: 0 22px 18px; color: #55536a; font-size: .95rem; }

/* ---------- 新闻 ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 22px; }
.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: .84rem; color: var(--muted); }
.news-card h2 { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; }
.news-card p { color: #55536a; font-size: .96rem; }

/* ---------- 页脚 ---------- */
.site-footer { background: #fdeee2; border-top: 2px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 30px; padding: 44px 20px 30px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 12px; }
.footer-grid p, .footer-grid a { color: #6b5b4f; font-size: .92rem; text-decoration: none; }
.footer-grid a:hover { color: var(--pink-d); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #f3d8c2; padding: 16px 20px; text-align: center; color: #9a8570; font-size: .82rem; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px; display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav-cta { margin: 8px 0 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .letter { padding: 28px 22px; }
  .letter-seal { right: 18px; top: 18px; width: 68px; height: 68px; }
  .ticket-fields { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .section { padding: 44px 0; }
  .cd-box { min-width: 72px; padding: 10px 6px 8px; }
  .cd-num { font-size: 1.5rem; }
  .egg { transform: scale(.85); }
}
