/* Q-Girl — styles */
:root {
  --primary: #D92F7C;
  --primary-light: #F55C9A;
  --pink-soft: #F9C7D9;
  --pink-bg: #FFF5F8;
  --ink: #3A2430;
  --ink-soft: #8A6A78;
  --card-bg: #FFFFFF;
  --line: #F3D9E2;
  --shadow: 0 10px 30px rgba(217, 47, 124, 0.08);
  --radius: 20px;
  --font-display: 'Baloo 2', 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 俄語：禁用 Baloo 2 顯示字體（其西里爾字形過寬，會把標題撐成 6 行導致佈局跳動）；
   fallback 鏈避開苹方/雅黑等全寬 CJK 字形（其西里爾字符為 1em 全寬），改用系統正常寬度西里爾字體 */
html[lang="ru"] {
  --font-display: 'Nunito', 'Segoe UI', 'Roboto', 'Noto Sans', 'Arial', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', 'Roboto', 'Noto Sans', 'Arial', sans-serif;
}

/* 阿拉伯語（RTL）：Baloo 2 / Nunito 不含阿拉伯字形，改用系統阿拉伯字體；
   direction 已由 app.js 設為 rtl，此處僅負責字體與文本對齊 */
html[lang="ar"] {
  --font-display: 'Segoe UI', 'Tahoma', 'Noto Naskh Arabic', 'Arial', sans-serif;
  --font-body: 'Segoe UI', 'Tahoma', 'Noto Naskh Arabic', 'Arial', sans-serif;
}
html[lang="ar"] body { text-align: right; }
html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] select { text-align: right; }
html[lang="ar"] .search-box input { text-align: right; }
html[lang="ar"] .card-body, html[lang="ar"] .card-name, html[lang="ar"] .card-cat { text-align: right; }
html[lang="ar"] .pay-table td { text-align: right; }
html[lang="ar"] .pay-table td:first-child { text-align: right; }
html[lang="ar"] .lang-opt { text-align: right; }
html[lang="ar"] .sel-code, html[lang="ar"] .sel-row { text-align: right; }
html[lang="ar"] .inq-no, html[lang="ar"] .pay-title { text-align: right; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--pink-bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(217,47,124,.28); }
.btn-primary:hover { background: #c22a6e; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.btn-active { background: var(--pink-soft); color: var(--primary); }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { vertical-align: -2px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 24px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(217,47,124,.3);
}
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); line-height: 1.1; }
.logo-text em { display: block; font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: 11px; color: var(--primary-light); letter-spacing: .5px; }

.desktop-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.nav-link {
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  padding: 6px 4px; border-bottom: 2px solid transparent;
  width: 150px; min-width: 0; box-sizing: border-box;
  /* 固定等寬 150px（比最長文案日語/英語更寬），文字再多也不撐開，導航總寬恆定 */
  text-align: center; white-space: nowrap;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-btn { padding: 7px 16px; font-size: 13px; min-width: 100px; text-align: center; }
.lang-wrap { position: relative; }
.uni-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: #0c0c0e; color: #ff7722;
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.uni-link:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.lang-caret { font-size: 11px; opacity: .7; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 14px 36px rgba(58, 36, 48, 0.14);
  padding: 8px; min-width: 152px;
  display: flex; flex-direction: column; gap: 2px;
  animation: pop .15s ease;
}
.lang-opt {
  display: block; width: 100%; text-align: left;
  padding: 10px 14px; border: none; border-radius: 10px;
  background: transparent; font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--ink-soft); white-space: nowrap; cursor: pointer;
}
.lang-opt:hover { background: var(--pink-bg); color: var(--primary); }
.lang-opt.active { color: var(--primary); background: var(--pink-bg); }
.inq-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pink-bg); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--primary);
}
.inq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.burger span { width: 22px; height: 2.5px; background: var(--primary); border-radius: 2px; }

.mobile-nav {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 24px 18px; border-top: 1px solid var(--line);
}
.mobile-nav .nav-link { padding: 10px 0; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(249,199,217,.5), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(245,92,154,.28), transparent 40%),
    radial-gradient(circle at 70% 85%, rgba(249,199,217,.4), transparent 45%),
    linear-gradient(180deg, #FFF5F8, #FFFFFF);
}
.hero-inner {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line);
  color: var(--primary); font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  min-height: 40px; /* 德/法/西標籤可能兩行 */
}
.hero-text h1 {
  font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12; color: var(--ink); margin-bottom: 16px;
  min-height: 3.4em; /* 固定三行（德/法/西標題最長三行），切換語言不跳動 */
}
.hero-sub { font-size: 17px; color: var(--ink-soft); max-width: 520px; margin-bottom: 26px; min-height: 6.5em; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* 兩按鈕均分一行且等寬：文字在按鈕內居中，總寬恆定，切換語言位置不變 */
.hero-actions .btn {
  flex: 1 1 0; min-width: 0; max-width: 240px;
  white-space: nowrap; text-align: center;
}

.hero-visual { position: relative; height: 340px; }
.hero-float {
  position: absolute; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
  border: 6px solid #fff;
}
.hero-float img { width: 100%; height: 100%; object-fit: cover; }
.hero-float:nth-child(1) { width: 190px; height: 190px; left: 0; top: 0; transform: rotate(-6deg); z-index: 2; }
.hero-float:nth-child(2) { width: 210px; height: 210px; right: 0; top: 30px; transform: rotate(5deg); z-index: 1; }
.hero-float:nth-child(3) { width: 150px; height: 150px; left: 120px; bottom: 0; transform: rotate(3deg); z-index: 3; }

.stats {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stat b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--primary); line-height: 1.2; min-height: 1.2em; }
.stat span { font-size: 13px; color: var(--ink-soft); font-weight: 600; display: block; min-height: 1.6em; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.section-alt { background: #fff; border-radius: 0; max-width: none; margin: 0; }
.section-alt .section-title, .section-alt .section-sub { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-alt .feat-grid { max-width: 1200px; margin: 0 auto; }
.section-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); text-align: center; margin-bottom: 8px; min-height: 2.4em; line-height: 1.3; }
.section-sub { text-align: center; color: var(--ink-soft); margin-bottom: 36px; min-height: 2.8em; line-height: 1.5; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 12px; text-align: center;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 118px;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-emoji { font-size: 26px; }
.cat-name { font-weight: 800; font-size: 14px; color: var(--ink); min-height: 2.8em; display: flex; align-items: center; justify-content: center; }
.cat-count { font-size: 12px; color: var(--primary-light); font-weight: 700; background: var(--pink-bg); padding: 2px 10px; border-radius: 999px; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feat {
  background: var(--pink-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
}
.feat-ico { font-size: 30px; margin-bottom: 12px; }
.feat h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; min-height: 1.7em; line-height: 1.35; }
.feat p { font-size: 14px; color: var(--ink-soft); min-height: 6.4em; line-height: 1.6; }

/* ---------- Catalog ---------- */
.catalog-tools { margin-bottom: 30px; }
.search {
  width: 100%; max-width: 460px;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(245,92,154,.12); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  transition: all .15s;
}
.pill:hover { color: var(--primary); border-color: var(--primary-light); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }

.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img-wrap { position: relative; aspect-ratio: 4/3; background: #fff; cursor: pointer; }
.card-img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.img-fail { background: #fafafa; }
.img-fail-note { display: none; position: absolute; inset: 0; place-items: center; color: var(--ink-soft); font-size: 13px; }
.img-fail .img-fail-note { display: grid; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-code { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.card-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; flex: 1; }
.card-cat { font-size: 12px; color: var(--ink-soft); }
.card-body .btn { align-self: flex-start; margin-top: 6px; }

.empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Modal ---------- */
body.modal-open { overflow: hidden; }
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(58, 36, 48, 0.5);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  position: relative; width: min(880px, 100%);
  background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.06); font-size: 16px; color: var(--ink);
}
.modal-close:hover { background: rgba(0,0,0,.12); }
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.15);
  font-size: 22px; color: var(--primary); font-weight: 800;
}
.modal-nav.prev { left: -20px; }
.modal-nav.next { right: -20px; }
.modal-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.modal-img-wrap { background: #fff; border-radius: 24px 0 0 24px; overflow: hidden; min-height: 320px; display: grid; place-items: center; }
.modal-img-wrap img { max-height: 520px; width: 100%; object-fit: contain; }
.modal-info { padding: 34px 30px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.modal-info h3 { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.modal-info p { font-size: 14px; color: var(--ink-soft); }
.modal-info p b { color: var(--ink); }
.modal-info .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Inquiry ---------- */
.inq-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.inq-sel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 90px;
}
.inq-sel h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 14px; }
.sel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sel-list { display: flex; flex-direction: column; gap: 8px; }
.sel-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--pink-bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 10px;
}
.sel-thumb {
  width: 72px; height: 72px; flex: 0 0 72px;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  object-fit: contain; padding: 4px;
}
.sel-code { font-size: 13px; font-weight: 800; color: var(--primary); flex: 0 0 auto; min-width: 58px; }
.sel-qty {
  flex: 1; min-width: 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 14px; color: var(--ink);
  outline: none;
}
.sel-qty:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(245,92,154,.12); }
.sel-del {
  flex: 0 0 auto; width: 26px; height: 26px;
  border: none; border-radius: 8px; background: rgba(217,47,124,.1);
  color: var(--primary); font-size: 13px; font-weight: 700;
}
.sel-del:hover { background: rgba(217,47,124,.2); }
.pay-box {
  background: #FFF1F6; border: 1px dashed var(--primary-light);
  border-radius: 14px; padding: 14px;
  font-size: 13px; color: var(--ink); line-height: 1.55;
}
.pay-title { font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.inq-no {
  font-weight: 800; color: var(--primary); background: #fff;
  border: 1px solid var(--primary-light); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 8px; font-size: 14px;
}
.inq-no b { font-size: 17px; letter-spacing: .5px; }
.pay-fee { margin-bottom: 10px; }
.pay-fee:first-of-type { min-height: 4.7em; }  /* 詢盤編號備註：固定三行空間 */
.pay-fee:nth-of-type(2) { min-height: 6.2em; } /* 驗證費說明：固定四行空間 */
.pay-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pay-table td { padding: 5px 8px; border-bottom: 1px solid rgba(217,47,124,.08); vertical-align: top; }
.pay-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--ink-soft); width: 100px; }
.pay-table tr:last-child td { border-bottom: none; }
.pay-contact { margin-top: 8px; font-size: 12px; color: var(--ink-soft); word-break: break-all; }
.sel-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pink-bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--primary);
}
.sel-tag button { background: none; border: none; color: var(--primary); font-size: 13px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.form .lbl { display: block; min-height: 1.6em; line-height: 1.45; }
.form input, .form select, .form textarea {
  padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 15px; color: var(--ink); outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(245,92,154,.12); }
.form input[readonly] { background: var(--pink-bg); color: var(--ink-soft); }
.form-err { color: #d64545; font-size: 13px; font-weight: 700; }

.ok-card {
  max-width: 560px; margin: 20px auto; background: #fff;
  border: 1px solid var(--line); border-radius: 24px; padding: 48px 36px;
  text-align: center;
}
.ok-ico {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 34px; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(217,47,124,.3);
}
.ok-card h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 8px; }
.ok-card p { color: var(--ink-soft); margin-bottom: 24px; }
.ok-mail { font-weight: 800; color: var(--primary); background: var(--pink-bg); border-radius: 12px; padding: 10px 14px; word-break: break-all; }

/* ---------- Footer ---------- */
.footer { background: #3A2430; color: #F9C7D9; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer p { font-size: 14px; opacity: .85; }
.footer-uniai { margin-top: 10px; }
.footer-uniai a {
  color: #ff7722; font-weight: 700; text-decoration: none;
  display: inline-block; background: rgba(255,119,34,.1);
  border: 1px solid rgba(255,119,34,.4); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; transition: background .15s;
}
.footer-uniai a:hover { background: rgba(255,119,34,.2); }
.footer-rights { margin-top: 14px; font-size: 12px; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { height: 260px; margin-top: 10px; }
  .hero-float:nth-child(1) { width: 150px; height: 150px; }
  .hero-float:nth-child(2) { width: 170px; height: 170px; }
  .hero-float:nth-child(3) { width: 120px; height: 120px; left: 90px; }
  .inq-layout { grid-template-columns: 1fr; }
  .inq-sel { position: static; }
}
@media (max-width: 768px) {
  .desktop-nav, .inq-chip { display: none; }
  .lang-btn { padding: 7px 12px; font-size: 12px; }
  .lang-menu { min-width: 140px; }
  .burger { display: flex; }
  .pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { white-space: nowrap; flex: 0 0 auto; }
  .search { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modal-nav.prev { left: 6px; }
  .modal-nav.next { right: 6px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-img-wrap { border-radius: 24px 24px 0 0; min-height: 220px; }
  .modal-img-wrap img { max-height: 300px; }
  .modal-info { padding: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .section { padding: 40px 16px; }
  .hero-inner { padding: 36px 16px 28px; }
  .stats { padding: 0 16px 24px; gap: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-name { font-size: 13px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-visual { height: 210px; }
  .hero-float:nth-child(1) { width: 120px; height: 120px; }
  .hero-float:nth-child(2) { width: 135px; height: 135px; }
  .hero-float:nth-child(3) { width: 95px; height: 95px; left: 70px; }
  .header-inner { padding: 12px 16px; gap: 10px; }
  .logo-mark { width: 36px; height: 36px; font-size: 20px; border-radius: 12px; }
  .logo-text { font-size: 17px; }
  .logo-text em { display: none; }
  .header-right { gap: 8px; }
  /* 手機端按鈕均分一行，避免德/法/西長文案換行導致下沉 */
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { min-width: 0; flex: 1 1 0; padding: 11px 8px; font-size: 14px; }
}

/* ---------- 手機端底部操作欄 ---------- */
/* 目錄頁長列表 / 詢盤頁表單很長時，客戶隨時能看到"確認詢盤"或"提交查詢"大按鈕 */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 24px rgba(58, 36, 48, 0.08);
}
.bar-count { font-size: 14px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.bar-main {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  font-size: 16px; font-weight: 800; padding: 13px 22px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.bar-main:active { background: var(--primary-light); }
body.has-bar main { padding-bottom: 84px; }
@media (min-width: 769px) { .action-bar { display: none; } }
