/* 保利置业内部AI大赛 · 投票平台共享样式（延续方案文档深蓝+橙商务风） */
:root {
  --navy: #0b2c4f;
  --blue: #174f80;
  --blue-2: #2a6a9e;
  --blue-soft: #eaf2f8;
  --orange: #a95f2b;
  --orange-2: #c8793b;
  --orange-soft: #f8eee6;
  --ink: #172333;
  --muted: #5d6b78;
  --line: #dce4ea;
  --panel: #f7f9fb;
  --white: #ffffff;
  --green: #39785f;
  --red: #b4452f;
  --shadow: 0 14px 40px rgba(12, 44, 79, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: #eef2f5; }
body {
  margin: 0; color: var(--ink); background: #eef2f5;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px; height: 62px;
  background: linear-gradient(100deg, var(--navy), var(--blue));
  color: #fff; box-shadow: 0 6px 20px rgba(11,44,79,.25);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.topbar .brand .mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: rgba(255,255,255,.14);
  color: #ffd9b8; font-size: 13px; font-weight: 800;
}
.topbar nav { display: flex; gap: 4px; margin-left: 10px; }
.topbar nav a {
  padding: 8px 14px; border-radius: 10px; color: rgba(255,255,255,.82); font-size: 14px; font-weight: 600;
}
.topbar nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar nav a.active { background: rgba(255,255,255,.18); color: #fff; }
.topbar .me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.85); }
.topbar .me .role-tag {
  padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.16); color: #ffe3c4;
}
.topbar .me button {
  border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff;
  border-radius: 8px; padding: 5px 10px; font-size: 12px;
}
.topbar .me button:hover { background: rgba(255,255,255,.15); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 26px 22px 70px; }

.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 34px 36px;
  color: #fff; background: linear-gradient(115deg, var(--navy) 0%, var(--blue) 62%, #8e542c 135%);
  box-shadow: var(--shadow);
}
.hero::after {
  position: absolute; right: -80px; bottom: -110px; width: 300px; height: 300px; content: "";
  border: 52px solid rgba(255,255,255,.05); border-radius: 50%;
}
.hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; color: #ffcf9e; margin-bottom: 12px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; }
.hero p { margin: 0; max-width: 640px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.75; }
.hero .stage-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,.14);
  font-size: 14px; font-weight: 700;
}
.hero .stage-pill .dot { width: 9px; height: 9px; border-radius: 99px; background: #ffb26b; }

.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 8px; }
.stage-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  border-top: 5px solid var(--blue);
}
.stage-card.s2 { border-top-color: var(--orange); }
.stage-card.s3 { border-top-color: var(--green); }
.stage-card.current { box-shadow: var(--shadow); border-color: var(--orange-2); }
.stage-card .st { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.stage-card h3 { margin: 6px 0 6px; color: var(--navy); font-size: 17px; }
.stage-card .time { font-size: 13px; color: var(--orange); font-weight: 700; }
.stage-card .now {
  display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft);
}
.stage-card.current .now { color: #fff; background: var(--orange); }

.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 30px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.section-title h2 { margin: 0; color: var(--navy); font-size: 24px; }
.section-title span { color: var(--muted); font-size: 13px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-cover {
  position: relative; height: 118px; padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
}
.project-cover .no { position: absolute; top: 12px; right: 16px; font-size: 13px; font-weight: 800; opacity: .8; }
.project-cover .tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,.2); font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.project-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 16.5px; line-height: 1.45; }
.project-card p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .go { margin-top: auto; align-self: flex-start; font-size: 13.5px; font-weight: 700; color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700;
  transition: 160ms ease;
}
.btn:hover { background: var(--blue); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: var(--orange-2); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--panel); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.big { padding: 14px 30px; font-size: 16px; border-radius: 14px; }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px; border: 1px solid #ead4c4; background: var(--orange-soft);
  color: #5a4637; font-size: 14px; line-height: 1.7;
}
.notice.blue { border-color: #cdddea; background: var(--blue-soft); color: #2c4a63; }
.notice strong { color: var(--orange); }
.notice.blue strong { color: var(--blue); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 15px; color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(42,106,158,.12); }

.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 18px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200,121,59,.18), transparent 60%),
    linear-gradient(150deg, #0b2c4f 0%, #174f80 55%, #0e3a5f 100%);
}
.login-card {
  width: 100%; max-width: 430px; padding: 38px 34px;
  border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(4,20,38,.45);
}
.login-card .mark {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  border-radius: 16px; background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #ffd9b8; font-weight: 800; font-size: 18px;
}
.login-card h1 { margin: 0 0 6px; color: var(--navy); font-size: 23px; }
.login-card .sub { margin: 0 0 26px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.code-row { display: grid; grid-template-columns: 1fr 128px; gap: 10px; }
.code-row button { border-radius: 12px; border: 1px solid var(--blue-2); background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13.5px; }
.code-row button:disabled { opacity: .5; }
.login-alt { margin-top: 18px; text-align: center; }
.login-alt span { color: var(--muted); font-size: 13px; }
.login-alt .wecom {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  padding: 10px 18px; border-radius: 12px; border: 1px dashed var(--line);
  color: var(--muted); font-size: 13.5px; background: var(--panel); cursor: not-allowed;
}
.err-msg { margin: 4px 0 10px; color: var(--red); font-size: 13.5px; min-height: 18px; }
.mock-tip { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; line-height: 1.6; }

/* 投票页 */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vote-card {
  position: relative; padding: 18px; border: 2px solid var(--line); border-radius: 16px; background: #fff;
  cursor: pointer; transition: 150ms ease;
}
.vote-card:hover { border-color: var(--blue-2); }
.vote-card.selected { border-color: var(--orange); background: var(--orange-soft); }
.vote-card .pick {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 99px;
  border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
  background: #fff;
}
.vote-card.selected .pick { border-color: var(--orange); background: var(--orange); }
.vote-card .no { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.vote-card h3 { margin: 6px 34px 6px 0; color: var(--navy); font-size: 15.5px; line-height: 1.5; }
.vote-card .tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; }
.vote-bar {
  position: sticky; bottom: 14px; z-index: 30; margin-top: 24px;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; border-radius: 18px; background: rgba(11,44,79,.96); color: #fff;
  box-shadow: 0 18px 40px rgba(11,44,79,.35); backdrop-filter: blur(8px);
}
.vote-bar .cnt { font-size: 15px; font-weight: 700; }
.vote-bar .cnt b { color: #ffb26b; font-size: 20px; }
.vote-bar .names { flex: 1; color: rgba(255,255,255,.7); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-bar .btn { flex-shrink: 0; }

/* 结果页 */
.result-row {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 20px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.result-row.top1 { border: 2px solid #d4a017; background: linear-gradient(90deg, #fffdf5, #fff); }
.result-row.top2 { border: 2px solid #b8c2cc; background: linear-gradient(90deg, #fafcfd, #fff); }
.result-row.top3 { border: 2px solid #c98f5e; background: linear-gradient(90deg, #fdf8f3, #fff); }
.result-row .rank {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--panel); color: var(--navy); font-size: 19px; font-weight: 800;
}
.result-row.top1 .rank { background: #d4a017; color: #fff; }
.result-row.top2 .rank { background: #8a98a5; color: #fff; }
.result-row.top3 .rank { background: #b0764a; color: #fff; }
.result-row .info h3 { margin: 0 0 4px; color: var(--navy); font-size: 16px; }
.result-row .info .meta { color: var(--muted); font-size: 12.5px; }
.result-row .score { text-align: right; }
.result-row .score b { display: block; color: var(--orange); font-size: 22px; }
.result-row .score span { color: var(--muted); font-size: 12px; }
.award-badge {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 800; vertical-align: 2px;
}
.award-1 { background: #d4a017; color: #fff; }
.award-2 { background: #8a98a5; color: #fff; }
.award-3 { background: #b0764a; color: #fff; }
.score-bar { height: 8px; margin-top: 8px; border-radius: 99px; background: var(--panel); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--orange-2)); }

.stats-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.stat-card .lb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stat-card b { color: var(--navy); font-size: 24px; }
.stat-card .wt { float: right; padding: 3px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }

/* 后台 */
.admin-shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; padding: 24px 14px; }
.admin-side .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 20px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 14px; }
.admin-side a { display: block; padding: 11px 14px; margin-bottom: 4px; border-radius: 10px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; cursor: pointer; }
.admin-side a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-side a.active { background: rgba(255,255,255,.16); color: #fff; }
.admin-main { padding: 28px 30px 60px; }
.admin-main h2 { color: var(--navy); margin: 0 0 18px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-bottom: 18px; }
.panel h3 { margin: 0 0 14px; color: var(--navy); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { color: var(--navy); background: var(--panel); font-weight: 700; }
table.data td { color: var(--ink); }
.stage-switch { display: flex; gap: 10px; flex-wrap: wrap; }
.stage-switch button {
  padding: 12px 20px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  color: var(--navy); font-weight: 700; font-size: 14px;
}
.stage-switch button.on { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.role-sel { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; }
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  z-index: 100; padding: 12px 22px; border-radius: 12px; background: rgba(23,35,51,.94); color: #fff;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.toast.show { opacity: 1; }
.modal-mask {
  position: fixed; inset: 0; z-index: 90; display: none; place-items: center;
  background: rgba(11,44,79,.5); backdrop-filter: blur(3px); padding: 20px;
}
.modal-mask.show { display: grid; }
.modal { width: 100%; max-width: 460px; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 30px 70px rgba(4,20,38,.4); }
.modal h3 { margin: 0 0 10px; color: var(--navy); }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.detail-cover { border-radius: 22px; padding: 40px 38px; color: #fff; box-shadow: var(--shadow); }
.detail-cover .tag { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.2); font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.detail-cover h1 { margin: 0; font-size: clamp(24px, 3.6vw, 36px); }
.detail-sec { padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-top: 16px; }
.detail-sec h3 { margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.detail-sec p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.video-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 16px; padding: 22px 26px; border-radius: 18px;
  background: linear-gradient(110deg, var(--navy), var(--blue)); color: #fff;
}
.video-cta .t b { display: block; font-size: 17px; margin-bottom: 4px; }
.video-cta .t span { color: rgba(255,255,255,.75); font-size: 13px; }

@media (max-width: 900px) {
  .project-grid, .vote-grid { grid-template-columns: repeat(2, 1fr); }
  .stages, .stats-cards { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; gap: 6px; padding: 12px; }
  .admin-side .brand { display: none; }
  .admin-side a { white-space: nowrap; margin: 0; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .brand .txt { display: none; }
  .topbar nav a { padding: 7px 9px; font-size: 13px; }
  .topbar .me .who { display: none; }
  .wrap { padding: 18px 14px 60px; }
  .project-grid, .vote-grid { grid-template-columns: 1fr; }
  .hero { padding: 26px 22px; }
  .vote-bar { flex-wrap: wrap; }
  .vote-bar .names { display: none; }
  .result-row { grid-template-columns: 46px 1fr; }
  .result-row .score { grid-column: 1 / -1; text-align: left; display: flex; gap: 12px; align-items: baseline; }
}
