/* ---- 本地字体（无外部依赖，已按站内用字子集化） ---- */
@font-face { font-family: 'Noto Sans SC'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/notosanssc-400.woff') format('woff'); }
@font-face { font-family: 'Noto Sans SC'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/notosanssc-500.woff') format('woff'); }
@font-face { font-family: 'Noto Sans SC'; font-weight: 600; font-style: normal; font-display: swap; src: url('assets/fonts/notosanssc-500.woff') format('woff'); }
@font-face { font-family: 'Noto Sans SC'; font-weight: 700; font-style: normal; font-display: swap; src: url('assets/fonts/notosanssc-700.woff') format('woff'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/lora-400.woff') format('woff'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: italic; font-display: swap; src: url('assets/fonts/lora-400-italic.woff') format('woff'); }

:root {
  color-scheme: dark;
  --ink: #f2ecdf;
  --muted: #9f9a91;
  --soft: #6e6961;
  --line: rgba(242, 236, 223, 0.14);
  --panel: #1d1d1b;
  --panel-strong: #242421;
  --bg: #141413;
  --gold: #cb8e4b;
  --gold-light: #e3ad68;
  --sage: #92a688;
  --serif: "Lora", "DM Serif Display", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 14px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { width: min(1440px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 5.4vw; display: flex; flex-direction: column; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(203, 142, 75, .75); color: var(--gold-light); border-radius: 50%; font-size: 21px; transform: rotate(-22deg); }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; font-weight: 600; }
.brand-copy small { color: var(--soft); font-family: var(--serif); font-size: 12px; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.search-box { width: min(330px, 34vw); height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); transition: border-color .2s, background .2s; }
.search-box:focus-within { border-color: rgba(203, 142, 75, .75); background: rgba(203, 142, 75, .06); }
.search-box span, .dialog-search span { font-size: 22px; line-height: 1; color: var(--gold); transform: rotate(-15deg); }
.search-box input, .dialog-search input { min-width: 0; flex: 1; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-box input::placeholder, .dialog-search input::placeholder { color: #77736c; }
kbd { color: #77736c; font-size: 11px; border: 1px solid var(--line); padding: 2px 5px; }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; font-size: 22px; line-height: 1; text-decoration: none; transition: background .2s, border-color .2s; }
.icon-button:hover { background: rgba(203, 142, 75, .1); border-color: var(--gold); }
.icon-button.is-current { border-color: rgba(203,142,75,.65); background: rgba(203,142,75,.08); }
main { flex: 1; }
.intro-section { padding: 79px 0 58px; max-width: 760px; }
.eyebrow, .step-label, .dock-kicker { color: var(--gold-light); font-size: 10px; letter-spacing: .2em; font-weight: 600; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 24px; height: 1px; background: var(--gold); }
h1, h2, p { margin: 0; }
h1 { margin-top: 15px; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
h1 em { color: var(--gold-light); font-family: var(--serif); font-style: italic; font-weight: 400; }
.intro-section p { margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.workspace { padding-bottom: 46px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-top: 7px; font-size: 20px; font-weight: 500; letter-spacing: .01em; }
.selection-count { color: var(--muted); font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 15px; }
.category-card { position: relative; display: flex; flex-direction: column; min-height: 170px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; transition: border-color .22s, transform .22s, background .22s; }
.category-card:hover { border-color: rgba(203, 142, 75, .68); transform: translateY(-3px); }
.category-card.is-active { border-color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); background: var(--panel-strong); }
.category-image { height: 98px; display: block; opacity: .76; background-size: cover; background-position: center; mix-blend-mode: screen; }
.base-image { background-image: linear-gradient(90deg, rgba(30,28,23,.42), rgba(30,28,23,.04)), url("assets/covers/base.svg"); }
.liqueur-image { background-image: linear-gradient(90deg, rgba(30,28,23,.42), rgba(30,28,23,.04)), url("assets/covers/liqueur.svg"); }
.wine-image { background-image: linear-gradient(90deg, rgba(30,28,23,.45), rgba(30,28,23,.06)), url("assets/covers/wine.svg"); }
.beer-image { background-image: linear-gradient(90deg, rgba(30,28,23,.42), rgba(30,28,23,.04)), url("assets/covers/beer.svg"); }
.chinese-image { background-image: linear-gradient(90deg, rgba(30,28,23,.42), rgba(30,28,23,.04)), url("assets/covers/chinese.svg"); }
.mixer-image { background-image: linear-gradient(90deg, rgba(30,28,23,.42), rgba(30,28,23,.04)), url("assets/covers/beverages-banner.svg"); }
.category-content { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px 14px; }
.category-content strong { font-size: 14px; font-weight: 500; }
.category-content small { color: var(--soft); font-family: var(--serif); font-size: 11px; }
.category-arrow { position: absolute; top: 109px; right: 14px; color: var(--gold-light); font-size: 18px; opacity: .6; }
.selection-dock { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); background: rgba(203, 142, 75, .055); }
.dock-copy { display: flex; flex-direction: column; gap: 5px; }
.dock-copy strong { font-size: 16px; font-weight: 500; }
.dock-copy > span:last-child { color: var(--muted); font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; padding: 0 20px; border: 1px solid var(--gold); background: var(--gold); color: #211a12; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.primary-button:hover { background: var(--gold-light); }
.site-footer { display: flex; justify-content: space-between; padding: 25px 0 28px; color: var(--soft); font-size: 11px; letter-spacing: .04em; }
.search-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; color: var(--ink); border: 1px solid rgba(203,142,75,.6); background: #20201d; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.search-dialog::backdrop { background: rgba(0,0,0,.7); }
.search-dialog-inner { position: relative; display: flex; flex-direction: column; padding: 36px; }
.dialog-close { position: absolute; top: 16px; right: 16px; border: 0; color: var(--muted); background: transparent; font-size: 24px; cursor: pointer; }
.search-dialog h2 { margin-top: 14px; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.search-dialog p { margin-top: 8px; color: var(--muted); line-height: 1.7; }
.dialog-search { display: flex; align-items: center; gap: 10px; margin-top: 27px; padding: 0 12px; height: 48px; border: 1px solid var(--line); }
.dialog-submit { margin-top: 12px; }
@media (max-width: 820px) {
  .app-shell { padding: 0 20px; }
  .site-header { height: 76px; }
  .header-actions { gap: 9px; }
  .search-box { width: 42px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-box input, .search-box kbd { display: none; }
  .intro-section { padding: 58px 0 45px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 155px; }
  .category-image { height: 84px; }
  .category-arrow { top: 95px; }
  .selection-dock { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: 41px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 128px; display: grid; grid-template-columns: 118px 1fr; }
  .category-image { height: 100%; }
  .category-content { justify-content: center; padding: 15px 17px; }
  .category-arrow { top: 50%; right: 17px; transform: translateY(-50%); }
  .site-footer { flex-direction: column; gap: 7px; }
}

/* Material selection */
.materials-main { padding-top: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 11px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb strong { color: var(--gold-light); font-weight: 500; }
.materials-intro { min-height: 220px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.materials-intro > div:first-child { display: flex; flex-direction: column; justify-content: center; padding: 32px 5vw 32px 0; }
.materials-intro h1 { margin-top: 9px; font-size: clamp(34px, 4.2vw, 56px); }
.materials-intro p { margin-top: 14px; color: var(--muted); line-height: 1.7; }
.materials-photo { min-height: 220px; background-image: linear-gradient(90deg, var(--bg), rgba(20,20,19,.05)), url("assets/covers/materials-banner.svg"); background-size: cover; background-position: center; }
.materials-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 0; margin-top: 26px; border: 1px solid var(--line); background: var(--panel); }
.category-sidebar { padding: 22px 14px; border-right: 1px solid var(--line); }
.sidebar-title { padding: 0 10px 12px; color: var(--soft); font-size: 10px; letter-spacing: .12em; }
.sidebar-category { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.sidebar-category:hover { color: var(--ink); background: rgba(255,255,255,.025); }
.sidebar-category.is-active { color: var(--ink); border-left-color: var(--gold); background: rgba(203,142,75,.075); }
.sidebar-category small { color: var(--soft); }
.back-link { display: flex; align-items: center; gap: 7px; margin: 22px 10px 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--soft); font-size: 11px; text-decoration: none; }
.back-link:hover { color: var(--gold-light); }
.ingredient-panel { min-width: 0; padding: 24px; }
.ingredient-panel-heading, .summary-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.panel-kicker { color: var(--gold-light); font-size: 9px; letter-spacing: .17em; }
.ingredient-panel-heading h2, .summary-heading h2 { margin-top: 5px; font-size: 18px; font-weight: 500; }
.ingredient-search { width: min(220px, 42%); height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); color: var(--gold); }
.ingredient-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.ingredient-search input::placeholder { color: var(--soft); }
.ingredient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 18px; }
.ingredient-item { position: relative; min-height: 72px; display: grid; grid-template-columns: 38px minmax(0,1fr) 20px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.012); cursor: pointer; transition: border-color .18s, background .18s; }
.ingredient-item:hover { border-color: rgba(203,142,75,.55); }
.ingredient-item.is-selected { border-color: var(--gold); background: rgba(203,142,75,.075); }
.ingredient-symbol { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(203,142,75,.28); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 16px; }
.ingredient-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.ingredient-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.ingredient-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); font-family: var(--serif); font-size: 10px; }
.ingredient-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line); color: transparent; font-size: 11px; }
.ingredient-item.is-selected .ingredient-check { border-color: var(--gold); background: var(--gold); color: #211a12; }
.empty-state { padding: 34px 0; color: var(--soft); text-align: center; }
.selection-summary { display: flex; min-width: 0; flex-direction: column; padding: 24px 18px; border-left: 1px solid var(--line); background: #191917; }
.summary-heading strong { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(203,142,75,.45); color: var(--gold-light); font-family: var(--serif); font-size: 17px; font-weight: 400; }
.selected-list { flex: 1; min-height: 230px; max-height: 340px; overflow: auto; padding: 12px 0; }
.selected-empty { padding: 24px 0; color: var(--soft); font-size: 12px; text-align: center; }
.selected-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid rgba(242,236,223,.07); font-size: 12px; }
.selected-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-ingredient { border: 0; background: transparent; color: var(--soft); cursor: pointer; font-size: 17px; }
.remove-ingredient:hover { color: var(--gold-light); }
.summary-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.clear-button { padding: 0 0 12px; border: 0; background: transparent; color: var(--soft); font-size: 11px; cursor: pointer; }
.clear-button:hover { color: var(--ink); }
.recommendation-button { width: 100%; }
.recommendation-button:disabled { border-color: #4b4740; background: #35332f; color: #77736c; cursor: not-allowed; }
.summary-footer p { margin-top: 9px; color: var(--soft); font-size: 10px; text-align: center; }
@media (max-width: 1050px) {
  .materials-workspace { grid-template-columns: 175px minmax(0, 1fr); }
  .selection-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); border-left: 0; }
  .selected-list { min-height: 80px; max-height: 150px; }
  .summary-footer { align-self: end; }
}
@media (max-width: 720px) {
  .materials-intro { grid-template-columns: 1fr; }
  .materials-intro > div:first-child { padding-right: 0; }
  .materials-photo { min-height: 130px; }
  .materials-workspace { display: block; }
  .category-sidebar { display: flex; gap: 6px; overflow-x: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-title, .back-link { display: none; }
  .sidebar-category { width: auto; min-width: max-content; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); }
  .sidebar-category.is-active { border-color: var(--gold); }
  .sidebar-category small { display: none; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .ingredient-panel { padding: 19px 14px; }
  .ingredient-panel-heading { align-items: flex-start; flex-direction: column; }
  .ingredient-search { width: 100%; }
  .selection-summary { display: flex; padding: 20px 14px; }
}

.beverages-photo { min-height: 220px; background-image: linear-gradient(90deg, var(--bg), rgba(20,20,19,.05)), url("assets/covers/beverages-banner.svg"); background-size: cover; background-position: center; }
.assumed-ice { min-height: 60px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 17px; padding: 10px 12px; border: 1px solid rgba(146,166,136,.36); background: rgba(146,166,136,.06); }
.assumed-ice > span:first-child { color: #b6c8ad; font-size: 18px; }
.assumed-ice > div { display: flex; flex-direction: column; gap: 3px; }
.assumed-ice strong { font-size: 12px; font-weight: 500; }
.assumed-ice small, .assumed-ice > span:last-child { color: var(--soft); font-size: 9px; }
.assumed-ice > span:last-child { padding: 4px 7px; border: 1px solid rgba(146,166,136,.3); color: #b6c8ad; }
.assumed-selected small { color: #b6c8ad; font-size: 9px; }
@media (max-width: 720px) {
  .beverages-photo { min-height: 130px; }
}

/* Recommendation results */
.results-main { padding-top: 28px; }
.results-intro { min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.results-intro h1 { margin-top: 10px; font-size: clamp(38px, 4.7vw, 64px); }
.results-intro p { margin-top: 16px; color: var(--muted); line-height: 1.7; }
.edit-bar-link { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap; }
.edit-bar-link:hover { border-color: var(--gold); color: var(--gold-light); }
.edit-bar-link > span:first-child { color: var(--gold); font-size: 19px; }
.filter-bar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 15px 18px; margin-top: 22px; border: 1px solid var(--line); background: var(--panel); }
.taste-filter, .abv-filter { display: flex; align-items: center; gap: 10px; }
.filter-label { margin-right: 4px; color: var(--soft); font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
.taste-options { display: flex; align-items: center; gap: 5px; }
.filter-option { height: 34px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.filter-option:hover { color: var(--ink); }
.filter-option.is-active { border-color: var(--gold); background: rgba(203,142,75,.09); color: var(--gold-light); }
.abv-filter label { width: 65px; height: 36px; display: flex; align-items: center; padding: 0 8px; border: 1px solid var(--line); }
.abv-filter input { width: 35px; border: 0; outline: 0; background: transparent; color: var(--ink); text-align: right; }
.abv-filter input::-webkit-inner-spin-button { appearance: none; }
.abv-filter label span, .range-divider { color: var(--soft); font-size: 11px; }
.result-section { padding: 48px 0 12px; }
.result-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.result-section-heading > div { display: flex; align-items: flex-start; gap: 11px; }
.status-dot { width: 7px; height: 7px; display: block; margin-top: 7px; border-radius: 50%; }
.status-dot.available { background: var(--sage); box-shadow: 0 0 0 4px rgba(146,166,136,.1); }
.status-dot.missing { background: #bd765e; box-shadow: 0 0 0 4px rgba(189,118,94,.1); }
.result-section-heading h2 { font-size: 19px; font-weight: 500; }
.result-section-heading p { margin-top: 4px; color: var(--soft); font-size: 11px; }
.result-count { color: var(--muted); font-family: var(--serif); font-size: 13px; }
.cocktail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 18px; }
.cocktail-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .2s, border-color .2s; }
.cocktail-card:hover { transform: translateY(-3px); border-color: rgba(203,142,75,.52); }
.cocktail-photo-link { position: relative; display: block; height: 190px; overflow: hidden; color: inherit; text-decoration: none; background: #292824; }
.cocktail-photo-link::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 55%, rgba(10,10,9,.5)); pointer-events: none; }
.cocktail-photo-link img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.83) contrast(1.04); transition: transform .35s; }
.cocktail-card:hover img { transform: scale(1.025); }
.availability-badge, .abv-badge { position: absolute; z-index: 1; top: 12px; min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; font-size: 10px; backdrop-filter: blur(8px); }
.availability-badge { left: 12px; }
.available-badge { background: rgba(29,42,30,.86); color: #b6c8ad; border: 1px solid rgba(146,166,136,.5); }
.missing-badge { background: rgba(55,31,25,.88); color: #dc9d87; border: 1px solid rgba(189,118,94,.52); }
.abv-badge { right: 12px; background: rgba(16,16,15,.76); border: 1px solid rgba(242,236,223,.2); color: var(--ink); font-family: var(--serif); }
.online-source-badge { position: absolute; z-index: 1; left: 12px; bottom: 12px; min-height: 25px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid rgba(203,142,75,.45); background: rgba(24,22,18,.82); color: var(--gold-light); font-size: 9px; }
.cocktail-card-body { padding: 16px; }
.cocktail-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cocktail-card-title h3 { margin: 0; font-size: 16px; font-weight: 500; }
.cocktail-card-title > div > span { display: block; margin-top: 4px; color: var(--soft); font-family: var(--serif); font-size: 11px; }
.favorite-button { flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; font-size: 18px; }
.favorite-button.is-favorite { border-color: rgba(203,142,75,.6); background: rgba(203,142,75,.09); }
.taste-tags { min-height: 24px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.taste-tags span { padding: 4px 7px; border: 1px solid rgba(242,236,223,.1); color: var(--muted); font-size: 9px; }
.card-footer { display: grid; grid-template-columns: auto minmax(0,1fr) 23px; align-items: center; gap: 8px; min-height: 37px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(242,236,223,.08); }
.match-percent { color: var(--gold-light); font-family: var(--serif); font-size: 11px; white-space: nowrap; }
.card-note { overflow: hidden; color: var(--soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-footer a { color: var(--gold-light); font-size: 16px; text-align: right; text-decoration: none; }
.result-empty { margin-top: 18px; padding: 28px; border: 1px dashed var(--line); color: var(--soft); text-align: center; }
@media (max-width: 960px) {
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .taste-options { flex-wrap: wrap; }
  .cocktail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .results-intro { align-items: flex-start; flex-direction: column; justify-content: center; padding: 35px 0; }
  .filter-bar { padding: 14px; }
  .taste-filter { align-items: flex-start; flex-direction: column; }
  .cocktail-grid { grid-template-columns: 1fr; }
  .cocktail-photo-link { height: 210px; }
  .abv-filter { width: 100%; }
  .result-section { padding-top: 36px; }
}

/* Cocktail detail and search */
.detail-nav { height: 62px; display: flex; align-items: center; justify-content: space-between; color: var(--soft); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; }
.detail-nav a { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.detail-nav a:hover { color: var(--gold-light); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 620px; border-bottom: 1px solid var(--line); }
.detail-photo-wrap { position: relative; min-height: 620px; overflow: hidden; background: #262521; }
.detail-photo-wrap::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 70%, rgba(10,10,9,.68)); pointer-events: none; }
.detail-photo-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.detail-photo-caption { position: absolute; z-index: 1; left: 22px; bottom: 18px; color: rgba(242,236,223,.78); font-family: var(--serif); font-size: 11px; letter-spacing: .05em; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px 0 56px 5.4vw; }
.detail-overline { display: flex; align-items: center; gap: 12px; color: #b6c8ad; font-size: 10px; letter-spacing: .08em; }
.detail-overline span { padding: 6px 8px; border: 1px solid rgba(146,166,136,.42); }
.detail-overline .has-missing { color: #dc9d87; border-color: rgba(189,118,94,.5); }
.detail-overline span:last-child { color: var(--gold-light); border-color: rgba(203,142,75,.4); font-family: var(--serif); }
.detail-copy h1 { margin-top: 25px; font-size: clamp(52px, 6.3vw, 88px); }
.detail-english { margin-top: 6px; color: var(--gold-light); font-family: var(--serif); font-size: 27px; font-style: italic; }
.detail-tastes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.detail-tastes span { padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.detail-intro { max-width: 490px; margin-top: 22px; color: var(--muted); line-height: 2; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 35px; }
.detail-favorite { width: auto; }
.detail-favorite.is-favorite { background: var(--gold-light); }
.detail-information { display: grid; grid-template-columns: 280px minmax(0,1fr); border-bottom: 1px solid var(--line); }
.abv-display { padding: 48px 38px 48px 0; border-right: 1px solid var(--line); }
.abv-display > div { display: flex; align-items: flex-start; margin-top: 12px; }
.abv-display strong { font-family: var(--serif); font-size: 78px; font-weight: 400; line-height: 1; }
.abv-display > div span { margin: 8px 0 0 5px; color: var(--gold-light); font-family: var(--serif); font-size: 25px; }
.abv-display p { margin-top: 11px; color: var(--soft); }
.ingredient-detail-panel { padding: 48px 0 48px 5.4vw; }
.ingredient-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.ingredient-detail-heading h2, .detail-method h2, .detail-more h2 { margin-top: 6px; font-size: 20px; font-weight: 500; }
.ingredient-detail-heading > span { color: var(--muted); font-size: 11px; }
.detail-ingredient-row { min-height: 58px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid rgba(242,236,223,.08); }
.detail-ingredient-row strong { font-size: 13px; font-weight: 500; }
.detail-ingredient-row strong small { display: block; margin-top: 3px; color: var(--soft); font-family: var(--serif); font-size: 9px; font-weight: 400; }
.detail-ingredient-row > span:last-child { color: var(--muted); font-family: var(--serif); }
.ingredient-state { min-height: 23px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 9px; }
.ingredient-state.owned { color: #b6c8ad; border-color: rgba(146,166,136,.45); }
.ingredient-state.needed { color: #dc9d87; border-color: rgba(189,118,94,.48); }
.ingredient-state.optional { color: var(--soft); }
.optional-note { margin-top: 13px; color: var(--soft); font-size: 10px; }
.detail-method { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 5.4vw; padding: 48px 0; border-bottom: 1px solid var(--line); }
.method-heading { padding-right: 38px; border-right: 1px solid var(--line); }
.method-heading p { max-width: 190px; margin-top: 15px; color: var(--soft); font-size: 11px; line-height: 1.8; }
.method-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-meta > div { min-height: 70px; display: flex; flex-direction: column; justify-content: center; padding: 13px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-meta span { color: var(--soft); font-size: 9px; letter-spacing: .08em; }
.method-meta strong { margin-top: 7px; color: var(--gold-light); font-size: 13px; font-weight: 500; }
.method-step-list { list-style: none; }
.method-step-list li { min-height: 66px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; border-bottom: 1px solid rgba(242,236,223,.09); }
.method-step-number { color: var(--gold-light); font-family: var(--serif); font-size: 13px; }
.method-step-list p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.detail-more { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 5.4vw; padding: 46px 0 52px; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.related-list a { position: relative; min-height: 94px; display: flex; flex-direction: column; justify-content: center; padding: 15px 36px 15px 17px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.related-list a:hover { background: rgba(203,142,75,.06); }
.related-list small { margin-top: 5px; color: var(--soft); font-family: var(--serif); }
.related-list b { position: absolute; top: 15px; right: 14px; color: var(--gold-light); font-weight: 400; }
.detail-not-found { flex: 1; padding: 15vh 0; text-align: center; }
.detail-not-found h1 { margin-top: 12px; }
.detail-not-found p { margin: 14px 0 30px; color: var(--muted); }
.search-results-main { flex: 1; padding-top: 28px; }
.search-results-heading { padding: 64px 0 36px; border-bottom: 1px solid var(--line); }
.search-results-heading h1 { margin-top: 10px; font-size: clamp(36px, 4.4vw, 58px); }
.search-results-heading h1 em { color: var(--gold-light); font-family: var(--serif); font-style: italic; font-weight: 400; }
.search-results-heading p { margin-top: 14px; color: var(--muted); }
.search-result-grid { padding: 22px 0 48px; }
.search-card-arrow { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-light); text-decoration: none; }
.search-card-intro { display: -webkit-box; min-height: 43px; margin-top: 13px; overflow: hidden; color: var(--soft); font-size: 11px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-no-result { padding: 80px 0; text-align: center; }
.search-no-result h2 { font-size: 24px; font-weight: 500; }
.search-no-result p { margin: 12px 0 25px; color: var(--muted); }
@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; }
  .detail-photo-wrap { min-height: 520px; }
  .detail-copy { padding: 48px 0; }
  .detail-information { grid-template-columns: 190px minmax(0,1fr); }
  .abv-display { padding-right: 20px; }
  .ingredient-detail-panel { padding-left: 32px; }
  .detail-method { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .method-heading { padding-right: 20px; }
  .detail-more { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .detail-photo-wrap { min-height: 430px; }
  .detail-copy h1 { font-size: 52px; }
  .detail-actions { align-items: stretch; flex-direction: column; }
  .detail-information { grid-template-columns: 1fr; }
  .abv-display { padding: 35px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ingredient-detail-panel { padding: 35px 0; }
  .ingredient-detail-heading { align-items: flex-start; flex-direction: column; }
  .detail-method { grid-template-columns: 1fr; gap: 26px; padding: 35px 0; }
  .method-heading { padding-right: 0; border-right: 0; }
  .method-heading p { max-width: none; }
  .method-meta { grid-template-columns: 1fr 1fr; }
  .method-step-list li { grid-template-columns: 42px minmax(0, 1fr); }
  .related-list { grid-template-columns: 1fr; }
  .detail-nav > span { display: none; }
}

/* Favorites */
.favorites-main { flex: 1; padding-top: 28px; }
.favorites-heading { min-height: 224px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.favorites-heading h1 { margin-top: 10px; font-size: clamp(42px, 5vw, 66px); }
.favorites-heading p { margin-top: 15px; color: var(--muted); }
.favorites-filter { margin-bottom: 0; }
.favorite-content { padding: 42px 0 50px; }
.favorite-list-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.favorite-list-heading > div { display: flex; align-items: center; gap: 11px; }
.favorite-list-heading h2 { font-size: 19px; font-weight: 500; }
.favorite-list-heading > span { color: var(--muted); font-family: var(--serif); }
.favorite-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(242,236,223,.08); color: var(--soft); font-size: 10px; }
.favorite-card-footer a { color: var(--gold-light); text-decoration: none; }
.favorites-empty { padding: 95px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-heart { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 54px; line-height: 1; }
.favorites-empty h2 { margin-top: 18px; font-size: 24px; font-weight: 500; }
.favorites-empty p { margin: 11px auto 26px; color: var(--muted); }
.favorites-empty .primary-button { width: auto; text-decoration: none; }
.clear-filters-button { min-height: 39px; padding: 0 15px; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); cursor: pointer; }
@media (max-width: 720px) {
  .favorites-heading { align-items: flex-start; flex-direction: column; justify-content: center; padding: 38px 0; }
}

/* ==========================================================================
   PREMIUM MOTION & POLISH LAYER
   高级感动效层：氛围光影、入场动画、滚动渐显、悬浮微交互
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---- 基础质感 ---- */
::selection { background: rgba(203, 142, 75, .35); color: #fff8ec; }
:focus-visible { outline: 1px solid rgba(227, 173, 104, .85); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33312d; border: 2px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(203, 142, 75, .55); }
* { scrollbar-width: thin; scrollbar-color: #33312d transparent; }

/* ---- 氛围光影：呼吸的暖光 + 细腻噪点 ---- */
body::before {
  content: '';
  position: fixed;
  inset: -22%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 34% at 16% 4%, rgba(203, 142, 75, .11), transparent 68%),
    radial-gradient(34% 28% at 86% 10%, rgba(146, 166, 136, .055), transparent 70%),
    radial-gradient(52% 44% at 58% 110%, rgba(203, 142, 75, .06), transparent 72%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- 玻璃质感的吸顶导航 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -5.4vw;
  padding: 0 5.4vw;
  background: rgba(20, 20, 19, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: box-shadow .4s ease, background .4s ease;
}
.site-header.is-scrolled { background: rgba(18, 18, 17, .86); box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .7); }
.brand-mark { transition: transform .55s var(--ease-out), box-shadow .4s ease, background .3s ease; }
.brand:hover .brand-mark { transform: rotate(0deg); background: rgba(203, 142, 75, .1); box-shadow: 0 0 0 4px rgba(203, 142, 75, .1), 0 0 22px rgba(203, 142, 75, .28); }

/* ---- 微交互：按钮、卡片、输入 ---- */
.search-box { transition: border-color .25s, background .25s, box-shadow .3s; }
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(203, 142, 75, .12); }
.icon-button { transition: background .25s, border-color .25s, transform .35s var(--ease-out), box-shadow .35s; }
.icon-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(203, 142, 75, .4); }

.primary-button { position: relative; overflow: hidden; transition: background .3s, color .3s, transform .35s var(--ease-out), box-shadow .35s ease; }
.primary-button::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 252, 244, .5), transparent);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform .7s ease;
  pointer-events: none;
}
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(203, 142, 75, .5); }
.primary-button:hover:not(:disabled)::before { transform: translateX(400%) skewX(-18deg); }
.primary-button:active:not(:disabled) { transform: translateY(0) scale(.99); }
.primary-button > span:last-child { transition: transform .3s var(--ease-out); }
.primary-button:hover:not(:disabled) > span:last-child { transform: translateX(4px); }

.category-card { transition: border-color .3s, transform .5s var(--ease-out), background .3s, box-shadow .5s var(--ease-out); }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(203, 142, 75, .12); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 248, 236, .07) 50%, transparent 58%);
  transform: translateX(-135%);
  transition: transform .85s ease;
  pointer-events: none;
}
.category-card:hover::after { transform: translateX(135%); }
.category-image { transition: transform .8s var(--ease-out), opacity .45s ease, filter .45s ease; }
.category-card:hover .category-image { transform: scale(1.06); opacity: .95; }
.category-arrow { transition: transform .35s var(--ease-out), opacity .3s; }
.category-card:hover .category-arrow { transform: translate(3px, -3px); opacity: 1; }

.cocktail-card { transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s var(--ease-out); }
.cocktail-card:hover { transform: translateY(-6px); border-color: rgba(203, 142, 75, .6); box-shadow: 0 28px 52px -22px rgba(0, 0, 0, .7), 0 0 34px -16px rgba(203, 142, 75, .4); }
.cocktail-photo-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 248, 236, .12) 50%, transparent 60%);
  transform: translateX(-140%);
  transition: transform .9s ease;
  pointer-events: none;
}
.cocktail-card:hover .cocktail-photo-link::before { transform: translateX(140%); }
.cocktail-photo-link img { transition: transform 1s var(--ease-out), filter .5s ease; }
.cocktail-card:hover img { transform: scale(1.06); filter: saturate(.95) contrast(1.05); }
.card-footer a { transition: transform .3s var(--ease-out); }
.card-footer a:hover { transform: translate(2px, -2px); }

.favorite-button { transition: border-color .25s, background .25s, color .25s, transform .2s ease; }
.favorite-button:hover { border-color: rgba(203, 142, 75, .6); background: rgba(203, 142, 75, .07); }
.favorite-button:active { transform: scale(.9); }

.filter-option { transition: color .25s, border-color .25s, background .25s, transform .25s ease; }
.filter-option:hover { transform: translateY(-1px); }
.edit-bar-link { transition: border-color .3s, color .3s, transform .35s var(--ease-out), box-shadow .35s; }
.edit-bar-link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6); }

.ingredient-item { transition: border-color .25s, background .25s, transform .35s var(--ease-out), box-shadow .35s ease; }
.ingredient-item:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .6); }
.ingredient-symbol { transition: transform .4s var(--ease-out), border-color .3s, background .3s; }
.ingredient-item:hover .ingredient-symbol { transform: scale(1.08) rotate(-6deg); border-color: rgba(203, 142, 75, .6); }
.ingredient-item.is-selected .ingredient-symbol { background: rgba(203, 142, 75, .12); }
.sidebar-category { transition: color .25s, background .25s, border-color .25s, padding .3s var(--ease-out); }
.sidebar-category:hover { padding-left: 14px; }
.remove-ingredient { transition: color .25s, transform .25s ease; }
.remove-ingredient:hover { transform: rotate(90deg); }

.related-list a { transition: background .3s, padding-left .35s var(--ease-out); }
.related-list a:hover { padding-left: 24px; }
.related-list b { transition: transform .3s var(--ease-out); }
.related-list a:hover b { transform: translate(2px, -2px); }
.breadcrumb a { transition: color .25s; }
.back-link { transition: color .25s; }
.method-step-list { margin: 0; padding: 0; }

/* ---- 搜索弹窗 ---- */
.search-dialog::backdrop { background: rgba(8, 8, 7, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---- 动画（尊重系统减弱动态效果设置） ---- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes fade-down { from { opacity: 0; transform: translateY(-14px); } }
  @keyframes hero-rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes photo-reveal { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
  @keyframes img-settle { from { transform: scale(1.09); } }
  @keyframes underline-draw { to { background-size: 100% 2px; } }
  @keyframes heart-pop { 0% { transform: scale(.65); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
  @keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(146, 166, 136, .12); } 50% { box-shadow: 0 0 0 8px rgba(146, 166, 136, .04); } }
  @keyframes ambient-drift { from { transform: translate3d(-1.2%, -1%, 0) scale(1); opacity: .85; } to { transform: translate3d(1.2%, 1.1%, 0) scale(1.04); opacity: 1; } }
  @keyframes gentle-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

  body::before { animation: ambient-drift 26s ease-in-out infinite alternate; }

  /* 页面切换过渡（支持的浏览器自动生效） */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }

  /* 入场编排：导航 → 文案 → 卡片 → 底部 */
  .site-header { animation: fade-down .6s var(--ease-out) backwards; }
  .breadcrumb, .detail-nav { animation: fade-in .7s ease .1s backwards; }
  .eyebrow, .intro-section .step-label, .materials-intro .step-label, .results-intro .step-label,
  .favorites-heading .step-label, .search-results-heading .step-label { animation: rise .6s var(--ease-out) .08s backwards; }
  .intro-section h1, .materials-intro h1, .results-intro h1, .favorites-heading h1, .search-results-heading h1 { animation: hero-rise .8s var(--ease-out) .16s backwards; }
  .intro-section p, .materials-intro p, .results-intro p, .favorites-heading p, .search-results-heading p { animation: rise .7s var(--ease-out) .3s backwards; }
  .intro-section h1 em, .search-results-heading h1 em {
    padding-bottom: 3px;
    background-image: linear-gradient(90deg, rgba(203, 142, 75, .9), rgba(227, 173, 104, .35));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    animation: underline-draw .9s var(--ease-out) .95s forwards;
  }
  .section-heading { animation: rise .65s var(--ease-out) .3s backwards; }
  .category-grid .category-card { animation: rise .7s var(--ease-out) backwards; }
  .category-grid .category-card:nth-child(1) { animation-delay: .34s; }
  .category-grid .category-card:nth-child(2) { animation-delay: .41s; }
  .category-grid .category-card:nth-child(3) { animation-delay: .48s; }
  .category-grid .category-card:nth-child(4) { animation-delay: .55s; }
  .category-grid .category-card:nth-child(5) { animation-delay: .62s; }
  .category-grid .category-card:nth-child(6) { animation-delay: .69s; }
  .selection-dock { animation: rise .75s var(--ease-out) .72s backwards; }
  .materials-photo, .beverages-photo { animation: photo-reveal 1s var(--ease-out) .25s backwards; }
  .materials-workspace { animation: rise .8s var(--ease-out) .34s backwards; }
  .filter-bar, .favorites-filter { animation: rise .7s var(--ease-out) .34s backwards; }
  .edit-bar-link { animation: fade-in .8s ease .45s backwards; }
  .favorites-empty { animation: rise .8s var(--ease-out) .25s backwards; }

  /* 详情页 */
  .detail-photo-wrap { animation: photo-reveal 1.05s var(--ease-out) .12s backwards; }
  .detail-photo-wrap img { animation: img-settle 1.7s var(--ease-out) backwards; }
  .detail-copy > * { animation: rise .7s var(--ease-out) backwards; }
  .detail-copy > :nth-child(1) { animation-delay: .18s; }
  .detail-copy > :nth-child(2) { animation-delay: .26s; animation-name: hero-rise; animation-duration: .8s; }
  .detail-copy > :nth-child(3) { animation-delay: .36s; }
  .detail-copy > :nth-child(4) { animation-delay: .44s; }
  .detail-copy > :nth-child(5) { animation-delay: .52s; }
  .detail-copy > :nth-child(6) { animation-delay: .6s; }

  /* 状态与情感化细节 */
  .status-dot.available { animation: pulse-dot 2.8s ease-in-out infinite; }
  .favorite-button.is-favorite, .detail-favorite.is-favorite { animation: heart-pop .4s var(--ease-out); }
  .empty-heart { animation: gentle-float 2.6s ease-in-out infinite alternate; }
  .search-dialog[open] { animation: dialog-in .45s var(--ease-out); }
  .search-dialog::backdrop { animation: fade-in .35s ease; }

  /* 滚动渐显（由 motion.js 驱动） */
  [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
  .reveal-item { animation: rise .6s var(--ease-out) backwards; animation-delay: var(--stagger, 0s); }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 820px) {
  .site-header { margin: 0 -20px; padding: 0 20px; }
}

/* ==========================================================================
   无酒精特调系列
   ========================================================================== */
.zero-image { background-image: linear-gradient(90deg, rgba(30, 28, 23, .42), rgba(30, 28, 23, .04)), url("assets/mocktails/category-zero.svg"); }
.zero-card { border-color: rgba(146, 166, 136, .38); }
.zero-card:hover { border-color: rgba(146, 166, 136, .75); }
.zero-card.is-active { border-color: var(--sage); box-shadow: inset 0 2px 0 var(--sage); }
.zero-tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(146, 166, 136, .55);
  background: rgba(24, 30, 22, .78);
  color: #b6c8ad;
  font-size: 9px;
  letter-spacing: .14em;
  backdrop-filter: blur(6px);
}
.abv-badge.zero-abv { color: #b6c8ad; border-color: rgba(146, 166, 136, .55); background: rgba(22, 30, 21, .82); }
.filter-option-zero { color: #a9bd9f; }
.filter-option-zero.is-active { border-color: var(--sage); background: rgba(146, 166, 136, .1); color: #c4d6ba; }

/* ==========================================================================
   实用功能：随机来一杯 / 搜索联想 / 采购清单 / 制作模式
   ========================================================================== */
.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-light);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .35s var(--ease-out), box-shadow .35s;
}
.ghost-button:hover:not(:disabled) { border-color: var(--gold); background: rgba(203, 142, 75, .08); transform: translateY(-2px); }
.ghost-button:disabled { opacity: .35; cursor: not-allowed; }
.intro-actions { margin-top: 28px; }

/* 搜索联想 */
.suggest-list { display: flex; flex-direction: column; max-height: 264px; margin-top: 10px; overflow: auto; border: 1px solid var(--line); }
.suggest-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid rgba(242, 236, 223, .07);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .2s, padding-left .25s var(--ease-out);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: rgba(203, 142, 75, .09); padding-left: 17px; }
.suggest-item strong { font-size: 13px; font-weight: 500; white-space: nowrap; }
.suggest-item small { overflow: hidden; color: var(--soft); font-family: var(--serif); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item > span { color: var(--gold-light); font-family: var(--serif); font-size: 11px; white-space: nowrap; }
.suggest-item > span.suggest-zero { color: #b6c8ad; }

/* 结果页缺货清单 */
.heading-actions { display: flex; align-items: center; gap: 14px; }
.heading-actions .clear-filters-button { min-height: 34px; padding: 0 12px; font-size: 11px; transition: background .25s, color .25s, transform .3s var(--ease-out); }
.heading-actions .clear-filters-button:hover { background: rgba(203, 142, 75, .1); transform: translateY(-1px); }

/* 全局提示条 */
.app-toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  z-index: 90;
  padding: 13px 22px;
  border: 1px solid rgba(203, 142, 75, .55);
  background: rgba(24, 22, 18, .94);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.app-toast.is-leaving { opacity: 0; transition: opacity .5s ease; }

/* 制作模式 */
.cook-dialog { width: min(680px, calc(100vw - 32px)); padding: 0; color: var(--ink); border: 1px solid rgba(203, 142, 75, .6); background: #20201d; box-shadow: 0 20px 80px rgba(0, 0, 0, .5); }
.cook-dialog::backdrop { background: rgba(8, 8, 7, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cook-inner { position: relative; display: flex; flex-direction: column; padding: 42px 44px 34px; }
.cook-inner h2 { margin: 12px 0 0; font-size: 30px; font-weight: 500; }
.cook-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.cook-meta span { padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.cook-step-text { min-height: 140px; margin: 26px 0 0; font-size: 21px; line-height: 2; }
.cook-progress { height: 2px; margin-top: 8px; background: rgba(242, 236, 223, .12); }
.cook-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .45s var(--ease-out); }
.cook-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.cook-hint { margin: 18px 0 0; color: var(--soft); font-size: 10px; text-align: center; }
@media (max-width: 620px) {
  .cook-inner { padding: 32px 22px 26px; }
  .cook-step-text { min-height: 170px; font-size: 18px; }
  .cook-hint { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-actions { animation: rise .7s var(--ease-out) .42s backwards; }
  .cook-dialog[open] { animation: dialog-in .45s var(--ease-out); }
  .cook-dialog::backdrop { animation: fade-in .35s ease; }
  .app-toast { animation: toast-in .45s var(--ease-out); }
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
