:root {
  --brand: #153e6b;
  --brand-2: #2e8fa6;
  --accent: #f26f21;
  --accent-2: #ffc94a;
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #151823;
  --sub: #6b7280;
  --line: #e9ebf2;
  --green: #12b886;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 30px rgba(23, 29, 74, 0.08);
  --shadow-lg: 0 16px 50px rgba(23, 29, 74, 0.14);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.wrap.no-bar {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* ---------- 顶部主视觉 ---------- */
.hero {
  position: relative;
  padding: 40px 24px 56px;  background: linear-gradient(140deg, #153e6b 0%, var(--brand-2) 55%, #144d5e 100%);
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 201, 74, 0.35), transparent 68%);
  pointer-events: none;
}

.hero .brand-logo {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.hero .org {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero p.sub {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.hero .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero .tag {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 201, 74, 0.18);
  color: #ffd873;
  border: 1px solid rgba(255, 201, 74, 0.3);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: -32px 16px 0;
  position: relative;
  z-index: 2;
}

.card + .card {
  margin-top: 14px;
}

.section {
  margin: 22px 16px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

/* ---------- 亮点列表 ---------- */
.point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.point:last-child {
  border-bottom: none;
}

.point .idx {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.point .txt {
  font-size: 15px;
  color: #2b2f3c;
}

/* ---------- 表单 ---------- */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* 16px 防止 iOS 聚焦时自动放大 */
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbfe;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: #fff;
}

.field .hint {
  font-size: 12px;
  color: var(--sub);
  margin-top: 6px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 10px 24px rgba(59, 91, 255, 0.32);
  font-family: inherit;
}

.btn:active {
  transform: scale(0.975);
}

.btn:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.btn.accent {
  background: linear-gradient(135deg, #ff8a3d, var(--accent));
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.32);
}

.btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid rgba(59, 91, 255, 0.28);
  box-shadow: none;
}

.btn.small {
  width: auto;
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: none;
}

/* 底部固定操作条 */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.cta-bar .inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cta-bar .inner .btn {
  flex: 1;
}

/* ---------- 数据 ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.stat-row .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.stat-row .lbl {
  font-size: 12px;
  color: var(--sub);
}

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 22, 32, 0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 999;
  max-width: 78vw;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

/* ---------- 海报页 ---------- */
.poster-frame {
  margin: 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #eef0f7;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.poster-frame img {
  width: 100%;
  height: auto;
}

.tip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 13px;
  color: var(--sub);
  margin: 14px 16px 0;
  text-align: center;
}

/* ---------- 邀请页 ---------- */
.inviter-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(59, 91, 255, 0.08), rgba(108, 75, 255, 0.08));
  border: 1px solid rgba(59, 91, 255, 0.12);
}

.inviter-chip .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
  flex: 0 0 44px;
}

/* ---------- 骨架屏 ---------- */
.skeleton {
  background: linear-gradient(90deg, #eef0f6 25%, #f7f8fc 37%, #eef0f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: 10px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.hidden {
  display: none !important;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 2px;
}
