:root {
  --paper: #f3e6c9;
  --paper-dark: #e7d3a8;
  --ink: #2a1a12;
  --muted: #6a4e3a;
  --oxblood: #7a1f1f;
  --oxblood-dark: #541414;
  --brass: #b08d4a;
  --brass-light: #d7bf7a;
  --forest: #24382c;
  --line: #c9ae7a;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.at-body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.18), transparent 36%),
    repeating-linear-gradient(0deg, rgba(90,50,20,.03) 0 1px, transparent 1px 3px),
    var(--paper);
  font-family: "Noto Serif TC", "Songti TC", serif;
  line-height: 1.7;
}
body.at-body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.at-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.at-reveal.is-in { opacity: 1; transform: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }

.at-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.at-topbar {
  background: var(--forest);
  color: #f3e6c9;
  font-size: 13px;
  letter-spacing: .12em;
}
.at-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 38px;
}
.at-topbar p { margin: 0; }
.at-topbar a { color: var(--brass-light); font-weight: 700; }

.at-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243,230,201,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--brass);
  box-shadow: 0 10px 30px rgba(42,26,18,.08);
}
.at-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
}
.at-logo { display: flex; align-items: center; gap: 10px; }
.at-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brass);
  background: var(--oxblood);
  color: #f8eccc;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
}
.at-logo-text {
  font-size: 28px;
  letter-spacing: .18em;
  font-weight: 900;
}

.at-nav { margin-left: auto; }
.at-nav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.at-nav-list a {
  position: relative;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.at-nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right .35s ease;
}
.at-nav-list a:hover { color: var(--oxblood); }
.at-nav-list a:hover::after { right: 0; }
.at-header-actions { display: flex; align-items: center; gap: 10px; }
.at-ghost { font-size: 14px; color: var(--muted); font-weight: 700; }
.at-ghost span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--oxblood);
  color: #fff;
  font-size: 11px;
}

.at-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brass);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .12em;
  background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.at-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(215,191,122,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.at-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(42,26,18,.16); }
.at-btn:hover::after { transform: translateX(120%); }
.at-btn-red {
  background: var(--oxblood);
  color: #f8eccc;
  border-color: var(--oxblood-dark);
}
.at-btn-red:hover { background: var(--oxblood-dark); }
.at-btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.at-btn-xl { min-height: 54px; width: 100%; }

.at-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  margin-left: auto;
}
.at-nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: var(--ink);
}

.at-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--brass);
  background: #1b120d;
}
.at-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,18,13,.28), transparent 42%, rgba(27,18,13,.2));
  pointer-events: none;
}
.at-banner img {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  object-fit: cover;
  object-position: 70% center;
  filter: sepia(.1) contrast(1.06);
  animation: atKen 22s ease-out forwards;
}
@keyframes atKen {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.at-hero {
  min-height: auto;
  background: #efe0bb;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.at-hero-inner { padding: 36px 0 42px; }
.at-kicker {
  margin: 0 0 8px;
  letter-spacing: .22em;
  font-size: 13px;
  color: var(--oxblood);
}
.at-about .at-kicker { color: var(--brass-light); }
.at-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: .12em;
}
.at-lead { margin: 12px 0 26px; font-size: 18px; color: var(--muted); }

.at-finder {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  background: rgba(243,230,201,.94);
  color: var(--ink);
  padding: 18px;
  border: 3px double var(--brass);
}
.at-finder label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.at-finder select {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fffaf0;
  padding: 0 12px;
}
.at-finder .at-btn {
  grid-column: auto;
  align-self: end;
  min-height: 48px;
  white-space: nowrap;
  padding: 0 22px;
}

.at-trust { border-bottom: 1px solid var(--line); }
.at-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 26px 0;
}
.at-trust article {
  text-align: center;
  padding: 10px 8px;
  border: 1px dashed var(--line);
}
.at-trust strong, .at-trust span { display: block; }
.at-trust span { color: var(--muted); font-size: 13px; }

.at-section { padding: 56px 0; }
.at-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}
.at-section-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: .12em;
}
.at-section-head a { color: var(--oxblood); font-weight: 700; }

.at-products, .at-brands {
  display: grid;
  gap: 14px;
}
.at-products { grid-template-columns: repeat(4, 1fr); }
.at-card {
  background: #fffaf0;
  border: 1px solid var(--line);
  box-shadow: 4px 4px 0 rgba(42,26,18,.12);
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease;
}
.at-card:hover {
  transform: translateY(-8px);
  box-shadow: 10px 16px 0 rgba(42,26,18,.12);
}
.at-card-media {
  aspect-ratio: 1;
  overflow: hidden;
  filter: sepia(.18) contrast(1.05);
  border-bottom: 1px solid var(--line);
}
.at-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}
.at-card:hover .at-card-media img { transform: scale(1.08); }
.at-card h3 { margin: 14px 14px 8px; font-size: 16px; min-height: 48px; }
.at-price { margin: 0 14px; font-weight: 900; color: var(--oxblood); }
.at-vat { margin: 4px 14px 12px; color: var(--muted); font-size: 12px; }
.at-card .at-btn { margin: auto 14px 0; }

.at-about {
  background: var(--forest);
  color: #f3e6c9;
  padding: 64px 0;
}
.at-about .at-kicker { color: var(--brass-light); }
.at-about h2 { margin: 0 0 14px; font-size: 36px; letter-spacing: .1em; }
.at-about-actions { display: flex; gap: 12px; margin-top: 22px; }

.at-brands { grid-template-columns: repeat(8, 1fr); }
.at-brand {
  min-height: 84px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  background: #fffaf0;
  font-weight: 700;
  font-size: 13px;
}
.at-brand:hover { border-color: var(--oxblood); color: var(--oxblood); }

.at-products-home .at-card:nth-child(n + 11) { display: none; }
.at-products-home.is-expanded .at-card:nth-child(n + 11) { display: flex; }
.at-more-wrap { text-align: center; margin-top: 22px; }
.at-more-wrap .at-btn { min-width: 160px; }

.at-page { padding: 48px 0 72px; }
.at-page h1 { margin: 0 0 18px; font-size: 40px; letter-spacing: .1em; }
.at-prose { max-width: 760px; font-size: 17px; }
.at-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.at-filters button {
  background: transparent;
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}
.at-filters button.is-on {
  background: var(--oxblood);
  color: #f8eccc;
  border-color: var(--oxblood);
}

.at-shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.at-side {
  background: #fffaf0;
  border: 1px solid var(--line);
  padding: 16px;
}
.at-side h3 {
  margin: 16px 0 8px;
  font-size: 14px;
  letter-spacing: .12em;
}
.at-side h3:first-child { margin-top: 0; }
.at-side a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.at-side a.is-on { color: var(--oxblood); font-weight: 900; }
.at-crumb { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.at-crumb a { color: var(--oxblood); }
.at-product-hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  background: #fffaf0;
  border: 3px double var(--brass);
  padding: 22px;
}
.at-product-hero img { width: 100%; filter: sepia(.2); }
.at-product-hero .at-price { margin: 8px 0 12px; font-size: 28px; }
.at-options { display: grid; gap: 8px; margin: 16px 0; }
.at-opt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
}
.at-opt:has(input:checked) {
  border-color: var(--oxblood);
  background: #f8ead0;
}
.at-opt em { font-style: normal; color: var(--oxblood); font-weight: 900; }
.at-detail-copy { margin: 32px 0 0; max-width: none; }
.at-note {
  background: #fffaf0;
  border: 1px dashed var(--oxblood);
  padding: 10px 14px;
  margin: 0 0 18px;
  font-size: 14px;
}
.at-options input { margin-right: 6px; }

.at-footer {
  background: #1b120d;
  color: #e7d3a8;
  padding: 48px 0 0;
}
.at-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr 1.1fr;
  gap: 24px;
  padding-bottom: 36px;
}
.at-footer h3 { color: var(--brass-light); letter-spacing: .14em; }
.at-footer ul { list-style: none; margin: 0; padding: 0; }
.at-footer li { margin: 8px 0; }
.at-logo-light { color: #f8eccc; margin-bottom: 12px; }
.at-legal {
  border-top: 1px solid #3b2a20;
  padding: 14px 0;
  font-size: 12px;
  color: #b08968;
}

.at-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
  background: #fffaf0;
  border: 3px double var(--brass);
  padding: 22px;
}
.at-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.at-form input, .at-form select, .at-form textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 12px;
}
.at-form textarea { min-height: 120px; }
.at-faq details {
  background: #fffaf0;
  border: 1px solid var(--line);
  padding: 12px 16px;
  margin: 0 0 10px;
}
.at-faq summary { cursor: pointer; font-weight: 900; }
.at-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.at-blog-card, .at-dealer {
  background: #fffaf0;
  border: 1px solid var(--line);
  padding: 16px;
}
.at-search-bar {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
}
.at-search-bar input { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); }

@media (max-width: 1024px) {
  .at-products { grid-template-columns: repeat(2, 1fr); }
  .at-brands { grid-template-columns: repeat(4, 1fr); }
  .at-trust-grid, .at-footer-grid, .at-product-hero, .at-shop-layout, .at-two { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .at-nav-toggle { display: block; }
  .at-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 124px;
    background: var(--paper);
    border-bottom: 3px double var(--oxblood);
    padding: 12px 20px 20px;
  }
  .at-nav.is-open { display: block; }
  .at-nav-list { flex-direction: column; }
  .at-header-actions .at-ghost { display: none; }
}
@media (max-width: 640px) {
  .at-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .at-brands { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .at-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .at-finder {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 6px;
    padding: 10px;
  }
  .at-finder label { gap: 4px; font-size: 11px; }
  .at-finder select {
    min-height: 40px;
    padding: 0 4px;
    font-size: 11px;
  }
  .at-finder .at-btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
    letter-spacing: .04em;
  }
  .at-card { padding-bottom: 10px; }
  .at-card h3 { margin: 8px 8px 4px; font-size: 13px; min-height: 36px; }
  .at-price { margin: 0 8px; font-size: 13px; }
  .at-vat { display: none; }
  .at-card .at-btn { margin: auto 8px 0; font-size: 12px; }
  .at-brand { min-height: 52px; font-size: 11px; padding: 4px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .at-banner img { animation: none; }
  .at-reveal { opacity: 1; transform: none; }
}
