/* ============================================================
   安途跨境官網樣式
   設計取自小程序（暖銅漸變卡 + 米白底 + 大圓角）
   配色：docs/brand-guidelines.md / app.wxss
   ============================================================ */

:root {
  --copper:        #9A6238;
  --copper-mid:    #B5825C;
  --copper-light:  #C49878;
  --gold:          #DCA85E;
  --gold-deep:     #C4883C;

  --bg:            #F7F3EB;   /* 米白 */
  --bg-soft:       #FBF7EF;
  --card:          #FFFFFF;
  --cream:         #F0DFC1;   /* 暖米色（小程序 tag 底色） */
  --cream-line:    #E8D3AC;
  --icon-bg:       #F5E8D0;

  --text:          #2C1810;
  --text-mid:      #7A6A58;
  --text-soft:     #B8A88E;
  --line:          #F0E8D8;
  --accent:        #B8503C;

  --r-xl:          24px;
  --r-lg:          18px;
  --r-md:          14px;
  --r-pill:        999px;

  --shadow-sm:     0 2px 12px rgba(154, 98, 56, .06);
  --shadow-md:     0 10px 34px rgba(154, 98, 56, .12);
  --shadow-btn:    0 8px 26px rgba(154, 98, 56, .30);

  --wrap:          1140px;
  --header-h:      72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC",
               "Hiragino Sans", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 英文模式：字體與行距微調（拉丁字母在 CJK 字體下偏窄） */
html[lang="en"] body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "PingFang TC", Arial, sans-serif;
  letter-spacing: .005em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--copper);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 235, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 243, 235, .96);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(150, 105, 55, .32);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-text strong { font-size: 18px; letter-spacing: .04em; }
.brand-text small {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-soft);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 14.5px;
  color: var(--text-mid);
  transition: color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--copper); }

.header-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.lang-switch button,
.lang-switch a {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: background .2s, color .2s;
  line-height: 1.4;
}
.lang-switch button.active,
.lang-switch a.active {
  background: var(--copper);
  color: #fff;
}

.nav-cta {
  background: var(--copper);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  transition: transform .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--copper-mid);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(154, 98, 56, .38);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  font-size: 15.5px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; color: var(--copper); font-weight: 600; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -260px; right: -180px;
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(196, 152, 120, .28) 0%, rgba(196, 152, 120, 0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

/* 小程序那張漸變卡：深銅 → 金銅 135° */
.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #9A6238 0%, #B5825C 100%);
  border-radius: var(--r-xl);
  padding: 48px 42px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(154, 98, 56, .28);
  min-height: 340px;
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -90px; right: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hero-label {
  font-size: 11px;
  letter-spacing: .26em;
  opacity: .85;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.hero-sub { font-size: 15px; opacity: .92; position: relative; z-index: 1; }

/* AI 助手卡（小程序第二張卡） */
.ai-card {
  background: var(--card);
  border: 1px solid var(--cream);
  border-radius: var(--r-xl);
  padding: 34px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ai-badge {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.ai-title { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.ai-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}

.ai-input { display: flex; gap: 10px; }
.ai-input input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--cream);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.ai-input input::placeholder { color: var(--text-soft); }
.ai-input input:focus {
  outline: none;
  border-color: var(--copper-light);
  background: #fff;
}
.ai-send {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--copper), var(--copper-mid));
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.ai-send:hover { transform: translateY(-1px); }
.ai-send:active { transform: scale(.94); }

.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  color: var(--copper);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: background .2s, color .2s;
}
.tag:hover { background: var(--copper); color: #fff; }

/* ── 區塊通用 ───────────────────────────────── */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: 34px; }
.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.section-title-row h2 {
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.01em;
}
.section-more {
  font-size: 13.5px;
  color: var(--copper);
  font-weight: 600;
  white-space: nowrap;
}
.section-more:hover { text-decoration: underline; }
.section-sub { font-size: 15px; color: var(--text-mid); max-width: 620px; }

/* ── 服務卡（小程序 svc-card 的放大） ───────── */
.svc-grid {
  display: grid;
  /* 5 個服務 → 桌面一行剛好五列；窄屏自動降列 */
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 16px;
}
.svc-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  border: 1px solid rgba(240, 223, 193, .85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .035);
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 54px; height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}
.svc-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.svc-price {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--copper);
  background: var(--icon-bg);
  padding: 3px 11px;
  border-radius: var(--r-pill);
}

/* 小程序裡的 4 組漸變 */
.s1 { background: linear-gradient(135deg, #9A6238, #B5825C); }
.s2 { background: linear-gradient(135deg, #45B383, #2E8F66); }
.s3 { background: linear-gradient(135deg, #8296D8, #5C6FB0); }
.s4 { background: linear-gradient(135deg, #DCA85E, #C4883C); }

/* ── 案例 ───────────────────────────────────── */
.case-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--card);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--cream);
  box-shadow: 0 8px 34px rgba(0, 0, 0, .05);
}
.case-media {
  background: linear-gradient(135deg, var(--copper), var(--copper-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 76px;
  min-height: 210px;
}
.case-body { padding: 30px 32px; }
.case-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--copper);
  background: var(--cream);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.case-body h3 { font-size: 19px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.case-body p { font-size: 14px; color: var(--text-mid); }

/* ── 顧問 ───────────────────────────────────── */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.advisor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.advisor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.advisor-avatar {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--copper-mid));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.advisor-meta { flex: 1; min-width: 0; }
.advisor-meta h3 { font-size: 15.5px; font-weight: 700; }
.advisor-meta p { font-size: 12px; color: var(--text-mid); line-height: 1.45; }
.advisor-points {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-deep);
  white-space: nowrap;
}

/* ── 資訊流 ─────────────────────────────────── */
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .035);
  transition: transform .25s, box-shadow .25s;
}
.feed-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feed-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .10);
}
.feed-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed-body strong { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.feed-body small { font-size: 13px; color: var(--text-mid); }
.feed-meta {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ── 關於 ───────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 52px;
  align-items: start;
}
.about-text { font-size: 15px; color: var(--text-mid); margin-bottom: 16px; }

.advantage-row {
  display: flex;
  gap: 26px;
  margin: 26px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.advantage { display: flex; flex-direction: column; }
.advantage strong { font-size: 24px; font-weight: 800; color: var(--copper); line-height: 1.2; }
.advantage span { font-size: 12.5px; color: var(--text-mid); }

.compliance-block {
  background: var(--bg-soft);
  border: 1px solid var(--cream);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.compliance-block h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--copper); }
.compliance-block p { font-size: 13px; color: var(--text-mid); line-height: 1.8; }

.about-facts {
  background: var(--card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 6px 22px;
}
.about-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.about-facts > div:last-child { border-bottom: none; }
.about-facts dt { font-size: 12.5px; color: var(--text-soft); white-space: nowrap; }
.about-facts dd { font-size: 13.5px; font-weight: 600; text-align: right; }

/* ── 表單 ───────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: start;
}
.contact-hint { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.contact-hint li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-mid);
}
.contact-hint li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 700;
}

.form {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 30px 28px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .05);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--text-soft); font-size: 11.5px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--cream);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14.5px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--copper-light);
  box-shadow: 0 0 0 3px rgba(196, 152, 120, .16);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--accent); }

.err { font-size: 12px; color: var(--accent); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover:not(:disabled) { background: var(--copper-mid); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-block { width: 100%; margin-top: 6px; }

.form-note { font-size: 11.5px; color: var(--text-soft); margin-top: 12px; text-align: center; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  border-radius: var(--r-md);
  padding: 0;
  transition: padding .2s;
}
.form-status.ok,
.form-status.bad { padding: 12px 16px; }
.form-status.ok  { background: rgba(76, 175, 125, .10); color: #2E7D54; }
.form-status.bad { background: rgba(184, 80, 60, .10);  color: var(--accent); }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: #2C1810;
  color: rgba(247, 243, 235, .82);
  padding: 46px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 12px; }
.footer-brand strong { display: block; font-size: 14.5px; color: #F7F3EB; }
.footer-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(247, 243, 235, .45);
  margin-top: 3px;
}
.footer-meta { font-size: 12.5px; line-height: 1.9; text-align: right; }
.footer-meta p { color: rgba(247, 243, 235, .62); }
.footer-copy { margin-top: 10px; color: rgba(247, 243, 235, .36) !important; }

/* ── 進入動畫 ───────────────────────────────── */
/* 進場動畫：只有 JS 正常執行時才隱藏內容。
 * `.js` 由 <head> 裡的內聯腳本加上；沒 JS 就保持可見，
 * 否則腳本掛了整頁會變成空白（截圖、爬蟲、老瀏覽器都會踩到）。 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── 響應式 ─────────────────────────────────── */
@media (max-width: 1040px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13.5px; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-inner > * { min-width: 0; }
  .hero-card { min-height: 0; width: 100%; padding: 38px 30px; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-facts dd { text-align: right; }

  .case-card { grid-template-columns: 1fr; }
  .case-media { min-height: 150px; font-size: 60px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hero { padding: 36px 0 60px; }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 26px; }
  .form { padding: 24px 20px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .hero-glow { width: 520px; height: 520px; top: -180px; right: -160px; }
  .advantage-row { gap: 18px; }
  .advantage strong { font-size: 21px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .btn { padding: 12px 22px; font-size: 14.5px; }
  .brand-text small { display: none; }
  .about-facts > div { flex-direction: column; gap: 3px; }
  .about-facts dd { text-align: left; }
}

/* ── 文章詳情頁 ─────────────────────────────── */
.article-main { padding: 56px 0 88px; }
.article-wrap { max-width: 760px; }

.article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.article-back { font-size: 13.5px; color: var(--text-mid); }
.article-back:hover { color: var(--copper); }

#article h1 {
  font-size: clamp(23px, 3.2vw, 33px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 12px 0 12px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-soft);
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.article-body { font-size: 15.5px; line-height: 1.95; color: var(--text-mid); }
.article-body p { margin-bottom: 20px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-empty { color: var(--text-soft); }

.article-cta {
  margin-top: 54px;
  padding: 32px 28px;
  background: var(--card);
  border-radius: var(--r-xl);
  border: 1px solid var(--cream);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.article-cta h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.article-cta p { font-size: 14px; color: var(--text-mid); margin-bottom: 20px; }

@media (max-width: 640px) {
  .article-main { padding: 34px 0 64px; }
  .article-body { font-size: 15px; }
  .article-cta { padding: 26px 20px; margin-top: 42px; }
}

/* ── 404 ────────────────────────────────────── */
.notfound-lang {
  margin: 0 auto 22px;
  width: fit-content;
}

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
}
.notfound img { border-radius: 16px; margin-bottom: 8px; }
.notfound .eyebrow {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--copper-light);
  font-weight: 700;
}
.notfound h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.notfound p { color: var(--text-mid); max-width: 430px; }
.notfound-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.btn-ghost { border: 1px solid var(--cream-line); color: var(--copper); background: #fff; }
.btn-ghost:hover { background: var(--cream); }
