/* 福樂企業集團 — 東方編輯風 */
:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --ink: #14213d;
  --ink-2: #24365e;
  --text: #22262e;
  --muted: #6b6558;
  --line: #ddd2bc;
  --gold: #b0832a;
  --gold-soft: #e9d6a6;
  --yellow: #f2c230;
  --seal: #b23a2b;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 60px -28px rgba(20, 33, 61, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 clamp(15px, 0.9rem + 0.2vw, 17px)/1.85 var(--sans);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
/* 紙紋 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: 0.04em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s;
  color: #fff;
}
.site-header.solid, .site-header.always {
  background: rgba(246, 241, 231, 0.94); color: var(--ink);
  backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.12em; line-height: 1.1; }
.brand-name small { display: block; font: 600 0.62rem/1 var(--sans); letter-spacing: 0.32em; opacity: 0.7; margin-top: 4px; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav-links a { position: relative; font-size: 0.95rem; font-weight: 500; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  border: 1px solid currentColor; padding: 8px 18px !important; border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; width: 24px; margin: 5px auto; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
  }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .menu-open .site-header { background: var(--paper); color: var(--ink); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { margin-top: 16px; text-align: center; border-radius: var(--radius); }
}

/* ---------- Buttons / labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; letter-spacing: 0.1em; transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  border: 1px solid transparent; cursor: pointer; font-size: 0.95rem; font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #976f20; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(176,131,42,.8); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.seal {
  display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; background: var(--seal); color: #fff;
  font-family: var(--serif); font-weight: 900; border-radius: 3px; transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,18,36,.88) 0%, rgba(10,18,36,.55) 45%, rgba(10,18,36,.1) 75%),
              linear-gradient(0deg, rgba(10,18,36,.7), transparent 40%);
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 140px 0 72px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1rem + 5.4vw, 5.4rem); font-weight: 900; line-height: 1.15; letter-spacing: 0.06em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-lead { max-width: 34em; margin: 24px 0 36px; font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem); opacity: 0.88; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-vertical {
  writing-mode: vertical-rl; font-family: var(--serif); font-size: clamp(1.1rem, 0.8rem + 0.8vw, 1.6rem);
  letter-spacing: 0.5em; line-height: 2.2; border-right: 1px solid rgba(255,255,255,.35); padding-right: 18px;
  opacity: 0.92; display: flex; gap: 10px; align-items: flex-start;
}
.hero-vertical .seal { writing-mode: horizontal-tb; font-size: 0.8rem; letter-spacing: 0; }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; width: 1px; height: 46px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollCue 2.2s var(--ease) infinite; }
@keyframes scrollCue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@media (max-width: 720px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 88px; }
  .hero-vertical { display: none; }
}

/* ---------- Stats ribbon ---------- */
.stats { background: var(--ink); color: #fff; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 900 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--serif); color: var(--yellow); }
.stat b small { font-size: 0.4em; margin-left: 4px; color: #fff; font-weight: 600; }
.stat span { display: block; margin-top: 10px; font-size: 0.85rem; opacity: 0.75; letter-spacing: 0.15em; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #e9ecf3; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 900; margin-top: 14px; }
.section-head p { max-width: 30em; color: var(--muted); margin: 0; }
.section-ink .section-head p { color: #aab3c7; }
.link-more { font-weight: 600; color: var(--gold); display: inline-flex; gap: 8px; align-items: center; letter-spacing: 0.1em; }
.link-more:hover .arrow { transform: translateX(4px); }
.link-more .arrow { transition: transform 0.3s var(--ease); }

/* Philosophy */
.philosophy { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.philo-img { position: relative; }
.philo-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.philo-img figcaption {
  position: absolute; right: -24px; bottom: 32px; background: var(--card); padding: 18px 22px; box-shadow: var(--shadow);
  font-family: var(--serif); color: var(--ink); line-height: 1.5; border-left: 3px solid var(--gold);
}
.philo-img figcaption small { display: block; font: 500 0.75rem var(--sans); color: var(--muted); letter-spacing: 0.2em; }
.quote { font: 900 clamp(1.8rem, 1rem + 2.6vw, 3.1rem)/1.35 var(--serif); color: var(--ink); margin: 18px 0 28px; }
.quote span { color: var(--gold); }
.cores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.cores div { background: var(--paper); padding: 20px 10px; text-align: center; }
.section-alt .cores div { background: var(--paper-2); }
.cores b { display: block; font: 900 1.6rem var(--serif); color: var(--ink); }
.cores span { font-size: 0.75rem; letter-spacing: 0.25em; color: var(--muted); }
@media (max-width: 860px) {
  .philosophy { grid-template-columns: 1fr; }
  .philo-img figcaption { right: 12px; }
}

/* Group bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,18,36,.92), rgba(10,18,36,.15) 65%); transition: background 0.5s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::before { background: linear-gradient(0deg, rgba(10,18,36,.95), rgba(10,18,36,.35) 80%); }
.tile-body { padding: 22px 24px; }
.tile-no { font: 600 0.72rem var(--sans); letter-spacing: 0.3em; color: var(--yellow); }
.tile h3 { color: #fff; font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.45rem); margin: 6px 0 6px; }
.tile p { font-size: 0.88rem; opacity: 0.82; margin: 0; max-width: 28em; }
.t-a { grid-column: span 3; grid-row: span 2; }
.t-b { grid-column: span 3; }
.t-c, .t-d { grid-column: span 3; }
.t-e, .t-f { grid-column: span 3; }
@media (min-width: 961px) {
  .t-b { grid-column: span 3; } .t-c { grid-column: span 3; }
  .t-d, .t-e, .t-f { grid-column: span 2; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .bento .tile { grid-column: auto; grid-row: auto; }
  .t-a { grid-row: span 1; }
}

/* Featured project */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 0; background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.feature-img { position: relative; min-height: 420px; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 20px; top: 20px; background: var(--seal); color: #fff; padding: 6px 14px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; border-radius: 2px; }
.feature-body { padding: clamp(28px, 4vw, 52px); }
.feature-body h3 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 900; margin: 12px 0 8px; }
.feature-body .loc { color: var(--muted); margin-bottom: 24px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-bottom: 28px; }
.spec div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.2em; }
.spec dd { margin: 2px 0 0; font: 700 1.05rem var(--serif); color: var(--ink); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-img { min-height: 280px; } }

.proj-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.proj-card { background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s; display: flex; flex-direction: column; }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-card .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.proj-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj-card:hover .ph img { transform: scale(1.05); }
.proj-card .body { padding: 18px 20px 22px; }
.proj-card .status { font-size: 0.72rem; color: var(--seal); letter-spacing: 0.2em; font-weight: 700; }
.proj-card h3 { font-size: 1.25rem; margin: 6px 0 4px; }
.proj-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .proj-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .proj-row { grid-template-columns: 1fr; } }

/* Capsule */
.capsule-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: 56px; }
.capsule-intro img { border-radius: var(--radius); background: #fff; }
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model {
  background: linear-gradient(160deg, #1c2c50, #111b33); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s;
}
.model:hover { transform: translateY(-6px); border-color: rgba(242,194,48,.5); }
.model-name { font: 900 2.2rem/1 var(--serif); color: var(--yellow); letter-spacing: 0.08em; }
.model-pic { background: #fff; border-radius: 3px; margin: 20px 0; aspect-ratio: 16/9; overflow: hidden; }
.model-pic { display: grid; place-items: center; padding: 12px; }
.model-pic img { width: 100%; height: 100%; object-fit: contain; }
.model dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: 0.9rem; }
.model dt { color: #8f9ab3; }
.model dd { margin: 0; color: #fff; }
.model .price { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.model .price span { font-size: 0.78rem; color: #8f9ab3; letter-spacing: 0.15em; }
.model .price b { font: 900 1.6rem var(--serif); color: #fff; }
.model .price b small { font-size: 0.55em; color: #8f9ab3; margin-right: 4px; }
@media (max-width: 860px) { .capsule-intro, .models { grid-template-columns: 1fr; } }

/* Products strip */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.product { text-align: center; }
.product .ph { aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% var(--radius) var(--radius); background: var(--card); margin-bottom: 14px; }
.product .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product:hover .ph img { transform: scale(1.08); }
.product h3 { font-size: 1rem; }
.product p { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: repeat(2, 1fr); } }

/* News */
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 140px 1fr 120px; gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background 0.3s, padding 0.3s var(--ease); }
.news-item:hover { background: var(--card); padding-inline: 18px; }
.news-date { font: 700 1rem var(--serif); color: var(--gold); letter-spacing: 0.1em; }
.news-date small { display: block; font: 500 0.72rem var(--sans); color: var(--muted); letter-spacing: 0.2em; }
.news-item h3 { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); }
.news-thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr 96px; gap: 6px 16px; } .news-date { grid-column: 1; } .news-item h3 { grid-column: 1; } .news-thumb { grid-row: 1 / 3; grid-column: 2; } }

/* Contact CTA */
.contact-band { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-info { padding: clamp(28px, 4vw, 56px); }
.contact-info h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 900; margin: 14px 0 24px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-lines li { display: grid; grid-template-columns: 72px 1fr; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-lines li span { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; }
.contact-lines a:hover { color: var(--gold); }
.map { min-height: 360px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(0.4) sepia(0.15); }
@media (max-width: 860px) { .contact-band { grid-template-columns: 1fr; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; color: #fff; padding: 180px 0 80px; overflow: hidden; isolation: isolate; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,18,36,.92), rgba(10,18,36,.55)); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 900; margin-top: 14px; }
.page-hero p { max-width: 36em; opacity: 0.85; margin: 16px 0 0; }
.crumbs { font-size: 0.82rem; opacity: 0.7; margin-bottom: 18px; }
.crumbs a:hover { color: var(--yellow); }

/* Prose */
.prose { max-width: 46em; }
.prose p { font-size: 1.05rem; line-height: 2.05; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); margin: 2.2em 0 0.8em; }
.prose h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* Company blocks */
.company { display: grid; grid-template-columns: 80px 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.company-no { font: 900 3rem/1 var(--serif); color: var(--gold-soft); }
.company h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); margin-bottom: 6px; }
.company .en { font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 20px; }
.company img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.company .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.company .tags span { border: 1px solid var(--line); padding: 4px 12px; font-size: 0.8rem; border-radius: 999px; color: var(--ink-2); background: var(--card); }
@media (max-width: 860px) { .company { grid-template-columns: 1fr; } .company-no { font-size: 2rem; } }

/* Detail */
.detail { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.detail-side { position: sticky; top: 100px; background: var(--card); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-side h3 { font-size: 1.1rem; margin-bottom: 14px; }
.kv { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.kv th, .kv td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv th { width: 7em; color: var(--muted); font-weight: 500; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 2rem; }
.features li { background: var(--card); padding: 14px 16px; border-left: 3px solid var(--gold); font-size: 0.95rem; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; } }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 1.5rem; }
.gallery button { padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8,12,24,.92); }
.lightbox img { max-width: 92vw; max-height: 86vh; margin: auto; position: absolute; inset: 0; object-fit: contain; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 2; }
.lb-btn:hover { background: var(--gold); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; opacity: 0.7; font-size: 0.85rem; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: var(--yellow); font: 900 1.3rem var(--serif); }
.compare tbody th { text-align: left; color: var(--muted); font-weight: 500; }
.compare tr:last-child td { font: 900 1.25rem var(--serif); color: var(--seal); }
.table-scroll { overflow-x: auto; }

/* Form */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.form label b { color: var(--seal); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,131,42,.18); }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-msg { padding: 12px 16px; border-radius: var(--radius); background: #fbefe9; color: var(--seal); display: none; }
.form-msg.show { display: block; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0d1529; color: #aab3c7; padding: 72px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.2em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand p { margin-top: 18px; max-width: 26em; }
.footer-brand .brand { color: #fff; }
.footer-qr { width: 96px; border-radius: 4px; margin-top: 12px; background: #fff; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.7; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--gold); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
