:root {
  --bg: #0b0e13;
  --surface: #131820;
  --surface-2: #1a212b;
  --line: #232c38;
  --text: #e8eef6;
  --muted: #8b98a9;
  --accent: #f5a524;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------------- 展示端 ---------------- */

.phone {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 560px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #1b2434 0%, #070a0e 60%); }
  .phone {
    min-height: 100vh;
    box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(0, 0, 0, .6);
  }
}

.hero {
  position: relative;
  padding: 44px 24px 32px;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(245, 165, 36, .16) 0%, transparent 60%),
    linear-gradient(180deg, #151c27 0%, #0b0e13 100%);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 27px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.hero .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 26px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1206;
  font-weight: 650;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(245, 165, 36, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:active { transform: scale(.985); box-shadow: 0 4px 16px rgba(245, 165, 36, .22); }

.section { padding: 24px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.tile:active { transform: scale(.98); background: var(--surface-2); }
.tile:hover { border-color: #2c3846; }
.tile .icon { font-size: 20px; line-height: 1; }
.tile .label { font-size: 15px; font-weight: 550; }

.live { display: flex; gap: 12px; }
.live button {
  flex: 1;
  padding: 13px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}
.live button:active { transform: scale(.985); }

.section-title {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.partners {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.partners::-webkit-scrollbar { display: none; }
.partner {
  flex: 0 0 auto;
  min-width: 92px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 12px;
  white-space: nowrap;
}

.foot {
  padding: 28px 24px 40px;
  text-align: center;
  color: #5c6878;
  font-size: 12px;
  line-height: 1.9;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* 入场动画 */
.rise { animation: rise .5s cubic-bezier(.2, .8, .3, 1) both; }
.rise-2 { animation-delay: .06s; }
.rise-3 { animation-delay: .12s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 吐司 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translate(-50%, 12px);
  background: rgba(20, 26, 34, .96);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 后台 ---------------- */

.admin-wrap { max-width: 1040px; margin: 0 auto; padding: 32px 20px 80px; }

.login-card {
  max-width: 380px;
  margin: 12vh auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card p { color: var(--muted); font-size: 13px; margin: 0 0 24px; }

label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

input, textarea, select {
  width: 100%;
  background: #0d1219;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
}
input:focus, textarea:focus { border-color: #3a4a5e; }

.field { margin-bottom: 16px; }

.btn {
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { border-color: #35424f; }
.btn-primary { background: var(--accent); color: #1a1206; border-color: transparent; font-weight: 650; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h2 { font-size: 14px; margin: 0 0 16px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.stat .n { font-size: 26px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat.hl { border-color: rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .07); }
.stat.hl .n { color: var(--accent); }

.bars { margin-top: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; }
.bar-row .name { width: 76px; color: var(--muted); flex: 0 0 auto; }
.bar-row .track { flex: 1; height: 8px; background: #0d1219; border-radius: 99px; overflow: hidden; }
.bar-row .fill { height: 100%; background: linear-gradient(90deg, #f5a524, #ffcf70); border-radius: 99px; }
.bar-row .val { width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.linkbox {
  display: flex; gap: 8px; align-items: center;
  background: #0d1219; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 12.5px; color: var(--muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.linkbox code { color: var(--accent); font-family: ui-monospace, Menlo, monospace; }

.hint { color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.hr { height: 1px; background: var(--line); margin: 20px 0; }
.err { color: #ff7b72; font-size: 13px; min-height: 18px; }

/* ---------------- 议程页 ---------------- */

.ag-head {
  padding: 18px 24px 20px;
  background: linear-gradient(180deg, #151c27 0%, #0b0e13 100%);
  border-bottom: 1px solid var(--line);
}
.ag-back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.ag-back:active { opacity: .6; }
.ag-eyebrow {
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ag-title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 6px;
  font-weight: 650;
}
.ag-meta { font-size: 13px; color: var(--muted); }

.ag-days {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 19, .92);
  backdrop-filter: blur(12px);
  z-index: 5;
  scrollbar-width: none;
}
.ag-days::-webkit-scrollbar { display: none; }
.ag-day {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.ag-day.on {
  background: var(--accent);
  border-color: transparent;
  color: #1a1206;
  font-weight: 650;
}

.ag-list { padding: 12px 24px 8px; }

.ag-row {
  display: grid;
  grid-template-columns: 54px 20px 1fr;
  gap: 0 10px;
  padding: 14px 0;
}
.ag-time { text-align: right; padding-top: 2px; }
.ag-t1 { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ag-t2 { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }

.ag-rail { position: relative; display: flex; justify-content: center; }
.ag-rail::before {
  content: "";
  position: absolute;
  top: 6px; bottom: -14px;
  width: 1px;
  background: var(--line);
}
.ag-row:last-child .ag-rail::before { display: none; }
.ag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(245, 165, 36, .12);
}
.ag-row-break .ag-dot { background: #3a4654; box-shadow: none; }

.ag-body { padding-bottom: 4px; min-width: 0; }
.ag-h { font-size: 15.5px; font-weight: 580; line-height: 1.45; margin: 6px 0 5px; }
.ag-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: .02em;
}
.track-main { background: rgba(245, 165, 36, .14); color: #f5a524; }
.track-sub { background: rgba(79, 140, 255, .14); color: #6ea0ff; }
.track-round { background: rgba(126, 231, 195, .13); color: #5fd3ae; }
.track-break { background: rgba(139, 152, 169, .14); color: #8b98a9; }
.track-fun { background: rgba(214, 121, 255, .14); color: #c07bff; }

.ag-speaker { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.ag-name { font-size: 13.5px; color: var(--text); }
.ag-org { font-size: 12px; color: var(--muted); }
.ag-room { font-size: 12px; color: var(--muted); }
.ag-row-break .ag-h { color: var(--muted); font-weight: 500; font-size: 14px; }

.ag-empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; }

.ag-edit {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #0d1219;
}
