/* AI入企黑客松 · 卫华集团专场 —— 视觉与参考站点（UserSystem / events）一致：奶油底、天空蓝、粉色缝线、云朵 */
:root {
  --bg: #fdf6ef; --raised: #fff3ea; --card: #fff;
  --fg: #35325a; --muted: #69668e; --subtle: #9d9bba;
  --accent: #d63a72; --accent-hover: #c02c62; --info: #3b7fb5;
  --sky: #a1d8f9; --stitch: #f3a3bf; --yellow: #ffc93c; --mint: #2f8a66; --danger: #d64545;
  --pink-soft: #fde6ee; --sky-soft: #e2eff6; --yellow-soft: #fff2bd; --mint-soft: #ddf5e8; --lav-soft: #ece6fb; --peach-soft: #ffe9de;
  --line: rgb(53 50 90 / .1); --line-strong: rgb(53 50 90 / .2);
  --shadow: 0 12px 32px -16px rgb(53 50 90 / .3);
  --r: 16px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .subtle { color: var(--subtle); } .accent { color: var(--accent); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- 天空、云朵 ---------- */
.sky > .wrap { position: relative; z-index: 1; }
.sky { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #cfeafb 62%, var(--bg) 100%); }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .9; pointer-events: none; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 50%; height: 160%; left: 14%; bottom: 20%; }
.cloud::after { width: 38%; height: 130%; right: 14%; bottom: 25%; }
.cloud-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; pointer-events: none;
  background: radial-gradient(circle at 20px 28px, var(--bg) 20px, transparent 21px) 0 0 / 40px 28px repeat-x; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(253 246 239 / .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--stitch); }
.brand small { font-weight: 600; color: var(--muted); font-size: 12px; }
.topbar .spacer { flex: 1; }

/* ---------- 标题字 ---------- */
.puffy-white { color: #fff; text-shadow: 0 2px 0 #6fb8e6, 0 4px 0 #5aa6d6, 0 8px 18px rgb(53 50 90 / .25); letter-spacing: 2px; }
.puffy-yellow { color: var(--yellow); text-shadow: 0 2px 0 #e9a400, 0 4px 0 #c98a00, 0 8px 18px rgb(168 100 0 / .3); letter-spacing: 2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: #fff; border: 2px dashed var(--stitch); color: var(--accent); font-weight: 700; font-size: 13px; }

/* ---------- 卡片、缝线 ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.stitched { position: relative; }
.stitched::after { content: ''; position: absolute; inset: 6px; border: 1.5px dashed var(--stitch); border-radius: 14px; pointer-events: none; }
.soft-card { border-radius: 20px; padding: 16px 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--raised); }
.panel-head h3 { font-size: 15px; font-weight: 800; }
.panel-body { padding: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 14px; font-size: 18px; font-weight: 800; }
.section-title::before { content: ''; width: 6px; height: 20px; border-radius: 3px; background: var(--accent); }

/* ---------- 贴纸 ---------- */
.sticker { position: relative; display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; text-align: center; font-weight: 800; line-height: 1.2; box-shadow: var(--shadow); }
.sticker::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px dashed rgb(255 255 255 / .85); }
.sticker small { display: block; font-size: 11px; font-weight: 700; opacity: .85; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--fg); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--stitch); background: var(--pink-soft); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 18px -6px rgb(214 58 114 / .6); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #fde8e8; border-color: #f4b4b4; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: 34px; height: 34px; padding: 0; }

/* ---------- 徽章、赛道 ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sky-soft); color: var(--fg); white-space: nowrap; }
.badge-pink { background: var(--pink-soft); color: var(--accent); }
.badge-mint { background: var(--mint-soft); color: var(--mint); }
.badge-yellow { background: var(--yellow-soft); color: #9a6a00; }
.badge-lav { background: var(--lav-soft); color: #5b4b9a; }
.badge-side-wh { background: var(--accent); color: #fff; }
.badge-side-hd { background: var(--info); color: #fff; }
.team-no { font-weight: 800; color: var(--fg); }
.badge-gray { background: #eeedf3; color: var(--muted); }
.badge-first { background: #ffe7a3; color: #8a5a00; }
.badge-second { background: #e3eaf3; color: #4f6684; }
.badge-third { background: #ffe1cc; color: #a5592a; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- 分段控件、标签页 ---------- */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--accent); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--pink-soft); }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.field > span em { color: var(--accent); font-style: normal; }
.field small { display: block; margin-top: 4px; color: var(--subtle); font-size: 12px; }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(214 58 114 / .15); }
.select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2369668e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 34px; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; transition: all .15s; }
.pick input:checked + span { border-color: var(--accent); background: var(--pink-soft); color: var(--accent); }
.pick input:focus-visible + span { box-shadow: 0 0 0 3px rgb(214 58 114 / .2); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 26px; border-radius: 99px; background: #d9d7e4; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: var(--raised); color: var(--muted); font-weight: 700; text-align: left; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--pink-soft); }
.table tr.dim td { opacity: .5; }
.table .r { text-align: right; }

/* ---------- 统计块 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { border-radius: 18px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- 作品卡 ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.work { position: relative; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s; }
.work:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px rgb(53 50 90 / .4); }
.work.live { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.work-no { font-weight: 900; color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.work h4 { font-size: 17px; font-weight: 800; line-height: 1.35; }
.work p { color: var(--muted); font-size: 13px; }
.work .meta { color: var(--subtle); font-size: 12px; }

/* ---------- 空状态、提示 ---------- */
.empty { text-align: center; padding: 48px 16px; color: var(--subtle); }
.empty img { width: 96px; opacity: .9; margin-bottom: 8px; }
.note { padding: 12px 16px; border-radius: 14px; background: var(--sky-soft); color: var(--fg); font-size: 13px; }
.note-warn { background: var(--yellow-soft); }
.note-pink { background: var(--pink-soft); }
.note-mint { background: var(--mint-soft); }

/* ---------- 路演条 ---------- */
.live-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; background: linear-gradient(90deg, var(--pink-soft), #fff); border: 1px solid var(--stitch); }
.live-bar .tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 800; font-size: 13px; }
.live-bar .tag .dot { animation: blink 1.2s infinite; }
.timer { font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.timer.warn { color: #c98a00; } .timer.qa { color: var(--info); } .timer.over { color: var(--danger); }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 480px) { .live-bar { gap: 6px 12px; } .live-bar .tag { flex-basis: 100%; } .timer { font-size: 24px; } }

/* ---------- toast / 弹窗 ---------- */
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; padding: 10px 20px; border-radius: 999px; background: var(--fg); color: #fff; font-weight: 600; box-shadow: var(--shadow); transition: all .25s; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--danger); }
.modal-mask { position: fixed; inset: 0; z-index: 90; background: rgb(53 50 90 / .35); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg); border-radius: 24px; box-shadow: 0 30px 60px -20px rgb(53 50 90 / .5); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--raised); position: sticky; top: 0; z-index: 1; }
.modal-head h3 { flex: 1; font-size: 16px; font-weight: 800; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }

/* ---------- 页脚 ---------- */
.foot { padding: 40px 16px 48px; text-align: center; color: var(--subtle); font-size: 12px; }
.foot b { color: var(--muted); }

/* ---------- 打分滑块 ---------- */
.dim { padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.dim:last-of-type { border-bottom: 0; }
.dim-head { display: flex; align-items: baseline; gap: 10px; }
.dim-head b { font-size: 15px; }
.dim-head .val { margin-left: auto; font-size: 22px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.dim-head .val.empty-val { color: var(--subtle); }
.dim p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pips { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin-top: 10px; }
.pips button { height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.pips button:hover { border-color: var(--accent); }
.pips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pips button.in { background: var(--pink-soft); border-color: var(--stitch); }
.rubric { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 10px; }
.rubric li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 10px; background: var(--raised); font-size: 12px; line-height: 1.5; color: var(--muted); }
.rubric li b { flex: none; color: var(--fg); font-variant-numeric: tabular-nums; min-width: 46px; }
.score-total { display: flex; align-items: baseline; gap: 6px; }
.score-total b { font-size: 34px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  .card-pad, .panel-body { padding: 16px; }
  .pips { gap: 3px; }
  .pips button { height: 34px; font-size: 13px; border-radius: 8px; }
  .works { grid-template-columns: 1fr; }
}
