/* BVDIY homepage — luxury redesign. All classes are prefixed lx- and do not clash with style.css. */

:root {
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --stone: #efe9df;
  --ink: #16181d;
  --ink-soft: #3a3c42;
  --muted: #76716a;
  --gold: #a8834a;
  --gold-soft: #d9c29a;
  --line: rgba(22, 24, 29, 0.12);
  --line-strong: rgba(22, 24, 29, 0.22);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, 'Segoe UI', sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 350;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { top: 12px; }

.lx-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(48px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; }
h3 { font-size: 26px; line-height: 1.2; }

.lx-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.lx-eyebrow--light { color: var(--gold-soft); }

.lx-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 450; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), gap 0.3s var(--ease);
}
.lx-link:hover, a:hover > .lx-link { gap: 16px; }

/* Buttons */
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px;
  font-size: 12px; font-weight: 450; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.lx-btn-dark { background: var(--ink); color: var(--paper); }
.lx-btn-dark:hover { background: var(--gold); }
.lx-btn-line { border-color: var(--line-strong); color: var(--ink); }
.lx-btn-line:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.lx-btn-light { background: var(--paper); color: var(--ink); }
.lx-btn-light:hover { background: var(--gold-soft); }

/* Header */
.lx-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 239, 0.92); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); transition: box-shadow 0.4s var(--ease); }
.lx-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.lx-announce { background: var(--ink); color: rgba(255, 253, 249, 0.82); text-align: center; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; padding: 9px 16px; transition: margin 0.4s var(--ease); }
.lx-announce span[aria-hidden] { color: var(--gold-soft); margin: 0 10px; }

.lx-header-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; transition: height 0.4s var(--ease); }
.lx-header.is-scrolled .lx-header-main { height: 68px; }
.lx-logo img { width: 52px; height: 52px; transition: width 0.4s var(--ease), height 0.4s var(--ease); }
.lx-header.is-scrolled .lx-logo img { width: 44px; height: 44px; }

.lx-nav ul { display: flex; gap: clamp(18px, 2vw, 32px); }
.lx-nav a { position: relative; white-space: nowrap; font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 0; color: var(--ink-soft); transition: color 0.3s; }
.lx-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.lx-nav a:hover { color: var(--ink); }
.lx-nav a:hover::after { transform: scaleX(1); }
.lx-nav-mobile-extra { display: none; }

.lx-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.lx-icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); transition: color 0.3s; }
.lx-icon-btn:hover { color: var(--gold); }
.lx-cart-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }

.lx-picker { position: relative; }
.lx-picker summary { list-style: none; cursor: pointer; white-space: nowrap; font-size: 11px; letter-spacing: 0.18em; color: var(--ink-soft); padding: 10px 8px; }
.lx-picker summary::-webkit-details-marker { display: none; }
.lx-picker summary span { color: var(--line-strong); margin: 0 2px; }
.lx-popover { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(22, 24, 29, 0.1); padding: 18px; z-index: 60; }
.lx-popover strong { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.lx-popover strong:not(:first-child) { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lx-popover button { width: 100%; text-align: left; font-size: 13px; padding: 6px 0; color: var(--ink-soft); }
.lx-popover button:hover, .lx-popover button.active { color: var(--gold); }

.lx-menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.lx-menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.lx-menu-btn span:first-child { top: 16px; }
.lx-menu-btn span:last-child { top: 23px; }
.lx-menu-btn[aria-expanded='true'] span:first-child { top: 20px; transform: rotate(45deg); }
.lx-menu-btn[aria-expanded='true'] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.lx-hero { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.lx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.lx-lede { max-width: 30em; margin-top: 32px; font-size: 17px; color: var(--ink-soft); }
.lx-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.lx-hero-notes { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lx-hero-notes li { display: flex; align-items: center; gap: 10px; }
.lx-hero-notes li::before { content: ''; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold); }

.lx-hero-media { position: relative; aspect-ratio: 4 / 5; }
.lx-hero-media::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold-soft); pointer-events: none; }
.lx-hero-media img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.lx-hero-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; background: linear-gradient(transparent, rgba(22, 24, 29, 0.5)); color: var(--paper); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.lx-hero-media figcaption a { border-bottom: 1px solid rgba(255, 253, 249, 0.6); padding-bottom: 4px; }

/* Sections */
.lx-section { padding: var(--section) 0; }
.lx-section-head { max-width: 680px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.lx-section-head > p:not(.lx-eyebrow) { margin-top: 20px; color: var(--muted); }
.lx-section-head--left { text-align: left; margin-left: 0; }
.lx-section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; }
.lx-section-head a:not(.lx-link) { border-bottom: 1px solid var(--gold-soft); }

/* Studios */
.lx-studios { background: var(--paper); }
.lx-studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.lx-studio { display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line); transition: border-color 0.5s var(--ease); }
.lx-studio:hover { border-color: var(--gold-soft); }
.lx-studio-art { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 3.6; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #fff 0%, var(--stone) 78%); }
.lx-studio-body { padding: clamp(28px, 3.4vw, 48px); border-top: 1px solid var(--line); }
.lx-studio-index { display: block; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); margin-bottom: 8px; }
.lx-studio h3 { font-size: clamp(30px, 3vw, 40px); }
.lx-studio p { margin: 14px 0 28px; max-width: 34em; color: var(--muted); }

.lx-bead-ring { position: relative; width: min(58%, 260px); aspect-ratio: 1; transition: transform 1.6s var(--ease); }
.lx-studio:hover .lx-bead-ring { transform: rotate(24deg); }
.lx-bead-ring img { position: absolute; width: 15%; height: 15%; filter: drop-shadow(0 6px 8px rgba(22, 24, 29, 0.14)); }
.lx-bead-ring::before { content: ''; position: absolute; inset: 7.5%; border-radius: 50%; border: 1px solid rgba(168, 131, 74, 0.35); }

.lx-ring-svg { width: min(54%, 240px); transition: transform 1.2s var(--ease); }
.lx-studio:hover .lx-ring-svg { transform: translateY(-6px) rotate(-4deg); }

/* Process */
.lx-process-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.lx-process .lx-section-head { margin-bottom: 0; position: sticky; top: 140px; }
.lx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.lx-steps li { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.lx-step-num { display: block; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--gold); margin-bottom: 26px; }
.lx-steps h3 { font-size: 24px; margin-bottom: 12px; }
.lx-steps p { color: var(--muted); font-size: 15px; }

/* Materials */
.lx-materials { background: var(--stone); }
.lx-material-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lx-material-list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lx-material-list a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(36px, 4vw, 56px) 20px; height: 100%; transition: background-color 0.4s var(--ease); }
.lx-material-list a:hover { background: rgba(255, 253, 249, 0.6); }
.lx-material-list img { width: 64px; height: 64px; margin-bottom: 26px; transition: transform 0.6s var(--ease); }
.lx-material-list a:hover img { transform: translateY(-4px) scale(1.05); }
.lx-material-list strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.lx-material-list span { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Products */
.lx-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 32px); }
.lx-product { position: relative; }
.lx-product-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.lx-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lx-product:hover .lx-product-media img { transform: scale(1.045); }
.lx-product-info { padding-top: 20px; text-align: center; }
.lx-product-cat { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.lx-product h3 { font-size: 21px; margin: 6px 0 4px; }
.lx-price { font-size: 14px; letter-spacing: 0.06em; color: var(--ink-soft); }
.lx-quick-add { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 12px; pointer-events: none; }
.lx-quick-add button { pointer-events: auto; width: 100%; min-height: 46px; background: rgba(255, 253, 249, 0.94); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s; }
.lx-product:hover .lx-quick-add button, .lx-quick-add button:focus-visible { opacity: 1; transform: none; }
.lx-quick-add button:hover { background: var(--ink); color: var(--paper); }
.lx-quick-add button.is-added { background: var(--ink); color: var(--paper); opacity: 1; transform: none; }

/* Promise */
.lx-promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.lx-promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.lx-promise-grid > div { padding: clamp(40px, 5vw, 64px) clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.lx-promise-grid > div:first-child { border-left: 0; padding-left: 0; }
.lx-promise h3 { font-size: 22px; margin-bottom: 10px; }
.lx-promise p { font-size: 14px; color: var(--muted); }

/* FAQ */
.lx-faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.lx-faq .lx-section-head { margin-bottom: 0; }
.lx-faq-list { border-top: 1px solid var(--line-strong); }
.lx-faq-list details { border-bottom: 1px solid var(--line); }
.lx-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); }
.lx-faq-list summary::-webkit-details-marker { display: none; }
.lx-faq-list summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat; transition: transform 0.4s var(--ease); }
.lx-faq-list details[open] summary::after { transform: rotate(45deg); }
.lx-faq-list details p { padding: 0 48px 28px 0; color: var(--muted); max-width: 44em; }
.lx-faq-list details a { border-bottom: 1px solid var(--gold-soft); color: var(--ink); }

/* Consult */
.lx-consult { background: var(--ink); color: var(--paper); padding: clamp(96px, 11vw, 150px) 0; text-align: center; position: relative; overflow: hidden; }
.lx-consult::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(760px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(217, 194, 154, 0.16); box-shadow: 0 0 0 48px rgba(217, 194, 154, 0.018), inset 0 0 0 48px rgba(217, 194, 154, 0.012); pointer-events: none; }
.lx-consult-inner { position: relative; max-width: 720px; }
.lx-consult h2 { color: var(--paper); }
.lx-consult p:not(.lx-eyebrow) { margin: 20px auto 40px; max-width: 30em; color: rgba(255, 253, 249, 0.7); }

/* Footer */
.lx-footer { background: #101215; color: rgba(255, 253, 249, 0.66); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 14px; }
.lx-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 253, 249, 0.1); }
.lx-footer-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.lx-footer-logo img { width: 52px; height: 52px; }
.lx-footer-logo span { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: 0.22em; color: var(--paper); }
.lx-footer-brand p { max-width: 26em; }
.lx-footer-mail { display: inline-block; margin-top: 18px; color: var(--gold-soft); border-bottom: 1px solid rgba(217, 194, 154, 0.4); padding-bottom: 2px; }
.lx-footer-col h3 { font-family: var(--sans); font-size: 11px; font-weight: 450; letter-spacing: 0.24em; text-transform: uppercase; color: var(--paper); margin-bottom: 20px; }
.lx-footer-col li + li { margin-top: 10px; }
.lx-footer-col a { transition: color 0.3s; }
.lx-footer-col a:hover { color: var(--gold-soft); }
.lx-footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 12px; letter-spacing: 0.06em; color: rgba(255, 253, 249, 0.42); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Tablet */
@media (max-width: 1080px) {
  .lx-product-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .lx-process-grid, .lx-faq-grid { grid-template-columns: 1fr; }
  .lx-process .lx-section-head { position: static; }
  .lx-promise-grid { grid-template-columns: repeat(2, 1fr); }
  .lx-promise-grid > div { padding-left: clamp(16px, 2.4vw, 36px); }
  .lx-promise-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .lx-promise-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .lx-footer-grid { grid-template-columns: repeat(3, 1fr); }
  .lx-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .lx-menu-btn { display: block; }
  .lx-header-main { grid-template-columns: 1fr auto 1fr; height: 64px; }
  .lx-header.is-scrolled .lx-header-main { height: 60px; }
  .lx-logo img, .lx-header.is-scrolled .lx-logo img { width: 40px; height: 40px; }
  .lx-nav { position: fixed; inset: 0; top: var(--header-offset, 100px); background: var(--ivory); padding: 32px var(--gutter) 48px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s; overflow-y: auto; }
  .lx-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .lx-nav ul { flex-direction: column; gap: 0; }
  .lx-nav ul a { display: block; font-family: var(--serif); font-size: 34px; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lx-nav ul a::after { display: none; }
  .lx-nav-mobile-extra { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 40px; }
  .lx-nav-mobile-extra a { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
  .lx-hide-sm { display: none; }
  .lx-picker summary { padding: 10px 4px; }
}

@media (max-width: 900px) {
  .lx-hero { padding-top: 24px; }
  .lx-hero-grid { grid-template-columns: 1fr; }
  .lx-hero-media { order: -1; aspect-ratio: 5 / 4; margin-right: 14px; }
  .lx-hero-media::before { inset: 14px -14px -14px 14px; }
  .lx-hero-notes { margin-top: 40px; }

  .lx-studio-grid { grid-template-columns: 1fr; }
  .lx-material-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .lx-announce { font-size: 10px; letter-spacing: 0.16em; }
  .lx-announce [data-optional] { display: none; }
  .lx-hero-media figcaption { display: none; }
  .lx-hero-ctas .lx-btn { flex: 1 1 100%; }
  .lx-steps { grid-template-columns: 1fr; gap: 36px; }
  .lx-section-head--split { flex-direction: column; align-items: flex-start; }
  .lx-product-grid { gap: 14px; row-gap: 40px; }
  .lx-product h3 { font-size: 18px; }
  .lx-quick-add button { opacity: 1; transform: none; min-height: 40px; font-size: 10px; letter-spacing: 0.16em; }
  .lx-material-list a { padding: 32px 12px; }
  .lx-material-list strong { font-size: 21px; }
  .lx-promise-grid { grid-template-columns: 1fr; }
  .lx-promise-grid > div { border-left: 0 !important; padding: 32px 0 !important; }
  .lx-promise-grid > div + div { border-top: 1px solid var(--line); }
  .lx-faq-list details p { padding-right: 0; }
  .lx-footer-grid { grid-template-columns: 1fr 1fr; }
  .lx-footer-bottom { flex-direction: column; }
}

/* Full-width image banner hero (admin: 收款设置 → 首页横幅) */
.lx-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lx-banner { position: relative; width: 100%; max-width: 100%; overflow: hidden; background: #fff; line-height: 0; }
.lx-banner-link { display: block; width: 100%; }
.lx-banner-link:focus-visible { outline: 2px solid var(--gold, #c5a265); outline-offset: -4px; }
.lx-banner-img { display: block; width: 100%; height: auto; max-width: 100%; }
/* Banner has text + border baked in, so it is scaled (never cropped) on mobile. */
