/* ThaiTasty — brand site
   纯静态，无构建步骤。改完直接刷新浏览器即可。 */

:root {
  --bg: #fdfaf5;
  --bg-alt: #f5efe4;
  --ink: #2e2a24;
  --ink-soft: #6b6355;
  --brand: #1f6f5c;
  --brand-deep: #16513f;
  --accent: #e8a13a;
  --line: #e4dccd;
  --radius: 14px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", "Tahoma",
               -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); }

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

/* ---------- 语言切换：纯 CSS 显隐，JS 只负责设置 data-lang ---------- */
html[data-lang="th"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-th { display: none !important; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 250, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand-mark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] {
  color: var(--brand-deep);
  border-bottom-color: var(--accent);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* ---------- 通用版块 ---------- */
section { padding: 68px 0; }
section.tint { background: var(--bg-alt); }

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; color: var(--brand-deep); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.hero { padding: 84px 0 72px; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid var(--brand);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-ghost:hover { background: rgba(31, 111, 92, 0.08); }

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: var(--brand-deep); }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.7rem; margin-bottom: 10px; }

/* ---------- 产品 ---------- */
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product .shot {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.product .body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.product .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(31, 111, 92, 0.09);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.product ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--ink-soft); font-size: 0.95rem; }
.product ul li { margin-bottom: 5px; }
.product .buy { margin-top: auto; }

/* ---------- 信息表（公司/联系） ---------- */
.factsheet {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 26px;
}
.factsheet th, .factsheet td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.97rem;
}
.factsheet tr:last-child th, .factsheet tr:last-child td { border-bottom: 0; }
.factsheet th {
  width: 38%;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-alt);
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; }

/* ---------- 待填占位符：故意刺眼，防止漏填就上线 ---------- */
.todo {
  background: #fff3cd;
  border: 1px dashed #d39e00;
  border-radius: 5px;
  padding: 1px 7px;
  color: #7a5b00;
  font-weight: 600;
  font-size: 0.9em;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brand-deep);
  color: #cfe0d9;
  padding: 46px 0 34px;
  font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 20px;
  color: #a9c4ba;
  font-size: 0.85rem;
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 50px 0; }
  .hero { padding: 56px 0 48px; }
  .site-nav { gap: 16px; order: 3; width: 100%; margin-left: 0; }
  .factsheet th { width: auto; white-space: normal; }
}
