/* ============================================================
   第十八届全国大学生药苑论坛 · 手机端会务系统
   移动端样式（视觉参照首页效果图：浅蓝医疗主题）
   ============================================================ */
:root {
  --blue: #2f6fd6;
  --blue-deep: #1c4f9e;
  --blue-light: #eaf4ff;
  --blue-bg: linear-gradient(180deg, #e8f4ff 0%, #f6fbff 45%, #ffffff 100%);
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #8492a6;
  --line: #e6eef7;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(31, 76, 144, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #eef5fc;
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
.app { max-width: 640px; margin: 0 auto; min-height: 100vh; background: var(--blue-bg); }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; height: 52px;
  background: linear-gradient(90deg, #3a7be0, #2f6fd6);
  color: #fff; padding: 0 14px;
  box-shadow: 0 2px 8px rgba(31,76,144,.18);
}
.btn-back {
  border: 0; background: transparent; color: #fff;
  font-size: 30px; line-height: 1; width: 34px; height: 40px;
  display: flex; align-items: center; cursor: pointer; padding: 0;
}
.topbar-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
.page { padding: 14px 14px 24px; }

/* ---------- 首页主视觉 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 34px 18px 26px; margin: 0;
  color: #fff;
  background-color: #eaf4ff;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 24px rgba(47,111,214,.25);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,76,144,.12) 0%, rgba(47,111,214,.22) 45%, rgba(31,76,144,.34) 100%);
}
.hero-deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); }
.deco-1 { width: 130px; height: 130px; top: -40px; right: -30px; }
.deco-2 { width: 90px; height: 90px; bottom: -20px; left: -25px; background: rgba(255,255,255,.08); }
.deco-3 { width: 46px; height: 46px; top: 26px; left: 60%; background: rgba(255,255,255,.12); }
.hero-brand { position: relative; z-index: 1; text-align: center; text-shadow: 0 1px 4px rgba(20,55,110,.35); }
.brand-badge {
  display: inline-block; font-size: 11px; letter-spacing: 2px;
  background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.5);
  padding: 3px 12px; border-radius: 999px; color: #fff;
}
.hero-title { font-size: 30px; margin: 10px 0 4px; font-weight: 700; letter-spacing: 2px; }
.hero-forum-img {
  display: block; margin: 0 auto 18px;
  max-width: 300px; width: 82%;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(20,55,110,.25));
}
.hero-meta { position: relative; z-index: 1; text-align: center; font-size: 12px; opacity: .96; line-height: 1.7; }
.hero-meta p { margin: 0; }
.hero-date { font-weight: 600; }

/* ---------- 首页功能宫格 ---------- */
.tiles { padding: 22px 14px 8px; }
.grid-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--card); border-radius: 16px; padding: 16px 6px 12px;
  box-shadow: var(--shadow); border: 1px solid #fff;
  transition: transform .12s ease;
}
.tile:active { transform: scale(.96); }

/* 真实图标（由 PSD 分层文件导出） */
.tile-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center;
  background-size: contain; display: block;
  filter: drop-shadow(0 4px 6px rgba(31,76,144,.18));
}
.icon-contest { background-image: url('../img/icon-contest.png'); }
.icon-observe { background-image: url('../img/icon-observe.png'); }
.icon-expert { background-image: url('../img/icon-expert.png'); }
.icon-matters { background-image: url('../img/icon-matters.png'); }
.icon-live   { background-image: url('../img/icon-live.png'); }
.icon-photos { background-image: url('../img/icon-photos.png'); }
.icon-schedule{background-image: url('../img/icon-schedule.png'); }
.icon-contact{ background-image: url('../img/icon-contact.png'); }
.tile-label { font-size: 13px; color: var(--text); font-weight: 500; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid #fff;
  padding: 18px 16px; margin-bottom: 14px;
}
.card-h { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--blue-deep); border-left: 4px solid var(--blue); padding-left: 8px; }
.muted { color: var(--muted); font-size: 12px; }
.center { text-align: center; }

/* ---------- 报名表单 ---------- */
.form-intro { text-align: center; padding: 20px 16px; }
.form-title { margin: 0 0 4px; font-size: 20px; color: var(--blue-deep); }
.form-sub { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tip { margin: 0; font-size: 12px; color: var(--blue); }
.req { color: #e5484d; font-style: normal; }
.opt { color: var(--muted); font-size: 12px; }

.reg-form { display: block; }
.form-card .field { margin: 14px 0; }
.field .lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--text); }
.ipt {
  width: 100%; padding: 11px 12px; font-size: 15px; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; background: #f7fafd;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.ipt:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,214,.12); background: #fff; }
.ta { resize: vertical; min-height: 72px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-col { display: flex; flex-direction: column; gap: 10px; }
.radio, .check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #f7fafd; cursor: pointer;
}
.radio input, .check input { width: 17px; height: 17px; accent-color: var(--blue); }
.radio:has(input:checked), .check:has(input:checked) {
  border-color: var(--blue); background: var(--blue-light); color: var(--blue-deep); font-weight: 500;
}
.hotel { padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.check-none { color: #e5484d; }
.room-t, .room-both, .room-none { min-width: 84px; justify-content: center; }

/* 错误提示 */
.error-box {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 12px 14px; margin: 0 0 14px;
}
.error-title { margin: 0 0 6px; color: #b91c1c; font-weight: 600; font-size: 14px; }
.error-list { margin: 0; padding-left: 18px; color: #dc2626; font-size: 13px; }

/* 提交按钮 */
.form-actions { padding: 6px 0 24px; text-align: center; }
.btn-submit {
  display: inline-block; width: 100%; max-width: 320px; padding: 14px;
  font-size: 16px; font-weight: 600; color: #fff; text-align: center;
  background: linear-gradient(90deg, #3a7be0, #2f6fd6);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(47,111,214,.30);
}
.btn-submit:active { transform: scale(.98); }

/* ---------- 成功页 ---------- */
.success { text-align: center; padding: 36px 20px; }
.success-icon {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, #4cd07d, #22a55a); color: #fff;
  font-size: 40px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(34,165,90,.28);
}
.success-title { margin: 0 0 8px; font-size: 21px; color: var(--blue-deep); }
.success-text { color: var(--muted); margin: 0 0 14px; }
.success-detail { background: var(--blue-light); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.success-detail p { margin: 4px 0; font-size: 14px; color: var(--text); }
.success-tip { font-size: 12px; color: var(--muted); margin: 0 0 16px; }

/* ---------- 联系我们 ---------- */
.contact-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3a7be0, #2f6fd6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-avatar.av-b { background: linear-gradient(135deg, #f5821f, #e06a10); }
.contact-info { flex: 1; }
.contact-name { margin: 0; font-size: 16px; font-weight: 600; }
.contact-duty { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.contact-phone { font-size: 15px; color: var(--blue); font-weight: 600; }

/* ---------- 信息卡片 ---------- */
.info-card { }
.info-line { margin: 8px 0; font-size: 14px; color: var(--text); }
.text-card { font-size: 14px; line-height: 1.8; }
.text-card p { margin: 0 0 10px; }
.schedule-card b { color: var(--blue-deep); }

/* ---------- 直播/图片页 ---------- */
.media-card { padding: 8px; }
.media-frame { width: 100%; height: 46vh; border: 0; border-radius: 12px; }
.coming-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--blue-light); position: relative;
}
.coming-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #2f6fd6 0 8%, transparent 9% 100%);
  background-size: 18px 18px; background-position: center; background-repeat: no-repeat;
}
.coming-text { text-align: center; font-size: 15px; font-weight: 600; margin: 0 0 6px; }

/* ---------- 底部 ---------- */
.footer { text-align: center; padding: 18px 0 26px; color: var(--muted); }
.footer-text { font-size: 12px; font-weight: 600; }
.footer-sub { font-size: 11px; margin-top: 2px; }
.footer-home { border-top: 1px solid var(--line); margin-top: 6px; }
