/* 深圳市医学会2026年病理学分会学术年会 官网样式 */
:root {
  --blue-950: #072e5e;
  --blue-900: #0a3d7a;
  --blue-700: #0d57b8;
  --blue-600: #1160c9;
  --blue-500: #1f7fdc;
  --blue-100: #dcebfb;
  --blue-50: #eef5fd;
  --ink: #17263a;
  --muted: #63718a;
  --line: #e3ebf5;
  --bg: #f3f7fc;
  --card: #ffffff;
  --accent: #f0653a;
  --gold: #e8a33d;
  --teal: #0e9c8d;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(13, 62, 122, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 62, 122, 0.14);
  --grad: linear-gradient(135deg, #0d57b8 0%, #1f8fe0 100%);
  --font: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ============ 顶部横幅(首页) ============ */
.hero { position: relative; background: #fff; }
.hero img { width: 100%; height: auto; }

/* ============ 子页顶栏 ============ */
.topbar {
  background: var(--grad);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(10, 61, 122, 0.25);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar .back {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  transition: background 0.2s;
}
.topbar .back:active, .topbar .back:hover { background: rgba(255, 255, 255, 0.18); }
.topbar h1 { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; line-height: 1.35; }
.topbar .home-link {
  margin-left: auto;
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

/* ============ 首页标题卡 ============ */
.title-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: -28px;
  position: relative;
  z-index: 5;
  padding: 22px 20px 20px;
  border-top: 3px solid var(--blue-600);
}
@media (min-width: 700px) { .title-card { margin-top: -48px; padding: 30px 34px 26px; } }
.title-card h1 {
  font-size: 20px;
  line-height: 1.45;
  color: var(--blue-950);
  font-weight: 700;
  letter-spacing: 0.5px;
}
@media (min-width: 700px) { .title-card h1 { font-size: 26px; } }
.title-card .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
}
.chip svg { flex: none; }
.chip.warm { background: #fef1ec; color: #c94f26; border-color: #fadfd4; }

/* 倒计时 */
.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  flex-wrap: wrap;
}
.countdown .cd-label { font-size: 13px; color: var(--muted); }
.cd-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-600);
  font-variant-numeric: tabular-nums;
  background: var(--blue-50);
  border-radius: 10px;
  padding: 0 10px;
  line-height: 1.5;
}
.cd-unit { font-size: 13px; color: var(--muted); margin-right: 2px; }

/* ============ 栏目九宫格 ============ */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}
@media (min-width: 700px) { .nav-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; } }
.nav-tile {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 14px 16px;
  text-align: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid rgba(227, 235, 245, 0.7);
}
.nav-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.nav-tile:active { transform: scale(0.97); }
.nav-tile .ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 87, 184, 0.25);
}
.nav-tile .t { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.nav-tile .d { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.3px; }
.nav-tile .corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 54px;
  height: 54px;
  background: radial-gradient(circle at top right, var(--blue-50), transparent 70%);
  pointer-events: none;
}
.ico.c1 { background: linear-gradient(135deg, #0d57b8, #2f9be6); }
.ico.c2 { background: linear-gradient(135deg, #0e9c8d, #35c4a8); box-shadow: 0 4px 12px rgba(14, 156, 141, 0.25); }
.ico.c3 { background: linear-gradient(135deg, #e8833d, #f0b03a); box-shadow: 0 4px 12px rgba(232, 131, 61, 0.25); }
.ico.c4 { background: linear-gradient(135deg, #d84f6b, #f0653a); box-shadow: 0 4px 12px rgba(216, 79, 107, 0.25); }
.ico.c5 { background: linear-gradient(135deg, #5b55d6, #8a6ff0); box-shadow: 0 4px 12px rgba(91, 85, 214, 0.25); }
.ico.c6 { background: linear-gradient(135deg, #1a8ec9, #3fc0e8); box-shadow: 0 4px 12px rgba(26, 142, 201, 0.25); }
.ico.c7 { background: linear-gradient(135deg, #4a7fb5, #7aa8d4); box-shadow: 0 4px 12px rgba(74, 127, 181, 0.25); }
.ico.c8 { background: linear-gradient(135deg, #0a3d7a, #1160c9); }
.tile-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  background: #f4f6fa;
  color: #93a1b7;
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.5px;
}

/* ============ 通用内容卡片 ============ */
.page-body { flex: 1; padding: 18px 0 30px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-bottom: 16px;
}
@media (min-width: 700px) { .card { padding: 26px 30px; } }
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-950);
  margin-bottom: 14px;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--grad);
  flex: none;
}
.card p { margin-bottom: 10px; font-size: 15px; }
.card p:last-child { margin-bottom: 0; }
.kv { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.kv .k { color: var(--muted); flex: none; }
.list-cn { padding-left: 0; list-style: none; }
.list-cn li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 15px;
}
.list-cn li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-500);
}
.note {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-500);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--blue-900);
  margin: 12px 0;
}
.note.warm { background: #fef4ee; border-color: var(--accent); color: #a34424; }

/* ============ 页脚 ============ */
footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 26px 0 30px;
  font-size: 13px;
  margin-top: 26px;
}
footer .wrap { display: flex; flex-direction: column; gap: 6px; }
footer b { color: #fff; font-weight: 600; }
footer .copy { margin-top: 10px; opacity: 0.55; font-size: 12px; }

/* ============ 议程 ============ */
.day-tabs {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 52px;
  z-index: 40;
  background: var(--bg);
  padding: 12px 0 10px;
}
.day-tab {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.18s;
}
.day-tab .dd { font-size: 16px; font-weight: 700; line-height: 1.3; }
.day-tab .dw { font-size: 11px; }
.day-tab.on {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13, 87, 184, 0.35);
}
.session {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.session-head {
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  color: #fff;
  padding: 14px 18px;
}
.session-head .venue { font-size: 12px; opacity: 0.85; display: flex; align-items: center; gap: 5px; }
.session-head .name { font-size: 17px; font-weight: 700; margin-top: 3px; letter-spacing: 0.5px; }
.session-head .chair { font-size: 12.5px; opacity: 0.92; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.session-head.t2 { background: linear-gradient(135deg, #0b6e63, #12a190); }
.session-head.t3 { background: linear-gradient(135deg, #9a4a12, #d97b2b); }
.session-head.t4 { background: linear-gradient(135deg, #7a2949, #c04a6b); }
.sub-seg {
  padding: 8px 18px;
  background: var(--blue-50);
  color: var(--blue-900);
  font-size: 13.5px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}
.item { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.item:first-child { border-top: none; }
.item .time {
  flex: none;
  width: 88px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-600);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.item .body { flex: 1; min-width: 0; }
.item .what { font-size: 14.5px; font-weight: 550; line-height: 1.5; }
.item .who { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.item .who b { color: var(--ink); font-weight: 600; }
.item .host { font-size: 12px; color: #8b6c2e; margin-top: 3px; }
.item.break {
  background: repeating-linear-gradient(-45deg, #fafcfe, #fafcfe 8px, #f2f7fc 8px, #f2f7fc 16px);
}
.item.break .what { color: var(--muted); font-weight: 500; }
.item.disc { background: #fffaf3; }
.item.disc .what { font-size: 13px; color: #7a5a1e; font-weight: 500; }
.item.hl .what { color: var(--blue-900); font-weight: 650; }

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-label .req { color: #e5484d; margin-left: 2px; }
.form-label .opt { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-input, .form-select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfdff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2363718a' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-input:focus, .form-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(31, 127, 220, 0.15);
  background: #fff;
}
.form-input.err { border-color: #e5484d; }
.field-err { color: #e5484d; font-size: 12px; margin-top: 5px; display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2.stack-sm { grid-template-columns: 1fr; } }

/* 房型卡片 */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-opt {
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 13px 12px 11px;
  cursor: pointer;
  background: #fbfdff;
  transition: all 0.15s;
  position: relative;
}
.room-opt .rn { font-size: 14px; font-weight: 600; line-height: 1.4; }
.room-opt .rp { margin-top: 4px; font-size: 13px; color: var(--muted); }
.room-opt .rp b { font-size: 19px; color: var(--accent); font-weight: 700; }
.room-opt .share-tag {
  display: inline-block;
  font-size: 10.5px;
  background: #eef9f4;
  color: #0e8c66;
  border: 1px solid #c8ecd9;
  border-radius: 5px;
  padding: 0 5px;
  margin-bottom: 3px;
}
.room-opt.on {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(31, 127, 220, 0.13);
}
.room-opt.on::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -7px;
  width: 22px;
  height: 22px;
  background: var(--blue-600);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(13, 87, 184, 0.4);
}

/* 性别单选 */
.seg-radio { display: flex; gap: 10px; }
.seg-radio label {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  background: #fbfdff;
  transition: all 0.15s;
}
.seg-radio input { display: none; }
.seg-radio label.on { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }

/* 金额条 */
.amount-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff8f0, #fef1e6);
  border: 1px solid #f5ddc4;
  border-radius: 13px;
  padding: 14px 18px;
  margin: 18px 0;
  flex-wrap: wrap;
  gap: 6px;
}
.amount-bar .al { font-size: 14px; color: #8a6134; }
.amount-bar .av { font-size: 15px; color: #8a6134; }
.amount-bar .av b { font-size: 28px; color: var(--accent); font-variant-numeric: tabular-nums; }

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 87, 184, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.ghost {
  background: #fff;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-500);
  box-shadow: none;
}

/* 支付页 */
.pay-panel { text-align: center; }
.pay-panel .ok-ico { margin: 4px auto 10px; width: 54px; height: 54px; }
.pay-amount { font-size: 40px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.pay-amount small { font-size: 18px; }
.pay-desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.qr-box {
  width: min(260px, 68vw);
  margin: 18px auto 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.pay-steps { text-align: left; margin: 16px auto 0; max-width: 420px; }
.pay-steps li { font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.pay-steps li b { color: var(--ink); }

/* 地图 */
.map-frame {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 12px;
  background: #e9eef5;
}
@media (max-width: 600px) { .map-frame { height: 340px; } }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

/* 联系我们 */
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fbfdff;
}
.contact-card .av2 {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex: none;
}
.contact-card .cn { font-size: 16px; font-weight: 600; }
.contact-card .cr { font-size: 12.5px; color: var(--muted); }
.contact-card .tel {
  margin-left: auto;
  flex: none;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 敬请期待 */
.coming {
  text-align: center;
  padding: 70px 20px 80px;
}
.coming .big-ico {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
}
.coming h2 { color: var(--blue-950); font-size: 20px; margin-bottom: 8px; }
.coming p { color: var(--muted); font-size: 14px; }

/* 首页载入动画 */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  .rise.d3 { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* admin */
.tbl-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
table.data th, table.data td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
table.data th { background: var(--blue-50); color: var(--blue-900); position: sticky; top: 0; }
table.data tr:nth-child(even) td { background: #fafcff; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat {
  flex: 1;
  min-width: 130px;
  background: var(--blue-50);
  border-radius: 12px;
  padding: 12px 16px;
}
.stat .sv { font-size: 24px; font-weight: 700; color: var(--blue-700); }
.stat .sl { font-size: 12px; color: var(--muted); }
