/* ===========================================================
   古镇灯具配件 · 独立站样式
   深石墨底 + 暖金主色，B端询盘导向，零外部依赖
   =========================================================== */

:root {
  --bg: #0a0b0d;
  --bg-soft: #0f1115;
  --panel: #14171d;
  --panel-2: #191d24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf1;
  --text-2: #b6bec9;
  --muted: #8b939f;
  --gold: #e6b25c;
  --gold-deep: #c8913a;
  --gold-soft: rgba(230, 178, 92, 0.12);
  --teal: #58c9c1;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--gold) 0%, var(--gold-deep) 60%, #6b4a16 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(230, 178, 92, 0.28);
  flex: 0 0 auto;
}

.logo__mark svg { width: 17px; height: 17px; }

.logo__sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.14em;
  display: block;
  line-height: 1.2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.18s, background 0.18s;
}

.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__links a.is-active { color: var(--gold); background: var(--gold-soft); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #17120a !important;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 22px rgba(230, 178, 92, 0.22);
  transition: transform 0.18s, box-shadow 0.18s;
}

.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(230, 178, 92, 0.3); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #17120a;
  box-shadow: 0 8px 26px rgba(230, 178, 92, 0.24);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(230, 178, 92, 0.32); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  right: -180px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(230, 178, 92, 0.16) 0%, rgba(230, 178, 92, 0.04) 42%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(230, 178, 92, 0.28);
  background: rgba(230, 178, 92, 0.07);
  color: var(--gold);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(230, 178, 92, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold) 10%, #f6d79b 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero__chips li { display: flex; align-items: center; gap: 7px; }

.hero__chips svg { width: 14px; height: 14px; color: var(--teal); flex: 0 0 auto; }

/* Hero 右侧 —— 品类罗盘 */
.compass {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(230, 178, 92, 0.1) 0%, transparent 62%);
  display: grid;
  place-items: center;
}

.compass__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(230, 178, 92, 0.22);
  animation: spin 46s linear infinite;
}

.compass__ring--2 {
  inset: 13%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.07);
  animation: spin 34s linear infinite reverse;
}

.compass__ring--3 {
  inset: 27%;
  border-color: rgba(230, 178, 92, 0.16);
  animation: spin 26s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.compass__core {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6e2, var(--gold) 42%, var(--gold-deep) 72%, #4a3410 100%);
  box-shadow: 0 0 60px rgba(230, 178, 92, 0.42), inset 0 0 34px rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  text-align: center;
  color: #241a08;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  z-index: 2;
}

.compass__tag {
  position: absolute;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 23, 29, 0.92);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

/* 6 个标签：core 占第 4 个子元素，标签从第 5 个起 */
.compass__tag:nth-child(5) { top: 4%; left: 50%; transform: translateX(-50%); }
.compass__tag:nth-child(6) { top: 23%; right: 0; }
.compass__tag:nth-child(7) { bottom: 23%; right: 2%; }
.compass__tag:nth-child(8) { bottom: 4%; left: 50%; transform: translateX(-50%); }
.compass__tag:nth-child(9) { bottom: 23%; left: 0; }
.compass__tag:nth-child(10) { top: 23%; left: 0; }

/* ---------- 数据条 ---------- */
.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats__item {
  background: var(--bg-soft);
  padding: 30px 26px;
}

.stats__num {
  font-size: 30px;
  font-weight: 650;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stats__num span { font-size: 14px; color: var(--muted); font-weight: 400; margin-inline-start: 4px; }

.stats__label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; border-bottom: 1px solid var(--line); }

.section--tight { padding: 68px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.section h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section__desc { color: var(--text-2); max-width: 620px; font-size: 15px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  white-space: nowrap;
  transition: gap 0.2s;
}

.link-more:hover { gap: 13px; }

/* ---------- 品类卡 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(230, 178, 92, 0.14), transparent 68%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 178, 92, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.card:hover::after { opacity: 1; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(230, 178, 92, 0.09);
  border: 1px solid rgba(230, 178, 92, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.card__icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 16.5px; margin-bottom: 4px; }

.card__en {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--mono);
}

.card__specs {
  font-size: 13px;
  color: var(--text-2);
  display: grid;
  gap: 5px;
}

.card__specs li { display: flex; gap: 8px; }

.card__specs li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 10px;
  flex: 0 0 auto;
  opacity: 0.7;
}

/* ---------- 优势三栏 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.panel {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.panel h3 { font-size: 17px; margin-bottom: 10px; }

.panel p { color: var(--text-2); font-size: 14.2px; }

.panel__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}

/* ---------- 流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.flow__item {
  position: relative;
  padding: 24px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.flow__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
  opacity: 0.9;
}

.flow__item h4 { font-size: 15px; margin-bottom: 7px; }

.flow__item p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- 表格 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}

table { width: 100%; border-collapse: collapse; font-size: 13.8px; }

thead th {
  text-align: left;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--text-2);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td { background: rgba(230, 178, 92, 0.045); }

td strong { color: var(--text); font-weight: 600; }

/* ---------- 筛选按钮 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filter {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.filter:hover { border-color: rgba(230, 178, 92, 0.4); color: var(--text); }

.filter.is-on {
  background: var(--gold-soft);
  border-color: rgba(230, 178, 92, 0.5);
  color: var(--gold);
}

/* ---------- CTA 区块 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 62px 56px;
  background: linear-gradient(135deg, #1a1510 0%, #14171d 52%, #101a1a 100%);
  border: 1px solid rgba(230, 178, 92, 0.24);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}

.cta::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(230, 178, 92, 0.2), transparent 66%);
}

.cta > * { position: relative; z-index: 2; }

.cta h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; }

.cta p { color: var(--text-2); max-width: 520px; font-size: 14.5px; }

.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 表单 ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field--full { grid-column: 1 / -1; }

.field label { font-size: 13px; color: var(--text-2); }

.field label span { color: var(--gold); margin-inline-start: 2px; }

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(230, 178, 92, 0.55);
  background: rgba(230, 178, 92, 0.05);
}

.field textarea { resize: vertical; min-height: 104px; }

.field input::placeholder, .field textarea::placeholder { color: #656c77; }

.field select { appearance: none; cursor: pointer; }

.form__note { font-size: 12.5px; color: var(--muted); }

.form__msg {
  grid-column: 1 / -1;
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  background: rgba(88, 201, 193, 0.1);
  border: 1px solid rgba(88, 201, 193, 0.35);
  color: #8ee0da;
}

.form__msg.is-on { display: block; }

/* ---------- 内容卡（洞察） ---------- */
.post {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.22s, transform 0.22s;
}

.post:hover { border-color: rgba(230, 178, 92, 0.3); transform: translateY(-2px); }

.post__cat {
  align-self: start;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(230, 178, 92, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.6;
}

.post h3 { font-size: 17px; margin-bottom: 8px; }

.post p { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }

.post__meta { font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- 页脚 ---------- */
.footer {
  padding: 66px 0 34px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 46px;
}

.footer h4 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.footer li { margin-bottom: 9px; }

.footer a { color: var(--muted); font-size: 13.5px; transition: color 0.18s; }

.footer a:hover { color: var(--gold); }

.footer__about { color: var(--muted); font-size: 13.5px; max-width: 320px; margin-top: 16px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 页面头 ---------- */
.pagehead {
  position: relative;
  padding: 74px 0 58px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.pagehead::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(230, 178, 92, 0.13), transparent 66%);
  pointer-events: none;
}

.pagehead__inner { position: relative; z-index: 2; }

.crumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.crumb a:hover { color: var(--gold); }

.pagehead h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pagehead p { color: var(--text-2); max-width: 680px; font-size: 15.5px; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 26px;
  align-items: start;
}

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

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

.info-item:last-child { border-bottom: none; }

.info-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid rgba(230, 178, 92, 0.2);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex: 0 0 auto;
}

.info-item__icon svg { width: 18px; height: 18px; }

.info-item dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }

.info-item dd { margin: 0; font-size: 14.5px; color: var(--text); }

.faq { display: grid; gap: 10px; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq__q:hover { color: var(--gold); }

.faq__q i {
  font-style: normal;
  color: var(--gold);
  font-size: 18px;
  transition: transform 0.22s;
  flex: 0 0 auto;
}

.faq__item.is-open .faq__q i { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-2);
  font-size: 14px;
  padding: 0 22px;
}

.faq__item.is-open .faq__a { max-height: 320px; padding-bottom: 18px; }

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .compass { margin: 0 auto; max-width: 340px; }
  .cta { grid-template-columns: 1fr; padding: 44px 32px; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 18px; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: rgba(10, 11, 13, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__links .nav__cta { justify-content: center; margin-top: 8px; }
  .nav__toggle { display: block; }
  .hero { padding: 54px 0 52px; }
  .section { padding: 62px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
  .cards { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item { padding: 22px 18px; }
  .stats__num { font-size: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .form { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 12px; }
  .post__cat { justify-self: start; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 640px; }
  .cta { padding: 34px 22px; }
  .compass__tag { font-size: 11px; padding: 4px 9px; }
}

/* ===========================================================
   多语言扩展：语言切换 / RTL 镜像 / 阿语排版
   =========================================================== */

/* ---------- 语言切换 ---------- */
.langswitch { position: relative; margin-inline-start: 6px; flex: 0 0 auto; }

.nav__links .langswitch__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.langswitch__btn:hover { color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.langswitch__btn svg { opacity: 0.7; }

.langswitch__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 136px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 130;
}

.langswitch:hover .langswitch__menu,
.langswitch:focus-within .langswitch__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__links .langswitch__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
}

.nav__links .langswitch__menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__links .langswitch__menu a.is-current { color: var(--gold); background: var(--gold-soft); }

/* ---------- 阿语字体：走系统栈，零字库下载 ----------
   macOS/iOS 有 SF Arabic，Windows 有 Segoe UI 阿语，
   Android 有 Noto Naskh。避免 200–400KB 的 web font。 */
html[lang="ar"] {
  --font: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Kufi Arabic", "Dubai",
    "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;
}

html[lang="ar"] body { line-height: 1.95; }

/* 阿语连写不能被 letter-spacing 撑断 */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .logo,
html[lang="ar"] .kicker,
html[lang="ar"] .eyebrow,
html[lang="ar"] .panel__num,
html[lang="ar"] .post__meta,
html[lang="ar"] .compass__core {
  letter-spacing: 0;
}

html[lang="ar"] h1 { line-height: 1.42; }
html[lang="ar"] h2 { line-height: 1.45; }

/* 阿语字号略小，视觉饱满度才与拉丁文一致 */
html[lang="ar"] .hero__lead { font-size: 16px; }
html[lang="ar"] .card__specs { font-size: 13.5px; }

/* ---------- RTL 镜像 ---------- */
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* bdi 隔离的数字/技术串不许在连字符处断行 */
bdi { white-space: nowrap; }

/* 地址旁的地图外链 */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 6px;
  color: var(--gold);
  font-size: 12.5px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(230, 178, 92, 0.32);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}

.map-link:hover { color: #f0c47a; border-bottom-color: currentColor; }
.map-link svg { flex: 0 0 auto; opacity: 0.8; }

/* 拉丁技术串保持 LTR 词序，但对齐跟随 RTL 侧 */
[dir="rtl"] .card__en {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

/* 罗盘标签左右对调，保持环形对称 */
[dir="rtl"] .compass__tag:nth-child(6) { right: auto; left: 0; }
[dir="rtl"] .compass__tag:nth-child(7) { right: auto; left: 2%; }
[dir="rtl"] .compass__tag:nth-child(9) { left: auto; right: 0; }
[dir="rtl"] .compass__tag:nth-child(10) { left: auto; right: 0; }

/* 表格列对齐跟随书写方向 */
[dir="rtl"] td, [dir="rtl"] th { text-align: start; }

/* 部分浏览器不把 select 的对齐继承给 RTL */
[dir="rtl"] .field select { text-align: right; }

@media (max-width: 720px) {
  .langswitch { width: 100%; margin: 8px 0 0; }
  .nav__links .langswitch__btn { width: 100%; justify-content: space-between; }
  .langswitch__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.03);
  }
}

/* ---------- 实拍展示 ---------- */
.showcase__banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.showcase__grid figure { margin: 0; }

.showcase__grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase__grid figure:hover img { transform: scale(1.015); }

.showcase__grid figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .showcase__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- 实拍展示结束 ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
