/* 2026年湖南省科技政策宣贯活动报名系统 · 公共样式
   全部本地资源，无外部字体/CDN */

:root{
  --ink:#0f172a; --ink2:#334155; --muted:#64748b; --faint:#94a3b8;
  --line:#e2e8f0; --soft:#f8fafc;
  --brand:#10b981; --brand-d:#047857; --brand-l:#6ee7b7;
  --brand-soft:#ecfdf5; --brand-line:#a7f3d0;
  --danger:#dc2626; --warn-bg:#fffbeb; --warn-line:#fcd34d;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:#eef2f6; color:var(--ink);
  font-family:"Microsoft YaHei","微软雅黑",system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased; line-height:1.6;
}
a{color:var(--brand-d)}
.wrap{max-width:1180px; margin:0 auto; padding:22px 20px 46px}

/* ---------- 封面 ---------- */
.hero{
  position:relative; overflow:hidden; border-radius:18px; padding:34px 36px 30px;
  background:linear-gradient(135deg,#0b2545 0%,#123a5c 46%,#0f4f43 100%);
  color:#fff; box-shadow:0 14px 40px rgba(11,37,69,.26);
}
.hero::after{
  content:""; position:absolute; right:-90px; top:-110px; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle at 34% 34%,rgba(16,185,129,.42),rgba(16,185,129,0) 68%);
}
.hero .kicker{
  display:inline-flex; align-items:center; gap:8px; font-size:12px; letter-spacing:.6px;
  color:#c7f9e5; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16);
  padding:5px 11px; border-radius:999px; margin-bottom:13px;
}
.hero h1{margin:0 0 9px; font-size:26px; line-height:1.32; font-weight:700; letter-spacing:.5px}
.hero .lead{margin:0 0 16px; font-size:13.4px; color:#cfe4f2; max-width:760px}
.chips{display:flex; gap:9px; flex-wrap:wrap; position:relative; z-index:1}
.chips span{
  font-size:12.4px; color:#e6f6ef; background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.15); border-radius:8px; padding:6px 11px;
}
.chips b{color:#7ef0c2; font-weight:700; margin-right:3px}

/* ---------- 布局 ---------- */
.layout{display:grid; grid-template-columns:300px minmax(0,1fr); gap:18px; margin-top:18px; align-items:start}
.side{display:flex; flex-direction:column; gap:14px}
.panel{
  background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 17px;
  box-shadow:0 2px 10px rgba(15,23,42,.04);
}
.panel h3{margin:0 0 10px; font-size:13.4px; color:var(--ink); display:flex; align-items:center; gap:7px}
.panel h3::before{content:""; width:4px; height:13px; border-radius:2px; background:var(--brand)}
.panel p{margin:0; font-size:12.6px; color:var(--muted); line-height:1.75}
.panel ol{margin:0; padding-left:18px; font-size:12.6px; color:var(--muted); line-height:1.9}
.panel .tiny{font-size:11.6px; color:var(--faint); margin-top:9px; line-height:1.65}
.panel .go{
  display:block; text-align:center; margin-top:11px; font-size:13px; font-weight:650;
  color:#fff; text-decoration:none; border-radius:9px; padding:10px 14px;
  background:linear-gradient(120deg,var(--brand),var(--brand-d));
}
.panel .go:hover{filter:brightness(1.05)}
.side-link{margin-top:12px; padding-top:11px; border-top:1px dashed var(--line)}
.side-link a{font-size:12.3px; font-weight:650; text-decoration:none; display:inline-block}
.side-link a:hover{text-decoration:underline}

/* ---------- 卡片 ---------- */
.card{
  background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:0 4px 18px rgba(15,23,42,.06);
}
.card-head{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:20px 28px 16px; border-bottom:1px solid var(--line);
}
.card-head h2{margin:0; font-size:16px; font-weight:700}
.card-head .hint{font-size:12px; color:var(--muted)}
.progress{display:flex; align-items:center; gap:8px; margin-top:9px}
.progress .dot{width:7px; height:7px; border-radius:50%; background:var(--line)}
.progress .dot.on{background:var(--brand)}
.progress .bar{flex:1; height:4px; border-radius:4px; background:var(--line); overflow:hidden}
.progress .bar i{display:block; height:100%; width:0; background:var(--brand); border-radius:4px; transition:width .3s ease}
.progress .pct{font-size:11.5px; color:var(--brand-d); font-weight:650; min-width:34px; text-align:right}

fieldset{border:none; margin:0; padding:26px 28px 6px}
fieldset+fieldset{border-top:1px dashed var(--line)}
legend{display:block; width:100%; padding:0; margin-bottom:18px}
.sec{display:flex; align-items:center; gap:11px}
.sec .num{
  width:26px; height:26px; border-radius:8px; background:var(--brand-soft); color:var(--brand-d);
  font-size:12.5px; font-weight:700; display:grid; place-items:center; flex:0 0 26px;
}
.sec b{font-size:14.5px; font-weight:680}
.sec small{font-size:12px; color:var(--faint); font-weight:400}

.grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 18px}
.field{display:flex; flex-direction:column; gap:7px; min-width:0}
.field.full{grid-column:1 / -1}
label{font-size:12.8px; font-weight:620; color:var(--ink2)}
label .req{color:var(--danger); margin-left:3px}
input[type=text],input[type=tel],input[type=email],input[type=date],textarea{
  width:100%; font-family:inherit; font-size:13.5px; color:var(--ink);
  background:#fff; border:1.5px solid var(--line); border-radius:10px;
  padding:10px 13px; outline:none; transition:.16s ease; min-height:42px;
}
input:hover,textarea:hover{border-color:#cbd5e1}
input:focus,textarea:focus{border-color:var(--brand); box-shadow:0 0 0 3px rgba(16,185,129,.13)}
input::placeholder{color:var(--faint)}
input.invalid,.choices.invalid{border-color:var(--danger)}
.choices.invalid{outline:1.5px solid var(--danger); outline-offset:4px; border-radius:12px}
.help{font-size:11.5px; color:var(--faint); margin-top:-2px}
.help.err{color:var(--danger); font-weight:600}

/* 选择卡片 */
.choices{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
.choice{position:relative; cursor:pointer}
.choice input{position:absolute; opacity:0; width:1px; height:1px}
.choice > span{
  display:flex; align-items:center; gap:9px; font-size:13px; color:var(--ink2);
  border:1.5px solid var(--line); border-radius:10px; padding:11px 14px; background:#fff;
  transition:.16s ease; user-select:none; min-height:46px;
}
.choice > span::before{
  content:""; width:14px; height:14px; border-radius:50%; border:1.5px solid #cbd5e1;
  flex:0 0 14px; transition:.16s ease;
}
.choice:hover > span{border-color:var(--brand-l); background:#fafffc}
.choice input:checked + span{border-color:var(--brand); background:var(--brand-soft); color:#065f46; font-weight:600}
.choice input:checked + span::before{border-color:var(--brand); background:var(--brand); box-shadow:inset 0 0 0 3px #fff}
.choice input:focus-visible + span{box-shadow:0 0 0 3px rgba(16,185,129,.18)}
.choice.check-choice > span::before{border-radius:4px}
.choice.check-choice input:checked + span::before{
  background:var(--brand) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
  border-color:var(--brand); box-shadow:none;
}
.choice.slot > span{align-items:flex-start; min-height:64px}
.choice.slot .slot-text{display:flex; flex-direction:column; gap:3px; min-width:0; line-height:1.45}
.choice.slot .st{display:block; font-size:13px; font-weight:680; color:var(--ink); white-space:nowrap}
.choice.slot .desc{display:block; font-size:11.5px; color:var(--muted); font-weight:400; white-space:normal}

/* 提交方式提示 */
.submit-info{
  margin:26px 28px 0; padding:15px 18px; border-radius:11px;
  background:#f7fbf9; border:1px solid var(--brand-line); border-left:4px solid var(--brand);
}
.submit-info .si-row{display:flex; gap:10px; font-size:12.8px; color:var(--ink2); line-height:1.8}
.submit-info .si-row + .si-row{margin-top:4px}
.submit-info .si-k{
  flex:0 0 70px; height:22px; line-height:20px; margin-top:2px; text-align:center;
  font-size:12px; font-weight:700; color:var(--brand-d);
  background:#fff; border:1px solid var(--brand-line); border-radius:6px;
}
.submit-info b{color:var(--ink); font-weight:680}
.submit-info a{font-weight:650; text-decoration:none; border-bottom:1px solid var(--brand-l)}

/* 操作区 */
.actions{
  padding:20px 28px 26px; border-top:1px solid var(--line); margin-top:20px;
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.submit{
  font-family:inherit; font-size:14px; font-weight:680; color:#fff; cursor:pointer;
  border:none; border-radius:11px; padding:12px 30px;
  background:linear-gradient(120deg,var(--brand),var(--brand-d));
  box-shadow:0 8px 20px rgba(16,185,129,.26); transition:.18s ease;
}
.submit:hover{transform:translateY(-2px); box-shadow:0 12px 26px rgba(16,185,129,.34)}
.submit:active{transform:none}
.submit[disabled]{opacity:.6; cursor:not-allowed; transform:none; box-shadow:none}
.ghost{
  font-family:inherit; font-size:13px; cursor:pointer; color:var(--ink2);
  background:#fff; border:1.5px solid var(--line); border-radius:10px; padding:11px 18px;
}
.ghost:hover{border-color:var(--brand); color:var(--brand-d)}
.actions .note{font-size:11.8px; color:var(--faint); flex:1; min-width:180px; line-height:1.55}

/* 结果页 */
.result{padding:34px 30px 32px; display:none}
.result.show{display:block}
.ok-icon{
  width:52px; height:52px; border-radius:50%; background:var(--brand-soft);
  color:var(--brand-d); display:grid; place-items:center; margin-bottom:16px;
  font-size:26px; font-weight:700;
}
.result h2{margin:0 0 7px; font-size:19px}
.result > p{margin:0 0 18px; color:var(--muted); font-size:13px}
.serial-box{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 18px;
  padding:14px 16px; border-radius:11px; background:var(--brand-soft); border:1px solid var(--brand-line);
}
.serial-box .k{font-size:12.4px; color:#065f46; font-weight:650}
.serial-box .v{font-size:17px; font-weight:800; letter-spacing:1px; color:var(--brand-d); font-family:Consolas,monospace}
.serial-box .t{font-size:11.8px; color:var(--muted)}
.summary{border:1px solid var(--line); border-radius:11px; overflow:hidden; margin-bottom:20px}
.summary .row{display:flex; border-bottom:1px solid var(--line); font-size:13px}
.summary .row:last-child{border-bottom:none}
.summary .k{flex:0 0 150px; background:var(--soft); color:var(--muted); padding:9px 14px}
.summary .v{padding:9px 14px; color:var(--ink2); word-break:break-all}
.warn{
  background:var(--warn-bg); border:1px solid var(--warn-line); border-left:4px solid #f59e0b;
  border-radius:9px; padding:12px 15px; font-size:12.5px; color:#78350f; margin-bottom:20px;
}
.print-box{margin:4px 0 20px; padding:18px; border-radius:11px; background:#f7fbf9; border:1px solid var(--brand-line)}
.print-box h3{margin:0 0 10px; font-size:14px; color:#065f46}
.print-box ol{margin:0 0 12px; padding-left:20px; font-size:12.8px; color:var(--ink2); line-height:1.95}
.print-box ol a{font-weight:650; text-decoration:none; border-bottom:1px solid var(--brand-l)}
.print-box .tel{font-size:12.8px; color:var(--ink2); margin-bottom:14px}
.print-box .tel b{color:var(--ink)}

/* 打印预览 */
#previewWrap{display:none}
#previewWrap.on{
  display:block; overflow-x:auto; margin:6px 28px 26px; padding:16px 18px 24px;
  border:1px solid var(--line); border-radius:12px; background:var(--soft);
}
#previewBar{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px}
#previewBar .pb-main{flex:1; min-width:200px; font-size:12.5px; color:var(--muted); line-height:1.7}
#previewBar .pb-main b{display:block; font-size:13.4px; color:var(--ink); margin-bottom:2px}
#previewBar .submit{padding:10px 22px; font-size:13.4px}

/* ---------- A4 报名表（屏幕预览 + 打印） ---------- */
.print-sheet{display:none; color:#000; font-family:"SimSun","宋体","Songti SC",serif}
#previewWrap.on .print-sheet{
  display:block; width:210mm; max-width:100%; margin:0 auto; padding:12mm 10mm;
  background:#fff; box-shadow:0 10px 28px rgba(15,23,42,.16);
}
.print-sheet h1{
  text-align:center; font-size:19pt; font-weight:700; letter-spacing:1px; margin:0;
  font-family:"SimHei","黑体","Microsoft YaHei",sans-serif;
}
.print-sheet .ps-sub{text-align:center; font-size:9.5pt; margin:2mm 0 5mm; color:#333}
.print-sheet .ps-serial{text-align:right; font-size:9pt; color:#666; margin:-3mm 0 2mm}
.print-sheet table{width:100%; border-collapse:collapse; table-layout:fixed}
.print-sheet th,.print-sheet td{
  border:1px solid #000; padding:2.6mm 2.8mm; font-size:10.5pt; line-height:1.55;
  vertical-align:middle; word-break:break-word;
}
.print-sheet th{
  background:#f2f2f2; font-weight:700; text-align:center; width:27mm; font-size:10pt;
  font-family:"SimHei","黑体","Microsoft YaHei",sans-serif;
}
.print-sheet td{height:12mm}
.print-sheet .ps-item{display:inline-block; width:32%; margin:0.8mm 0}
.print-sheet .ps-cb{
  position:relative; display:inline-block; width:3.2mm; height:3.2mm;
  border:1px solid #000; margin-right:1.6mm; vertical-align:-0.2mm;
}
.print-sheet .ps-cb.on::after{
  content:""; position:absolute; left:0.85mm; top:0.15mm;
  width:1.2mm; height:2.1mm; border-right:0.45mm solid #000; border-bottom:0.45mm solid #000;
  transform:rotate(40deg);
}
.print-sheet .ps-slot-line{display:block; margin:0.8mm 0}
.print-sheet .ps-seal{height:32mm; position:relative; vertical-align:top}
.print-sheet .ps-seal .ps-hint{font-size:9pt; color:#999}
.print-sheet .ps-seal .ps-date{position:absolute; right:4mm; bottom:3mm; font-size:10pt}
.print-sheet .ps-notes{margin-top:5mm; font-size:10pt; line-height:1.95}
.print-sheet .ps-notes p{margin:0}
.print-sheet .ps-notes b{font-family:"SimHei","黑体",sans-serif}

footer{text-align:center; color:var(--faint); font-size:11.8px; margin-top:26px; line-height:1.8}

@media (max-width:860px){
  .layout{grid-template-columns:1fr}
  .side{position:static; flex-direction:row; flex-wrap:wrap}
  .side .panel{flex:1 1 240px}
  .grid,.choices{grid-template-columns:1fr}
  .wrap{padding:16px 14px 40px}
  .hero{padding:28px 22px 26px} .hero h1{font-size:21px}
  fieldset,.card-head,.actions{padding-left:18px; padding-right:18px}
  .submit-info{margin-left:18px; margin-right:18px}
  #previewWrap.on{margin-left:18px; margin-right:18px}
}
@media print{
  @page{size:A4; margin:16mm 14mm}
  html,body{background:#fff !important}
  .hero,.layout,footer,#previewBar{display:none !important}
  .wrap{display:block !important; padding:0 !important; max-width:none !important}
  #previewWrap,#previewWrap.on{
    display:block !important; margin:0 !important; padding:0 !important;
    border:none !important; border-radius:0 !important; background:none !important;
    box-shadow:none !important; overflow:visible !important;
  }
  #previewWrap.on .print-sheet,.print-sheet{
    display:block !important; width:auto; max-width:none; margin:0; padding:0;
    box-shadow:none; background:#fff;
  }
  .print-sheet th{-webkit-print-color-adjust:exact; print-color-adjust:exact}
}
