/* 圆桌论坛会议管理系统 - 公共样式 */
:root {
  --primary: #1a56db;
  --primary-dark: #0e3a9e;
  --gold: #d4a017;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); }

/* H5 通用 */
.h5-page { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 70px; }
.hero { background: linear-gradient(135deg, #0e3a9e 0%, #1a56db 55%, #3b82f6 100%); color: #fff; padding: 40px 24px 30px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.15), transparent 50%); }
.hero h1 { font-size: 26px; letter-spacing: 2px; position: relative; z-index: 1; }
.hero .slogan { margin-top: 10px; font-size: 14px; opacity: .85; letter-spacing: 4px; position: relative; z-index: 1; }
.hero .meta { margin-top: 18px; display: inline-flex; flex-direction: column; gap: 6px; font-size: 13px; background: rgba(255,255,255,.12); padding: 12px 22px; border-radius: 10px; position: relative; z-index: 1; }
.card { background: var(--card); border-radius: var(--radius); margin: 16px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }

/* 底部导航（H5） */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; background: #fff; display: flex; border-top: 1px solid #e5e7eb; z-index: 100; }
.tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 11px; color: var(--muted); text-decoration: none; }
.tabbar a .icon { font-size: 20px; display: block; margin-bottom: 2px; }
.tabbar a.active { color: var(--primary); font-weight: 600; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group label .req { color: var(--err); margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; background: #fff; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { flex: 1; min-width: 70px; text-align: center; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 6px; font-size: 14px; color: var(--text); cursor: pointer; background: #fff; }
.radio-row input { display: none; }
.radio-row input:checked + span { color: var(--primary); font-weight: 600; }
.radio-row label:has(input:checked) { border-color: var(--primary); background: #eff4ff; }

.btn { display: block; width: 100%; padding: 13px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--primary); color: #fff; font-family: inherit; }
.btn:active { opacity: .85; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.gold { background: linear-gradient(135deg, #d4a017, #f0c040); color: #5b3d00; }
.btn.sm { padding: 8px 14px; width: auto; font-size: 13px; display: inline-block; }
.btn.danger { background: var(--err); }
.btn.ok { background: var(--ok); }

/* 提示 */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: rgba(17,24,39,.92); color: #fff; padding: 10px 22px; border-radius: 24px; font-size: 14px; z-index: 999; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; }
.toast.err { background: rgba(220,38,38,.95); }
.toast.ok { background: rgba(5,150,105,.95); }

/* 徽章 */
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.badge.vip { background: #fef3c7; color: #92400e; border: 1px solid #f0c040; }
.badge.ok { background: #d1fae5; color: #065f46; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.rej { background: #fee2e2; color: #991b1b; }
.badge.blue { background: #dbeafe; color: #1e40af; }
.badge.diet { background: #ecfdf5; color: #047857; border: 1px dashed #10b981; }

/* 议程时间轴 */
.timeline { list-style: none; }
.timeline li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #e5e7eb; }
.timeline li:last-child { border-bottom: none; }
.timeline .t { width: 100px; flex-shrink: 0; font-size: 13px; color: var(--primary); font-weight: 600; }
.timeline .c .tt { font-size: 15px; font-weight: 600; }
.timeline .c .dd { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* 嘉宾墙 */
.guest-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 14px; }
.guest { text-align: center; }
.guest .ava { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; background: linear-gradient(135deg, #1a56db, #3b82f6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.guest .nm { font-size: 14px; font-weight: 600; }
.guest .ti { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 桌面端（管理/控制台） */
.desktop { min-height: 100vh; background: var(--bg); }
.desktop-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.desktop-header .logo { font-size: 17px; font-weight: 700; color: var(--primary); }
.desktop-header .logo span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 10px; }
.nav-tabs { display: flex; gap: 4px; background: #fff; padding: 0 28px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.nav-tabs button { border: none; background: none; padding: 12px 18px; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.nav-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-panel { display: none; padding: 20px 28px; }
.tab-panel.active { display: block; }
.grid { display: grid; gap: 16px; }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-card .num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat-card .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-card.gold .num { color: var(--gold); }
.stat-card.ok .num { color: var(--ok); }
.stat-card.warn .num { color: var(--warn); }
.panel { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-bottom: 16px; }
.panel h3 { font-size: 15px; margin-bottom: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; padding: 9px 10px; background: #f8fafc; color: var(--muted); font-weight: 500; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
table.data td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
table.data tr:hover td { background: #f8faff; }

/* 大屏 */
.screen-body { background: #060d23; color: #fff; width: 100vw; height: 100vh; overflow: hidden; font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.screen-main { display: flex; height: 100vh; }
.screen-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.screen-side { width: 26%; min-width: 300px; border-left: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; padding: 28px; gap: 20px; }
.screen-bg-gradient { background: radial-gradient(ellipse at 50% 30%, #123a8f 0%, #0a1a45 55%, #060d23 100%); }
.screen-bg-dark { background: radial-gradient(ellipse at 50% 40%, #14213d 0%, #060d23 100%); }
.screen-bg-light { background: radial-gradient(ellipse at 50% 40%, #e8eefb 0%, #c9d6f0 100%); color: #1f2937; }
.screen-bg-light .side-title { color: #334155; }
.screen-bg-light .q-card { background: rgba(255,255,255,.75); color: #1f2937; border-color: rgba(0,0,0,.08); }
.big-title { font-size: 64px; font-weight: 800; letter-spacing: 6px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.big-sub { font-size: 26px; opacity: .8; margin-top: 22px; letter-spacing: 3px; }
.countdown-num { font-size: 200px; font-weight: 800; font-variant-numeric: tabular-nums; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.side-title { font-size: 15px; color: #93b4f5; letter-spacing: 3px; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 8px; }
.q-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }
.q-card .qa { font-size: 12px; color: #93b4f5; margin-bottom: 4px; }
.checkin-fly { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: 15px; }
.checkin-fly .vip-mark { color: var(--gold); font-size: 12px; border: 1px solid var(--gold); border-radius: 4px; padding: 1px 5px; }
.guest-big { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.guest-grid-screen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 70px; }
.guest-cell { text-align: center; }
.guest-cell .ava { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, #1a56db, #60a5fa); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 14px; border: 3px solid rgba(255,255,255,.35); }
.guest-cell .nm { font-size: 24px; font-weight: 700; }
.guest-cell .ti { font-size: 16px; color: #9db8f0; margin-top: 4px; }
.guest-cell .iv { font-size: 13px; opacity: .65; margin-top: 6px; max-width: 220px; }
.emergency-overlay { position: fixed; inset: 0; background: rgba(153, 18, 18, .94); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.emergency-overlay .et { font-size: 54px; font-weight: 800; letter-spacing: 8px; }
.emergency-overlay .ec { font-size: 26px; max-width: 70%; text-align: center; line-height: 1.7; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .5s ease; }
@keyframes particleBurst { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.publish-fx { position: fixed; inset: 0; z-index: 998; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(212,160,23,.5), transparent 60%); animation: particleBurst 5s ease forwards; }

/* 签到台 */
.checkin-body { background: #0f172a; color: #fff; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.checkin-input { width: 460px; max-width: 92vw; padding: 18px; font-size: 24px; text-align: center; border-radius: 14px; border: 2px solid #3b82f6; background: rgba(255,255,255,.08); color: #fff; letter-spacing: 2px; }
.checkin-input:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 6px rgba(59,130,246,.25); }
.result-card { width: 560px; max-width: 94vw; margin-top: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 30px; text-align: center; }
.result-card.vip { border-color: var(--gold); box-shadow: 0 0 40px rgba(212,160,23,.35); }
.result-card .rn { font-size: 34px; font-weight: 800; margin: 8px 0; }
.result-card .rc { font-size: 17px; color: #9db8f0; }
.search-list { width: 560px; max-width: 94vw; margin-top: 20px; max-height: 40vh; overflow-y: auto; }
.search-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; font-size: 16px; }

/* 问卷星级 */
.stars { display: flex; gap: 6px; font-size: 28px; cursor: pointer; user-select: none; }
.stars .st { color: #d1d5db; transition: color .15s; }
.stars .st.on { color: #f59e0b; }

/* 登录遮罩 */
.login-mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(6px); z-index: 500; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 16px; padding: 32px; width: 340px; text-align: center; }
.login-box h2 { font-size: 18px; margin-bottom: 18px; }
.login-box input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px; margin-bottom: 14px; text-align: center; }

@media (max-width: 640px) {
  .big-title { font-size: 38px; }
  .countdown-num { font-size: 110px; }
  .guest-grid-screen { grid-template-columns: repeat(2, 1fr); gap: 30px 30px; }
  .guest-cell .ava { width: 80px; height: 80px; font-size: 30px; }
  .screen-side { display: none; }
}
