/*
 * SEVENS 主题 · 联系我们页样式（仅联系我们页加载）
 * 全部规则限定在 body.svs-contact 内，不影响其它页面。
 *
 * 视觉与「关于我们」同源：黑底首屏 + 玻璃胶囊页眉 + 白底内容区；
 * 缩放方式一致——--u = 每 1 个设计稿 px 对应的屏幕长度（视口 / 1920，1920 以上不再放大）。
 * 设计令牌（--svs-blue / --svs-dark …）定义在 theme.css 的 :root。
 */

body.svs-contact {
  /* 页脚与页眉沿用新版色板，所以和首页 / 关于我们一样把全局色板重映射一次。 */
  --bg: #02010d;
  --bg-2: #07061a;
  --bg-3: #0b1034;
  --blue: #0030b8;
  --blue-hi: #4f7bff;
  --muted: #9aa3bd;
  background: var(--svs-dark);
}

/* ---------- 页眉：玻璃胶囊（与首页 / 关于我们同款） ---------- */
body.svs-contact #svsHeader {
  left: 50%; right: auto; top: 28px; transform: translateX(-50%);
  width: min(975px, calc(100% - 32px)); height: 50px; padding: 0 7px 0 28px; gap: 18px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 30px;
  background: var(--svs-glass); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: background .4s, border-color .4s, top .4s;
}
body.svs-contact.admin-bar #svsHeader { top: 60px }
body.svs-contact #svsHeader.scrolled { padding: 0 7px 0 28px; background: rgba(2, 1, 13, .72); border-color: rgba(255, 255, 255, .14) }
body.svs-contact #svsProgress { display: none }
body.svs-contact .logo-mark { display: inline-flex; align-items: center; flex: none }
body.svs-contact .logo-mark img { height: 22px; width: auto }
body.svs-contact nav.main { gap: 34px; margin: 0 auto }
body.svs-contact .nav-home { display: none }
body.svs-contact .nav-a { font-size: 22px; letter-spacing: .04em; height: 28px }
body.svs-contact .nav-a .stack span { height: 28px; line-height: 28px }
body.svs-contact .nav-a:hover .stack, body.svs-contact .nav-a.current .stack { transform: translateY(-28px) }
body.svs-contact .head-right { gap: 14px }
body.svs-contact .head-right .btn-pill {
  height: 36px; padding: 0 5px 0 20px; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .04em;
  background: rgba(0, 48, 184, .22); border: 2px solid var(--svs-blue); box-shadow: none;
}
body.svs-contact .head-right .btn-pill:hover { background: var(--svs-blue); box-shadow: none }
body.svs-contact .head-right .btn-pill svg { width: 22px; height: 22px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .14) }
@media (min-width: 861px) {
  body.svs-contact #svsHeader { width: min(1100px, calc(100% - 32px)); height: 64px; border-radius: 32px }
  body.svs-contact .logo-mark img { height: 30px }
}

/* ---------- 区块骨架 ---------- */
body.svs-contact .ct-sec {
  --u: calc(min(100vw, 1920px) / 1920);
  position: relative; overflow: hidden; isolation: isolate;
  font-size: max(14px, calc(22 * var(--u))); line-height: 1.45;
}
body.svs-contact .ct-sec.is-dark { background: #000; color: #fff }
body.svs-contact .ct-sec.is-light { background: #fff; color: #000 }
body.svs-contact .ct-in { position: relative; z-index: 1; width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 var(--svs-pad) }

/* 小圆图标（与「关于我们」胶囊按钮同款） */
body.svs-contact .ct-ico {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
}
body.svs-contact .ct-ico img { width: 7px; height: 7px; transition: transform .3s }

/* ---------- 1 · 首屏 ---------- */
body.svs-contact .ct-hero { background: #0b0b0b; min-height: calc(760 * var(--u)) }
body.svs-contact .ct-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
body.svs-contact .ct-hero-bg img {
  position: absolute; top: 0; left: -4.6%; width: 109.2%; height: 109.24%; max-width: none; object-fit: cover; opacity: .55;
}
body.svs-contact .ct-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(225deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .7) 70%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 38%);
}
body.svs-contact .ct-hero .ct-in { padding-top: max(150px, calc(300 * var(--u))); padding-bottom: max(56px, calc(90 * var(--u))) }
/* 英文大标题：Simpel 展示字、白。.rl 自带 overflow:hidden，上下补内边距并用负外边距抵消，既不占位也不裁字。 */
body.svs-contact .ct-en {
  font-family: var(--f-disp); font-weight: 500; color: #fff;
  font-size: max(40px, calc(100 * var(--u))); line-height: .84; letter-spacing: -.04em;
  padding: .14em 0; margin: -.14em 0;
}
body.svs-contact .ct-title {
  margin-top: calc(28 * var(--u)); font-weight: 500; color: #fff;
  font-size: max(30px, calc(58 * var(--u))); line-height: 1.2; padding-bottom: .06em;
}
body.svs-contact .ct-lead {
  max-width: none; margin-top: calc(24 * var(--u)); color: rgba(255, 255, 255, .62); line-height: 1.6;
}
body.svs-contact .ct-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: max(28px, calc(52 * var(--u))) }
body.svs-contact .ct-chip {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px 0 22px;
  border: 2px solid var(--svs-blue); border-radius: 60px; color: #fff; white-space: nowrap;
  background:
    radial-gradient(ellipse 50% 70% at 50% -10%, rgba(58, 91, 255, .2) 0%, rgba(31, 47, 136, .08) 60%, rgba(4, 3, 16, 0) 100%),
    rgba(4, 3, 16, .35);
  transition: background-color .3s, transform .3s var(--ease), box-shadow .3s;
}
body.svs-contact .ct-chip:hover { background-color: var(--svs-blue); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 48, 184, .4) }
body.svs-contact .ct-chip:hover .ct-ico img { transform: translate(2px, -2px) }
body.svs-contact .ct-chip-k { font-size: 13px; color: rgba(255, 255, 255, .55); letter-spacing: .04em }
body.svs-contact .ct-chip-v { font-size: 16px; font-weight: 500; letter-spacing: .02em }

/* ---------- 2 · 表单 + 办公室 ---------- */
body.svs-contact .ct-main .ct-in { padding-top: max(56px, calc(110 * var(--u))); padding-bottom: max(64px, calc(130 * var(--u))) }
body.svs-contact .ct-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: max(40px, calc(120 * var(--u))); align-items: start }
body.svs-contact .ct-h {
  font-size: max(24px, calc(44 * var(--u))); line-height: 1.2; font-weight: 500; color: #000; padding-bottom: .08em;
}
body.svs-contact .ct-formlead { margin-top: 12px; color: rgba(0, 0, 0, .55); line-height: 1.6 }

/* 表单：细下划线输入，聚焦时线变蓝 */
body.svs-contact .ct-form { display: grid; gap: max(22px, calc(34 * var(--u))); margin-top: max(28px, calc(44 * var(--u))) }
body.svs-contact .ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: max(18px, calc(32 * var(--u))) }
body.svs-contact .ct-field { display: block; min-width: 0; border: 0; padding: 0; margin: 0 }
body.svs-contact .ct-label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; line-height: 1.4; color: rgba(0, 0, 0, .55) }
body.svs-contact .ct-label b { margin-left: 4px; color: var(--svs-blue); font-weight: 500 }body.svs-contact .ct-field input[type="text"],
body.svs-contact .ct-field textarea {
  display: block; width: 100%; padding: 10px 0 12px; font: inherit; font-size: max(16px, calc(22 * var(--u))); line-height: 1.4; color: #000;
  background: transparent; border: 0; border-bottom: 1px solid rgba(0, 0, 0, .2); border-radius: 0; outline: 0;
  transition: border-color .25s, box-shadow .25s;
}
body.svs-contact .ct-field textarea { resize: vertical; min-height: 7.5em }
body.svs-contact .ct-field input[type="text"]:focus,
body.svs-contact .ct-field textarea:focus { border-bottom-color: var(--svs-blue); box-shadow: 0 1px 0 var(--svs-blue) }
body.svs-contact .ct-field ::placeholder { color: rgba(0, 0, 0, .3) }
body.svs-contact .ct-field.is-err input,
body.svs-contact .ct-field.is-err textarea { border-bottom-color: #d92d20; box-shadow: 0 1px 0 #d92d20 }

/* 蜜罐：视觉与读屏都藏起来（不用 display:none，部分机器人会跳过它） */
body.svs-contact .ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* 咨询方向：胶囊多选 */
body.svs-contact .ct-tags { display: flex; flex-wrap: wrap; gap: 10px }
body.svs-contact .ct-tag { position: relative; display: inline-flex; cursor: pointer }
body.svs-contact .ct-tag input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
body.svs-contact .ct-tag span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; font-size: 15px; line-height: 1;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 40px; color: #000;
  transition: background-color .25s, color .25s, border-color .25s;
}
body.svs-contact .ct-tag:hover span { border-color: var(--svs-blue) }
body.svs-contact .ct-tag input:checked + span { background: var(--svs-blue); border-color: var(--svs-blue); color: #fff }
body.svs-contact .ct-tag input:focus-visible + span { outline: 2px solid var(--svs-blue); outline-offset: 2px }

/* 提交 */
body.svs-contact .ct-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px }
body.svs-contact .ct-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 150px; height: 52px; padding: 0 18px 0 24px;
  border: 2px solid var(--svs-blue); border-radius: 60px; background: var(--svs-blue); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .3s;
}
body.svs-contact .ct-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 48, 184, .35) }
body.svs-contact .ct-btn:hover .ct-ico img { transform: translate(2px, -2px) }
body.svs-contact .ct-btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none }
body.svs-contact .ct-status { min-height: 1.4em; font-size: 14px; line-height: 1.4; color: rgba(0, 0, 0, .55) }
body.svs-contact .ct-status.is-err { color: #d92d20 }

/* 提交成功 */
body.svs-contact .ct-done { margin-top: max(28px, calc(44 * var(--u))); padding: 32px 28px; background: #f4f4f4; border-left: 3px solid var(--svs-blue) }
body.svs-contact .ct-done[hidden] { display: none }
body.svs-contact .ct-done-t { font-size: max(20px, calc(32 * var(--u))); font-weight: 500; line-height: 1.2 }
body.svs-contact .ct-done-m { margin-top: 10px; color: rgba(0, 0, 0, .6); line-height: 1.6 }

/* 办公室 */
body.svs-contact .ct-ol { display: grid; gap: 14px; margin-top: max(28px, calc(44 * var(--u))) }
body.svs-contact .ct-office { padding: max(20px, calc(28 * var(--u))) max(20px, calc(30 * var(--u))); background: #f4f4f4; transition: background-color .3s, color .3s }
body.svs-contact .ct-office-h { display: flex; align-items: baseline; gap: 14px }
body.svs-contact .ct-office-i, body.svs-contact .ct-office-c { font-size: 13px; line-height: 1; color: rgba(0, 0, 0, .4); letter-spacing: .04em; transition: color .3s }
body.svs-contact .ct-office-c { margin-left: auto }
body.svs-contact .ct-office h3 { font-size: max(20px, calc(32 * var(--u))); line-height: 1.2; font-weight: 500 }
body.svs-contact .ct-office dl { display: grid; gap: 8px; margin-top: 16px; font-size: 15px; line-height: 1.55 }
body.svs-contact .ct-office dl > div { display: grid; grid-template-columns: 3em 1fr; gap: 12px }
body.svs-contact .ct-office dt { color: rgba(0, 0, 0, .4); transition: color .3s }
body.svs-contact .ct-office dd { margin: 0; overflow-wrap: anywhere }
body.svs-contact .ct-office a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s }
body.svs-contact .ct-office a:hover { background-size: 100% 1px }
body.svs-contact .ct-office:hover { background: var(--svs-blue); color: #fff }
body.svs-contact .ct-office:hover .ct-office-i,
body.svs-contact .ct-office:hover .ct-office-c,
body.svs-contact .ct-office:hover dt { color: rgba(255, 255, 255, .6) }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  body.svs-contact nav.main { gap: 22px }
  body.svs-contact .ct-grid { grid-template-columns: 1fr }
}
@media (max-width: 860px) {
  body.svs-contact #svsHeader { top: 14px; width: calc(100% - 24px); padding: 0 8px 0 20px }
  body.svs-contact.admin-bar #svsHeader { top: 60px }
  body.svs-contact #svsHeader.scrolled { padding: 0 8px 0 20px }
  body.svs-contact .head-right { margin-left: auto }
  body.svs-contact .burger { padding: 6px 10px }
  body.svs-contact .burger i { width: 22px }
}
@media (max-width: 640px) {
  body.svs-contact .head-right .btn-pill { display: none }
  body.svs-contact .ct-row { grid-template-columns: 1fr }
  body.svs-contact .ct-chip { width: 100%; justify-content: space-between; white-space: normal }
  body.svs-contact .ct-quick { display: grid }
}

@media (prefers-reduced-motion: reduce) {
  body.svs-contact .ct-chip, body.svs-contact .ct-btn, body.svs-contact .ct-office, body.svs-contact .ct-ico img { transition: none }
}
