:root {
  --page-bg: #f8f8f7;
  --hero-bg: #ffeff5;
  --product-bg: #ebe4e0;
  --surface: #ffffff;
  --ink: #342d2b;
  --text: #534845;
  --muted: #817571;
  --line: #e5ded9;
  --taupe: #a88f7c;
  --taupe-dark: #795f4d;
  --red: #9f2436;
  --red-deep: #711523;
  --gold: #d7a85b;
  --cream: #f6f0e9;
  --shadow: 0 16px 48px rgba(72, 52, 43, .12);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "Alibaba PuHuiTi 2.0", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page-bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(159, 36, 54, .28); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; transform: translateY(-140%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { transform: none; }
.is-hidden { display: none !important; }

.utility-bar { height: 33px; color: #70635f; background: #f2efed; font-size: 12px; }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.utility-links { display: flex; align-items: center; gap: 16px; }
.text-button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.text-button:hover { color: var(--red); }
.divider { width: 1px; height: 12px; background: #cfc5c0; }
.service-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.site-header { position: relative; z-index: 30; background: #fff; }
.header-main { height: 154px; display: grid; grid-template-columns: 238px 1fr 220px; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--red); border-radius: 50% 50% 48% 52%; font: 700 28px/1 var(--serif); box-shadow: inset 0 0 0 4px rgba(255,255,255,.13); }
.brand-mark img { display: block; width: 78%; height: 78%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--ink); font: 700 25px/1.2 var(--serif); letter-spacing: 3px; }
.brand-copy small { color: var(--taupe); font: 10px/1.5 Georgia, serif; letter-spacing: 2.2px; }

.search { position: relative; align-self: center; }
.search input { width: 100%; height: 44px; padding: 0 118px 0 20px; border: 2px solid var(--taupe); border-radius: 24px; color: var(--ink); background: #fff; transition: box-shadow .2s, border-color .2s; }
.search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(159, 36, 54, .08); }
.search input::placeholder { color: #a99e99; }
.search > button { position: absolute; top: 4px; right: 5px; height: 36px; min-width: 92px; border: 0; border-radius: 19px; color: #fff; background: var(--red); cursor: pointer; font-weight: 700; letter-spacing: 2px; transition: background .2s, transform .2s; }
.search > button:hover { background: var(--red-deep); transform: translateX(1px); }
.search-hints { position: absolute; top: 52px; left: 18px; display: flex; gap: 18px; color: #9b918d; font-size: 12px; }

.account-chip { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.account-chip:hover { background: #faf7f5; border-color: #eee5df; }
.account-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--taupe); border-radius: 50%; font: 700 18px var(--serif); }
.account-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.account-copy small { color: var(--muted); font-size: 11px; }
.account-copy strong { color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-bar { height: 76px; border-top: 1px solid #f2eeeb; border-bottom: 1px solid #eee7e2; }
.nav-inner { height: 100%; display: flex; align-items: stretch; }
.nav-inner button { position: relative; border: 0; background: transparent; padding: 0 28px; cursor: pointer; font-size: 17px; font-weight: 600; }
.nav-inner button::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; transform: scaleX(0); background: var(--red); transition: transform .2s; }
.nav-inner button:hover, .nav-inner button.active { color: var(--red); }
.nav-inner button:hover::after, .nav-inner button.active::after { transform: scaleX(1); }
.nav-inner .nav-all { width: 196px; justify-content: center; display: flex; align-items: center; gap: 12px; padding: 0; color: #fff; background: var(--red); }
.nav-inner .nav-all::after { display: none; }
.nav-all span { font-size: 19px; }
.nav-inner .ai-nav { margin-left: auto; }
.ai-nav span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; color: #fff; background: var(--red); border-radius: 50%; font-size: 10px; }

.hero-wrap { height: 420px; background: var(--hero-bg); }
.hero-layout { height: 420px; display: grid; grid-template-columns: 1004px 196px; }
.hero-slider { position: relative; overflow: hidden; background: #d8cbc3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active img { animation: heroZoom 7s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.035); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,28,25,.58), rgba(43,28,25,.08) 58%, rgba(43,28,25,.04)); }
.hero-shade.soft { background: linear-gradient(90deg, rgba(250,245,238,.9), rgba(250,245,238,.25) 58%, rgba(70,42,31,.06)); }
.hero-content { position: absolute; z-index: 2; top: 72px; left: 74px; width: 420px; }
.hero-content.align-right { left: auto; right: 66px; text-align: right; }
.light-copy { color: #fff; }
.dark-copy { color: var(--ink); }
.hero-kicker { display: block; margin-bottom: 13px; font: 700 12px Georgia, serif; letter-spacing: 2.4px; }
.hero-content h1, .hero-content h2 { margin: 0; font: 700 46px/1.15 var(--serif); letter-spacing: 4px; }
.hero-content p { margin: 17px 0 24px; font-size: 15px; }
.hero-cta { display: inline-flex; align-items: center; gap: 18px; min-width: 158px; height: 42px; padding: 0 20px; border: 1px solid rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); cursor: pointer; transition: gap .2s, background .2s; }
.hero-cta.dark { color: var(--ink); border-color: rgba(71,50,42,.3); background: rgba(255,255,255,.48); }
.hero-cta:hover { gap: 25px; background: var(--red); border-color: var(--red); color: #fff; }
.slider-arrow { position: absolute; z-index: 4; top: 50%; width: 42px; height: 56px; transform: translateY(-50%); border: 0; color: #fff; background: rgba(40,30,27,.22); cursor: pointer; font: 300 34px/1 var(--serif); opacity: 0; transition: opacity .2s, background .2s; }
.hero-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(159,36,54,.8); }
.slider-arrow.previous { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; z-index: 4; left: 50%; bottom: 18px; display: flex; gap: 8px; transform: translateX(-50%); }
.slider-dots button { width: 7px; height: 7px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: transparent; cursor: pointer; transition: width .2s, border-radius .2s; }
.slider-dots button.is-active { width: 25px; border-radius: 5px; background: #fff; }

.mall-panel { height: 420px; padding: 27px 20px 20px; color: var(--text); background: #fff; }
.mall-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mall-heading span { color: var(--red); font: 700 10px Georgia, serif; letter-spacing: 2px; }
.mall-heading strong { display: block; margin-top: 4px; color: var(--ink); font: 700 20px var(--serif); }
.mall-panel ul { margin: 8px 0 0; padding: 0; list-style: none; }
.mall-panel li + li { border-top: 1px solid #f0ebe7; }
.mall-panel li button { width: 100%; display: flex; gap: 9px; align-items: center; padding: 12px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.mall-panel li button:hover b { color: var(--red); }
.pin { color: var(--gold); font-size: 9px; }
.mall-panel li span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mall-panel b { color: var(--text); font-size: 13px; font-weight: 600; }
.mall-panel small { margin-top: 2px; color: #a49a96; font-size: 10px; }
.mall-more { width: 100%; height: 35px; border: 1px solid var(--taupe); color: var(--taupe-dark); background: #fff; cursor: pointer; font-size: 12px; }
.mall-more:hover { color: #fff; background: var(--red); border-color: var(--red); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.section-heading h2 { margin: 5px 0 0; color: var(--ink); font: 700 36px/1.25 var(--serif); letter-spacing: 3px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--red); font: 700 11px Georgia, serif; letter-spacing: 2px; }
.category-section { padding: 68px 0 78px; }
.category-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 30px; }
.category-card { min-width: 0; height: 112px; padding: 17px 9px; border: 1px solid #ebe3de; color: var(--text); background: #fff; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:hover, .category-card.is-active { transform: translateY(-4px); border-color: #cdb7a8; box-shadow: 0 10px 22px rgba(78,57,46,.08); }
.category-card span { width: 34px; height: 34px; display: grid; place-items: center; margin: 0 auto 8px; color: var(--red); background: #f6efea; border-radius: 50%; font: 700 14px var(--serif); }
.category-card strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.category-card small { display: block; margin-top: 4px; color: #a19590; font-size: 9px; text-align: center; }

.story-section { padding: 54px 0 78px; background: #fff; }
.section-heading.centered { position: relative; display: block; text-align: center; }
.section-heading.centered .script-word { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); color: #f0ece9; font: italic 84px/1 Georgia, serif; }
.section-heading.centered > *:not(.script-word) { position: relative; z-index: 1; }
.section-heading.centered p { margin-top: 10px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 42px; }
.story-card { position: relative; height: 359px; overflow: hidden; padding: 0; border: 0; background: #eee; cursor: pointer; text-align: left; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.6,.2,1); }
.story-card:hover img { transform: scale(1.045); }
.story-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30,22,20,.65)); }
.story-copy { position: absolute; left: 34px; right: 34px; bottom: 29px; color: #fff; }
.story-copy small { display: block; margin-bottom: 7px; font-size: 12px; letter-spacing: 2px; }
.story-copy strong { display: block; font: 700 25px var(--serif); letter-spacing: 2px; }
.story-copy em { display: block; margin-top: 13px; font-style: normal; font-size: 12px; opacity: .86; }

.product-section { padding: 70px 0; background: var(--product-bg); }
.product-panel { padding: 46px 48px 50px; border-radius: 20px; background: #fff; }
.product-heading { align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.product-heading p { margin-top: 8px; }
.sort-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.sort-control select { height: 38px; padding: 0 34px 0 13px; border: 1px solid #d9cfca; border-radius: 0; color: var(--text); background: #fff; }
.active-filter { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 0; padding: 12px 16px; color: var(--taupe-dark); background: #f8f2ee; font-size: 13px; }
.active-filter button { border: 0; color: var(--red); background: transparent; cursor: pointer; }
.preference-insight { position: relative; margin: 24px 0 0; overflow: hidden; border: 1px solid #d9cbc2; background: linear-gradient(120deg,#fff 0%,#fbf5f0 66%,#efe0d7 140%); box-shadow: 0 16px 44px rgba(79,48,37,.07); }
.preference-insight::before { content: ""; position: absolute; top: -80px; right: -60px; width: 210px; height: 210px; border: 1px solid rgba(159,36,54,.11); border-radius: 50%; box-shadow: 0 0 0 22px rgba(159,36,54,.025),0 0 0 48px rgba(159,36,54,.02); pointer-events: none; }
.preference-insight-loading,.preference-insight-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 24px 28px; }
.preference-insight-loading > span,.preference-seal { display: grid; place-items: center; width: 58px; height: 58px; color: #fff; background: var(--red); border-radius: 50%; font: 500 23px var(--serif); box-shadow: 0 7px 18px rgba(115,35,48,.2); }
.preference-insight-loading small,.preference-copy > small { color: #9c7564; font-size: 9px; letter-spacing: .14em; }
.preference-insight h3 { margin: 4px 0 5px; color: var(--ink); font: 600 22px var(--serif); letter-spacing: .03em; }
.preference-insight p { margin: 0; color: #796c65; font-size: 12px; line-height: 1.7; }
.preference-actions { display: flex; position: relative; z-index: 1; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 300px; }
.preference-actions button,.preference-form-actions button { min-height: 36px; padding: 0 13px; border: 1px solid #c9aaa0; color: var(--red); background: rgba(255,255,255,.88); cursor: pointer; font-size: 11px; }
.preference-actions button:hover,.preference-form-actions button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.preference-actions .preference-primary,.preference-form-actions .preference-primary { color: #fff; background: var(--red); border-color: var(--red); }
.preference-actions button:disabled,.preference-form-actions button:disabled { opacity: .55; cursor: wait; }
.preference-traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 1px; }
.preference-traits span { padding: 5px 9px; color: #76564b; background: #f2e5de; border-radius: 999px; font-size: 10px; }
.preference-basis { margin-top: 9px; border-top: 1px solid #e4d7cf; }
.preference-basis summary { padding: 9px 0 3px; color: var(--red); cursor: pointer; font-size: 10px; }
.preference-basis p { padding: 5px 0; font-size: 10px; }
.preference-basis ol { display: grid; gap: 5px; max-height: 170px; margin: 7px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.preference-basis li { display: grid; grid-template-columns: 82px minmax(110px,.55fr) 1fr; gap: 8px; padding: 7px 9px; color: #756760; background: rgba(255,255,255,.8); font-size: 9px; }
.preference-basis li span,.preference-basis li small { color: #998881; }
.preference-correction { position: relative; z-index: 2; padding: 20px 28px 24px 114px; border-top: 1px solid #dfd1c9; background: rgba(255,255,255,.78); }
.preference-correction form { display: grid; gap: 14px; }
.preference-correction fieldset { margin: 0; padding: 0; border: 0; }
.preference-correction legend,.preference-note-label > span { display: block; margin-bottom: 8px; color: #65554d; font-size: 11px; font-weight: 700; }
.preference-category-options { display: flex; flex-wrap: wrap; gap: 7px; }
.preference-category-options label { cursor: pointer; }
.preference-category-options input { position: absolute; opacity: 0; pointer-events: none; }
.preference-category-options span { display: block; padding: 7px 10px; color: #786961; border: 1px solid #ddcfc7; background: #fff; font-size: 10px; }
.preference-category-options input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.preference-category-options input:checked + span { color: #fff; background: #6d4b45; border-color: #6d4b45; }
.preference-note-label textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9cbc4; background: #fff; resize: vertical; }
.preference-form-actions { display: flex; gap: 7px; }
.preference-form-actions + p { min-height: 18px; color: #9c3d42; font-size: 10px; }
.preference-reason { display: grid; gap: 3px; margin-top: 10px; padding: 8px 10px; color: #5c514c; border-left: 2px solid #9f2436; background: #f8f1ed; font: 400 10px/1.55 var(--sans); }
.preference-reason strong { color: #685047; font-size: 10px; font-weight: 600; }
.preference-reason small { color: #98867d; font-size: 8px; }
.preference-reason.is-compact { margin-top: 5px; padding: 5px 7px; }
.preference-tag { background: rgba(74,92,80,.9); }
.detail-preference-reason { max-width: 480px; margin: 18px 0; padding: 14px 16px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; margin-top: 34px; }
.product-card { position: relative; min-width: 0; }
.product-image-button { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #f3efec; cursor: pointer; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image-button img { transform: scale(1.045); }
.product-tag { position: absolute; top: 11px; left: 11px; padding: 5px 8px; color: #fff; background: rgba(159,36,54,.88); font-size: 9px; letter-spacing: 1px; }
.product-info { padding: 15px 3px 0; }
.product-category { display: block; color: var(--taupe); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-name { width: 100%; min-height: 43px; margin: 6px 0 8px; padding: 0; border: 0; color: var(--ink); background: transparent; font: 600 14px/1.5 var(--sans); text-align: left; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name:hover { color: var(--red); }
.product-meta { display: flex; align-items: flex-end; justify-content: space-between; }
.price { color: var(--red); font: 700 21px/1 Georgia, serif; }
.price small { margin-right: 2px; font: 700 12px var(--sans); }
.sales { color: #aaa09b; font-size: 10px; }
.add-cart { position: absolute; right: 7px; bottom: 4px; width: 34px; height: 34px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); background: #fff; cursor: pointer; font-size: 17px; transition: color .2s, background .2s, transform .2s; }
.add-cart:hover { color: #fff; background: var(--red); transform: rotate(-8deg) scale(1.06); }
.skeleton { min-height: 300px; }
.skeleton::before, .skeleton::after { content: ""; display: block; background: linear-gradient(90deg, #f2eeeb 25%, #faf8f6 50%, #f2eeeb 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton::before { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.skeleton::after { width: 78%; height: 40px; margin-top: 15px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 45px; }
.pagination button { min-width: 34px; height: 34px; border: 1px solid #ddd4cf; background: #fff; cursor: pointer; }
.pagination button:hover, .pagination button.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state > span { color: var(--taupe); font-size: 42px; }
.empty-state h3 { margin: 14px 0 5px; color: var(--ink); font: 700 22px var(--serif); }
.empty-state p { color: var(--muted); }
.empty-state button { height: 40px; padding: 0 20px; border: 1px solid var(--red); color: var(--red); background: #fff; cursor: pointer; }

.service-promise { padding: 44px 0; background: #fff; border-bottom: 1px solid #eee8e4; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise-grid > div { display: flex; justify-content: center; align-items: center; gap: 13px; border-right: 1px solid #e6ded9; }
.promise-grid > div:last-child { border-right: 0; }
.promise-grid > div > span { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid var(--taupe); border-radius: 50%; color: var(--red); font: 700 17px var(--serif); }
.promise-grid p { display: flex; flex-direction: column; margin: 0; }
.promise-grid strong { color: var(--ink); font-size: 14px; }
.promise-grid small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.site-footer { padding: 43px 0 55px; color: #dcd1cc; background: #332927; }
.footer-main { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .brand-mark { width: 45px; height: 45px; font-size: 22px; }
.footer-brand strong { color: #fff; font: 700 21px var(--serif); letter-spacing: 2px; }
.footer-brand p, .footer-note p { margin: 5px 0 0; font-size: 11px; }
.footer-note { text-align: right; }

.floating-rail { position: fixed; z-index: 80; top: calc(50% - 202px); right: 0; width: 77px; height: 404px; display: flex; flex-direction: column; justify-content: space-between; padding: 33px 0; border-radius: 20px 0 0 20px; background: #fff; box-shadow: rgba(91,75,68,.18) 0 12px 40px; }
.floating-rail button { position: relative; width: 77px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.floating-rail button:hover { color: var(--red); }
.rail-icon { display: grid; place-items: center; width: 26px; height: 26px; font: 700 16px var(--serif); }
.rail-top { color: #e8a64a !important; }
.rail-badge { position: absolute; top: -2px; right: 13px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; color: #fff; background: var(--red); font-size: 9px; }
.mobile-bar { display: none; }

.scrim { position: fixed; z-index: 150; inset: 0; background: rgba(37,29,27,.38); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.scrim.is-visible { opacity: 1; }
.drawer { position: fixed; z-index: 160; top: 0; right: 0; width: min(430px, 100%); height: 100dvh; display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 45px rgba(45,33,28,.16); transform: translateX(105%); transition: transform .34s cubic-bezier(.22,.8,.3,1); }
.drawer.is-open { transform: none; }
.drawer-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 5px 0 0; color: var(--ink); font: 700 26px var(--serif); }
.close-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #ded5d0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 24px; font-weight: 300; }
.close-button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.drawer-body { flex: 1; overflow-y: auto; }
.cart-items { padding: 7px 28px 18px; }
.cart-item { display: grid; grid-template-columns: 82px 1fr; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 82px; height: 82px; object-fit: cover; border-radius: 6px; }
.cart-item-copy { min-width: 0; }
.cart-item-copy > button { display: block; width: 100%; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cart-item-copy > span { display: block; margin-top: 4px; color: var(--red); font: 700 15px Georgia, serif; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.quantity { display: flex; align-items: center; border: 1px solid #ded5d0; }
.quantity button { width: 28px; height: 25px; border: 0; background: #fff; cursor: pointer; }
.quantity span { width: 28px; text-align: center; font-size: 11px; }
.remove-item { border: 0; color: #9d918d; background: transparent; cursor: pointer; font-size: 11px; }
.remove-item:hover { color: var(--red); }
.empty-cart { display: grid; place-items: center; align-content: center; min-height: 400px; color: var(--muted); text-align: center; }
.empty-cart span { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid #d6cbc5; border-radius: 50%; font: 700 23px var(--serif); }
.empty-cart h3 { margin: 17px 0 5px; color: var(--ink); font: 700 20px var(--serif); }
.empty-cart p { margin: 0; font-size: 12px; }
.cart-footer { padding: 22px 28px 27px; border-top: 1px solid var(--line); background: #fcfaf8; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; }
.cart-total span { color: var(--muted); font-size: 13px; }
.cart-total strong { color: var(--red); font: 700 25px Georgia, serif; }
.cart-footer p { margin: 6px 0 16px; color: #a19792; font-size: 10px; }
.primary-button { width: 100%; height: 48px; border: 0; color: #fff; background: var(--red); cursor: pointer; font-weight: 700; letter-spacing: 1px; transition: background .2s; }
.primary-button:hover { background: var(--red-deep); }

.ai-drawer { inset: 0; width: 100%; max-width: none; height: 100dvh; --ai-content-width: min(1480px, 82vw); --reference-content-width: min(1040px, calc(100% - 68px)); background: linear-gradient(90deg, rgba(255,255,255,.34) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.34) 1px, transparent 1px), #f6f6f4; background-size: 32px 32px; box-shadow: none; transform: translateY(102%); display: flex; flex-direction: column; }
.ai-drawer.is-open { transform: none; }
.ai-header { position: relative; min-height: 76px; justify-content: center; padding: 0 28px; background: rgba(255,255,255,.96); box-shadow: none; }
.ai-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(155,122,101,.6), transparent); }
.reference-header-brand { position: absolute; left: 28px; display: flex; align-items: center; gap: 9px; color: #80695a; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.reference-header-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #bba08e; border-radius: 50%; color: var(--red); font: 700 11px var(--serif); letter-spacing: 0; }
.reference-header-center { display: grid; justify-items: center; gap: 4px; }
.reference-header-center strong { color: #3b342f; font: 700 16px var(--serif); letter-spacing: .04em; }
.reference-header-center small { color: #9d958f; font-size: 10px; letter-spacing: .08em; }
.reference-header-actions { position: absolute; right: 28px; display: flex; align-items: center; gap: 12px; }
.ai-header .close-button { position: static; width: 34px; height: 34px; }
.chat-clear-button { min-height: 34px; padding: 0 13px; border: 1px solid #d8ccc4; border-radius: 17px; color: #765e53; background: rgba(255,255,255,.9); cursor: pointer; font-size: 11px; transition: color .15s, border-color .15s, background .15s; }
.chat-clear-button:hover { color: #fff; border-color: var(--red); background: var(--red); }
.chat-clear-button.is-confirming { color: #fff; border-color: var(--red); background: var(--red); }
.chat-clear-button:disabled { color: #9f958f; border-color: #e0d8d3; background: #f3efec; cursor: wait; }
.ai-trust-note,.chat-progress { display: none !important; }
.ai-identity { display: flex; align-items: center; gap: 15px; }
.ai-orb { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: radial-gradient(circle at 35% 25%, #d7a85b, #9f2436 58%, #55111c); border-radius: 46% 54% 56% 44%; box-shadow: 0 7px 18px rgba(159,36,54,.25); font: 700 19px var(--serif); }
.ai-identity h2 { font-size: 26px; letter-spacing: .08em; }
.ai-identity small { display: block; margin-top: 4px; color: #8e837e; font-size: 12px; }
.ai-identity small i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #3ca56b; }
.ai-welcome { display: none; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0 34px; }
.ai-drawer.is-welcome .ai-welcome { display: block; }
.ai-drawer.is-welcome .ai-body { display: none; }
.ai-welcome-inner { width: var(--reference-content-width); margin: 0 auto; padding: 0; }
.ai-welcome-hero { position: relative; min-height: 286px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; overflow: hidden; padding: 40px 48px; border: 1px solid #ded3c9; border-radius: 4px 28px 4px 28px; background: linear-gradient(115deg, rgba(255,255,255,.82), rgba(255,255,255,.08) 60%), linear-gradient(135deg, #f3eee9 0%, #e7dbd0 58%, #cfb7a5 100%); box-shadow: 0 20px 48px rgba(85,65,54,.1); }
.ai-welcome-hero::before { content: ""; position: absolute; top: -108px; right: -84px; width: 360px; height: 360px; border: 1px solid rgba(116,23,39,.18); border-radius: 50%; }
.ai-welcome-hero::after { content: ""; position: absolute; right: 64px; bottom: -100px; width: 260px; height: 260px; border: 54px solid rgba(255,255,255,.22); border-radius: 50%; }
.ai-welcome-copy,.ai-welcome-showcase { position: relative; z-index: 1; }
.ai-welcome-copy { padding-right: 28px; }
.ai-welcome-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.ai-welcome-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.ai-welcome h1 { margin: 14px 0 12px; color: #3b302a; font: 700 clamp(29px, 3vw, 42px)/1.3 var(--serif); letter-spacing: .04em; }
.ai-welcome-copy > p { max-width: 540px; margin: 0; color: #6f6259; font-size: 14px; line-height: 1.8; }
.ai-welcome-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; color: #706259; font-size: 11px; }
.ai-welcome-trust span { display: inline-flex; align-items: center; gap: 6px; }
.ai-welcome-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.ai-welcome-showcase { height: 205px; display: grid; place-items: center; }
.ai-welcome-ring { position: absolute; width: 186px; height: 186px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.16), 0 0 0 48px rgba(116,23,39,.045); }
.ai-welcome-catalog { position: relative; width: 184px; min-height: 140px; padding: 22px; border: 1px solid rgba(255,255,255,.34); border-radius: 4px 22px 4px 22px; color: #fff; background: linear-gradient(145deg, #715449, #47362f); box-shadow: 0 18px 34px rgba(63,45,37,.24); transform: rotate(-3deg); }
.ai-welcome-catalog span,.ai-welcome-catalog small { display: block; color: rgba(255,255,255,.72); font-size: 10px; letter-spacing: .08em; }
.ai-welcome-catalog strong { display: block; margin: 8px 0 10px; font: 700 38px/1 var(--serif); }
.ai-welcome-chip { position: absolute; padding: 7px 10px; border: 1px solid rgba(126,95,77,.16); border-radius: 14px; color: #745d50; background: rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(87,65,53,.1); font-size: 10px; font-style: normal; font-weight: 700; }
.ai-welcome-chip.chip-one { top: 10px; right: 4px; }
.ai-welcome-chip.chip-two { bottom: 14px; left: 2px; }
.ai-welcome-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 26px 2px 0; padding-bottom: 12px; border-bottom: 1px solid #e3ded9; }
.ai-welcome-section-head span { color: #aa8d79; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.ai-welcome-section-head h2 { margin: 4px 0 0; color: #3d3733; font: 700 19px var(--serif); }
.ai-welcome-section-head p { margin: 0; color: #9a928c; font-size: 11px; }
.ai-body { flex: 1; min-height: 0; width: 100%; margin: 0; overflow-y: auto; padding: 30px 34px; }
.message { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.message.user { justify-content: flex-end; }
.message-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--red); border-radius: 50%; font-size: 12px; box-shadow: 0 5px 14px rgba(159,36,54,.16); }
.message:not(.user) > div { width: min(1180px, 100%); max-width: none; }
.message.user > div { max-width: min(900px, 76%); }
.message p { margin: 0; padding: 14px 17px; color: var(--ink); background: #fff; border: 1px solid #e8e0dc; border-radius: 2px 14px 14px 14px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.message.user p { color: #fff; background: var(--red); border-color: var(--red); border-radius: 14px 2px 14px 14px; }
.message small { display: block; margin: 7px 4px 0; color: #948984; font-size: 11px; }
.message.user small { text-align: right; }
.message.loading p::after { content: "···"; animation: typing 1s infinite; }
@keyframes typing { 50% { opacity: .3; } }
.suggested-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.suggested-picks .suggested-pick { position: relative; display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: stretch; min-height: 126px; gap: 15px; padding: 9px; overflow: hidden; border: 1px solid #ded4ce; border-radius: 8px; background: #fff; box-shadow: 0 9px 28px rgba(77,51,42,.055); cursor: pointer; text-align: left; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.suggested-picks .suggested-pick:hover { z-index: 1; transform: translateY(-2px); border-color: #cbaea4; box-shadow: 0 14px 34px rgba(77,51,42,.11); }
.suggested-pick-media { display: block; width: 124px; height: 108px; margin: 0; overflow: hidden; border-radius: 6px; background: #eee7e2; }
.suggested-picks img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.suggested-pick:hover img { transform: scale(1.035); }
.suggested-pick-copy { display: flex; min-width: 0; flex-direction: column; padding: 4px 8px 3px 0; color: var(--ink); font-family: var(--sans); }
.suggested-pick-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.suggested-picks .suggested-pick-heading strong { min-width: 0; color: var(--ink); font: 700 15px/1.45 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggested-pick-heading em { flex: 0 0 auto; color: var(--red); font: normal 700 16px/1.2 Georgia, serif; }
.suggested-pick-cta { display: flex; align-items: center; gap: 7px; margin: auto 0 0; color: #8d7368; font: 600 11px/1.3 var(--sans); }
.suggested-pick-cta i { color: var(--red); font-style: normal; transition: transform .2s ease; }
.suggested-pick:hover .suggested-pick-cta i { transform: translateX(3px); }
.quick-questions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; }
.quick-questions::before { content: "不用提问，直接选一个场景"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quick-questions button { position: relative; min-height: 68px; padding: 14px 42px 14px 16px; border: 1px solid #e3ddd7; border-radius: 8px; color: var(--taupe-dark); background: #fff; cursor: pointer; font-size: 13px; line-height: 1.55; text-align: left; transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s; }
.quick-questions button::after { content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 16px; }
.quick-questions button:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.quick-questions button:hover::after { color: #fff; }
.chat-form { width: 100%; margin: 0; padding: 12px max(18px, calc((100% - var(--reference-content-width)) / 2 + 18px)) 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
.chat-input-capsule { display: flex; align-items: flex-end; gap: 8px; width: 100%; padding: 8px 8px 8px 18px; border: 1.5px solid #bda18e; border-radius: 28px; background: #fff; box-shadow: 0 8px 26px rgba(65,50,42,.07); transition: border-color .2s, box-shadow .2s; }
.chat-input-capsule:focus-within { border-color: #76594a; box-shadow: 0 10px 28px rgba(82,61,51,.12); }
.chat-form textarea { flex: 1; min-height: 40px; max-height: 116px; resize: none; padding: 9px 2px 7px; border: 0; color: var(--ink); background: transparent; font-size: 15px; line-height: 1.55; }
.chat-form textarea:focus { outline: none; }
.chat-input-capsule > button { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--red), var(--red-deep)); box-shadow: 0 5px 14px rgba(116,23,39,.16); cursor: pointer; }
.chat-input-capsule > button:hover { box-shadow: 0 8px 18px rgba(116,23,39,.22); }
.chat-input-capsule > button:disabled { opacity: .5; cursor: wait; }
.chat-form > small { display: block; margin: 7px 18px 0; color: #aaa09b; font-size: 10px; letter-spacing: .04em; }

/* The shopping conversation below is intentionally scoped to the embedded AI chat contract. */
.reference-message { display: flex; width: min(1040px, 100%); margin: 0 auto 24px; animation: referenceMessageIn .3s ease-out; }
@keyframes referenceMessageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reference-message.user { flex-direction: row-reverse; }
.reference-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; margin: 0 11px; border-radius: 6px 12px 6px 12px; color: #fff; background: linear-gradient(145deg, var(--red), var(--red-deep)); box-shadow: 0 6px 14px rgba(116,23,39,.14); font-size: 14px; font-weight: 700; }
.reference-message.user .reference-avatar { background: #6b5a50; box-shadow: none; }
.reference-bubble { max-width: min(760px, calc(100% - 58px)); padding: 14px 20px; border: 1px solid #e5e0db; border-radius: 6px 16px 16px 16px; color: #403a36; background: #fff; box-shadow: 0 7px 24px rgba(59,47,40,.04); font-size: 14.5px; line-height: 1.65; overflow-wrap: anywhere; }
.reference-message.user .reference-bubble { border-color: transparent; border-radius: 16px 6px 16px 16px; color: #fff; background: linear-gradient(135deg, #685348, #4f3e36); box-shadow: 0 8px 20px rgba(74,56,47,.1); }
.reference-bubble.rich { width: 100%; max-width: min(940px, calc(100% - 58px)); }
.reference-products-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 10px; margin-top: 14px; }
.reference-product-card { position: relative; width: 100%; min-width: 0; min-height: 96px; display: flex; align-items: center; gap: 12px; overflow: hidden; padding: 10px; border: 1px solid #e5e0dc; border-radius: 8px; color: #403a36; background: #fff; box-shadow: none; cursor: pointer; text-align: left; transition: transform .22s cubic-bezier(.4,0,.2,1), border-color .22s, background .22s, box-shadow .22s; }
.reference-product-card:hover { transform: translateY(-1px); border-color: #b69a87; background: #fff; box-shadow: 0 9px 24px rgba(81,61,50,.08); }
.reference-product-card.clicked { border-color: #9b7a65; background: #f8f4f1; box-shadow: inset 3px 0 0 var(--red); }
.reference-product-card.loading { opacity: .72; pointer-events: none; cursor: wait; }
.reference-product-card.loading::after { content: "加载详情…"; position: absolute; inset: 0; display: grid; place-items: center; color: #76594a; background: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; }
.reference-product-image { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: hidden; border: 1px solid #ece7e2; border-radius: 6px; background: #f4f1ed; }
.reference-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.reference-product-card:hover .reference-product-image img { transform: scale(1.08); }
.reference-product-image > span { display: none; padding: 4px; color: var(--red); font-size: 10px; text-align: center; }
.reference-product-image img[hidden] + span { display: flex; }
.reference-product-info { flex: 1; min-width: 0; }
.reference-product-info > strong { display: -webkit-box; margin-bottom: 5px; overflow: hidden; color: #403a36; font-size: 13px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.reference-product-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.reference-product-meta small { padding: 2px 7px; border-radius: 3px; color: #776f69; background: #f1eeeb; font-size: 10.5px; font-weight: 500; }
.reference-product-meta em,.reference-product-detail h3 em { padding: 2px 7px; border-radius: 3px; color: #fff; background: #856756; font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .4px; }
.reference-history-reason { display: block; margin: 0 0 7px; color: #76594a; font-size: 10px; line-height: 1.45; }
.reference-history-reason strong,.reference-history-reason small { display: block; }
.reference-history-reason strong { font-weight: 700; }
.reference-history-reason small { max-width: 100%; overflow: hidden; color: #9a8b82; white-space: nowrap; text-overflow: ellipsis; }
.reference-product-price { display: flex; align-items: baseline; justify-content: space-between; }
.reference-product-price b { color: var(--red); font: 800 18px var(--sans); }
.reference-product-price b i { margin-right: 1px; font-size: 12px; font-style: normal; }
.reference-product-price small { color: #9c9691; font-size: 11px; }
.reference-product-hint { flex: 0 0 auto; opacity: 0; transform: translateX(-4px); color: #806653; font-size: 11px; font-weight: 700; transition: opacity .2s, transform .2s; }
.reference-product-card:hover .reference-product-hint { opacity: 1; transform: none; }
.reference-typing { display: flex; gap: 5px; padding: 6px 4px; }
.reference-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8c6d5b; animation: referenceTyping 1.4s infinite ease-in-out; }
.reference-typing span:nth-child(2) { animation-delay: .2s; }
.reference-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes referenceTyping { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.quick-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-questions::before { display: none; }
.quick-questions button { min-height: 72px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; padding: 11px 14px; color: #403a36; }
.quick-questions button::after { display: none; }
.quick-questions button > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #f2ece7; font-size: 19px; }
.quick-questions button > span:last-child { min-width: 0; }
.quick-questions button strong,.quick-questions button small { display: block; }
.quick-questions button strong { margin-bottom: 3px; color: #4a423d; font-size: 13px; }
.quick-questions button small { color: #a19892; font-size: 10px; font-weight: 400; }
.quick-questions button:hover { color: var(--taupe-dark); background: #fff; border-color: #b79a86; box-shadow: 0 10px 24px rgba(85,65,54,.08); }
.quick-questions button:hover strong { color: var(--red-deep); }
.ai-history-recommendations { margin-top: 26px; }
.ai-history-heading-actions { display: flex; align-items: center; gap: 18px; }
.ai-history-heading-actions button { padding: 7px 12px; border: 1px solid #cdb7a8; color: var(--red); background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; }
.ai-history-heading-actions button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.ai-history-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.ai-history-product-grid .suggested-pick { grid-template-columns: 92px minmax(0, 1fr); min-height: 112px; gap: 11px; }
.ai-history-product-grid .suggested-pick-media { width: 92px; height: 92px; }
.ai-history-product-grid .suggested-pick-copy { padding-top: 2px; }
.ai-history-product-grid .suggested-pick-heading strong { font-size: 13px; }
.ai-history-product-grid .suggested-pick-heading em { font-size: 14px; }
.ai-history-product-category { margin: 3px 0 0; color: #9a8b82; font-size: 9px; }

.reference-bundle-section { margin-top: 22px; padding: 24px; border: 1px solid #ded7d0; border-radius: 4px 18px 4px 18px; background: #fff; }
.reference-bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.reference-bundle-head > div > span { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.reference-bundle-head > div > span::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.reference-bundle-head h2 { margin: 6px 0 4px; color: #3f3833; font: 700 18px var(--serif); }
.reference-bundle-head p { margin: 0; color: #918983; font-size: 11px; }
.reference-bundle-head > small { padding: 7px 10px; border: 1px solid #e3d8ce; border-radius: 4px; color: #8a7363; background: #faf7f4; font-size: 10px; white-space: nowrap; }
.reference-bundle-buttons { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.reference-bundle-buttons button { padding: 10px 14px; border: 1px solid #af8c72; border-radius: 4px; color: #735747; background: #fff; cursor: pointer; font-size: 14px; }
.reference-bundle-buttons button:hover { transform: translateY(-2px); border-color: #705243; color: #fff; background: #76594a; box-shadow: 0 10px 20px rgba(91,66,53,.14); }

.reference-product-detail { padding: 20px; border: 1px solid #e0dad5; border-radius: 4px 16px 4px 16px; background: #fff; }
.reference-detail-main { display: flex; gap: 18px; align-items: flex-start; }
.reference-detail-main .reference-product-image.detail { width: 140px; height: 140px; }
.reference-detail-main > div { flex: 1; min-width: 0; }
.reference-detail-main header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.reference-detail-main h3 { margin: 0; color: #403a36; font: 700 18px var(--serif); }
.reference-detail-main header small { color: #9c9691; font-size: 12px; }
.reference-detail-main header > strong { color: var(--red); font-size: 22px; }
.reference-detail-main p { margin: 12px 0 0; color: #5f5550; }
.reference-score-bars { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; padding: 13px; border-top: 1px solid #e7e0da; background: #f7f4f1; }
.reference-score-bars > span { display: flex; align-items: center; gap: 5px; color: #7c6b62; font-size: 10px; }
.reference-score-bars i { width: 44px; height: 4px; overflow: hidden; border-radius: 3px; background: #e4ddd7; }
.reference-score-bars i b { display: block; height: 100%; background: linear-gradient(90deg,#8b6b59,var(--red)); }
.reference-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7e0da; }
.reference-detail-actions button,.reference-bundle-card footer button { padding: 8px 12px; border: 1px solid #d8cec6; border-radius: 4px; color: #6a5042; background: #fff; cursor: pointer; }
.reference-detail-actions button:hover,.reference-bundle-card footer button:hover { border-color: #9b7a65; background: #f8f3ef; }
.reference-image-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 5vw; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); cursor: pointer; }
.reference-image-modal[hidden] { display: none; }
.reference-image-modal img { max-width: 90%; max-height: 90%; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.reference-image-modal button { position: absolute; top: 24px; right: 28px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; font-size: 27px; line-height: 1; }
.reference-bundle-title { margin-bottom: 14px; }
.reference-bundle-title > strong { display: block; color: #403a36; font-size: 16px; }
.reference-bundle-title > small { color: #766b65; font-size: 12.5px; }
.reference-bundle-card { margin-top: 12px; padding: 14px; border: 1px solid #ddd3ca; border-radius: 4px 14px 4px 14px; background: #faf8f5; }
.reference-bundle-card header,.reference-bundle-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reference-bundle-card header small { padding: 2px 8px; border-radius: 10px; color: #806653; background: rgba(212,168,83,.15); }
.reference-bundle-card > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.reference-bundle-item { width: 175px; min-height: 74px; padding: 8px 10px; }
.reference-bundle-item .reference-product-image { width: 52px; height: 52px; }
.reference-bundle-item > span:last-child { display: grid; flex: 1; min-width: 0; }
.reference-bundle-item > span:last-child strong { height: 30px; overflow: hidden; font-size: 12px; }
.reference-bundle-item > span:last-child b { color: var(--red); font-size: 14px; }
.reference-bundle-item > span:last-child small { color: #806653; font-size: 10px; }
.reference-bundle-card footer { padding-top: 10px; border-top: 1px solid rgba(212,168,83,.25); }
.reference-bundle-card footer > strong { color: var(--red-deep); font-size: 18px; }

.inline-page { min-height: 68vh; padding: 34px 0 92px; background: linear-gradient(180deg, #fbfaf9 0%, #f5f1ee 100%); animation: pageReveal .38s ease both; }
@keyframes pageReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 34px; color: #9a8f8a; font-size: 12px; }
.page-breadcrumb button { padding: 0; border: 0; color: var(--taupe-dark); background: transparent; cursor: pointer; }
.page-breadcrumb button:hover { color: var(--red); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: 72px; align-items: center; padding: 34px 0 72px; }
.detail-visual { position: relative; overflow: hidden; aspect-ratio: 1; background: #efe9e4; }
.detail-visual::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.42); pointer-events: none; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-visual-index { position: absolute; z-index: 2; top: 26px; left: 28px; padding: 7px 10px; color: #fff; background: rgba(52,45,43,.58); backdrop-filter: blur(7px); font: 700 10px Georgia, serif; letter-spacing: 2px; }
.detail-copy { align-self: center; }
.detail-copy h1 { margin: 10px 0 21px; color: var(--ink); font: 700 36px/1.4 var(--serif); letter-spacing: 1px; }
.detail-price { color: var(--red); font: 700 34px Georgia, serif; }
.detail-intro { margin: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.detail-meta span { padding: 6px 10px; color: var(--taupe-dark); background: #eee6e0; font-size: 10px; }
.detail-add-button { width: min(310px, 100%); }
.detail-facts { margin: 30px 0 0; border-top: 1px solid #ddd3cd; }
.detail-facts div { display: grid; grid-template-columns: 66px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e7dfda; font-size: 11px; }
.detail-facts dt { color: var(--ink); font-weight: 700; }
.detail-facts dd { margin: 0; color: var(--muted); }
.detail-description { padding: 56px 0; border-top: 1px solid #dfd5cf; border-bottom: 1px solid #dfd5cf; }
.detail-section-heading h2 { margin: 7px 0 0; color: var(--ink); font: 700 30px var(--serif); }
.description-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.description-grid article { min-height: 185px; padding: 26px; background: #fff; border: 1px solid #e5dcd7; }
.description-grid article > span { color: var(--red); font: 700 11px Georgia, serif; letter-spacing: 2px; }
.description-grid h3 { margin: 20px 0 9px; color: var(--ink); font: 700 18px var(--serif); }
.description-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.related-section { padding-top: 66px; }
.related-section .section-heading { align-items: center; }
.related-product-grid { margin-top: 30px; }
.link-button { padding: 9px 0; border: 0; border-bottom: 1px solid var(--taupe); color: var(--taupe-dark); background: transparent; cursor: pointer; font-size: 12px; }
.link-button:hover { color: var(--red); border-color: var(--red); }

.account-page { padding-bottom: 110px; }
.inline-page-header { max-width: 670px; margin: 38px auto 40px; text-align: center; }
.inline-page-header h1 { margin: 9px 0 12px; color: var(--ink); font: 700 38px var(--serif); letter-spacing: 2px; }
.inline-page-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.checkout-context { width: fit-content; margin: 16px auto 0 !important; padding: 8px 13px; color: var(--red) !important; background: #f3e8e8; }
.customer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.account-customer-grid { gap: 24px; }
.customer-card { min-height: 560px; padding: 26px 25px 22px; overflow: hidden; border: 1px solid #e6dcd6; background: #fff; cursor: pointer; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.customer-card:hover { transform: translateY(-5px); border-color: var(--taupe); box-shadow: 0 15px 30px rgba(72,52,43,.09); }
.customer-card.is-active { border-color: rgba(159,36,54,.52); box-shadow: inset 0 3px 0 var(--red); }
.customer-card-heading { display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 15px; }
.customer-card-heading > span:last-child { min-width: 0; }
.customer-avatar { width: 58px; height: 58px; display: grid; place-items: center; color: #fff; border-radius: 50%; font: 700 23px var(--serif); }
.customer-card small { color: var(--red); font: 700 10px Georgia, serif; letter-spacing: 1px; }
.customer-card h3 { margin: 6px 0 3px; color: var(--ink); font: 700 19px var(--serif); }
.customer-name { color: var(--muted); font-size: 11px; }
.customer-card p { min-height: 48px; margin: 16px 0 13px; color: #746965; font-size: 12px; line-height: 1.7; }
.customer-profile-visual { position: relative; display: block; height: 246px; margin: 8px -5px 15px; overflow: hidden; border: 1px solid #eee4dc; border-radius: 90px 90px 10px 10px; background: #fcf8f1; isolation: isolate; }
.customer-profile-visual > img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .86; mix-blend-mode: multiply; }
.customer-profile-badge { position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 5px 12px; overflow: hidden; border-radius: 99px; color: #fff; background: rgba(54,112,106,.8); font-size: 10px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.customer-profile-cloud { position: absolute; inset: 43px 9px 50px; }
.customer-profile-tag { position: absolute; z-index: 1; color: #a76a45; line-height: 1; white-space: nowrap; transform: translate(-50%,-50%); }
.customer-profile-tag.weight-1 { font-size: 10px; font-weight: 500; }
.customer-profile-tag.weight-2 { font-size: 12px; font-weight: 600; }
.customer-profile-tag.weight-3 { font-size: 15px; font-weight: 700; }
.customer-profile-tag.weight-4 { font-size: 19px; font-weight: 800; }
.customer-profile-tag.weight-5 { font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.customer-profile-tag.tone-coral { color: #de624f; }
.customer-profile-tag.tone-teal { color: #3f7e78; }
.customer-profile-tag.tone-gold { color: #b58436; }
.customer-profile-tag.tone-plum { color: #745e9a; }
.customer-profile-tag.tone-blue { color: #47799e; }
.customer-profile-tag.tone-peach { color: #dc8a68; }
.customer-profile-tag.tone-orange { color: #c97742; }
.customer-profile-tag.tone-violet { color: #745e9a; }
.customer-profile-tag.slot-0 { left: 50%; top: 27%; }
.customer-profile-tag.slot-1 { left: 30%; top: 50%; }
.customer-profile-tag.slot-2 { left: 70%; top: 51%; }
.customer-profile-tag.slot-3 { left: 48%; top: 62%; }
.customer-profile-tag.slot-4 { left: 19%; top: 72%; }
.customer-profile-tag.slot-5 { left: 80%; top: 73%; }
.customer-profile-tag.slot-6 { left: 34%; top: 82%; }
.customer-profile-tag.slot-7 { left: 66%; top: 84%; }
.customer-profile-tag.slot-8 { left: 18%; top: 31%; }
.customer-profile-tag.slot-9 { left: 82%; top: 31%; }
.customer-profile-tag.slot-10 { left: 16%; top: 91%; }
.customer-profile-tag.slot-11 { left: 84%; top: 92%; }
.customer-profile-tag.slot-12 { left: 49%; top: 94%; }
.customer-profile-tag.slot-13 { left: 51%; top: 45%; }
.customer-profile-history { position: absolute; z-index: 2; left: 13px; bottom: 12px; color: #8f7b6e; font-size: 9px; font-weight: 600; }
.customer-profile-budget { position: absolute; z-index: 2; right: 13px; bottom: 10px; color: var(--red); font-size: 10px; font-weight: 700; }
.customer-profile-budget strong { font-size: 15px; }
.customer-preferences { display: block; padding-top: 12px; border-top: 1px solid #eee7e3; color: var(--taupe-dark); font-size: 10px; line-height: 1.5; }
.customer-card em { display: block; margin-top: 16px; color: var(--red); font-style: normal; font-size: 11px; font-weight: 700; }
.customer-logout { grid-column: 1 / -1; justify-self: center; margin-top: 8px; padding: 10px 18px; color: var(--red); border: 1px solid rgba(159,36,54,.35); }
.purchase-history-section { margin-top: 32px; padding: 30px; border: 1px solid #e1d5cf; background: #fff; }
.purchase-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #eee5e0; }
.purchase-history-heading h2 { margin: 5px 0 6px; color: var(--ink); font: 500 28px var(--serif); }
.purchase-history-heading p { margin: 0; color: #8f817a; font-size: 11px; }
.purchase-history-count { flex: 0 0 auto; padding: 8px 12px; color: var(--red); border: 1px solid #d8bbb2; background: #fff8f5; font-size: 11px; font-weight: 700; }
.purchase-history-content { min-height: 120px; padding-top: 18px; }
.purchase-history-empty,.purchase-history-loading { display: grid; min-height: 100px; place-items: center; margin: 0; color: #948780; font-size: 12px; }
.purchase-history-loading { grid-template-columns: 18px auto; justify-content: center; gap: 10px; }
.purchase-history-loading span { width: 16px; height: 16px; border: 2px solid #e3d7d1; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.purchase-history-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.purchase-history-summary span { color: #93847d; font-size: 10px; }
.purchase-history-summary strong { padding: 5px 9px; color: #75584d; border-radius: 99px; background: #f4ebe6; font-size: 10px; }
.purchase-history-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.purchase-history-order { min-width: 0; padding: 16px; border: 1px solid #e8ddd7; background: #fdfbf9; }
.purchase-history-order header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid #eee5e0; }
.purchase-history-order header > span { display: grid; gap: 3px; }
.purchase-history-order header > span:last-child { justify-items: end; }
.purchase-history-order header small { color: #9b8f89; font-size: 9px; }
.purchase-history-order header strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-history-order header em { color: #35705d; font-size: 9px; font-style: normal; }
.purchase-history-order header b { color: var(--red); font: 700 15px Georgia, serif; }
.purchase-history-order ul { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.purchase-history-order li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; }
.purchase-history-order li img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; background: #eee8e4; }
.purchase-history-order li span { min-width: 0; }
.purchase-history-order li strong,.purchase-history-order li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.purchase-history-order li strong { color: #5b4d47; font-size: 10px; }
.purchase-history-order li small { margin-top: 3px; color: #998c85; font-size: 9px; }
.purchase-history-more { display: block; min-width: 220px; height: 38px; margin: 20px auto 0; border: 1px solid #c8a89b; color: var(--red); background: #fff; cursor: pointer; font-size: 11px; }
.purchase-history-more:hover { color: #fff; background: var(--red); border-color: var(--red); }
.order-page { display: grid; place-items: center; min-height: 70vh; text-align: center; }
.order-page-shell { max-width: 620px; }
.order-check { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font-size: 31px; }
.order-page h1 { margin: 9px 0 13px; color: var(--ink); font: 700 38px var(--serif); }
.order-page p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 410px; margin: 30px auto 0; }
.secondary-button { width: 100%; height: 48px; border: 1px solid var(--red); color: var(--red); background: transparent; cursor: pointer; font-weight: 700; }
.secondary-button:hover { color: #fff; background: var(--red); }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 34px; max-width: calc(100% - 30px); padding: 12px 18px; color: #fff; background: rgba(49,38,35,.94); border-radius: 3px; box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; font-size: 12px; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1279px) {
  .header-main { grid-template-columns: 200px 1fr 190px; gap: 20px; }
  .nav-inner button { padding: 0 18px; font-size: 15px; }
  .nav-inner button::after { left: 18px; right: 18px; }
  .hero-wrap, .hero-layout { height: auto; }
  .hero-layout { width: 100%; grid-template-columns: 1fr; }
  .hero-slider { height: 420px; }
  .mall-panel { display: none; }
  .category-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  body { padding-bottom: 62px; }
  .utility-bar { display: none; }
  .header-main { height: auto; grid-template-columns: 1fr auto; padding: 18px 0 14px; }
  .brand-mark { width: 44px; height: 44px; font-size: 22px; }
  .brand-copy strong { font-size: 20px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin-top: 15px; }
  .search-hints { display: none; }
  .account-chip { width: auto; padding: 5px; }
  .account-copy { display: none; }
  .nav-bar { height: 54px; overflow-x: auto; }
  .nav-inner { width: max-content; min-width: 100%; }
  .nav-inner .nav-all { width: 140px; }
  .nav-inner button { padding: 0 17px; font-size: 14px; white-space: nowrap; }
  .hero-slider { height: 380px; }
  .hero-content { top: 64px; left: 36px; width: calc(100% - 72px); }
  .hero-content.align-right { right: 36px; }
  .hero-content h1, .hero-content h2 { font-size: 39px; }
  .section-heading.compact { align-items: flex-start; flex-direction: column; gap: 8px; }
  .story-grid { gap: 15px; }
  .story-card { height: 300px; }
  .product-panel { padding: 38px 28px 42px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 10px; }
  .detail-visual { width: min(560px, 100%); margin: 0 auto; }
  .detail-copy { width: min(680px, 100%); margin: 0 auto; }
  .description-grid { grid-template-columns: repeat(2, 1fr); }
  .description-grid article:last-child { grid-column: 1 / -1; }
  .floating-rail { display: none; }
  .mobile-bar { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; height: 62px; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e6ded9; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .mobile-bar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; font-size: 10px; }
  .mobile-bar button > span { color: var(--red); font: 700 17px var(--serif); }
  .mobile-bar b { position: absolute; top: 5px; right: calc(50% - 21px); min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 3px; color: #fff; background: var(--red); border-radius: 8px; font-size: 8px; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 0; }
  .promise-grid > div:nth-child(2) { border-right: 0; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-main { grid-template-columns: 1fr auto; }
  .brand-copy small { display: none; }
  .account-avatar { width: 38px; height: 38px; }
  .hero-slider { height: 390px; }
  .hero-content, .hero-content.align-right { top: auto; left: 24px; right: 24px; bottom: 53px; width: auto; text-align: left; }
  .hero-content h1, .hero-content h2 { font-size: 34px; }
  .hero-content p { max-width: 290px; }
  .hero-slide img { object-position: center; }
  .hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,18,16,.04) 20%, rgba(25,18,16,.7)); }
  .hero-shade { display: none; }
  .hero-content.dark-copy { color: #fff; }
  .hero-cta.dark { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); }
  .category-section { padding: 50px 0 58px; }
  .section-heading h2 { font-size: 29px; }
  .category-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .category-card { flex: 0 0 112px; scroll-snap-align: start; }
  .story-section { padding: 42px 0 55px; }
  .section-heading.centered .script-word { font-size: 60px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { height: 280px; }
  .product-section { padding: 30px 0; }
  .product-panel { width: 100%; padding: 32px 16px 38px; border-radius: 0; }
  .product-heading { align-items: flex-start; flex-direction: column; gap: 19px; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { flex: 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 12px; margin-top: 25px; }
  .product-info { padding-top: 11px; }
  .product-name { min-height: 40px; font-size: 12px; }
  .add-cart { right: 3px; width: 31px; height: 31px; }
  .promise-grid { grid-template-columns: 1fr; gap: 0; }
  .promise-grid > div { justify-content: flex-start; padding: 14px 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 25px; }
  .footer-note { text-align: left; }
  .inline-page { padding-top: 24px; padding-bottom: 74px; }
  .page-breadcrumb { margin-bottom: 20px; }
  .product-detail-layout { gap: 28px; padding: 12px 0 48px; }
  .detail-copy h1 { font-size: 27px; }
  .detail-price { font-size: 29px; }
  .detail-description { padding: 42px 0; }
  .description-grid { grid-template-columns: 1fr; }
  .description-grid article:last-child { grid-column: auto; }
  .related-section .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .inline-page-header { margin-top: 18px; }
  .inline-page-header h1 { font-size: 30px; }
  .customer-grid { grid-template-columns: 1fr; }
  .customer-card { min-height: 0; }
  .customer-profile-visual { height: 270px; }
  .order-page h1 { font-size: 31px; }
  .order-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 服务中心与增强客服 */
.service-page { min-height: 76vh; padding-bottom: 90px; background: #f5f1ed; }
.service-shell { padding-top: 26px; }
.service-hero { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; padding: 50px 54px; color: #fff; background: linear-gradient(118deg, #762334 0%, #9f2436 58%, #b98b70 140%); }
.service-hero h1 { margin: 9px 0 10px; font-family: var(--serif); font-size: clamp(34px, 4vw, 58px); font-weight: 500; letter-spacing: .06em; }
.service-hero p { max-width: 660px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.8; }
.service-hero .eyebrow { color: #f3d7c7; }
.service-identity { flex: 0 0 230px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.service-identity span,.service-identity small { display: block; color: rgba(255,255,255,.7); font-size: 11px; }
.service-identity strong { display: block; margin: 5px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.service-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 18px; background: #fff; border: 1px solid #e8dfda; border-top: 0; }
.service-tabs button { flex: 0 0 auto; padding: 20px 22px 17px; border: 0; border-bottom: 3px solid transparent; color: #746762; background: transparent; cursor: pointer; }
.service-tabs button.is-active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.service-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 280px; color: #766a64; }
.service-loading span { width: 22px; height: 22px; border: 2px solid #dbcac1; border-top-color: var(--red); border-radius: 50%; animation: spin .9s linear infinite; }
.service-content { padding: 34px 0; }
.service-overview-grid,.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-overview-grid article,.benefit-grid article,.service-list article,.merchant-check,.service-action-strip { border: 1px solid #e2d7d0; background: #fff; box-shadow: 0 12px 36px rgba(86,55,43,.05); }
.service-overview-grid article { min-height: 230px; padding: 28px; }
.service-overview-grid article > span,.benefit-grid article > span { color: var(--red); font-size: 12px; letter-spacing: .12em; }
.service-overview-grid article > strong { display: block; margin: 22px 0 4px; font-family: var(--serif); color: var(--ink); font-size: 50px; font-weight: 500; }
.service-overview-grid p,.benefit-grid p { min-height: 44px; color: #867a74; line-height: 1.7; }
.service-overview-grid button,.benefit-grid button,.service-list button,.service-empty button,.merchant-check > button,.service-action-strip > button { padding: 10px 16px; border: 1px solid #c8aaa0; color: var(--red); background: transparent; cursor: pointer; }
.service-overview-grid button:hover,.benefit-grid button:hover,.service-list button:hover,.service-empty button:hover,.merchant-check > button:hover,.service-action-strip > button:hover { color: #fff; background: var(--red); border-color: var(--red); }
.service-empty { max-width: 720px; margin: 24px auto 0; padding: 50px; text-align: center; border: 1px solid #e2d7d0; background: #fff; }
.service-empty > span { display: inline-grid; place-items: center; width: 54px; height: 54px; color: #fff; background: var(--red); border-radius: 50%; }
.service-empty h2 { margin: 18px 0 8px; font-family: var(--serif); font-weight: 500; }
.service-empty p { color: #857871; line-height: 1.8; }
.service-list { display: grid; gap: 14px; }
.service-list article { position: relative; padding: 24px 28px; }
.service-list h3 { margin: 7px 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.service-list p { margin: 4px 0 14px; color: #796d67; line-height: 1.7; }
.service-list article > div { display: flex; flex-wrap: wrap; gap: 8px; }
.service-list small,.service-status { color: #9b8c85; font-size: 11px; }
.service-status { text-transform: uppercase; letter-spacing: .08em; }
.service-muted { padding: 40px; color: #8b7d76; text-align: center; background: #fff; }
.benefit-grid article { padding: 26px; }
.benefit-grid h3 { margin: 16px 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.benefit-grid small { display: inline-block; margin: 0 0 18px; padding: 4px 8px; color: #785f53; background: #f4ebe6; }
.service-action-strip { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 20px; padding: 34px; }
.service-action-strip h2 { margin: 6px 0; font-family: var(--serif); font-weight: 500; }
.service-action-strip p { max-width: 700px; margin: 0; color: #81736c; line-height: 1.7; }
.merchant-check { max-width: 820px; margin: 0 auto; padding: 38px; }
.merchant-check h2 { margin: 8px 0; font-family: var(--serif); font-size: 32px; font-weight: 500; }
.merchant-check p { color: #7d706a; line-height: 1.7; }
.merchant-check > label { display: grid; gap: 8px; margin: 24px 0; color: #594e49; }
.merchant-check select { height: 44px; padding: 0 12px; border: 1px solid #d9ccc5; background: #fff; }
.merchant-check fieldset { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 22px; padding: 20px; border: 1px solid #e4d9d3; }
.merchant-check legend { padding: 0 8px; color: #7c6c64; }
.merchant-check #merchantResult { margin: 18px 0; padding: 16px; color: #6e5f58; background: #f7f1ed; }

.ai-trust-note { display: flex; align-items: center; gap: 13px; width: var(--ai-content-width); margin: 0 auto; padding: 10px 18px; border-bottom: 1px solid #e9dfda; background: #f4ece7; }
.ai-trust-mark { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--red); border-radius: 50%; font: 700 11px/1 sans-serif; }
.ai-trust-note p { flex: 1; margin: 0; }
.ai-trust-note strong,.ai-trust-note small { display: block; }
.ai-trust-note strong { color: #5d4d46; font-size: 13px; }
.ai-trust-note small { margin-top: 2px; color: #81736c; font-size: 11px; line-height: 1.45; }
.ai-trust-note button { border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 11px; }
.ai-persona-card { width: var(--ai-content-width); display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin: 12px auto 0; padding: 15px 18px; border: 1px solid #e2d5ce; background: linear-gradient(105deg, #fff 0%, #fbf4ee 72%, #f2e4db 100%); box-shadow: 0 8px 28px rgba(79,48,37,.045); }
.ai-persona-mark { display: grid; place-items: center; width: 52px; height: 52px; color: #fff; background: var(--red); border-radius: 50%; font: 700 19px var(--serif); }
.ai-persona-card small,.ai-persona-card strong { display: block; }
.ai-persona-card small { color: var(--red); font: 700 10px Georgia, serif; letter-spacing: .16em; }
.ai-persona-card strong { margin-top: 3px; color: var(--ink); font: 700 19px var(--serif); }
.ai-persona-card p { margin: 4px 0 0; color: #756862; font-size: 13px; line-height: 1.55; }
.ai-persona-card button { margin-top: 7px; padding: 0; border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.message-risk p { border-color: #e9c3b9; background: #fff5f1; }
.message-system p { color: #5c514c; border-style: dashed; background: #f6f2ef; }
.message-human .message-avatar { background: #2d6663; box-shadow: none; }
.message-knowledge p { border-left: 3px solid #a8876f; }
.message-business p { border-left: 3px solid #315f7a; background: #f4f8fa; }
.message-human p { border-left: 3px solid #2d6663; background: #f2f8f7; }
.message-risk { border-left: 3px solid #b34c3f; }
.message-system { opacity: .96; }
.message-type-label { display: inline-block; margin: 0 0 5px; padding: 3px 7px; color: #6f5d54; background: #eee5e0; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.message-meta { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.message-meta .message-type-label { margin-right: auto; }
.message-meta time { color: #968881; font-size: 10px; font-variant-numeric: tabular-nums; }
.message-business .message-type-label { color: #315f7a; background: #e7f0f4; }
.message-knowledge .message-type-label { color: #765846; background: #f1e7df; }
.message-risk .message-type-label { color: #963a30; background: #fbe6e1; }
.message-human .message-type-label { color: #255d5a; background: #dfeeed; }
.business-cards { display: grid; gap: 8px; margin: 8px 0; }
.business-card { padding: 12px; border: 1px solid #e0d4ce; background: #fff; }
.business-card > small,.business-card > strong,.business-card > span { display: block; }
.business-card > small { color: var(--red); font-size: 8px; text-transform: uppercase; }
.business-card > strong { margin: 4px 0; font-family: var(--serif); font-size: 14px; }
.business-card > span,.business-card p { color: #786a64; font-size: 10px; line-height: 1.55; }
.business-card p { margin: 4px 0; padding: 0; border: 0; background: transparent; }
.business-card > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.business-card button,.message-actions button { padding: 7px 9px; border: 1px solid #d8c8c0; color: var(--red); background: #fff; cursor: pointer; font-size: 9px; }
.message-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.attachment-actions { position: relative; display: flex; align-items: center; gap: 5px; padding: 7px 16px; border-top: 1px solid #ebe2dd; background: #fff; }
.attachment-actions button { padding: 6px 8px; border: 1px solid #ded1ca; color: #765e53; background: #fff; cursor: pointer; font-size: 9px; }
.attachment-actions button span { color: var(--red); }
.attachment-actions small { margin-left: auto; color: #9c8d86; font-size: 7px; }
.attachment-status { margin: 0 16px 7px; padding: 10px; border: 1px solid #decec6; background: #fff; }
.attachment-status > div { display: flex; justify-content: space-between; gap: 8px; }
.attachment-status p { margin: 6px 0; color: #80716b; font-size: 9px; }
.attachment-status button { border: 0; color: var(--red); background: transparent; cursor: pointer; }
.attachment-track { height: 3px; margin-top: 7px; background: #eee5e0; }
.attachment-track i { display: block; width: 0; height: 100%; background: var(--red); transition: width .2s ease; }

.chat-progress { padding: 9px 14px; border-bottom: 1px solid #e9dfda; background: #fffaf7; }
.chat-progress > div { display: flex; align-items: center; gap: 8px; color: #756760; font-size: 9px; }
.chat-progress > div span { flex: 1; }
.chat-progress time { color: #9a8b84; }
.chat-progress button { border: 0; color: var(--red); background: transparent; cursor: pointer; }
.chat-progress ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 7px 0 0; padding: 0; list-style: none; }
.chat-progress li { padding-top: 5px; color: #ad9d95; border-top: 2px solid #e8ddd7; text-align: center; font-size: 8px; }
.chat-progress li.is-active { color: var(--red); border-top-color: var(--red); }
.service-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto; gap: 10px; margin-bottom: 18px; padding: 18px; border: 1px solid #e1d6d0; background: #fff; }
.service-filters label,.aftersale-flow label,.case-supplement label,.agent-resolution label { display: grid; gap: 6px; color: #665851; font-size: 11px; }
.service-filters input,.service-filters select,.aftersale-flow input,.aftersale-flow select,.aftersale-flow textarea,.case-supplement input,.case-supplement textarea,.agent-resolution input,.agent-resolution textarea { min-height: 42px; padding: 9px 11px; border: 1px solid #d9cbc4; background: #fff; resize: vertical; }
.service-filters button,.service-detail-head button,.aftersale-flow button,.case-progress button,.agent-toolbar button,.agent-auth button,.agent-assist > button,.agent-resolution button { padding: 10px 14px; border: 1px solid #c9aaa0; color: var(--red); background: #fff; cursor: pointer; }
.service-filters button[type="submit"],.aftersale-flow .primary-button,.agent-resolution button:last-child { color: #fff; background: var(--red); border-color: var(--red); }
.service-detail-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 18px; padding: 24px; border: 1px solid #e0d4ce; background: #fff; }
.service-detail-head h2,.flow-heading h2,.case-progress h2 { margin: 6px 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.service-detail-head p,.flow-heading p,.case-progress p { color: #796c65; line-height: 1.7; }
.order-detail-grid,.case-progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-detail-grid > section,.case-progress-grid > section,.case-supplement { padding: 24px; border: 1px solid #e0d4ce; background: #fff; }
.order-detail-grid h3,.case-progress-grid h3,.case-supplement h3 { margin-top: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.order-detail-grid article { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid #eee5e0; }
.order-detail-grid article span,.package-card small { color: #887a73; font-size: 11px; }
.package-card ol { padding-left: 18px; color: #756861; font-size: 11px; line-height: 1.8; }
.service-warning { padding: 10px; color: #8f3f36 !important; background: #fff1ed; }
.tone-success { color: #28694c; }.tone-warning { color: #9b3b3b; }.tone-info { color: #315f7a; }.tone-muted { color: #8a817c; }
.aftersale-flow,.case-progress { padding: 30px; border: 1px solid #e0d4ce; background: #fff; }
.flow-heading { max-width: 780px; margin-bottom: 24px; }
.aftersale-flow form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eligibility-note { padding: 16px; border-left: 3px solid #b37660; background: #f8f1ed; }
.eligibility-note fieldset { display: grid; gap: 8px; margin-top: 12px; border: 1px solid #ddcec7; }
.eligibility-note label { display: flex; align-items: center; }
.eligibility-note input,.confirm-check input { min-height: 0; }
.confirm-check { display: flex !important; align-items: center; gap: 8px !important; padding: 12px; background: #f7f2ef; }
.case-progress > header { margin: 18px 0; }
.case-progress-grid { grid-template-columns: repeat(3, 1fr); }
.case-supplement { margin-top: 16px; }
.case-supplement > div:last-child,.agent-resolution > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.summary-grid { display: grid; gap: 8px; margin: 0; }
.summary-grid > div { display: grid; grid-template-columns: minmax(80px, .35fr) 1fr; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #eee5e0; }
.summary-grid dt { color: #9a8b84; font-size: 10px; }
.summary-grid dd { margin: 0; color: #5f524c; overflow-wrap: anywhere; }
.attachment-index,.case-timeline,.history-tasks { display: grid; gap: 8px; padding: 0; list-style: none; }
.attachment-index li,.case-timeline li,.history-tasks li { display: flex; justify-content: space-between; gap: 10px; padding: 9px; background: #f7f2ef; }
.attachment-index span,.case-timeline span,.history-tasks small { color: #8e8079; font-size: 10px; }
.merchant-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.merchant-check { max-width: none; margin: 0; }
.merchant-check fieldset label { align-items: flex-start; }
.merchant-check fieldset label span,.merchant-check fieldset small { display: block; }
.merchant-check fieldset small { margin-top: 3px; color: #988983; font-size: 9px; }
.merchant-status { padding: 30px; border: 1px solid #e0d4ce; background: #fff; }
.merchant-status h2 { margin-top: 0; font-family: var(--serif); font-weight: 500; }
.merchant-status article { padding: 18px; border: 1px solid #e6dcd7; }
.merchant-status article > span { color: var(--red); font-size: 10px; }

.agent-page { min-height: 80vh; padding-bottom: 90px; background: #efeae6; }
.agent-shell { padding-top: 26px; }
.agent-hero { display: grid; grid-template-columns: 1fr 360px; gap: 50px; padding: 42px; color: #fff; background: #342b29; }
.agent-hero h1 { margin: 8px 0; font-family: var(--serif); font-size: clamp(32px,4vw,50px); font-weight: 500; }
.agent-hero p { max-width: 760px; color: #cfc3be; line-height: 1.8; }
.agent-auth { display: grid; gap: 8px; align-content: center; padding: 20px; border: 1px solid #665751; }
.agent-auth label,.agent-auth small { color: #c9bcb6; font-size: 10px; }
.agent-auth input { min-height: 42px; padding: 9px; border: 1px solid #75655f; color: #fff; background: #27211f; }
.agent-auth button { color: #fff; background: #9f2436; border-color: #9f2436; }
.agent-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px 20px; border: 1px solid #ded1cb; border-top: 0; background: #fff; }
.agent-toolbar label { display: grid; gap: 5px; color: #776a64; font-size: 10px; }
.agent-toolbar select { min-width: 140px; height: 38px; padding: 0 8px; border: 1px solid #d8cbc4; background: #fff; }
.agent-layout { display: grid; grid-template-columns: 280px minmax(420px, 1fr) 320px; gap: 14px; margin-top: 16px; align-items: start; }
.agent-queue,.agent-workbench,.agent-assist { min-height: 500px; padding: 18px; border: 1px solid #ded2cc; background: #fff; }
.agent-section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.agent-section-title h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.agent-section-title span { color: #8e8079; font-size: 10px; }
.agent-case-list { display: grid; gap: 8px; }
.agent-case-card { display: grid; gap: 5px; width: 100%; padding: 14px; border: 1px solid #e2d7d1; color: #5f514b; background: #fff; text-align: left; cursor: pointer; }
.agent-case-card:hover,.agent-case-card.is-active { border-color: var(--red); background: #fff8f5; }
.agent-case-card > span { display: flex; justify-content: space-between; gap: 5px; color: var(--red); font-size: 9px; }
.agent-case-card p { margin: 0; color: #7c6f69; font-size: 10px; line-height: 1.5; }
.agent-case-card small,.agent-case-card em { color: #958780; font-size: 9px; font-style: normal; }
.agent-case-meta { display: grid; gap: 4px; padding: 14px; border-left: 3px solid var(--red); background: #f7f2ef; }
.agent-case-meta span,.agent-case-meta small { color: #8b7c75; font-size: 10px; }
.agent-case-detail > section { margin-top: 18px; }
.agent-case-detail h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.agent-transcript { max-height: 330px; overflow: auto; }
.agent-transcript article { padding: 10px 12px; border-bottom: 1px solid #eee5e0; }
.agent-transcript article span,.agent-transcript article small { color: #95867f; font-size: 9px; }
.agent-transcript article p { margin: 4px 0; color: #655852; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.agent-resolution { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid #decfc8; background: #fffaf7; }
.agent-assist textarea { width: 100%; padding: 10px; border: 1px solid #d9ccc5; resize: vertical; }
.agent-assist > button { width: 100%; margin-top: 8px; color: #fff; background: var(--red); border-color: var(--red); }
.agent-assist > button:disabled { opacity: .5; }
.agent-assist-result article,.agent-assist #agentAssistResult article { margin-top: 12px; padding: 14px; border: 1px solid #e2d6d0; }
.agent-assist #agentAssistResult p { color: #655852; font-size: 11px; line-height: 1.7; }
.agent-assist #agentAssistResult small,.agent-assist #agentAssistResult li { color: #8d7f78; font-size: 9px; }

.rule-card { margin: 0 0 22px; padding: 20px; border: 1px solid #e0d3cc; background: #fffaf7; }
.rule-card header { display: flex; justify-content: space-between; gap: 10px; }
.rule-card header span { color: var(--red); font-weight: 700; }
.rule-card header small { color: #91827a; }
.rule-card > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.rule-card article { padding: 14px; border: 1px solid #e6dad4; background: #fff; }
.rule-card h3 { margin: 0 0 8px; font-size: 13px; }
.rule-card ul { margin: 0; padding-left: 18px; color: #756861; font-size: 11px; line-height: 1.7; }
.rule-card > p { margin-bottom: 0; color: #8f5047; font-size: 11px; }
.benefit-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.benefit-detail-grid > section { padding: 26px; border: 1px solid #e1d5cf; background: #fff; }
.benefit-detail-grid h2 { margin: 8px 0 18px; font-family: var(--serif); font-weight: 500; }
.benefit-detail-grid h3 { font-family: var(--serif); font-weight: 500; }
.benefit-detail-grid p,.benefit-detail-grid li { color: #756861; font-size: 11px; line-height: 1.75; }
.benefit-balance { display: block; color: var(--red); font-family: var(--serif); font-size: 32px; }
.benefit-detail-grid article { margin-top: 18px; padding: 16px; background: #f7f2ef; }
.strong-auth-card strong { display: block; margin: 8px 0; color: #8f3f36; }
.strong-auth-card button { padding: 9px 12px; border: 1px solid var(--red); color: var(--red); background: #fff; cursor: pointer; }
.merchant-entry-card { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 18px; padding: 28px; color: #fff; background: #542f32; }
.merchant-entry-card h2 { margin: 6px 0; font-family: var(--serif); font-weight: 500; }
.merchant-entry-card p,.merchant-entry-card li { color: #ddcdca; font-size: 11px; line-height: 1.6; }
.merchant-entry-card button { flex: 0 0 auto; padding: 12px 18px; border: 1px solid #fff; color: #fff; background: transparent; cursor: pointer; }
.merchant-faq { margin-top: 18px; padding: 28px; border: 1px solid #e1d5cf; background: #fff; }
.merchant-faq h2,.merchant-application h2,.message-records h2 { font-family: var(--serif); font-weight: 500; }
.merchant-faq details { border-top: 1px solid #e9dfda; }
.merchant-faq summary { padding: 14px 0; color: #5f514b; cursor: pointer; }
.merchant-faq details p { margin-top: 0; color: #776a64; line-height: 1.7; }
.merchant-application { padding: 30px; border: 1px solid #e1d5cf; background: #fff; }
.merchant-application > header button { border: 0; color: var(--red); background: transparent; cursor: pointer; }
.merchant-application form { display: grid; gap: 16px; }
.merchant-application label { display: grid; gap: 6px; color: #665851; font-size: 11px; }
.merchant-application input,.merchant-application select,.merchant-application textarea { min-height: 42px; padding: 9px 11px; border: 1px solid #d9cbc4; background: #fff; }
.merchant-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; list-style: none; }
.merchant-steps li { padding: 12px; color: #6d605a; background: #f7f2ef; font-size: 10px; }
.merchant-steps span { display: block; margin-bottom: 6px; color: var(--red); font: 700 16px var(--serif); }
.application-materials { padding: 18px; border: 1px solid #e2d6d0; background: #fffaf7; }
.application-materials ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; list-style: none; }
.application-materials li { display: grid; gap: 3px; padding: 10px; background: #fff; }
.application-materials li span,.application-materials small { color: #887a73; font-size: 9px; }
.application-success { padding: 18px; border-left: 3px solid #2d7560; background: #edf7f2; }
.message-records > header { margin-bottom: 20px; padding: 24px; background: #fff; }
.message-records > header p { color: #796c65; }
.contact-paths { margin-top: 18px; padding: 24px; border: 1px solid #e1d5cf; background: #fff; }
.contact-paths article { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #eee5e0; }
.contact-paths span { color: #877970; font-size: 11px; }
.attachment-record { display: grid !important; gap: 7px !important; padding: 12px !important; background: #f7f2ef !important; }
.attachment-record > div { display: flex; justify-content: space-between; gap: 10px; }
.attachment-record > small { color: #756861; }
.attachment-record > ul { display: grid; gap: 3px; margin: 0; padding-left: 18px; color: #8a746a; font-size: 9px; }
.attachment-record > a { justify-self: start; padding: 6px 9px; color: var(--red); border: 1px solid #c9aaa0; text-decoration: none; }
.attachment-record.status-blocked { border-left: 3px solid #a84036; background: #fff1ed !important; }

.bootstrap-fallback { padding: 54px 0; color: #fff; background: linear-gradient(118deg,#542f32,#8e2737); }
.bootstrap-fallback-inner { display: grid; grid-template-columns: 1fr minmax(360px,.7fr); gap: 50px; align-items: center; }
.bootstrap-fallback h1 { margin: 8px 0; font-family: var(--serif); font-size: clamp(34px,5vw,58px); font-weight: 500; }
.bootstrap-fallback p { color: #eadbd7; line-height: 1.8; }
.hotline-link { display: inline-block; margin-top: 18px; padding: 12px 16px; color: #fff; border: 1px solid rgba(255,255,255,.55); text-decoration: none; }
.bootstrap-fallback form { display: grid; gap: 9px; padding: 24px; color: #5f514b; background: #fff; }
.bootstrap-fallback form label { font-size: 11px; }
.bootstrap-fallback textarea,.bootstrap-fallback input { padding: 10px; border: 1px solid #d9cbc4; resize: vertical; }
.bootstrap-fallback form button { padding: 11px; border: 0; color: #fff; background: var(--red); cursor: pointer; }
.bootstrap-fallback form button:disabled { opacity: .55; }
.bootstrap-fallback form p { margin: 0; color: #796961; font-size: 11px; }
.bootstrap-fallback form p a { color: var(--red); }
.requirements-panel { margin: 10px 0; padding: 12px; border: 1px solid #dfd1ca; background: #fffaf7; }
.requirements-panel > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #5f514b; cursor: pointer; font-size: 10px; font-weight: 700; list-style-position: inside; }
.requirements-panel > summary small { color: #907f77; font-size: 8px; font-weight: 400; }
.requirements-panel > header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.requirements-panel > header strong,.requirements-panel > header small { display: block; }
.requirements-panel > header strong { color: #5f514b; font-size: 10px; }
.requirements-panel > header small,.requirements-panel > header span { color: #907f77; font-size: 8px; }
.requirement-fields { display: grid; gap: 8px; margin-top: 10px; }
.requirement-fields article { display: grid; grid-template-columns: minmax(100px,.7fr) 1fr; gap: 6px 9px; padding: 9px; border: 1px solid #e7dcd6; background: #fff; }
.requirement-fields label { display: grid; align-content: center; }
.requirement-fields label span { color: #62544e; font-size: 9px; }
.requirement-fields label small { color: #998a83; font-size: 8px; }
.requirement-fields input { min-width: 0; padding: 7px 8px; border: 1px solid #d9ccc5; font-size: 9px; }
.requirement-fields article > div { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.requirement-fields button { padding: 5px 7px; border: 1px solid #d8c8c0; color: var(--red); background: #fff; cursor: pointer; font-size: 8px; }
.requirements-panel > p { margin: 8px 0 0 !important; padding: 0 !important; border: 0 !important; color: #93827a !important; background: transparent !important; font-size: 8px !important; }
.task-dispatch { margin: 10px 0; padding: 12px; border-left: 3px solid #7d5b4d; background: #f5ece7; }
.task-dispatch > strong { display: block; color: #604f47; font-size: 9px; }
.task-dispatch > div { display: grid; gap: 6px; margin-top: 8px; }
.task-dispatch button { display: flex; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid #d9c7be; color: #674f44; background: #fff; cursor: pointer; text-align: left; }
.task-dispatch button small { color: #96867e; font-size: 8px; }
.store-path-card { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 18px; padding: 25px; color: #fff; background: #3f5554; }
.store-path-card h2 { margin: 7px 0; font-family: var(--serif); font-weight: 500; }
.store-path-card p { margin: 0; color: #fff; font-size: 15px; }
.store-path-card small { color: #d2dfdc; }
.store-path-card button { flex: 0 0 auto; padding: 10px 13px; border: 1px solid #fff; color: #fff; background: transparent; cursor: pointer; }
.suggested-picks .preference-reason { position: relative; display: grid; gap: 3px; margin: 9px 0 0; padding: 0 0 0 11px; color: #6f5f57; border: 0; background: transparent; font-family: var(--sans); font-weight: 400; }
.suggested-picks .preference-reason::before { content: ""; position: absolute; top: 7px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #b44957; }
.suggested-picks .preference-reason strong { color: #685047; font-family: var(--sans); font-size: 12px; line-height: 1.45; white-space: normal; }
.suggested-picks .preference-reason small { margin: 0; color: #8e817a; font-size: 10px; line-height: 1.4; text-align: left; }

@media (max-width: 900px) {
  .service-overview-grid,.benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-hero { align-items: flex-start; }
  .service-filters { grid-template-columns: repeat(2, 1fr); }
  .case-progress-grid,.merchant-layout { grid-template-columns: 1fr; }
  .agent-hero { grid-template-columns: 1fr; }
  .agent-layout { grid-template-columns: 260px 1fr; }
  .agent-assist { grid-column: 1 / -1; min-height: auto; }
  .rule-card > div,.merchant-steps { grid-template-columns: repeat(2, 1fr); }
  .bootstrap-fallback-inner { grid-template-columns: 1fr; }
  .preference-insight-layout { grid-template-columns: 58px 1fr; }
  .preference-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
  .preference-correction { padding-left: 108px; }
}

@media (max-width: 620px) {
  .service-page { padding-bottom: 76px; }
  .service-shell { width: 100%; padding-top: 0; }
  .service-hero { display: block; padding: 34px 18px; }
  .service-hero h1 { font-size: 38px; }
  .service-identity { margin-top: 22px; }
  .service-tabs { padding: 0 8px; }
  .service-tabs button { padding: 15px 12px 12px; font-size: 11px; }
  .service-content { padding: 18px 14px; }
  .service-overview-grid,.benefit-grid { grid-template-columns: 1fr; }
  .service-overview-grid article { min-height: 180px; }
  .service-action-strip { display: block; padding: 24px; }
  .service-action-strip > button { margin-top: 16px; }
  .merchant-check { padding: 24px 18px; }
  .merchant-check fieldset { grid-template-columns: 1fr; }
  .service-filters,.form-grid,.order-detail-grid { grid-template-columns: 1fr; }
  .service-detail-head { display: block; }
  .case-progress,.aftersale-flow { padding: 20px 15px; }
  .agent-page { padding-bottom: 76px; }
  .agent-shell { width: 100%; padding-top: 0; }
  .agent-hero { padding: 28px 16px; }
  .agent-toolbar { align-items: stretch; }
  .agent-toolbar label,.agent-toolbar select,.agent-toolbar button { width: 100%; }
  .agent-layout { grid-template-columns: 1fr; padding: 0 12px; }
  .agent-queue,.agent-workbench,.agent-assist { min-height: auto; padding: 14px; }
  .agent-entry { display: none; }
  .rule-card > div,.benefit-detail-grid,.merchant-steps,.application-materials ul { grid-template-columns: 1fr; }
  .merchant-entry-card { display: block; }
  .merchant-entry-card button { margin-top: 14px; }
  .bootstrap-fallback { padding: 28px 0 76px; }
  .bootstrap-fallback-inner { gap: 22px; }
  .bootstrap-fallback form { padding: 18px; }
  .preference-insight { margin-top: 16px; }
  .preference-insight-loading,.preference-insight-layout { grid-template-columns: 44px 1fr; gap: 12px; padding: 19px 16px; }
  .preference-insight-loading > span,.preference-seal { width: 42px; height: 42px; font-size: 17px; }
  .preference-insight h3 { font-size: 18px; }
  .preference-actions { grid-column: 1 / -1; justify-content: stretch; }
  .preference-actions button { flex: 1 1 135px; }
  .preference-correction { padding: 17px 16px 20px; }
  .preference-basis li { grid-template-columns: 1fr; }
  .purchase-history-section { margin-top: 22px; padding: 20px 15px; }
  .purchase-history-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .purchase-history-orders { grid-template-columns: 1fr; }
  .detail-preference-reason { margin: 14px 0; }
  .quick-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requirement-fields article { grid-template-columns: 1fr; }
  .store-path-card { display: block; }
  .store-path-card button { margin-top: 14px; }
  .ai-trust-note { padding: 9px 12px; }
  .ai-trust-note button { display: none; }
  .attachment-actions small { display: none; }
  .ai-trust-note { width: 100%; }
}

@media (max-width: 620px) {
  .ai-drawer { --ai-content-width: calc(100% - 22px); --reference-content-width: calc(100% - 22px); }
  .ai-header { min-height: 82px; padding: 13px 16px; }
  .ai-orb { width: 44px; height: 44px; }
  .ai-identity h2 { font-size: 20px; }
  .ai-trust-note { padding-left: 15px; padding-right: 15px; }
  .ai-welcome { padding: 12px 0 18px; }
  .ai-welcome-inner { width: var(--ai-content-width); padding: 0; }
  .ai-welcome-hero { min-height: 0; grid-template-columns: 1fr; padding: 26px 22px; border-radius: 4px 22px 4px 22px; }
  .ai-welcome-copy { padding-right: 0; }
  .ai-welcome h1 { font-size: 28px; }
  .ai-welcome-showcase { display: none; }
  .ai-welcome-section-head { align-items: flex-start; margin-top: 20px; }
  .ai-welcome-section-head p { display: none; }
  .ai-persona-card,.ai-body { width: var(--ai-content-width); }
  .ai-persona-card { grid-template-columns: 40px 1fr; padding: 12px; }
  .ai-persona-mark { width: 38px; height: 38px; font-size: 15px; }
  .ai-persona-card p { line-height: 1.55; }
  .ai-body { padding-top: 18px; }
  .message > div { max-width: 88%; }
  .message:not(.user) > div { width: 100%; }
  .message p { padding: 12px 13px; font-size: 14px; }
  .message-avatar { width: 32px; height: 32px; }
  .suggested-picks { grid-template-columns: 1fr; gap: 9px; }
  .suggested-picks .suggested-pick { grid-template-columns: 88px minmax(0, 1fr); min-height: 100px; gap: 11px; padding: 7px; }
  .suggested-pick-media { width: 88px; height: 86px; }
  .suggested-picks .suggested-pick-heading strong { font-size: 13px; }
  .suggested-pick-heading em { font-size: 14px; }
  .suggested-picks .preference-reason strong { font-size: 11px; }
  .suggested-picks .preference-reason small,.suggested-pick-cta { font-size: 9px; }
  .quick-questions { grid-template-columns: 1fr 1fr; margin-top: 10px; padding: 0; }
  .ai-history-heading-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
  .ai-history-product-grid { grid-template-columns: 1fr; }
  .quick-questions button { min-height: 58px; padding: 10px 32px 10px 11px; font-size: 12px; }
  .chat-form { padding: 10px 11px 14px; }
  .chat-form > small { margin-left: 13px; }
}

@media (max-width: 860px) {
  .reference-products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ai-header { min-height: 64px; padding: 0 14px; }
  .reference-header-brand { display: none; }
  .reference-header-center strong { font-size: 14px; }
  .reference-header-center small { font-size: 8px; }
  .reference-header-actions { right: 14px; gap: 7px; }
  .ai-header .close-button { width: 32px; height: 32px; }
  .chat-clear-button { min-height: 32px; padding: 0 10px; font-size: 0; }
  .chat-clear-button::before { content: "清除"; font-size: 10px; }
  .chat-clear-button[aria-busy="true"]::before { content: "清除中…"; }
  .ai-body { width: 100%; padding: 18px 14px; }
  .reference-avatar { width: 32px; height: 32px; margin: 0 7px; }
  .reference-bubble,.reference-bubble.rich { max-width: calc(100% - 46px); padding: 12px 13px; }
  .reference-bundle-section { padding: 18px 14px; }
  .reference-bundle-head { align-items: flex-start; }
  .reference-bundle-head > small { display: none; }
  .reference-bundle-buttons { grid-template-columns: repeat(3, 1fr); }
  .reference-detail-main { display: block; }
  .reference-detail-main .reference-product-image.detail { width: 96px; height: 96px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-welcome,.message,.suggested-pick,.quick-questions button,.chat-input-capsule { animation: none; transition: none; }
}
