@charset "UTF-8";
/* ==========================================================================
   Metong Machinery — Thai market layer (th)
   后加载覆盖层：只覆盖视觉与交互表现，不改动 site.css 与任何页面结构。
   泰语市场取向（工业 B2B 采购商）：
   1) 泰文优先字体 + 更宽松行距（泰文上下叠字需要更高行盒）
   2) 深海军蓝 + 泰式暖金，米色区块，圆角卡片与柔和阴影
   3) 主 CTA「ขอใบเสนอราคา」高对比、常驻可点，缩短询盘路径
   ========================================================================== */

/* ---------- 1. Thai-first type ----------
   Sarabun：泰国最常见、最“本地”的有尾环正文体（官方文书/企业站通用字形），
   替代此前的 IBM Plex Sans Thai（无尾环现代设计，当地读者会觉得“不像泰文”）。
   只声明泰文 unicode-range，拉丁字母仍走站内原有 IBM Plex Sans。 */
@font-face {
  font-family: "Sarabun Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sarabun-400-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun Thai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sarabun-500-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sarabun-600-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun Thai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sarabun-700-thai.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* 标题同样使用 Sarabun（700/600）：全站只用一套泰文字体，字形风格统一 */

/* ---------- 2. tokens ---------- */
:root {
  --ink: #0a2436;
  --ink-2: #0d2e43;
  --ink-3: #123a52;
  --navy: #0f5c82;
  --navy-2: #17749f;
  --navy-3: #2f90bd;
  --accent: #e39a20;
  --accent-soft: #f6c86a;
  --paper: #f6f1e7;
  --paper-2: #efe8db;
  --line: #e5ded2;
  --line-strong: #cbbfa9;
  --text: #132731;
  --muted: #5b6c74;
  --radius: 12px;
  --th-gold: #e39a20;
  --th-gold-deep: #b8790e;
  --th-cream: #fbf7ef;
  --th-shadow: 0 10px 30px -18px rgba(10, 36, 54, .38);
  --th-shadow-lg: 0 22px 46px -24px rgba(10, 36, 54, .5);
}

/* ---------- 3. type ---------- */
body {
  font-family: "Sarabun Thai", "Sarabun", "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: "Sarabun Thai", "Sarabun", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.4;
  font-weight: 700;
}
h3, h4, .h3, .card__title { font-weight: 600; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.32; }
.hero h1 { font-size: clamp(1.95rem, 3.9vw, 3.1rem); line-height: 1.34; letter-spacing: 0; max-width: 22ch; }
.sect-head h2, .h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.4; }
.h3, .card__title { line-height: 1.5; }
.lead { font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.72; }
.small { font-size: .92rem; line-height: 1.7; }
.sect-head .deck { font-size: 1rem; line-height: 1.74; }
p { margin: 0 0 1.05em; }
b, strong { font-weight: 600; }

/* label-ish helpers that carry Thai text: give them the Thai face, not mono */
.kicker,
.card__cat,
.spec-table th,
.field label,
.contact-card dt,
.footer-col h3,
.footer-bottom,
.step__no,
.crumbs,
.page-head__meta,
.th-cta__item {
  font-family: "Sarabun Thai", "Sarabun", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}
.kicker, .card__cat, .spec-table th, .field label, .contact-card dt, .footer-col h3, .step__no {
  font-size: .84rem;
}
.footer-bottom { font-size: .82rem; line-height: 1.7; }

/* ---------- 4. header ---------- */
.site-header {
  border-bottom: 2px solid var(--th-gold);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .85);
  backdrop-filter: saturate(1.1);
}
.header-bar { min-height: 78px; }
.brand__sub { color: rgba(255, 255, 255, .62); }
.nav__link { font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, .8); }
.nav__link[aria-current="page"] { border-color: var(--th-gold); color: #fff; }
.mega__col-title { font-size: .92rem; letter-spacing: 0; }
.mega__grid a { line-height: 1.6; }
.lang-switch__btn { border-radius: 8px; padding: .46rem .7rem; }
.drawer__nav a { line-height: 1.5; }

/* 主 CTA：询盘入口用暖金实心，全站统一、最显眼 */
.header-actions .btn--accent,
.btn--accent {
  background: linear-gradient(180deg, #f6b33c, #e2931b);
  border-color: #d98d16;
  color: #2a1a02;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(226, 147, 27, .75);
  padding: .68rem 1.3rem;
}
.header-actions .btn--accent {
  min-height: 42px;
  padding: .52rem 1.15rem;
  font-size: .9rem;
  letter-spacing: 0;
}
.btn--accent:hover {
  background: linear-gradient(180deg, #ffc457, #eda01f);
  border-color: #eda01f;
  color: #2a1a02;
}
.btn {
  border-radius: 999px;
  min-height: 44px;
  padding: .72rem 1.3rem;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
}
.btn--dark { background: var(--navy); border-color: var(--navy); }
.btn--dark:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .42); }
.btn--ghost:hover { border-color: var(--th-gold); color: var(--th-gold); }
.btn svg { width: 16px; height: 16px; }
.link-arrow { font-size: .95rem; gap: .45rem; }

/* ---------- 5. hero / page head ---------- */
.hero {
  background:
    radial-gradient(120% 130% at 78% 0%, rgba(227, 154, 32, .16) 0%, rgba(227, 154, 32, 0) 52%),
    linear-gradient(168deg, #0a2436 0%, #0f3348 58%, #14415c 100%);
}
.hero__eyebrow { color: var(--th-gold); font-size: .82rem; letter-spacing: .01em; }
.hero__deck { font-size: 1.06rem; line-height: 1.76; font-weight: 500; color: rgba(255, 255, 255, .9); }
.hero__points span {
  border-radius: 999px;
  padding: .42rem .9rem;
  font-size: .86rem;
  border-color: rgba(255, 255, 255, .28);
}
.hero__actions { gap: .8rem; }
@media (min-width: 1000px) {
  /* 字号再放大就会把 “สร้างถนน” 从词中间断开，泰国读者看着别扭，所以停在这个尺度 */
  .hero__deck { font-size: clamp(1.06rem, 1.15vw, 1.16rem); }
}

/* 首页主视觉：照片通栏铺底、文案压在照片左侧（对标国际站效果）。
   宽屏（≥1000px）照片作为背景铺满整个 hero，靠左的深色渐变保证泰文可读；
   窄屏（<1000px）照片按原比例整幅显示，说明牌落到图片下方，避免压字。 */
.hero__figure { min-height: 0; background: #0a2436; }
.hero__figure img { object-fit: cover; object-position: 55% 48%; }
.hero__figure::after {
  background:
    linear-gradient(90deg, rgba(6, 22, 32, .97) 0%, rgba(6, 22, 32, .93) 28%, rgba(6, 22, 32, .78) 50%, rgba(6, 22, 32, .22) 74%, rgba(6, 22, 32, 0) 100%),
    linear-gradient(0deg, rgba(6, 22, 32, .55) 0%, rgba(6, 22, 32, 0) 34%);
}
@media (min-width: 1000px) {
  .hero__inner { display: block; width: 100%; min-height: 560px; position: relative; }
  .hero__figure { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__figure img { width: 100%; height: 100%; }
  .hero__copy {
    position: relative;
    z-index: 3;
    width: var(--w-wide);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
    padding-top: clamp(3rem, 5.4vw, 5rem);
    padding-bottom: clamp(2.2rem, 4vw, 3.6rem);
  }
  .hero__copy > * { max-width: 660px; }
  .nameplate {
    left: auto;
    right: max(1.375rem, calc((100vw - 1360px) / 2));
    bottom: 1.5rem;
    max-width: min(560px, 46vw);
  }
}
/* 1000–1319px 文案与说明牌容易叠在一起，先只保留文案 */
@media (min-width: 1000px) and (max-width: 1319px) {
  .nameplate { display: none; }
}
@media (max-width: 999px) {
  .hero__figure { aspect-ratio: auto; }
  .hero__figure::after { display: none; }
  .nameplate {
    position: static;
    max-width: none;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: rgba(8, 24, 31, .94);
    font-size: .72rem;
  }
  .hero__figure img { height: auto; }
}
.page-head { background: linear-gradient(170deg, #0a2436 0%, #123a52 100%); }
.crumbs { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.crumbs a:hover { color: var(--th-gold); }
.page-head__meta { font-size: .82rem; }

/* ---------- 6. sections, cards ---------- */
.section--paper { background: var(--th-cream); }
.section { padding: clamp(3.4rem, 5.6vw, 6rem) 0; }
.sect-head { border-top: 2px solid var(--line); padding-top: 1.5rem; }
.sect-head .kicker { color: var(--th-gold-deep); }
.card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--th-shadow);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  background: #fff;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-lg); }
.card__body { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem 1.4rem; }
.card__cat { color: var(--th-gold-deep); font-size: .78rem; }
.card__text { font-size: .9rem; line-height: 1.7; color: var(--muted); }
.card--fill { background: var(--th-cream); border-radius: 16px; }
.card--fill h3 { font-size: 1.08rem; }
.card--fill p { font-size: .9rem; line-height: 1.7; }
.info-cards .card, .solution-grid > *, .support-grid > * { border-radius: 16px; }
.quote-card, .rfq { border-radius: 16px; }

/* ---------- 7. tables ---------- */
.table-scroll { border-radius: 14px; border-color: var(--line); box-shadow: var(--th-shadow); }
.spec-table { font-size: .92rem; }
.spec-table th, .spec-table td { padding: .78rem 1rem; line-height: 1.6; }
.spec-table thead th, .spec-table--matrix thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  white-space: normal;
}
.spec-table tbody tr:nth-child(even) { background: #fbf8f2; }
.spec-table td:first-child { color: var(--muted); width: 44%; }
.spec-table td.val, .spec-table td:nth-child(2) {
  font-family: "IBM Plex Mono", "Sarabun Thai", ui-monospace, Consolas, monospace;
  font-size: .87rem;
}
.spec-caption { font-family: "Sarabun Thai", "Sarabun", "IBM Plex Sans", sans-serif; font-size: .82rem; letter-spacing: 0; }

/* ---------- 8. forms / enquiry / legacy form frame ---------- */
.field label { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  border-radius: 10px;
  min-height: 46px;
  padding: .7rem .85rem;
  font-size: 1rem;
}
.field textarea { min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--th-gold);
}
.rfq input, .rfq select, .rfq textarea { border-radius: 10px; min-height: 46px; }
.form__status { color: var(--th-gold-deep); }
.form__note { line-height: 1.65; }

/* 站内旧询盘 iframe：只加圆角与投影，不动标签本身 */
iframe[src*="default.aspx"] {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--th-shadow-lg);
}
.contact-map iframe, .contact-map { border-radius: 16px; overflow: hidden; }

/* ---------- 9. lists / prose ---------- */
.prose p, .prose li { font-size: 1rem; line-height: 1.8; }
.prose li::before { background: var(--th-gold); width: .42rem; height: .42rem; border-radius: 50%; }
.context-checks li::marker { color: var(--th-gold); }
.features li, .support-grid li { line-height: 1.7; }
.step__no { color: var(--th-gold-deep); }
.catalog-link.is-active { box-shadow: inset 3px 0 0 var(--th-gold); }
.side-nav__cat[aria-current="page"] { box-shadow: inset 3px 0 0 var(--th-gold); }

/* ---------- 10. footer ---------- */
.site-footer {
  border-top: 3px solid var(--th-gold);
  background: linear-gradient(180deg, #0a2436 0%, #081d2b 100%);
}
.footer-col h3 { color: var(--th-gold); font-size: .82rem; letter-spacing: .02em; }
.footer-col a, .footer-col li { font-size: .88rem; padding: .26rem 0; line-height: 1.6; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-bottom { color: rgba(255, 255, 255, .55); }

/* ---------- 11. 常驻询盘条（移动端底部 / 桌面右下浮动） ---------- */
.th-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 29, 43, .95);
  border-top: 2px solid var(--th-gold);
  box-shadow: 0 -12px 28px -22px rgba(0, 0, 0, .8);
}
.th-cta__item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 .6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.th-cta__item:hover { border-color: var(--th-gold); color: var(--th-gold); }
.th-cta__item--primary {
  background: linear-gradient(180deg, #f6b33c, #e2931b);
  border-color: #d98d16;
  color: #2a1a02;
  font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(226, 147, 27, .8);
}
.th-cta__item--primary:hover { color: #2a1a02; border-color: #ffc457; }

/* 移动端常驻；桌面端隐藏，避免遮挡页面内已有的询盘卡片（桌面走 header CTA + 页内 CTA） */
.th-cta { display: none; }

@media (max-width: 899px) {
  .th-cta { display: flex; }
  body { padding-bottom: 76px; }
  .th-cta__item { font-size: .92rem; }
}

@media print {
  .th-cta { display: none; }
}

/* ---------- 12. 细节 ---------- */
::selection { background: var(--th-gold); color: #2a1a02; }
:focus-visible { outline: 2px solid var(--th-gold); outline-offset: 3px; }
.badge, .pill { border-radius: 999px; }
.tag { border-radius: 999px; }
.news-grid .card__media, .filmstrip { border-radius: 14px; }
.certs { border-radius: 14px; }
