:root {
  --ink: #171615;
  --muted: #6f6a64;
  --paper: #f7f2eb;
  --paper-2: #eee5da;
  --white: #fff;
  --gold: #e2ab2f;
  --gold-deep: #9a6806;
  --line: rgba(23, 22, 21, .14);
  --shadow: 0 24px 70px rgba(26, 19, 10, .12);
  --max: 1280px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
body.has-dialog { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(226, 171, 47, .7); outline-offset: 3px; }
.inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 50; top: 0; height: var(--header-h); background: rgba(247, 242, 235, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: min(var(--max), calc(100% - 32px)); height: 100%; display: flex; align-items: center; gap: 24px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; height: 58px; object-fit: contain; }
.page-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin-left: auto; }
.page-nav a { position: relative; padding: 25px 0 23px; color: #3d3935; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.page-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 2px; background: var(--gold); transition: right .2s ease; }
.page-nav a:hover::after, .page-nav a[aria-current="page"]::after { right: 0; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; color: var(--white); background: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--gold { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.button--outline { color: var(--ink); border-color: var(--line); background: transparent; }

.arrival-hero { padding: clamp(44px, 6vw, 82px) 0 38px; color: var(--white); background: radial-gradient(circle at 9% 0%, rgba(226,171,47,.27), transparent 31%), radial-gradient(circle at 94% 92%, rgba(14,47,99,.38), transparent 34%), #111; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(30px, 6vw, 90px); align-items: end; }
.eyebrow { display: inline-block; margin: 0 0 12px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.arrival-hero h1 { max-width: 830px; margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 7vw, 84px); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.arrival-hero p { max-width: 680px; margin: 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.7; }
.hero-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: arrival-step; }
.hero-steps li { display: grid; grid-template-columns: 38px 84px 1fr; gap: 10px; align-items: baseline; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.16); counter-increment: arrival-step; }
html[lang="fr"] .hero-steps li { grid-template-columns: 38px 104px 1fr; } /* 法语的步骤名更长 */
.hero-steps li::before { content: "0" counter(arrival-step); color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.hero-steps b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-steps span { color: rgba(255,255,255,.58); font-size: 12px; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.rule-chips li { padding: 8px 14px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: rgba(255,255,255,.84); font-size: 12px; }
.rule-chips b { color: var(--gold); }
.catalog-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; color: rgba(255,255,255,.65); font-size: 12px; }
.catalog-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #65cf80; box-shadow: 0 0 0 4px rgba(101,207,128,.14); }
.catalog-status.is-error::before { background: #e36a59; box-shadow: 0 0 0 4px rgba(227,106,89,.14); }

.toolbar { position: sticky; z-index: 30; top: var(--header-h); padding: 12px 0; border-bottom: 1px solid var(--line); background: rgba(247,242,235,.96); backdrop-filter: blur(14px); }
.toolbar-inner { display: grid; grid-template-columns: minmax(190px, 300px) 1fr auto; gap: 12px; align-items: center; }
.search { position: relative; }
.search::before { content: "⌕"; position: absolute; left: 14px; top: 50%; color: var(--muted); font-size: 19px; transform: translateY(-52%); }
.search input, .sort select { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; }
.search input { padding: 0 16px 0 40px; }
.sort select { padding: 0 36px 0 14px; }
.filter-buttons { display: flex; gap: 7px; }
.filter-buttons button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); font-size: 11px; font-weight: 800; cursor: pointer; }
.filter-buttons button[aria-pressed="true"] { color: var(--white); border-color: var(--ink); background: var(--ink); }
.filter-buttons span { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 4px; border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 10px; }

.catalog-section { min-height: 600px; padding: clamp(42px, 6vw, 76px) 0 70px; }
.currency-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 24px; font-size: 12px; }
.currency-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.currency-switch button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.currency-switch button[aria-pressed="true"] { background: var(--gold); }
.rate-note { color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5vw, 58px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.style-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.style-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 12px 30px rgba(26,19,10,.08); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.style-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(26,19,10,.14); }
.style-card.is-selected { border-color: var(--gold-deep); box-shadow: 0 0 0 2px rgba(226,171,47,.34), 0 18px 40px rgba(26,19,10,.13); }
.style-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e8e3dc; }
.style-photo-link { width: 100%; height: 100%; display: block; color: inherit; text-decoration: none; }
.style-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .35s ease; }
.style-card:hover .style-photo img { transform: scale(1.015); }
.style-photo-hint { position: absolute; right: 10px; bottom: 10px; padding: 7px 11px; border-radius: 999px; color: var(--white); background: rgba(23,22,21,.86); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.sample-badge, .selected-badge { position: absolute; top: 10px; padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sample-badge { left: 10px; color: var(--ink); background: var(--gold); }
.selected-badge { right: 10px; color: var(--white); background: rgba(23,22,21,.86); }
.card-body { padding: 13px; }
.style-price { margin: 0 0 8px; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.2; }
.style-code { margin: 0 0 4px; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.style-name { min-height: 34px; margin: 0 0 12px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.select-style { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.select-style:hover, .select-style[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); }
.empty-state { padding: 90px 20px; text-align: center; }
.empty-state h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.catalog-note { max-width: 850px; margin: 30px auto 0; color: var(--muted); font-size: 11px; line-height: 1.65; text-align: center; }

.selection-bar { position: fixed; z-index: 45; left: 50%; bottom: 18px; width: min(680px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-radius: 999px; color: var(--white); background: rgba(17,17,17,.96); box-shadow: 0 18px 50px rgba(0,0,0,.32); transform: translate(-50%, 150%); transition: transform .3s ease; }
.selection-bar.show { transform: translate(-50%, 0); }
.selection-summary { flex: 1; color: rgba(255,255,255,.7); font-size: 12px; }
.selection-summary b { display: block; color: var(--white); font-size: 14px; }

.order-drawer { width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); }
.order-drawer::backdrop { background: rgba(10,9,8,.6); backdrop-filter: blur(3px); }
.drawer-layout { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 15px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; line-height: 1; }
.drawer-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; }
.order-items { flex: 1; overflow-y: auto; margin: 0; padding: 8px 22px; list-style: none; }
.order-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-item img { width: 66px; height: 82px; object-fit: contain; border-radius: 9px; background: #e8e3dc; }
.order-item h3 { margin: 0 0 3px; font-size: 14px; }
.order-item p { margin: 0; color: var(--muted); font-size: 10px; }
.quantity-control { display: grid; grid-template-columns: 32px 54px 32px; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.quantity-control button { width: 32px; height: 34px; border: 0; background: transparent; font-size: 17px; cursor: pointer; }
.quantity-control input { width: 54px; height: 34px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 800; text-align: center; }
.remove-style { margin-top: 7px; padding: 0; border: 0; color: var(--muted); background: none; font-size: 10px; text-decoration: underline; cursor: pointer; }
.drawer-foot { padding: 15px 22px 22px; border-top: 1px solid var(--line); background: var(--white); }
.order-total { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 12px; font-size: 13px; }
.order-total b { font-size: 17px; }
.buyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.buyer-grid label, .notes-label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.buyer-grid input, .notes-label textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.buyer-grid input { height: 42px; padding: 0 11px; }
.notes-label { margin-top: 9px; }
.notes-label textarea { min-height: 62px; padding: 9px 11px; resize: vertical; }
.form-message { min-height: 16px; margin: 8px 0; color: #a23c29; font-size: 11px; }
.send-order { width: 100%; }
.drawer-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.clear-button { display: block; margin: 8px auto 0; padding: 0; border: 0; color: var(--muted); background: none; font-size: 10px; text-decoration: underline; cursor: pointer; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 90px; padding: 10px 16px; border-radius: 999px; color: var(--white); background: rgba(17,17,17,.94); font-size: 12px; opacity: 0; transform: translate(-50%, 15px); transition: .25s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer { padding: 32px 0; color: rgba(255,255,255,.58); background: #090909; font-size: 11px; }
.site-footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.85); }

@media (max-width: 1120px) {
  .style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-nav { display: none; }
  .header-whatsapp { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-steps { max-width: 620px; }
  .toolbar-inner { grid-template-columns: 1fr auto; }
  .filter-buttons { grid-column: 1 / -1; grid-row: 2; }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .inner, .header-inner { width: min(100% - 24px, var(--max)); }
  .brand img { height: 47px; }
  .header-whatsapp { min-height: 38px; padding: 0 15px; font-size: 9px; }
  .arrival-hero { padding-top: 38px; }
  .arrival-hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .arrival-hero p { font-size: 14px; }
  .hero-steps li { grid-template-columns: 32px 72px 1fr; }
  html[lang="fr"] .hero-steps li { grid-template-columns: 32px 92px 1fr; }
  .toolbar-inner { grid-template-columns: 1fr; }
  .sort { grid-row: 2; }
  .filter-buttons { grid-row: 3; overflow-x: auto; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-body { padding: 10px; }
  .style-code { font-size: 17px; }
  .selection-bar { padding-left: 16px; }
  .selection-bar .button { padding: 0 16px; }
  .buyer-grid { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: 58px 1fr; }
  .order-item img { width: 58px; height: 74px; }
  .order-item > div:last-child { grid-column: 2; }
  .site-footer .inner { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 语言切换（和其他页面一致） */
.lang-switch { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 7px 11px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--white); background: var(--ink); }

/* 输密码 / 即将上新 */
.access-gate, .coming-soon { padding: clamp(44px, 7vw, 88px) 0; }
.gate-card { max-width: 620px; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); text-align: center; }
.gate-card .eyebrow { color: var(--gold-deep); }
.gate-card h2 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.1; }
.gate-card p { margin: 0 auto 22px; max-width: 460px; color: var(--muted); font-size: 14px; }
.gate-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.gate-form label { flex: 1; }
.gate-form input { width: 100%; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 15px; letter-spacing: .2em; }
.gate-card .form-message { min-height: 20px; margin: 12px 0 6px; color: #b42318; font-size: 13px; }
.gate-help { color: var(--muted); font-size: 12px; cursor: pointer; }

@media (max-width: 1120px) {
  .lang-switch { margin-left: auto; }
  .header-whatsapp { margin-left: 0; }
}
@media (max-width: 620px) {
  .gate-form { flex-direction: column; }
  .lang-switch a { padding: 6px 9px; }
}

/* 上架时间和早订折扣 */
.early-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 22px; padding: 14px 18px; border: 1px solid rgba(226, 171, 47, .55); border-left: 4px solid var(--gold); border-radius: 12px; background: #fff8e8; font-size: 14px; }
.early-offer b { color: var(--gold-deep); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.early-offer span { color: var(--ink); }
.listed-at { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.offer-left { display: inline-block; margin: 6px 0 0; padding: 3px 9px; border-radius: 999px; color: #7a4f00; background: #fdeec5; font-size: 11px; font-weight: 800; }
