:root{font:16px/1.5 system-ui,"Microsoft YaHei","PingFang SC",sans-serif;color:#162b46;background:#f3f7fc;--blue:#146abe;--line:#d9e4f1;--mute:#49627f}*{box-sizing:border-box}body{margin:0}main{margin:auto}h1,h2,p{margin:0}h1{font-size:clamp(1.55rem,5vw,2rem);line-height:1.24;margin:.3rem 0 .45rem}h2{font-size:1.2rem;margin-bottom:1rem}small{color:var(--mute);font-size:.75rem;font-weight:400}.badge{font-size:.75rem;font-weight:800;color:var(--blue);letter-spacing:.1em}.muted,.hint,.form-head>p:last-child{color:var(--mute)}.public{background:#fff}.public main{max-width:720px;padding:20px}.form-head{margin-bottom:16px}.lead-form,.login form{display:grid;gap:12px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{font-size:.9rem;font-weight:650;display:block;min-width:0}input,textarea,select{font:inherit;width:100%;display:block;margin-top:5px;border:1px solid #aebfd5;border-radius:8px;background:#fff;color:inherit;padding:9px 11px}textarea{resize:vertical;min-height:85px}input:focus,textarea:focus,select:focus{outline:2px solid #1a70c2;outline-offset:1px}button,.button{font:inherit;font-weight:700;color:#fff;background:var(--blue);padding:9px 15px;border:1px solid transparent;border-radius:8px;cursor:pointer;text-decoration:none;display:inline-block;min-height:40px}button:hover,.button:hover{background:#0d5296}.lead-form>button{width:100%}.captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:12px;align-items:end}.captcha-row img{display:block;border-radius:7px;max-width:100%}.refresh{display:inline-block;color:#0e5aab;font-size:.8rem;margin-top:3px}.hint{font-size:.78rem}.trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{background:#fff0ed;color:#993225;border-radius:7px;font-size:.9rem;padding:8px 12px;margin-bottom:12px}.receipt{padding:28px 0}.receipt .button{margin-top:18px}.admin main{width:min(1050px,100%);padding:26px 18px 42px}.panel{border:1px solid var(--line);border-radius:13px;background:#fff}.login{max-width:460px;margin:clamp(10px,8vh,60px) auto;padding:24px}.login form{margin-top:20px}.mast{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:18px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.card{display:grid;padding:14px 18px;text-decoration:none;color:inherit}.card:hover{border-color:var(--blue)}.card strong{font-size:2rem;line-height:1.22;color:var(--blue)}.matter{padding:16px 18px}.filters{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:14px}.entry{padding:14px 0;border-top:1px solid var(--line);margin-top:12px}.entry header,.entry-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}.entry header span{font-size:.82rem;color:var(--mute)}.person{margin:.35rem 0;font-size:.9rem}.message{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;margin:8px 0;background:#f5f8fd;border-radius:7px}.chip{display:inline-block;border-radius:10px;padding:3px 8px;margin:0 4px 4px 0;background:#e9f3ff;color:#164980;font-size:.75rem}.neutral{background:#eef4fb;color:#19446f;border-color:#cddded}.neutral:hover{background:#daeaff}.small{min-height:33px;font-size:.8rem;padding:3px 7px}.actions{display:flex;gap:4px;flex-wrap:wrap}.inline{display:inline}.pages{display:flex;gap:12px;justify-content:center;margin-top:10px;color:var(--mute)}.pages a{color:var(--blue)}.empty{padding:28px 0;text-align:center;color:var(--mute)}@media(max-width:560px){.field-grid{grid-template-columns:1fr}.public main{padding:14px}.filters{grid-template-columns:1fr 1fr}.admin main{padding:16px 11px}.matter,.card{padding:12px}.mast .neutral{font-size:.83rem;padding:6px 8px}.card .muted{font-size:.78rem}}
/* 官网两套公开表单外观。独立后台不套用这些选择器。 */
html:has(> .lead-page), .lead-page { background:#fff }
.lead-page { font:14px/1.5 system-ui,"Microsoft YaHei","PingFang SC",sans-serif }
.lead-page main { max-width:620px; padding:24px 20px }
.lead-page.lead-embedded main { max-width:none; padding:0 }
.lead-page .lead-title { font-size:23px; color:#4e4e4e; line-height:1.4; margin:0 0 24px }
.lead-page .lead-field { position:relative }
.lead-page input:not([type=hidden]), .lead-page textarea { margin:0; font-weight:400; min-width:0 }
.lead-page .lead-form, .lead-page .field-grid { gap:24px }
.lead-page .field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,5vw,30px) }
.lead-page .lead-field input, .lead-page .lead-field textarea { background:#fff; border:1px solid #2984d1; border-radius:0; padding:13px 24px; color:#18263a; }
.lead-page .lead-field input { height:50px }
.lead-page .lead-field textarea { min-height:190px }
.lead-page ::placeholder { opacity:1; color:#39485a }
.lead-page .lead-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
.lead-page .captcha-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:-14px }
.lead-page .lead-code { display:flex; align-items:center; gap:6px; color:#4e4e4e; font-weight:400; flex:0 1 265px }
.lead-page .lead-code span { flex:none; white-space:nowrap }
.lead-page .lead-code input { min-width:0; height:34px; border:1px solid #94a5b4; border-radius:2px; padding:4px 8px; color:#18263a; background:#fff }
.lead-page .lead-refresh { display:inline-flex; flex-direction:column; flex:none; align-items:center; text-decoration:none; margin:0; line-height:1.2 }
.lead-page .lead-refresh img { width:112px; height:auto; border-radius:0; display:block }
.lead-page .lead-refresh span { padding-top:2px; color:#155c9c }
.lead-page .lead-refresh:focus-visible, .lead-page .lead-submit:focus-visible { outline:2px solid #146abe; outline-offset:2px }
.lead-page .lead-submit { min-height:50px; border-radius:0; background:#257bc1; color:#fff; font-size:15px }
.lead-page .lead-submit:hover { background:#1768aa }
.lead-page .hint { font-size:12px; margin-top:-17px }
.lead-page .error { margin:0 0 10px }
.lead-page .receipt { padding:18px 0 }
.lead-page .receipt h1 { font-size:24px }
html:has(> .theme-home), .lead-page.theme-home { color-scheme:dark; background:#1a1a2e }
html:has(> .theme-home:not(.lead-embedded)), .lead-page.theme-home:not(.lead-embedded) { background:#121221 }
.theme-home { --blue:#2984d1; --mute:#b8b9c8; color:#f3f4f9 }
.lead-page.theme-home main { max-width:360px }
.theme-home:not(.lead-embedded) .lead-card { background:#1a1a2e; border:1px solid #38384e; border-radius:14px; padding:16px; box-shadow:0 16px 32px #0004 }
.theme-home .lead-title { color:#f3f4f9; font-size:14px; padding:0 0 9px; border-bottom:1px solid #38384e; margin-bottom:12px }
.theme-home .lead-form, .theme-home .field-grid { gap:9px }
.theme-home .field-grid { grid-template-columns:minmax(0,1fr) }
.theme-home .lead-field svg { position:absolute; left:13px; top:14px; width:16px; height:16px; fill:none; stroke:#abaec2; stroke-width:1.55; stroke-linejoin:round; stroke-linecap:round; pointer-events:none }
.theme-home .lead-field input, .theme-home .lead-field textarea { background:#29293b; color:#f3f4f9; border:1px solid #424255; border-radius:10px; padding:9px 12px 9px 40px }
.theme-home .lead-field input { height:43px }
.theme-home .lead-field textarea { min-height:55px }
.theme-home .lead-field :focus { outline-color:#68b8ff }
.theme-home ::placeholder { color:#b3b4c6 }
.theme-home .captcha-row { gap:8px; margin:4px 0 7px; align-items:flex-start; flex-wrap:nowrap }
.theme-home .lead-code { flex:1 1 0; min-width:0; color:#e2e5ef; align-items:center; flex-wrap:wrap; gap:3px }
.theme-home .lead-code span { font-size:12px }
.theme-home .lead-code input { background:#fff; width:100%; height:30px }
.theme-home .lead-code input::placeholder { color:#48566a }
.theme-home .lead-refresh img { width:88px; border-radius:3px }
.theme-home .lead-refresh span { color:#aed7fc }
.theme-home .lead-submit { min-height:45px; border-radius:10px }
.theme-home .hint { margin-top:0 }
.theme-home.lead-embedded .receipt { padding-inline:2px }
@media(max-width:420px){
  .theme-contact:not(.lead-embedded) main{padding:18px 14px}
  .theme-contact .lead-field input,.theme-contact .lead-field textarea{padding-inline:12px}
  .theme-contact .captcha-row{flex-wrap:nowrap}
  .theme-contact .lead-code{min-width:0}
  .theme-contact .lead-refresh img{width:92px}
}
@media(max-width:350px){.theme-contact .field-grid{grid-template-columns:1fr;gap:12px}}

/* home-panel-2: 独立链接显示完整面板；嵌入版不重复显示联系方式。 */
html:has(> .theme-home:not(.lead-embedded)), .lead-page.theme-home:not(.lead-embedded) { background:radial-gradient(ellipse at 50% 0,#24243a,#10101d 78%) fixed }
.lead-page.theme-home:not(.lead-embedded) main { display:grid; place-items:center; max-width:none; min-height:100vh; min-height:100svh; padding:clamp(12px,4vw,28px) }
.theme-home:not(.lead-embedded) .lead-card { width:min(100%,340px); min-width:0; padding:16px }
.theme-home .lead-contact-links { display:grid; gap:8px; margin-bottom:18px }
.theme-home .lead-contact-item { display:grid; grid-template-columns:18px minmax(0,1fr) 12px; min-height:64px; align-items:center; gap:12px; padding:9px 14px; border:1px solid #3b3b50; background:#252538; border-radius:10px; color:#f1f2f8; text-decoration:none; cursor:pointer }
.theme-home .lead-contact-item:hover { background:#2c2c42 }
.theme-home .lead-contact-item:focus-visible { outline:2px solid #6abeff; outline-offset:2px }
.theme-home .lead-contact-item svg { width:18px; height:18px; fill:none; stroke:#4bafff; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round }
.theme-home .lead-contact-item small,.theme-home .lead-contact-item strong { display:block; overflow-wrap:anywhere }
.theme-home .lead-contact-item small { font-size:11px; color:#bfc1cd }
.theme-home .lead-contact-item strong { margin-top:2px; font-size:14px }
.theme-home .lead-arrow { text-align:right; font-size:18px; color:#afb2c6 }
.theme-home .lead-wechat summary { list-style:none }
.theme-home .lead-wechat summary::-webkit-details-marker { display:none }
.theme-home .lead-wechat[open] .lead-arrow { transform:rotate(90deg) }
.theme-home .lead-wechat p { padding:8px 10px 0; color:#c8d9ef; font-size:12px }
.lead-page.theme-home .lead-code input { color:#18263a; color-scheme:light }
.theme-home .lead-refresh img { width:88px }
.lead-page.theme-home .lead-form { --field-height:44px; --field-gap:8px; gap:var(--field-gap); }
.lead-page.theme-home .lead-form .field-grid { gap:var(--field-gap); }
.lead-page.theme-home .lead-form :is(.lead-field input, .lead-field textarea, .lead-code input) {
  display:block; width:100%; margin:0; font-size:14px; line-height:20px;
  background:#29293b; color:#f3f4f9; color-scheme:dark;
  border:1px solid #424255; border-radius:10px;
}
.lead-page.theme-home .lead-form :is(.lead-field input, .lead-code input) { height:var(--field-height); padding-block:11px; }
.lead-page.theme-home .lead-form .lead-field textarea { min-height:64px; padding-block:11px; }
.lead-page.theme-home .lead-form :is(input, textarea)::placeholder { color:#b3b4c6; }
.lead-page.theme-home .lead-form :is(input, textarea):focus-visible { outline-color:#68b8ff; }
.lead-page.theme-home .lead-form .captcha-row {
  display:grid; grid-template-columns:minmax(0,1fr) clamp(82px,31%,100px);
  align-items:center; gap:var(--field-gap); margin:0;
}
.lead-page.theme-home .lead-form .lead-code { display:block; position:relative; min-width:0; }
.lead-page.theme-home .lead-form .lead-code span {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.lead-page.theme-home .lead-form .lead-code input { padding-inline:12px; }
.lead-page.theme-home .lead-form .lead-refresh {
  box-sizing:border-box; min-width:0; height:var(--field-height); margin:0;
  display:grid; grid-template-rows:26px 12px; gap:1px; place-content:center; justify-items:center;
  padding:0 3px; border:1px solid #424255; border-radius:10px; background:#29293b;
}
.lead-page.theme-home .lead-form .lead-refresh img { display:block; width:auto; height:26px; max-width:100%; object-fit:contain; border-radius:3px; }
.lead-page.theme-home .lead-form .lead-refresh span { padding:0; font-size:11px; line-height:12px; color:#aed7fc; }
.lead-page.theme-home .lead-form .lead-refresh:hover { border-color:#68b8ff; }
.lead-page.theme-home .lead-form .lead-refresh:focus-visible { outline-color:#68b8ff; }
.lead-page.theme-home .lead-form .lead-message textarea {
  box-sizing:border-box;
  height:var(--field-height,44px);
  min-height:var(--field-height,44px);
  padding-block:11px;
  overflow:auto;
  resize:none;
}
.lead-page.theme-home .lead-form :is(.lead-field input,.lead-field textarea,.lead-code input):focus {
  border-color:#68b8ff;
  outline:2px solid #68b8ff;
  outline-offset:-2px;
}
.lead-page.theme-home.lead-embedded .lead-form .captcha-row {
  display:grid;
  grid-template-columns:clamp(92px,34%,106px) minmax(0,1fr);
  align-items:center;
  gap:8px;
}
.lead-page.theme-home.lead-embedded .lead-form .lead-code input {
  box-sizing:border-box;
  padding-inline:6px;
  font-size:13px;
}
.lead-page.theme-home.lead-embedded .lead-form .lead-refresh {
  display:grid;
  grid-template-columns:minmax(0,112px) auto;
  grid-template-rows:1fr;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:0 6px;
}
.lead-page.theme-home.lead-embedded .lead-form .lead-refresh :is(img,.preview-captcha) {
  display:block;
  width:100%;
  height:auto;
  max-height:38px;
  object-fit:contain;
  border-radius:4px;
}
.lead-page.theme-home.lead-embedded .lead-form .lead-refresh span {
  padding:0;
  font-size:15px;
  font-weight:600;
  line-height:20px;
  white-space:nowrap;
  color:#b9e0ff;
}
body.theme-contact.lead-embedded .lead-form textarea[name="message"],
body.hct-contact-embedded .lead-form textarea[name="message"] {
  box-sizing:border-box;
  height:96px;
  min-height:96px;
  padding:10px 12px;
  resize:vertical;
}
body.theme-contact.lead-embedded .lead-form,
body.hct-contact-embedded .lead-form { gap:12px; }
body.theme-contact.lead-embedded .lead-form .hint,
body.hct-contact-embedded .lead-form .hint { margin-top:0; }
body.theme-contact.lead-embedded .lead-form,
body.hct-contact-embedded .lead-form {
  gap:20px;
  padding:2px 2px 4px;
}
body.theme-contact.lead-embedded .lead-form .field-grid,
body.hct-contact-embedded .lead-form .field-grid {gap:16px}
body.theme-contact.lead-embedded .lead-form :is(input:not([type="hidden"]),textarea),
body.hct-contact-embedded .lead-form :is(input:not([type="hidden"]),textarea) {border-radius:10px}
body.theme-contact.lead-embedded .lead-form textarea[name="message"],
body.hct-contact-embedded .lead-form textarea[name="message"] {
  box-sizing:border-box;
  height:96px;
  min-height:96px;
  padding:12px 14px;
  resize:vertical;
}
body.theme-contact.lead-embedded .lead-form .captcha-row,
body.hct-contact-embedded .lead-form .captcha-row {
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:12px;
  margin:0;
}
body.theme-contact.lead-embedded .lead-form .lead-code,
body.hct-contact-embedded .lead-form .lead-code {min-width:0; flex:0 1 270px}
body.theme-contact.lead-embedded .lead-form .lead-code input,
body.hct-contact-embedded .lead-form .lead-code input {height:40px}
body.theme-contact.lead-embedded .lead-form .lead-refresh img,
body.hct-contact-embedded .lead-form .lead-refresh img {border-radius:6px}
body.theme-contact.lead-embedded .lead-form .lead-submit,
body.hct-contact-embedded .lead-form .lead-submit {border-radius:10px}
body.theme-contact.lead-embedded .lead-form .hint,
body.hct-contact-embedded .lead-form .hint {margin:0;line-height:1.55}
@media (max-width:420px) {
  body.theme-contact.lead-embedded .lead-form,
  body.hct-contact-embedded .lead-form {gap:16px}
  body.theme-contact.lead-embedded .lead-form :is(.field-grid,.captcha-row),
  body.hct-contact-embedded .lead-form :is(.field-grid,.captcha-row) {gap:10px}
}
@media (max-width:350px) {
  body.theme-contact.lead-embedded .lead-form .field-grid,
  body.hct-contact-embedded .lead-form .field-grid {grid-template-columns:minmax(0,1fr)}
  body.theme-contact.lead-embedded .lead-form .captcha-row,
  body.hct-contact-embedded .lead-form .captcha-row {flex-wrap:wrap}
}
/* 官网 /Contact/ 的嵌入表单：仅此处生效。 */
body.theme-contact.lead-embedded .lead-form {
  display:grid;
  gap:24px;
  padding:2px 2px 4px;
}
body.theme-contact.lead-embedded .lead-form .field-grid {gap:18px}
body.theme-contact.lead-embedded .lead-form :is(.lead-field input, .lead-field textarea, .lead-code input) {
  border-radius:12px;
}
body.theme-contact.lead-embedded .lead-form textarea[name="message"] {
  box-sizing:border-box;
  height:96px;
  min-height:96px;
  padding:12px 14px;
  resize:vertical;
}
body.theme-contact.lead-embedded .lead-form .captcha-row {
  display:grid;
  grid-template-columns:minmax(0, 248px) max-content;
  align-items:center;
  column-gap:16px;
  row-gap:12px;
  margin:0;
}
body.theme-contact.lead-embedded .lead-form .lead-code {min-width:0; gap:8px}
body.theme-contact.lead-embedded .lead-form .lead-code input {height:44px; min-width:0}
body.theme-contact.lead-embedded .lead-form .lead-refresh {
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  min-height:44px;
  justify-self:start;
  margin:0;
  white-space:nowrap;
}
body.theme-contact.lead-embedded .lead-form .lead-refresh :is(img, svg) {
  display:block;
  width:112px;
  height:auto;
  border-radius:6px;
}
body.theme-contact.lead-embedded .lead-form .lead-refresh span {
  padding:0;
  font-size:14px;
  line-height:1.4;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.theme-contact.lead-embedded .lead-form .lead-submit {border-radius:12px}
body.theme-contact.lead-embedded .lead-form .hint {margin:0;line-height:1.65}
/* 狭窄 iframe 内，先把验证码输入框单独放一行，图片与「换一张」仍并排。 */
@media (max-width:420px) {
  body.theme-contact.lead-embedded .lead-form {gap:20px}
  body.theme-contact.lead-embedded .lead-form .field-grid {gap:12px}
  body.theme-contact.lead-embedded .lead-form .captcha-row {grid-template-columns:minmax(0, 1fr)}
  body.theme-contact.lead-embedded .lead-form .lead-refresh :is(img, svg) {width:100px}
}
@media (max-width:350px) {
  body.theme-contact.lead-embedded .lead-form .field-grid {grid-template-columns:minmax(0, 1fr)}
}

