:root {
  color-scheme: light;
  --paper: #f7f5ef; --ink: #232e26; --muted: #59645b; --green: #26382c;
  --line: #d8ddd2; --light: #e9eee4; --card: #fffdf8; --peach: #f5e7d7;
  font: 16px/1.58 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #9e591e; outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Songti SC", "Noto Serif CJK SC", Georgia, serif; font-weight: 650; line-height: 1.16; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1rem; }
.frame { width: min(1160px, calc(100% - 52px)); margin-inline: auto; }
.top { background: #202d26; color: #f9f6ec; }
.masthead { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-family: Georgia, serif; font-size: 1.2rem; letter-spacing: .13em; white-space: nowrap; }
.brand span { color: #cfab77; margin-inline: .3em; }
nav, #account { display: flex; align-items: center; gap: 8px; }
nav button, #account button { padding: 8px 12px; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 6px; }
nav button[aria-current], nav button:hover, #account button:hover { background: #ffffff17; }
#identity, #account button { font-size: .875rem; }
.muted { color: var(--muted); }
.kicker { font-size: .875rem; color: #53674d; letter-spacing: .08em; font-weight: 650; margin-bottom: 10px; }
.heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-block: 48px 28px; }
#subtitle { margin-top: 14px; }
.summary { padding: 14px 19px; border: 1px solid var(--line); background: var(--light); border-radius: 9px; display: grid; gap: 4px; min-width: 180px; }
.summary span { font-size: .875rem; color: var(--muted); }
.summary strong { font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.summary small { color: var(--muted); font-size: .9rem; font-weight: 500; }
progress { width: 100%; height: .5rem; accent-color: #526c4e; }
.controls { display: flex; align-items: end; gap: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.controls label:first-child { flex: 1; min-width: 0; }
label { font-weight: 600; display: grid; gap: 6px; font-size: .9rem; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 11px; border-radius: 6px; border: 1px solid #abb7a9; background: #fffefa; font-size: 1rem; font-weight: 400; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 52%, #46594b 52%), linear-gradient(135deg, #46594b 52%, transparent 52%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 75px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 12px; }
.chip, .quiet, .primary, .close { padding: 8px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; }
.chip:hover, .quiet:hover { border-color: #879684; background-color: var(--light); }
.chip[aria-pressed="true"], .primary { color: #fffdf6; background: var(--green); border-color: var(--green); }
.primary:hover { background: #354d3d; }
.chip small { font-size: .8rem; opacity: .8; padding-inline-start: 3px; }
.result { font-size: .875rem; margin-block: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 42px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.card:hover { border-color: #82927f; }
.card-button { width: 100%; height: 100%; display: flex; flex-direction: column; text-align: start; padding: 0; border: 0; background: transparent; }
.card-button:focus-visible { outline-offset: -4px; }
.thumb { display: grid; place-items: center; width: 100%; height: 83px; background: #e6ede1; color: #3c5141; font-family: "Songti SC", Georgia, serif; font-size: 1.2rem; letter-spacing: .13em; overflow: hidden; }
.thumb[data-category="葡萄酒"] { background: #eee3df; color: #643936; }
.thumb[data-category="烈酒与韩式酒"] { background: #eee8d9; color: #604b2f; }
.thumb:has(img) { height: 146px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-copy { width: 100%; padding: 14px; display: flex; flex-direction: column; flex: 1; }
.meta { color: #546852; font-size: .875rem; margin-bottom: 5px; }
.card strong { font-size: 1.11rem; }
.english { font-family: Georgia, serif; color: var(--muted); font-size: .9rem; min-height: 1.4em; }
.descriptor { font-size: .9rem; margin-top: 6px; }
.card-bottom { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin-top: auto; padding-top: 13px; }
.price { font-size: .9rem; font-weight: 650; }
.status { font-size: .875rem; color: var(--muted); }
.status[data-state="done"] { color: #22613d; }
.status[data-state="review"] { color: #963d12; font-weight: 650; }
.empty { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--line); background: var(--card); }
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 470px; margin-block: 55px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.intro { display: flex; flex-direction: column; justify-content: end; min-height: 330px; padding: clamp(24px, 5vw, 65px); color: #fbf7eb; background: linear-gradient(110deg, #26382ce6, #26382c40), url(/images/cocktail-15.webp) center/cover, #26382c; }
.intro .brand { margin-bottom: auto; }
.intro p { margin-top: 14px; }
.signin { padding: clamp(24px, 5vw, 54px); background: var(--card); }
form { display: grid; gap: 14px; margin-top: 20px; }
.demo { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.demo-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notice { padding: 12px 16px; background: var(--peach); border: 1px solid #d1ae88; border-radius: 6px; color: #633a20; margin-block: 14px; }
#notice { margin-inline: auto; }
dialog { width: min(660px, calc(100% - 32px)); max-height: 88dvh; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); }
dialog::backdrop { background: #131b17a6; }
#detail { padding: clamp(18px, 4vw, 34px); }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.detail-head .muted { margin-top: 6px; }
.close { font-size: 1.5rem; line-height: 1; }
.detail-image { margin-top: 18px; width: 100%; max-height: 230px; object-fit: cover; border-radius: 8px; }
.facts { padding: 0; margin-block: 16px; }
.facts div { display: grid; grid-template-columns: minmax(100px, 1fr) 3fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
dt { font-weight: 650; font-size: .9rem; }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.callout { background: var(--peach); border-radius: 6px; padding: 10px 12px; margin-top: 12px; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.editor { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
summary { cursor: pointer; font-weight: 650; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead { background: var(--light); }
@media (max-width: 820px) {
  .frame { width: min(100% - 32px, 1160px); }
  .masthead { flex-wrap: wrap; padding-block: 12px; }
  nav { order: 3; width: 100%; overflow: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .masthead { gap: 7px; }
  .brand { font-size: 1rem; }
  #identity { max-width: 115px; overflow-wrap: anywhere; }
  #account { gap: 1px; }
  nav button, #account button { padding-inline: 8px; }
  .heading { padding-block: 26px 20px; align-items: start; flex-direction: column; gap: 14px; }
  .summary { min-width: 0; width: 100%; }
  .controls { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .controls label:first-child { flex-basis: 100%; }
  .cards { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; margin-block: 20px; }
  .intro { min-height: 210px; }
}
