/* Monster Sawmills — 站点样式
   设计取向：深石墨灰工业感 + 琥珀动火色强调。
   刻意避开橙色为主色（Norwood 在锯木机品类注册了橙色商标）。
   全篇使用 CSS 逻辑属性（margin-inline / padding-inline / inset-inline），
   阿拉伯语切换到 dir="rtl" 时整站自动镜像，无需任何 RTL 专用代码。 */

:root {
  --bg: #0f1418;
  --surface: #161c22;
  --surface-2: #1e262e;
  --surface-3: #26313a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #e9eef3;
  --muted: #9aa7b3;
  --accent: #f2b01e;
  --accent-ink: #161206;
  --accent-dim: rgba(242, 176, 30, 0.14);
  --green: #4f7a45;
  --max: 1200px;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; font-weight: 600; }
h1 { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -0.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 62ch; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.topbar .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding-block: 7px; }
.topbar a { text-decoration: underline; }

/* ---------- 页头 ---------- */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.logo img { width: 38px; height: 38px; border-radius: 50%; }

.nav { display: flex; gap: 24px; margin-inline-start: auto; }
.nav a { font-size: 15px; color: var(--text); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent); }

/* 语言切换：原生 details，无 JS 也能用 */
.langsel { position: relative; flex: none; }
.langsel > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 7px 12px; font-size: 14px; white-space: nowrap;
  color: var(--text); background: var(--surface-2);
  transition: border-color .15s, color .15s;
}
.langsel > summary::-webkit-details-marker { display: none; }
.langsel > summary:hover { border-color: var(--accent); color: var(--accent); }
.langsel[open] > summary { background: var(--surface-3); border-color: var(--accent); }
.langsel .globe { flex: none; opacity: .85; }
.langsel .caret { font-size: 10px; opacity: .7; line-height: 1; }
.langsel[open] .caret { transform: rotate(180deg); }
.langsel ul {
  position: absolute; inset-inline-end: 0; margin: 8px 0 0; padding: 6px; z-index: 60;
  list-style: none; min-width: 180px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.langsel li a { display: block; padding: 8px 12px; font-size: 14px; border-radius: 6px; }
.langsel li a:hover { background: var(--surface-3); }
.langsel li a[aria-current="true"] { color: var(--accent); font-weight: 600; }

.navtoggle { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 8px 12px; cursor: pointer; }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 10px 24px 18px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 11px; border-bottom: 1px solid var(--line); }
  .masthead .wrap { gap: 14px; }
  .langsel { order: 3; }
  .langsel > summary { padding: 6px 10px; font-size: 13px; }
}

/* 页脚平铺语言列表：下拉没被发现时的第二入口 */
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; }
.footer-langs a { font-size: 14px; }
.footer-langs a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* ---------- 主视觉 ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 15% 0%, var(--surface-2) 0%, transparent 60%); }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }
.hero img { border-radius: var(--radius); border: 1px solid var(--line); }

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

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 8px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- 通用区块 ---------- */
section { padding-block: clamp(40px, 6vw, 80px); }
.section-head { margin-bottom: 34px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- 信任条 ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 30px; }
.trust-item .num { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.trust-item h3 { font-size: 17px; margin-block: 6px 6px; }
.trust-item p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- 产品卡：数字当视觉主体 ---------- */
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card img { border-radius: 8px; border: 1px solid var(--line); background: var(--surface-3); }
.product-card .tag { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.figures { display: flex; gap: 20px; flex-wrap: wrap; margin: 4px 0 0; padding: 0; list-style: none; }
.figures li { min-width: 78px; }
.figures b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.figures span { color: var(--muted); font-size: 12px; }

/* ---------- 参数表 ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-size: 15px; margin: 0; }
.spec-row dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.spec-row dd .imperial { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }

.table-like { border-top: 1px solid var(--line); }

/* ---------- 列表组 ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-inline-start: 26px; color: var(--muted); }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 10px;
  width: 7px; height: 7px; background: var(--accent); border-radius: 2px;
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding-block: 16px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 16px; color: var(--muted); max-width: 78ch; }

/* ---------- 视频：点击才加载的门面 ---------- */
.video-facade {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface-3); aspect-ratio: 16 / 9;
  display: block; width: 100%; padding: 0; cursor: pointer;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-facade .play {
  position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 22px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.video-facade:hover .play { filter: brightness(1.1); }
.video-facade .meta {
  position: absolute; inset-inline-end: 14px; bottom: 14px;
  background: rgba(15, 20, 24, .82); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--text);
}
.video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-block: 18px; border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }

/* ---------- 呼应条 ---------- */
.cta-band { background: var(--surface); border-block: 1px solid var(--line); text-align: center; }
.cta-band .lead { margin-inline: auto; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 720px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 8px; padding: 11px 13px; font-size: 15px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { min-height: 120px; resize: vertical; }
.form-full { grid-column: 1 / -1; }
.form-note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 46px 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--text); opacity: .82; font-size: 15px; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer-badge { display: flex; align-items: center; gap: 12px; }
.footer-badge img { width: 46px; height: 46px; border-radius: 50%; }

.skip {
  position: absolute; inset-inline-start: -9999px;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 100;
}
.skip:focus { inset-inline-start: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
