:root {
  --bg: #f8f1e7;
  --ink: #2e2118;
  --muted: #7b6658;
  --card: rgba(255, 252, 246, .94);
  --line: #ead9c4;
  --brand: #d8562f;
  --brand-dark: #9f341d;
  --leaf: #286a4b;
  --shadow: 0 18px 50px rgba(75, 45, 24, .14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 120, .55), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(117, 185, 137, .38), transparent 30rem),
    var(--bg);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto 60px; }
.hero { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: end; padding: 44px 0 24px; }
.eyebrow { color: var(--brand); letter-spacing: .22em; text-transform: uppercase; font-weight: 800; }
h1 { margin: 0; font-size: clamp(42px, 8vw, 88px); line-height: .95; }
.hero-text { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.hero-card, .panel, .cart-card, .form-card, .dish-card, .order-card, .admin-item, .review-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow);
}
.hero-card { border-radius: 28px; padding: 24px; }
.hero-card span { color: var(--muted); display: block; margin-bottom: 10px; }
.hero-card strong { font-size: 28px; color: var(--leaf); }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tabs { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.tab { padding: 12px 18px; border-radius: 999px; background: #fff7ea; color: var(--muted); }
.tab.active { background: var(--ink); color: #fff; }
.logout-tab { margin-left: auto; color: var(--brand-dark); }
.panel { display: none; border-radius: 32px; padding: 24px; }
.panel.active { display: block; animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title h2, .form-card h2 { margin: 0; font-size: 30px; }
.section-title p { margin: 0; color: var(--muted); }
.layout-two { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dish-card, .order-card, .admin-item, .review-card { border-radius: 24px; padding: 20px; }
.dish-card h3 { margin: 0 0 10px; font-size: 22px; }
.desc { color: var(--muted); min-height: 44px; line-height: 1.6; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.price { color: var(--brand); font-weight: 900; font-size: 24px; }
.add-btn, .primary { background: var(--brand); color: #fff; border-radius: 16px; padding: 12px 16px; font-weight: 800; }
.add-btn:hover, .primary:hover { background: var(--brand-dark); }
.add-btn:disabled { opacity: .45; cursor: not-allowed; }
.cart-card, .form-card { border-radius: 26px; padding: 20px; margin-bottom: 18px; }
.cart-card { position: sticky; top: 16px; }
.cart-card h3 { margin-top: 0; }
.cart-list.empty { color: var(--muted); padding: 16px 0; }
.cart-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 9px; background: #f0dfca; }
.total-line { display: flex; justify-content: space-between; margin: 18px 0; font-size: 20px; }
label { display: block; margin: 14px 0 8px; color: var(--muted); font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 12px 14px; background: #fffaf2; color: var(--ink); outline: none; }
textarea { min-height: 82px; resize: vertical; }
.primary, .ghost { width: 100%; margin-top: 16px; }
.ghost { background: #fff2df; color: var(--brand-dark); border-radius: 16px; padding: 12px 16px; font-weight: 800; }
.orders-list, .admin-list, .review-list { display: grid; gap: 14px; }
.order-head, .admin-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.status { padding: 6px 10px; border-radius: 999px; background: #eef5e8; color: var(--leaf); font-weight: 800; }
.mini { color: var(--muted); font-size: 14px; }
.item-line { color: var(--muted); margin-top: 8px; }
.admin-actions { display: flex; gap: 10px; margin-top: 14px; }
.admin-actions button { padding: 10px 12px; border-radius: 12px; background: #f0dfca; color: var(--ink); }
.admin-actions .danger { background: #ffe0d8; color: var(--brand-dark); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(100px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; opacity: 0; transition: .2s ease; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 860px) {
  .hero, .layout-two, .auth-grid { grid-template-columns: 1fr; }
  .dish-grid { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .cart-card { position: static; }
  .logout-tab { margin-left: 0; }
}
.wish-list { display: grid; gap: 14px; }
.review-card.done { opacity: .72; background: rgba(238, 245, 232, .94); }
.profile-card p { margin: 10px 0; color: var(--muted); }
.profile-card strong { color: var(--ink); }
