/* 麥可利 Mikely foods — 品牌樣式
   主色取自 logo：黃 #FFE009、咖啡 #614E40 */
:root {
  --yellow: #ffe009;
  --yellow-soft: #fff8cc;
  --yellow-deep: #f2c800;
  --brown: #614e40;
  --brown-dark: #3e3129;
  --ink: #2a221c;
  --muted: #685a4e;
  --bg: #ffffff;
  --bg-warm: #faf7f2;
  --line: #ece6dd;
  --line-green: #06c755;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(62, 49, 41, .08);
  --shadow-lg: 0 24px 60px rgba(62, 49, 41, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; color: var(--brown-dark); margin: 0 0 .5em; font-weight: 900; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 620px) { .container { padding: 0 16px; } }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-warm); }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .14em; color: var(--brown); font-weight: 700; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 12px; border-radius: 50%; background: var(--yellow); transform: rotate(-20deg); }
.lead { font-size: 19px; color: var(--muted); }

/* ===== Header ===== */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; max-width: 1360px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown); white-space: nowrap; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }
.logo strong { display: block; font-size: 20px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; color: var(--brown-dark); }
.logo small { display: block; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .15s; }
.nav a:hover { background: var(--bg-warm); }
.nav a[aria-current="page"] { background: var(--yellow-soft); color: var(--brown-dark); font-weight: 700; }
.nav .btn { margin-left: 10px; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--brown); cursor: pointer; font-family: inherit; }
@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; border-radius: 10px; font-size: 17px; }
  .nav .btn { margin: 10px 0 0; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brown); color: #fff !important; }
.btn-primary:hover { background: var(--brown-dark); box-shadow: 0 8px 20px rgba(62,49,41,.25); }
.btn-line { background: var(--line-green); color: #fff !important; }
.btn-line:hover { box-shadow: 0 8px 20px rgba(6,199,85,.3); }
.btn-outline { border-color: var(--brown); color: var(--brown) !important; background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { position: relative; z-index: 0; font-size: clamp(30px, 3.9vw, 50px); }
.hero-title span { display: block; }
@media (min-width: 901px) { .hero-title span { white-space: nowrap; } }
.hero-title em { font-style: normal; position: relative; }
.hero-title em::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .32em; background: var(--yellow); z-index: -1; border-radius: 4px; }
.hero .lead { margin-bottom: 28px; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 8px; }
.hero-points li { padding-left: 30px; position: relative; font-weight: 500; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 16px; height: 11px; border-radius: 50%; background: var(--yellow); transform: rotate(-20deg); }
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hero-visual .blob { position: absolute; inset: 6% 0 4% 6%; background: var(--yellow); border-radius: 58% 42% 46% 54% / 55% 48% 52% 45%; }
.hero-visual .pack { position: absolute; width: 50%; border-radius: 14px; box-shadow: var(--shadow-lg); background: #fff; }
.hero-visual .pack-a { left: 8%; top: 12%; transform: rotate(-6deg); }
.hero-visual .pack-b { right: 4%; top: 22%; transform: rotate(5deg); }
.hero-visual.trio .pack { width: 40%; }
.hero-visual.trio .pack-a { left: 4%; top: 18%; transform: rotate(-9deg); }
.hero-visual.trio .pack-b { right: 2%; top: 20%; transform: rotate(8deg); }
.hero-visual.trio .pack-c { left: 30%; top: 30%; transform: none; z-index: 2; }
.hero-visual.square-packs .pack { width: 52%; }
.hero-visual.square-packs .pack-a { left: 4%; top: 10%; transform: rotate(-7deg); }
.hero-visual.square-packs .pack-b { right: 2%; top: 30%; transform: rotate(6deg); }
.hero-visual.square-packs .pack-c { width: 38%; left: 20%; top: 58%; transform: rotate(-3deg); z-index: 2; }

/* ===== 輪播 ===== */
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide .hero-visual .pack, .slide .hero-visual .blob { transition: translate .9s cubic-bezier(.2,.7,.2,1), scale .9s cubic-bezier(.2,.7,.2,1); }
.slide:not(.is-active) .hero-visual .pack { translate: 0 30px; }
.slide:not(.is-active) .hero-visual .blob { scale: .9; }
.slide .hero-grid > div:first-child { transition: translate .8s cubic-bezier(.2,.7,.2,1); }
.slide:not(.is-active) .hero-grid > div:first-child { translate: -20px 0; }
.slider-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: #e2d9cd; cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.is-active { width: 34px; background: var(--brown); }
.slider-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brown); font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; transition: background .15s, border-color .15s; }
.slider-arrow:hover { background: var(--yellow); border-color: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .slide, .slide * { transition: none !important; } }
@media (max-width: 900px) {
  .hero { padding: 40px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ===== Stats ===== */
.stats { background: var(--brown-dark); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 900; color: var(--yellow); line-height: 1.1; }
.stats small { font-size: .5em; margin-left: 2px; }
.stats span { font-size: 15px; color: #d8cec4; }
@media (max-width: 620px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ===== Photo ===== */
.photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 14px; padding: 16px; border: 1px dashed #d9cfc2; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.has-img { background: #fff; border: 0; padding: 0; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: contain; }
.photo.cover img { object-fit: cover; }
.photo.auto { aspect-ratio: auto; }
.photo.auto img { height: auto; }

/* ===== Grid & Card ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link .more { color: var(--brown); font-weight: 700; }
.card-link:hover .more { text-decoration: underline; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 3px; }

.feature { border: 0; box-shadow: none; background: transparent; padding: 0; }
.feature .num { font-size: 15px; font-weight: 900; color: var(--brown-dark); width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature p { color: var(--muted); }

.product-card { padding: 20px 20px 24px; }
.product-card .photo { margin-bottom: 18px; box-shadow: none; background: var(--bg-warm); border-radius: var(--radius-sm); }
.product-card .photo img { mix-blend-mode: multiply; }
.product-card h3 { margin: 8px 0 .2em; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: .6em; }

.tag { display: inline-block; background: var(--bg-warm); color: var(--brown); font-size: 13px; font-weight: 500; padding: 3px 12px; border-radius: 999px; margin: 0 6px 6px 0; border: 1px solid var(--line); }
.tag.green { background: #eaf5ec; color: #2f6b3a; border-color: #d3e9d7; }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ===== Spec table ===== */
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 500; }
.spec td { color: var(--ink); font-weight: 500; }

/* ===== Steps ===== */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 64px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--brown-dark); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.steps strong { display: block; color: var(--brown-dark); font-size: 18px; }

/* ===== Notice / todo ===== */
.notice { background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 18px 22px; }
.todo { background: #fdecec; color: #b42318; font-size: 13px; padding: 1px 8px; border-radius: 6px; font-weight: 700; }

/* ===== Badges & certs ===== */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.badge { background: #fff; border: 2px solid var(--yellow); color: var(--brown-dark); font-weight: 700; font-size: 14px; padding: 5px 16px; border-radius: 999px; }
.cert-list { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.cert-list li { padding: 16px 22px 16px 58px; position: relative; border-bottom: 1px solid var(--line); font-weight: 500; }
.cert-list li:last-child { border-bottom: 0; }
.cert-list li::before { content: "✓"; position: absolute; left: 20px; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--brown-dark); font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 48px 22px 0; font-weight: 700; font-size: 18px; color: var(--brown-dark); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--brown); }
.faq details[open] summary::after { content: "−"; background: var(--yellow); }
.faq .answer { padding: 0 0 22px; color: var(--muted); }

/* ===== Page head ===== */
.page-head { position: relative; overflow: hidden; padding: 72px 0 56px; background: var(--bg-warm); }
.page-head::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 240px; background: var(--yellow); border-radius: 58% 42% 46% 54% / 55% 48% 52% 45%; transform: rotate(-12deg); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 50px); max-width: 16em; }
.page-head .lead { max-width: 36em; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
@media (max-width: 900px) { .page-head::after { width: 200px; height: 130px; right: -90px; top: -60px; } }

/* ===== Article ===== */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 1.8em; font-size: 26px; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: .5em; }

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; background: var(--yellow); color: var(--brown-dark); padding: 80px 0; text-align: center; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; background: rgba(255,255,255,.35); border-radius: 58% 42% 46% 54% / 55% 48% 52% 45%; }
.cta-band::before { width: 260px; height: 180px; left: -60px; bottom: -60px; transform: rotate(18deg); }
.cta-band::after { width: 220px; height: 150px; right: -40px; top: -50px; transform: rotate(-14deg); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--brown-dark); }
.cta-band p { color: var(--brown); font-size: 18px; margin-bottom: 28px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { border-color: var(--brown-dark); color: var(--brown-dark) !important; }
.cta-band .btn-outline:hover { background: var(--brown-dark); color: #fff !important; }

/* ===== Form ===== */
.form { display: grid; gap: 18px; }
.form label { font-weight: 700; color: var(--brown-dark); display: block; margin-bottom: 6px; font-size: 15px; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; font-family: inherit; background: var(--bg-warm); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brown); background: #fff; }
.form textarea { min-height: 120px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form input[type=checkbox] { accent-color: var(--brown); width: 18px !important; height: 18px; vertical-align: -3px; margin-right: 6px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.req { color: #b42318; }

/* ===== Footer ===== */
.site-footer { background: var(--brown-dark); color: #cfc3b8; padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 13px; color: #9d8f82; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ===== 手機固定聯絡列 ===== */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
  .mobile-cta a { padding: 17px; text-align: center; font-weight: 700; text-decoration: none; }
  .mobile-cta .call { background: var(--yellow); color: var(--brown-dark); }
  .mobile-cta .line { background: var(--line-green); color: #fff; }
}

/* ===== 配色預覽（定案後保留一組即可） ===== */
html[data-theme="green"] { --brown: #2f5d3a; --brown-dark: #1e3d27; --muted: #5f6f62; --bg-warm: #f6f8f2; --line: #e3e9dd; }
html[data-theme="charcoal"] { --brown: #333333; --brown-dark: #1c1c1c; --muted: #6b6b6b; --bg-warm: #f7f6f3; --line: #e8e6e1; }
html[data-theme="navy"] { --brown: #284466; --brown-dark: #172b45; --muted: #5e6b7c; --bg-warm: #f5f7fa; --line: #e2e7ee; }

/* ===== 25 年老品牌 ===== */
.heritage { background: #fff; }
.heritage-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.heritage-mark { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.heritage-mark::before { content: ""; position: absolute; inset: 4%; background: var(--yellow); border-radius: 58% 42% 46% 54% / 55% 48% 52% 45%; transform: rotate(-8deg); z-index: 0; }
.heritage-num { position: relative; font-size: clamp(110px, 16vw, 200px); font-weight: 900; line-height: .9; color: var(--brown-dark); letter-spacing: -.02em; }
.heritage-num small { font-size: .28em; letter-spacing: 0; margin-left: 4px; }
.heritage-cap { position: relative; margin-top: 14px; font-weight: 700; color: var(--brown-dark); background: #fff; padding: 6px 18px; border-radius: 999px; font-size: 15px; }
.heritage p { color: var(--muted); }
.heritage p strong { color: var(--brown-dark); }
.heritage-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.heritage-list li { background: var(--bg-warm); border-radius: var(--radius-sm); padding: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.heritage-list strong { display: block; font-size: 18px; color: var(--brown-dark); margin-bottom: 2px; }
@media (max-width: 900px) {
  .heritage-grid { grid-template-columns: 1fr; gap: 32px; }
  .heritage-mark { max-width: 320px; margin: 0 auto; width: 100%; }
}
@media (max-width: 620px) { .heritage-list { grid-template-columns: 1fr; } }

/* ===== 品牌歷程 ===== */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 3px; background: var(--yellow); border-radius: 3px; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 40px; padding: 18px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 85px; top: 30px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--brown); }
.tl-year { font-size: 22px; font-weight: 900; color: var(--brown-dark); text-align: right; padding-top: 4px; }
.tl-year .todo { font-size: 12px; white-space: nowrap; }
.tl-body h3 { margin-bottom: .2em; }
.tl-body p { color: var(--muted); margin: 0; }
@media (max-width: 620px) {
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .timeline li::before { left: 1px; top: 24px; }
  .tl-year { text-align: left; }
}

/* ===== 語言切換 ===== */
.header-actions { display: flex; align-items: center; gap: 8px; order: 3; }
.lang-switch { white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--brown-dark); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.lang-switch:hover { background: var(--yellow-soft); border-color: var(--yellow); }
@media (min-width: 1280px) { .nav { order: 2; margin-left: auto; } .header-actions { order: 3; } }
.header-actions { margin-left: auto; }
@media (min-width: 1280px) { .header-actions { margin-left: 0; } }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--brown-dark); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: 11px; color: var(--muted); }
.lang-menu[open] summary, .lang-menu summary:hover { background: var(--yellow-soft); border-color: var(--yellow); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 160px; z-index: 70; display: grid; }
.lang-list a { text-decoration: none; color: var(--ink); padding: 9px 14px; border-radius: 10px; font-size: 15px; }
.lang-list a:hover { background: var(--bg-warm); }
.lang-list a[aria-current="page"] { background: var(--yellow-soft); font-weight: 700; }

/* ===== 多語字體 ===== */
html[lang="ja"] body { font-family: "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html[lang="ko"] .hero-title, html[lang="ko"] h1, html[lang="ko"] h2 { word-break: keep-all; }
html[lang="en"] .hero-title span { white-space: normal; }

/* ===== 文章目錄 ===== */
.toc ol { margin: 8px 0 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.article .spec th, .article .spec td { padding: 10px 8px; }
.article .spec tr:first-child th { color: var(--brown-dark); font-weight: 700; }

/* ===== 手機頁首：logo、語言、選單一列放得下 ===== */
@media (max-width: 560px) {
  .header-inner { gap: 8px; height: 64px; }
  .nav { top: 64px; }
  .logo { gap: 8px; min-width: 0; flex-shrink: 1; }
  .logo img { height: 24px; }
  .logo strong { font-size: 18px; }
  .logo small { display: none; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .lang-menu summary { padding: 9px 11px; font-size: 13px; }
  .nav-toggle { padding: 9px 13px; font-size: 14px; }
  .lang-list { right: -48px; }
}
@media (max-width: 360px) { .lang-menu summary::after { content: ""; } }
