/* 京瑞网络科技 · 外贸独立站样板库 —— 展厅主站样式 */
:root {
  --bg: #070A10;
  --bg-2: #0A0E16;
  --panel: #0D131C;
  --panel-2: #121A26;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #E9EFF8;
  --muted: #8794A8;
  --brand: #2E6BFF;
  --brand-2: #22D3EE;
  --brand-3: #7C5CFF;
  --ok: #34D399;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* 背景装饰 */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -6%, rgba(46, 107, 255, .22), transparent 62%),
    radial-gradient(800px 460px at 92% 4%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(34, 211, 238, .08), transparent 65%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 16, .78);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand), var(--brand-3));
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px -10px rgba(46, 107, 255, .9);
}

.brand .name { font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
.brand .name b { display: block; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }

.nav-links { display: flex; gap: 30px; font-size: 13.5px; color: var(--muted); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s, box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #4F8BFF 55%, var(--brand-2));
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(46, 107, 255, .95);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(46, 107, 255, 1); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); }

.btn-sm { padding: 9px 16px; font-size: 12.5px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero { padding: 106px 0 74px; position: relative; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  letter-spacing: .06em;
  color: #C6D3E6;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .16);
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 17em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6FA0FF, var(--brand-2) 45%, #A78BFF 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  margin-top: 26px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.hero .lead strong { color: #C9D6E8; font-weight: 600; }

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 30px;
  gap: 24px;
}

.hero-stats div b {
  display: block;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(140deg, #fff, #8FA6C6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats div span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ---------- 区块通用 ---------- */
section { position: relative; }

.sec { padding: 84px 0; }
.sec-tight { padding: 56px 0; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; flex-wrap: wrap; }

.sec-head h2 {
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.03em;
  font-weight: 800;
  line-height: 1.16;
  max-width: 20em;
}

.sec-head p { font-size: 14.5px; line-height: 1.9; color: var(--muted); max-width: 44ch; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--brand-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- 筛选 ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.filter-label {
  font-size: 11px;
  letter-spacing: .16em;
  color: #64748B;
  width: 56px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  color: #9DAABD;
  font-size: 13px;
  transition: all .18s;
  white-space: nowrap;
}

.chip:hover { border-color: rgba(255, 255, 255, .25); color: var(--text); }

.chip.on {
  background: rgba(46, 107, 255, .16);
  border-color: rgba(94, 142, 255, .62);
  color: #DCE7FF;
  box-shadow: 0 0 0 1px rgba(94, 142, 255, .18) inset;
}

.chip .n { font-size: 11px; opacity: .55; margin-left: 5px; }

/* ---------- 模板卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #0A0F17);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), border-color .3s, box-shadow .3s;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95), 0 0 0 1px rgba(46, 107, 255, .16);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, #131B28, #0B1018);
  cursor: pointer;
}

.thumb iframe {
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
}

.thumb .shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .05) 45%, transparent 70%);
  background-size: 240% 100%;
  animation: shine 1.7s infinite linear;
}

@keyframes shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }

.thumb-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(5, 8, 13, .82), rgba(5, 8, 13, .12) 52%, transparent);
  opacity: 0;
  transition: opacity .28s;
}

.card:hover .thumb-veil { opacity: 1; }

.veil-btn {
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .94);
  color: #0B1220;
  transition: transform .18s, background .18s;
}

.veil-btn:hover { transform: translateY(-1px); }

.veil-btn.line { background: rgba(10, 14, 22, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .38); backdrop-filter: blur(6px); }
.veil-btn.line:hover { background: rgba(10, 14, 22, .82); }

.thumb .badge-style {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  letter-spacing: .1em;
  background: rgba(6, 10, 16, .66);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  color: #D6E2F2;
}

.thumb .badge-pick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 16, .6);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px;
  color: #9FB0C6;
  transition: all .2s;
}

.card.picked .badge-pick { background: var(--brand); border-color: var(--brand); color: #fff; }

.card-body { padding: 18px 18px 20px; }

.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.card-title h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }

.card-title .tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: #A9B7CA;
  white-space: nowrap;
}

.card-sub {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatches { display: flex; gap: 5px; margin-left: auto; }

.swatches i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .18); }

.grid-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 流程 ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step { padding: 30px 22px 6px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }

.step .no {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--brand-2);
  font-weight: 700;
}

.step h4 { margin: 14px 0 10px; font-size: 16px; font-weight: 700; }
.step p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.step .meta { margin-top: 14px; font-size: 11px; color: #5F7189; letter-spacing: .06em; }

/* ---------- 能力区 ---------- */
.ability {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.ability-list { display: grid; gap: 2px; }

.ability-item {
  display: flex;
  gap: 16px;
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
}

.ability-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(46, 107, 255, .14);
  border: 1px solid rgba(94, 142, 255, .28);
  font-size: 15px;
}

.ability-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.ability-item p { font-size: 13px; line-height: 1.8; color: var(--muted); }

.ability-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(46, 107, 255, .14), rgba(124, 92, 255, .07) 46%, transparent);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.ability-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  right: -100px;
  top: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 66%);
}

.ability-panel h4 { font-size: 14px; letter-spacing: .1em; color: #9FB4D2; text-transform: uppercase; }

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .12);
  font-size: 14px;
}

.metric-row:last-child { border-bottom: none; }
.metric-row b { font-size: 17px; font-weight: 700; color: #fff; }
.metric-row span { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .022);
  padding: 0 20px;
  transition: border-color .2s, background .2s;
}

.faq details[open] { border-color: rgba(94, 142, 255, .4); background: rgba(46, 107, 255, .06); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 30px 18px 0;
  font-size: 14.5px;
  font-weight: 600;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-2);
  font-size: 18px;
  font-weight: 400;
}

.faq details[open] summary::after { content: "−"; }

.faq p { padding: 0 0 18px; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

/* ---------- 联系 ---------- */
.contact-box {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--panel-2), #080C13 58%);
}

.contact-left { padding: 44px; border-right: 1px solid var(--line); }
.contact-left h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 16px; }
.contact-left p { font-size: 13.5px; line-height: 1.9; color: var(--muted); }

.contact-lines { margin-top: 30px; display: grid; gap: 14px; }

.contact-line { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.contact-line .k { width: 62px; color: #64748B; font-size: 11.5px; letter-spacing: .1em; }
.contact-line .v { color: #D8E3F2; font-weight: 500; }

.contact-right { padding: 44px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: #8FA0B7; margin-bottom: 7px; letter-spacing: .04em; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(94, 142, 255, .62);
  background: rgba(46, 107, 255, .07);
}

.field textarea { resize: vertical; min-height: 78px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-note { margin-top: 12px; font-size: 11.5px; color: #64748B; line-height: 1.7; }

.form-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, .32);
  background: rgba(52, 211, 153, .08);
  font-size: 12.5px;
  line-height: 1.8;
  color: #B6F3DA;
  display: none;
}

.form-result.show { display: block; }

/* ---------- 底部 ---------- */
.foot { border-top: 1px solid var(--line); padding: 46px 0 34px; margin-top: 20px; }

.foot .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }

.foot p { font-size: 12.5px; color: #64748B; line-height: 1.9; }

.foot .links { display: flex; gap: 26px; font-size: 12.5px; color: #8B9AAE; flex-wrap: wrap; }
.foot .links a:hover { color: var(--text); }

/* ---------- 意向清单条 ---------- */
.selectbar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 130%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(12, 17, 26, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .9);
  transition: transform .34s cubic-bezier(.2, .8, .3, 1);
  max-width: calc(100vw - 40px);
}

.selectbar.show { transform: translate(-50%, 0); }

.selectbar .info { font-size: 13px; color: #B9C7DA; white-space: nowrap; }
.selectbar .info b { color: #fff; font-size: 15px; margin-right: 4px; }
.selectbar .names { font-size: 11.5px; color: #64748B; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.selectbar .acts { display: flex; gap: 8px; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 10, .82);
  backdrop-filter: blur(10px);
}

.modal.show { display: flex; }

.modal-window {
  width: min(1400px, 96vw);
  height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #0B1018;
  box-shadow: 0 40px 100px -30px #000;
  animation: pop .28s cubic-bezier(.2, .8, .3, 1);
}

@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.modal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0F1520;
  flex-shrink: 0;
}

.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2A3444; }
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }

.modal-url {
  flex: 1;
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: #7E8DA3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: #98A7BC;
  font-size: 15px;
  transition: all .18s;
}

.icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 120;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, .34);
  background: rgba(11, 24, 20, .94);
  color: #B6F3DA;
  font-size: 13px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .24s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .step { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
  .step:nth-child(3) { border-right: none; }
  .ability { grid-template-columns: 1fr; gap: 34px; }
  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .nav-links { display: none; }
  .hero { padding: 64px 0 46px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--line); }
  .contact-left, .contact-right { padding: 28px; }
  .sec { padding: 56px 0; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .field-row { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-window { width: 100vw; height: 100vh; border-radius: 0; border: none; }
  .modal-url, .dots { display: none; }
  .selectbar { left: 16px; right: 16px; bottom: 16px; transform: translate(0, 140%); max-width: none; justify-content: space-between; }
  .selectbar.show { transform: none; }
  .selectbar .names { display: none; }
  .brand .name b { display: none; }
  .nav-right .btn-ghost { display: none; }
}
