/* Lugfolio S1 UI — brand A2 Cool paper — no gold (Howard 2026-10-25). Tokens from brand-tokens.css */
@import url("/css/brand-tokens.css");

:root {
  --bg: var(--lug-cream, #F4F5F7);
  --bg-elev: #FFFFFF;
  --ink: var(--lug-charcoal, #1A1A1A);
  --muted: var(--lug-muted, #5A544C);
  --line: var(--lug-line, #E2E4E8);
  --gold: var(--lug-gold, #1A1A1A);
  --gold-soft: #3A3A3A;
  --danger: #9B3B2E;
  --radius: 8px;
  --font-display: var(--lug-font-display, "Bodoni Moda", "GFS Didot", Didot, "Bodoni MT", serif);
  --font-serif: var(--font-display);
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --tracking-wm: var(--lug-tracking-wordmark, 0.28em);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: blur(10px);
}
.site-header .inner,
.site-footer .inner,
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 28px;
  width: auto;
  display: block;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: var(--tracking-wm);
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
  line-height: 1.2;
}
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.lang-switch select {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.hero {
  padding: 3.75rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero .wordmark {
  max-width: min(420px, 90vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: var(--tracking-wm);
  text-transform: uppercase;
}
.hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.search-bar {
  display: flex; gap: 0.5rem; max-width: 36rem;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 1rem;
}
.search-bar button, .btn {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
a.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--bg, #F4F5F7); /* override global `a` so label stays readable on charcoal */
}
a.btn:hover { color: var(--bg, #F4F5F7); text-decoration: none; }
a.btn.ghost,
.btn.ghost {
  color: var(--ink, #1A1A1A);
}
a.btn.ghost:hover { color: var(--ink, #1A1A1A); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 2.25rem 0 0;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0.75rem auto 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 1.75rem 0 3rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}
.card a { color: inherit; text-decoration: none; display: block; }
.card .thumb {
  aspect-ratio: 4/3;
  background: #ECEEF1;
  display: grid; place-items: center;
}
.card .thumb img { width: 70%; height: auto; }
.card .body { padding: 1rem 1.1rem 1.25rem; }
.card .brand-label {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.35rem 0;
  font-weight: 400;
}
.card .ref { color: var(--muted); font-size: 0.85rem; }

.detail {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}
@media (max-width: 800px) {
  .detail { grid-template-columns: 1fr; }
}
.detail .visual,
.detail .visual.watch-media {
  /* Single clean media frame — no padded double window (GD UX smoke 2026-10-25) */
  background: #F4F5F7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.detail .visual img,
.detail .visual.watch-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.detail h1 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0.2rem 0 0.5rem;
  letter-spacing: 0.04em;
}
.brand-label {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.meta { color: var(--muted); font-size: 0.95rem; }
.specs {
  margin: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.92rem;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.listings { margin-top: 1.5rem; }
.listings h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.listing {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.listing .price {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}
.disclaimer {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--ink, #1A1A1A);
  background: rgba(26, 26, 26, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.prose { padding: 2.5rem 0 4rem; max-width: 42rem; margin: 0 auto; }
.prose h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prose p, .prose li { color: var(--muted); }
.muted { color: var(--muted); }
.empty { padding: 3rem 0; color: var(--muted); text-align: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
}
.adsense-slot {
  display: none;
  min-height: 90px;
  margin: 1.5rem 0;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
}
.adsense-slot.on { display: flex; }

/* Brand guides */
.crumb { padding: 1.25rem 0 0; font-size: 0.85rem; }
.guide-nav { text-align: center; padding: 0 0 3rem; font-size: 0.9rem; color: var(--muted); }
.prose.guide h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}
.prose.guide h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 1.25rem 0 0.5rem;
}
.prose.guide hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}
.prose.guide ul { padding-left: 1.25rem; color: var(--muted); }
.prose.guide li { margin: 0.35rem 0; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.guide-table th,
.guide-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.guide-table th {
  background: rgba(26, 26, 26, 0.04);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.guide-disclaimer {
  display: block;
  margin-top: 2rem;
  padding: 1.1rem 1.15rem;
  border-left: 2px solid var(--ink, #1A1A1A);
  background: rgba(26, 26, 26, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}
.guide-disclaimer .disclaimer-heading {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: none;
}
.guide-disclaimer .disclaimer-heading:first-child { margin-top: 0; }
.guide-disclaimer p { color: var(--muted); margin: 0.35rem 0 0.75rem; }

/* Auth forms (login / register) — A2 cool paper */
.auth-panel {
  max-width: 420px;
  margin: 2.5rem auto 3rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.auth-panel h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: var(--tracking-wm);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  text-align: center;
}
.auth-panel .lead {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 1.5rem;
}
.auth-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.auth-form .field { margin-bottom: 1rem; }
.auth-form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
}
.auth-form input:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}
.auth-form .btn { width: 100%; margin-top: 0.5rem; }
.auth-form .msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.25rem;
}
.auth-form .msg.error { color: var(--danger); }
.auth-form .msg.ok { color: var(--ink); }
.auth-alt {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Marketing home hero — tip d7951671 */
.hero-sub {
  max-width: 36rem;
  margin: 0.75rem auto 1.25rem;
  line-height: 1.55;
  font-size: 0.98rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0 0 1.5rem;
}
.hero-ctas .btn { text-decoration: none; }

/* Hide CSS placeholder silhouette when a real img src is present */
.watch-media:has(> img[src]:not([src=""])),
.thumb.watch-media:has(> img[src]:not([src=""])),
.visual.watch-media:has(> img[src]:not([src=""])) {
  background-image: none;
}

/* A2 elegant image 天窗 — no blank holes */
.thumb, .visual {
  background-color: #F4F5F7;
  background-image: url("/media/watches/watch-placeholder-generic.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--line, #E2E4E8);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.thumb img, .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #F4F5F7;
}
.thumb img[src=""], .visual img[src=""] {
  opacity: 0;
}

.micro { font-size: 0.85rem; letter-spacing: 0.02em; margin-top: 0.35rem; }

/* —— Professional luxury type polish (copy pass 2026-10-25) —— */
.hero-sub,
.page-head .lead,
.auth-panel .lead,
.auth-sub {
  color: var(--muted);
  letter-spacing: 0.01em;
  font-weight: 400;
}
/* EN caption chips — uppercase tracking; CJK ignores uppercase, keep spacing modest */
.illus-badge,
.card .price-chip .hint,
.sample-note,
.alert-row .status {
  letter-spacing: var(--lug-tracking-caption, 0.14em);
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}
.micro,
.chart-banner {
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}
.disclaimer,
.disclaimer-a2,
.guide-disclaimer {
  letter-spacing: 0.01em;
  line-height: 1.65;
  font-size: 0.82rem;
}
.site-footer {
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
.site-footer a {
  letter-spacing: var(--lug-tracking-nav, 0.12em);
  text-transform: uppercase;
  font-size: 0.72rem;
}
.btn,
.search-bar button {
  letter-spacing: 0.12em;
  font-weight: 500;
}
.nav a {
  letter-spacing: var(--lug-tracking-nav, 0.14em);
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.empty-state p,
.auth-note,
.auth-foot {
  letter-spacing: 0.01em;
  color: var(--muted);
  font-size: 0.9rem;
}
html:lang(zh-TW) .site-footer a,
html:lang(zh-CN) .site-footer a,
html:lang(zh-TW) .nav a,
html:lang(zh-CN) .nav a,
html:lang(zh-TW) .btn,
html:lang(zh-CN) .btn,
html:lang(zh-TW) .search-bar button,
html:lang(zh-CN) .search-bar button {
  letter-spacing: 0.08em;
  text-transform: none;
}

/* Auth nav — Cool paper A2 · Login/Account always visible */
.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.15rem;
}
.auth-nav .nav-login,
.auth-nav .nav-account {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0.38rem 0.75rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
  background: transparent;
  /* Override .nav a uppercase before html[lang] flips — 登入 must not look like LOGIN */
  text-transform: none;
}
.auth-nav .nav-login:hover,
.auth-nav .nav-account:hover {
  background: var(--ink);
  color: var(--bg, #F4F5F7);
}
.auth-nav .nav-user {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-nav .nav-logout {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-nav .nav-logout:hover { color: var(--ink); }

/* Mobile: keep Login/Account prominent in sticky header */
@media (max-width: 720px) {
  .site-header .inner {
    flex-wrap: wrap;
    min-height: 56px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .nav {
    width: 100%;
    gap: 0.65rem 0.85rem;
    justify-content: flex-start;
  }
  .auth-nav {
    margin-left: auto;
  }
  .auth-nav .nav-login,
  .auth-nav .nav-account {
    background: var(--ink);
    color: var(--bg, #F4F5F7);
    border-color: var(--ink);
    font-size: 0.78rem;
    padding: 0.42rem 0.85rem;
  }
  .auth-nav .nav-login:hover,
  .auth-nav .nav-account:hover {
    opacity: 0.9;
  }
}

/* Landing hero hierarchy — prices / collect / where to buy */
.hero h1 {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1.35rem, 4.2vw, 2.15rem);
  line-height: 1.35;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0;
  margin: 0 auto 1.1rem;
  max-width: 36rem;
}
.hero-pills li {
  border: 1px solid var(--line, #E2E4E8);
  background: var(--bg-elev, #fff);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.hero-ctas {
  margin-bottom: 1.25rem;
}
.hero-ctas .btn {
  min-width: 8.5rem;
}
@media (max-width: 720px) {
  .hero {
    padding: 2.25rem 0 1.75rem;
  }
  .hero .wordmark {
    max-width: min(280px, 72vw);
    margin-bottom: 0.85rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}
html:lang(en) .hero h1 {
  letter-spacing: 0.04em;
}
html:lang(zh-TW) .auth-nav .nav-login,
html:lang(zh-CN) .auth-nav .nav-login,
html:lang(zh-TW) .auth-nav .nav-account,
html:lang(zh-CN) .auth-nav .nav-account {
  letter-spacing: 0.06em;
  text-transform: none;
}


/* Header currency pick — Howard lock: user chooses USD/HKD/EUR */
.nav-ccy {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.15rem;
}
.nav-ccy-chip {
  appearance: none;
  background: var(--bg-elev, #fff);
  color: var(--muted, #666);
  border: 1px solid var(--line, #ddd);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1.2;
}
.nav-ccy-chip:hover { color: var(--ink, #1A1A1A); border-color: var(--ink, #1A1A1A); }
.nav-ccy-chip.is-active {
  background: var(--ink, #1A1A1A);
  color: var(--bg, #F4F5F7);
  border-color: var(--ink, #1A1A1A);
}
@media (max-width: 720px) {
  .nav-ccy { width: 100%; justify-content: flex-start; margin: 0.15rem 0 0; }
}
