/* 独立站模板样式：克制、细线分隔、真实图片位；无外部字体与 CDN。方向相关一律用逻辑属性，阿语 RTL 直接复用。 */
:root {
  --ink: #1b1b1a; --muted: #5d5b57; --line: #e3e0d9; --paper: #fbfaf7; --surface: #ffffff; --frame: #f1eee8;
  --primary: #1d4f73; --accent: #b5651d;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --arabic: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --heading: var(--sans);
  --wrap: 1120px;
}
.t-brand { --heading: var(--serif); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
html[lang="ar"] body { font-family: var(--arabic); line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--arabic); letter-spacing: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .75rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }

.demo { background: #f4efe2; border-bottom: 1px solid var(--line); font-size: .85rem; text-align: center; padding: 6px 20px; color: #5a4a22; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--heading); font-weight: 600; font-size: 1.12rem; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.langs { display: flex; gap: 12px; font-size: .85rem; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }

.btn { display: inline-block; padding: 11px 20px; border: 1px solid var(--primary); background: var(--primary); color: #fff; text-decoration: none; font: inherit; font-size: .95rem; border-radius: 2px; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }

section { padding-block: clamp(40px, 7vw, 76px); }
section + section { border-top: 1px solid var(--line); }
.hero { padding-block: clamp(44px, 8vw, 96px); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }

.frame { background: var(--frame); border: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: contain; }
.frame.cover img { object-fit: cover; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
.card { background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card .frame { border: 0; margin: -22px -22px 6px; }
.card h3 { margin: 0; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card .more { margin-top: auto; font-size: .9rem; color: var(--primary); }
.price { font-weight: 600; color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); padding-inline-end: 16px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.list-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list-lines li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.certs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.certs li { border: 1px solid var(--line); padding: 8px 14px; background: var(--surface); font-size: .9rem; }
.certs small { color: var(--muted); margin-inline-start: 6px; }

.crumbs { font-size: .85rem; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.product { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; padding-block: 28px 8px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.thumbs .frame { aspect-ratio: 1; }
.keyfacts { margin: 1.2rem 0 0; }
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.faq h3 { margin: 1.4rem 0 .35rem; }
.faq p { margin: 0; color: var(--muted); }
table.specs th, table.specs td { text-align: start; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 40%; font-weight: 500; color: var(--muted); padding-inline-end: 16px; }
.prose { max-width: 44em; }

.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.contact-list { margin: 0; }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .8rem; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; white-space: pre-line; }
form.inquiry { display: grid; gap: 14px; }
form.inquiry label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
form.inquiry input, form.inquiry textarea, form.inquiry select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid #cfcbc2; border-radius: 2px; padding: 10px 12px; width: 100%; }
form.inquiry textarea { min-height: 140px; resize: vertical; }
form.inquiry .hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.inquiry .small { font-size: .82rem; margin: 0; }
.form-status { margin: 0; padding: 10px 12px; border-inline-start: 3px solid var(--line); background: var(--surface); }
.form-status.sent { border-color: var(--primary); }
.form-status.failed, .form-status.limited { border-color: var(--accent); }
.cta-band { background: var(--surface); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: .88rem; color: var(--muted); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; flex-basis: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer .link-button { text-decoration: none; }

/* 购买按钮（跳到用户自己的 Stripe / PayPal 页面付款） */
.btn-small { padding: 7px 14px; font-size: .88rem; align-self: flex-start; }
.checkout-note { margin: .8rem 0 0; font-size: .82rem; }

/* Cookie 同意横幅：只在填了 GA4 / Meta Pixel 的站点出现；不遮挡操作（非模态），拒绝与接受同样式 */
.consent { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27, 27, 26, .06); padding-block: 16px; font-size: .9rem; }
.consent .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.consent p { margin: 0; flex: 1 1 32em; color: var(--muted); }
.consent p a { color: var(--ink); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-actions .btn { min-width: 8em; text-align: center; padding-block: 9px; }
@media (max-width: 560px) { .consent-actions { flex: 1 1 100%; } .consent-actions .btn { flex: 1 1 0; min-width: 0; } }

/* 日韩泰排版：不做大写字距，日语标题按词组换行，韩语不在词中断行，泰文行高放宽 */
html[lang="ja"] .eyebrow, html[lang="ko"] .eyebrow, html[lang="th"] .eyebrow { letter-spacing: .04em; text-transform: none; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; word-break: auto-phrase; }
html[lang="ko"] body { word-break: keep-all; }
html[lang="th"] body { line-height: 1.8; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid.with-media { grid-template-columns: 1.05fr 1fr; }
  .product { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
@media (min-width: 1000px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
