/* AI入企黑客松 · 永联实业专场 —— 评审相关页面（公共页、评委打分、评审后台、参赛后台）的样式。
   和报名页一套视觉：深色底、粗黑体、只用圆方品牌橙一个强调色（纯色 #FF5A1F，悬停 #E8430D）、不用渐变、没有装饰小圆点、克制的磨砂卡片。
   红色只用在出错、删除、超时这些需要警示的地方。 */
:root {
  color-scheme: dark;
  --bg: #14111C; --raised: rgba(255, 255, 255, .05); --card: rgba(255, 255, 255, .06); --solid: #1D1926;
  --fg: #FFFCF6; --muted: rgba(255, 252, 246, .72); --subtle: rgba(255, 252, 246, .5);
  --accent: #FF5A1F; --accent-hover: #E8430D; --accent-soft: rgba(255, 90, 31, .14); --accent-line: rgba(255, 90, 31, .55);
  --danger: #FF8F86; --danger-soft: rgba(194, 59, 53, .28);
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .24);
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --num: "Avenir Next", "Helvetica Neue", "DIN Alternate", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #FF7A47; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; }
code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.num { font-family: var(--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; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(20, 17, 28, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--fg); font-weight: 800; }
.brand:hover { color: var(--fg); }
.brand .lg1 { height: 28px; width: auto; flex: none; }
.brand .lg2 { height: 18px; width: auto; flex: none; }
.brand i { width: 1px; height: 20px; background: rgba(255, 255, 255, .4); flex: none; }
.brand b { margin-left: 6px; font-size: 15px; white-space: nowrap; }
.brand small { font-weight: 600; color: var(--subtle); font-size: 12px; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.toplink { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.toplink:hover, .toplink.on { color: var(--fg); }
@media (max-width: 640px) { .brand { gap: 8px; } .brand .lg1 { height: 24px; } .brand .lg2 { height: 15px; } .brand i { height: 15px; } .brand small { display: none; } .toplink.hide-sm { display: none; } }
@media (max-width: 380px) { .brand .lg2, .brand i { display: none; } }

/* ---------- 页头 ---------- */
.head { padding: 26px 0 18px; }
.head h1 { font-size: 28px; font-weight: 800; line-height: 1.25; }
.head p { margin-top: 4px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--accent); }

/* ---------- 卡片 ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.card-pad { padding: 20px; }
.soft-card { border-radius: 18px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; 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 { margin: 28px 0 14px; font-size: 18px; font-weight: 800; }

/* ---------- 按钮 ---------- */
.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: rgba(255, 255, 255, .06); color: var(--fg); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, opacity .15s; }
.btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: var(--fg); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; 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); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-danger { color: var(--danger); border-color: rgba(255, 143, 134, .45); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: #FFE4E0; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 28px; 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: rgba(255, 255, 255, .1); color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.badge-on { background: var(--accent-soft); color: #FFB08F; border-color: var(--accent-line); }
.badge-solid { background: var(--accent); color: #fff; }
.badge-gray { background: rgba(255, 255, 255, .06); color: var(--subtle); }
.badge-warn { background: var(--danger-soft); color: #FFD3CE; border-color: rgba(255, 143, 134, .5); }
.badge-first { background: var(--accent); color: #fff; }
.badge-second { background: var(--accent-soft); color: #FFB08F; border-color: var(--accent-line); }
.badge-third { background: rgba(255, 255, 255, .1); color: var(--fg); border-color: var(--line-strong); }
.team-no { font-weight: 800; color: var(--fg); }

/* ---------- 分段控件、标签页 ---------- */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); 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; }
.tabs-row { margin: 4px 0 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip.on { border-color: var(--accent); color: #fff; background: var(--accent-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: rgba(255, 255, 255, .06); color: var(--fg); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.textarea { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: rgba(255, 252, 246, .36); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, .2); }
.select { background-image: 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='%23FFFCF6' stroke-opacity='.7' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; cursor: pointer; }
.select option { color: var(--fg); background: var(--solid); }
.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); font-weight: 600; transition: all .15s; }
.pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.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: rgba(255, 255, 255, .2); 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 rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.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(--subtle); 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:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.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: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--num); font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat.hot b { color: var(--accent); }

/* ---------- 作品卡 ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.work { position: relative; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.work.live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.work-no { font-family: var(--num); font-weight: 700; 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); }
.note { padding: 12px 16px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); color: var(--fg); font-size: 13px; }
.note-warn { background: var(--accent-soft); border-color: var(--accent-line); }
.note-danger { background: var(--danger-soft); border-color: rgba(255, 143, 134, .5); color: #FFE6E2; }

/* ---------- 路演条、计时 ---------- */
.live-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.live-bar .tag { color: #FFB08F; font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.timer { font-family: var(--num); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.timer.warn { color: var(--accent); } .timer.qa { color: var(--fg); } .timer.over { color: var(--danger); }
@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: calc(28px + env(safe-area-inset-bottom)); z-index: 100; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; padding: 10px 20px; border-radius: 14px; background: #262130; border: 1px solid var(--line-strong); color: var(--fg); 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: #46181A; border-color: rgba(255, 143, 134, .6); color: #FFE0DB; }
.modal-mask { position: fixed; inset: 0; z-index: 90; background: rgba(5, 4, 10, .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(600px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--solid); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.modal.wide { width: min(880px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--solid); 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); position: sticky; bottom: 0; background: var(--solid); }
@keyframes fade { from { opacity: 0; } }

/* ---------- 登录 ---------- */
.login { max-width: 400px; margin: 9vh auto 0; text-align: center; }
.login-t { font-size: 22px; font-weight: 800; margin: 4px 0 8px; }
.login-p { font-size: 13px; margin: 0 auto 18px; max-width: 320px; }
.login-p b { color: var(--fg); word-break: break-all; }
.login .btn-block { height: 46px; font-size: 15px; }
.login .btn-block + .btn-block { margin-top: 10px; }
.login-tip { font-size: 12px; margin-top: 12px; }
.auth-wait { text-align: center; padding: 90px 0; font-weight: 600; }
.who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.who-n { max-width: 10em; }
@media (max-width: 520px) { .who-n { max-width: 4.5em; } }

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

/* ---------- 打分 ---------- */
.dim { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dim:last-of-type { border-bottom: 0; }
.dim-head { display: flex; align-items: baseline; gap: 10px; }
.dim-head b { font-size: 16px; font-weight: 800; }
.dim-head .val { margin-left: auto; font-family: var(--num); font-size: 24px; font-weight: 700; 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: 13px; margin-top: 2px; }
.pips { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; margin-top: 10px; }
.pips button { height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.pips button:hover:not(:disabled) { border-color: var(--accent); }
.pips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pips button.in { background: var(--accent-soft); border-color: var(--accent-line); }
.pips button:disabled { cursor: default; opacity: .7; }
.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-family: var(--num); font-size: 34px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- 作品内容（评委和后台看到的完整提交内容） ---------- */
.wd-sec + .wd-sec { margin-top: 18px; }
.wd-sec h4 { padding-bottom: 6px; margin-bottom: 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; color: var(--accent); border-bottom: 1px solid var(--line); }
.wd-row { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.wd-row:last-child { border-bottom: 0; }
.wd-row dt { font-size: 12.5px; color: var(--subtle); margin-bottom: 2px; }
.wd-row dd { margin: 0; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.wd-files { display: grid; gap: 8px; white-space: normal; }
.wd-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.wd-file b { display: block; font-size: 14px; }
.wd-file small { color: var(--subtle); font-size: 12px; }
.wd-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: normal; }
.wd-table th, .wd-table td { padding: 6px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; white-space: pre-wrap; }

@media (max-width: 640px) {
  .card-pad, .panel-body { padding: 16px; }
  .pips { gap: 3px; }
  .pips button { height: 38px; font-size: 13px; border-radius: 8px; }
  .works { grid-template-columns: 1fr; }
  .head h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
