:root {
  --rose: #a74463;
  --rose-dark: #7f2e49;
  --rose-soft: #f7dbe3;
  --pink-bg: #fff5f7;
  --paper: #fffdf9;
  --ink: #573b37;
  --muted: #8f7470;
  --sage: #66866c;
  --line: #ecc9d3;
  --shadow: 0 22px 60px rgba(112, 58, 72, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(239,184,200,.18), transparent 24rem),
    radial-gradient(circle at 92% 32%, rgba(181,202,178,.16), transparent 26rem),
    var(--pink-bg);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: url("NeeNee零食铺菜单.png");
  background-size: 1150px auto;
  background-position: center top;
  filter: blur(1px);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  height: 84px;
  padding: 0 clamp(24px, 5vw, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,250,251,.88);
  border-bottom: 1px solid rgba(222,171,185,.55);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  aspect-ratio: 1;
  color: white;
  background: var(--rose);
  border-radius: 50% 50% 46% 54%;
  font: 28px "ZCOOL XiaoWei", serif;
  transform: rotate(-7deg);
}
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { color: var(--rose-dark); font: 27px "ZCOOL XiaoWei", serif; }
.brand small { margin-top: 5px; color: var(--sage); font-size: 12px; letter-spacing: .35em; }
nav { display: flex; gap: clamp(22px, 3vw, 48px); font-size: 14px; font-weight: 600; }
nav a { position: relative; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--rose); transition: .25s;
}
nav a:hover::after { right: 0; }
.mini-order {
  padding: 11px 20px;
  color: white;
  background: var(--rose);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.admin-entry { padding: 9px 13px; color: var(--rose-dark); background: transparent; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; }

.hero {
  min-height: calc(100vh - 84px);
  padding: clamp(55px, 7vw, 105px) max(6vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  overflow: hidden;
}
.eyebrow { color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1, h2 { margin: 0; color: var(--rose-dark); font-family: "ZCOOL XiaoWei", serif; font-weight: 400; }
h1 { margin-top: 18px; font-size: clamp(58px, 6.2vw, 104px); line-height: 1.03; letter-spacing: .015em; }
.hero-lead { max-width: 620px; margin: 30px 0; color: var(--muted); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.primary-btn, .outline-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 1px solid var(--rose); border-radius: 99px; cursor: pointer; transition: .25s;
}
.primary-btn { color: white; background: var(--rose); box-shadow: 0 12px 28px rgba(167,68,99,.25); }
.primary-btn:hover { background: var(--rose-dark); transform: translateY(-2px); }
.primary-btn span { margin-left: 24px; font-size: 21px; }
.text-btn { color: var(--rose-dark); border-bottom: 1px solid var(--rose); font-size: 14px; }
.hero-points { display: flex; gap: 0; margin: 55px 0 0; padding: 0; list-style: none; }
.hero-points li { min-width: 130px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero-points li:last-child { border: 0; }
.hero-points b, .hero-points span { display: block; }
.hero-points b { color: var(--rose-dark); font-size: 15px; }
.hero-points span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 590px); }
.art-card {
  height: min(70vh, 690px);
  overflow: hidden;
  border: 9px solid rgba(255,255,255,.9);
  border-radius: 48% 48% 42% 42% / 30% 30% 18% 18%;
  box-shadow: var(--shadow);
  transform: rotate(2.3deg);
}
.art-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.float-badge {
  position: absolute; padding: 13px 20px; color: var(--rose-dark); background: rgba(255,250,246,.95);
  border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 10px 30px rgba(100,53,65,.12);
  font: 17px "ZCOOL XiaoWei", serif;
}
.badge-one { left: -50px; top: 22%; transform: rotate(-8deg); }
.badge-two { right: -34px; bottom: 17%; transform: rotate(8deg); }
.paw { position: absolute; color: var(--rose); font-size: 40px; opacity: .62; }
.paw-one { right: 1%; top: 6%; transform: rotate(15deg); }
.paw-two { left: -8%; bottom: 6%; font-size: 70px; }

.ticker { overflow: hidden; padding: 18px 0; color: white; background: var(--rose); white-space: nowrap; }
.ticker div { width: max-content; animation: ticker 28s linear infinite; font-size: 14px; letter-spacing: .12em; }
.ticker i { margin: 0 30px; color: #ffdbe4; }
@keyframes ticker { to { transform: translateX(-40%); } }

.menu-section, .tips-section { padding: 110px max(6vw, 24px); }
.section-heading { display: grid; grid-template-columns: 1fr 430px; gap: 60px; align-items: end; }
.section-heading h2, .story-copy h2, .tips-title h2, .order-section h2 { font-size: clamp(42px, 4.5vw, 72px); }
.section-heading > p { color: var(--muted); line-height: 1.9; }
.menu-tools { margin: 52px 0 36px; display: flex; justify-content: space-between; gap: 26px; align-items: center; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter {
  padding: 10px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.65);
  border-radius: 99px; cursor: pointer; font-size: 13px; transition: .2s;
}
.filter:hover, .filter.active { color: white; border-color: var(--rose); background: var(--rose); }
.search-box {
  min-width: 280px; display: flex; gap: 9px; align-items: center; padding: 11px 17px;
  background: white; border: 1px solid var(--line); border-radius: 99px;
}
.search-box span { color: var(--rose); font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.menu-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: rgba(255,253,249,.89); border: 1px solid var(--line); border-radius: 24px;
  transition: .25s; animation: cardIn .35s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } }
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d998ab; }
.menu-card:focus-visible { outline: 3px solid rgba(167,68,99,.35); outline-offset: 3px; }
.product-photo { position: relative; height: 238px; overflow: hidden; background: var(--rose-soft); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(75,39,46,.25)); }
.product-photo span {
  position: absolute; z-index: 2; right: 16px; bottom: 13px; padding: 7px 11px; color: white;
  background: rgba(127,46,73,.82); border-radius: 99px; font-size: 11px; opacity: 0; transform: translateY(5px); transition: .25s;
}
.menu-card:hover .product-photo img { transform: scale(1.055); }
.menu-card:hover .product-photo span { opacity: 1; transform: none; }
.card-body { min-height: 178px; padding: 24px; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--sage); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.card-meta::before { content: ""; width: 7px; height: 7px; background: var(--rose); border-radius: 50%; }
.menu-card h3 { position: relative; z-index: 1; margin: 14px 0 20px; color: var(--rose-dark); font-size: 20px; }
.prices { display: flex; gap: 8px; flex-wrap: wrap; }
.price { padding: 7px 10px; color: var(--ink); background: var(--rose-soft); border-radius: 9px; font-size: 13px; font-weight: 600; }
.empty-state { text-align: center; padding: 50px; color: var(--muted); }

.product-dialog {
  width: min(880px, calc(100vw - 30px)); padding: 0; overflow: hidden;
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 30px 100px rgba(76,33,46,.3);
}
.product-dialog::backdrop { background: rgba(71,37,46,.54); backdrop-filter: blur(7px); }
.dialog-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.dialog-layout > img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.dialog-layout > div { padding: 58px 42px 42px; }
.dialog-layout h3 { margin: 14px 0 24px; color: var(--rose-dark); font: 38px/1.25 "ZCOOL XiaoWei", serif; }
.dialog-prices { display: flex; gap: 8px; flex-wrap: wrap; }
.dialog-note { margin: 28px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.dialog-close {
  position: absolute; z-index: 2; right: 18px; top: 16px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; color: var(--rose-dark); background: rgba(255,255,255,.85);
  cursor: pointer; font-size: 25px; line-height: 1;
}

.admin-dialog {
  width: min(1180px, calc(100vw - 24px)); max-height: 92vh; padding: 0; overflow: hidden;
  color: var(--ink); background: #fffaf9; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 35px 110px rgba(76,33,46,.32);
}
.admin-dialog::backdrop { background: rgba(62,34,41,.58); backdrop-filter: blur(7px); }
.admin-login { max-width: 480px; margin: auto; padding: 70px 45px; text-align: center; }
.admin-lock { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 18px; color: white; background: var(--rose); border-radius: 50%; font-size: 35px; }
.admin-login h2, .admin-topbar h2 { margin: 8px 0 15px; color: var(--rose-dark); font: 45px "ZCOOL XiaoWei", serif; }
.admin-login > p:not(.eyebrow), .admin-hint { color: var(--muted); font-size: 13px; line-height: 1.8; }
.admin-login label { display: grid; gap: 8px; margin: 26px 0 18px; text-align: left; font-size: 13px; font-weight: 700; }
.admin-login input, .admin-editor input, .admin-editor select, .admin-search input {
  width: 100%; padding: 12px 14px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; outline: 0;
}
.admin-login input:focus, .admin-editor input:focus, .admin-editor select:focus, .admin-search input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(167,68,99,.1); }
.admin-message { display: block; min-height: 20px; margin-top: 12px; color: var(--rose); font-size: 12px; }
.admin-panel { height: min(860px, 92vh); overflow: hidden; }
.admin-topbar { padding: 28px 42px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.admin-topbar .eyebrow, .admin-topbar h2 { margin-top: 0; margin-bottom: 0; }
.admin-top-actions, .editor-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.soft-btn { padding: 10px 15px; color: var(--rose-dark); background: var(--rose-soft); border: 0; border-radius: 99px; cursor: pointer; }
.admin-hint { margin: 0; padding: 10px 42px; color: #82635f; background: #fff0d9; }
.admin-workspace { height: calc(100% - 145px); display: grid; grid-template-columns: 350px 1fr; }
.admin-workspace aside { padding: 22px; overflow: hidden; border-right: 1px solid var(--line); }
.admin-search { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.admin-product-list { height: calc(100% - 72px); margin-top: 16px; overflow-y: auto; }
.admin-product-item {
  width: 100%; padding: 10px; display: grid; grid-template-columns: 54px 1fr; gap: 11px; align-items: center;
  text-align: left; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 14px; cursor: pointer;
}
.admin-product-item:hover, .admin-product-item.active { background: var(--rose-soft); border-color: var(--line); }
.admin-product-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.admin-product-item b, .admin-product-item small { display: block; }
.admin-product-item b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.admin-product-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-editor { padding: 32px 42px; overflow-y: auto; }
.admin-preview { margin-bottom: 22px; display: flex; align-items: end; gap: 18px; }
.admin-preview img { width: 210px; height: 210px; object-fit: cover; border: 1px solid var(--line); border-radius: 22px; }
.upload-btn { padding: 10px 15px; color: white; background: var(--sage); border-radius: 99px; cursor: pointer; font-size: 12px; }
.upload-btn input { display: none; }
.admin-editor > label { display: grid; gap: 8px; margin-bottom: 17px; font-size: 12px; font-weight: 700; }
.admin-editor label small { color: var(--muted); font-weight: 400; }
.admin-editor .primary-btn { border: 0; }

.story-section { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(60px, 9vw, 150px); align-items: center; padding: 110px max(8vw, 30px); background: rgba(255,255,255,.55); }
.story-image { height: 680px; overflow: hidden; border-radius: 48% 48% 24px 24px; box-shadow: var(--shadow); }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 2; }
.story-copy h2 { margin: 17px 0 34px; }
.story-note { margin-top: 34px; padding: 22px; display: flex; gap: 18px; background: var(--rose-soft); border-radius: 22px; }
.story-note > span { color: var(--rose); font-size: 42px; }
.story-note p { margin: 0; line-height: 1.7; font-size: 13px; }

.tips-title { display: flex; align-items: center; gap: 22px; margin-bottom: 45px; }
.tip-icon { display: grid; place-items: center; width: 72px; height: 72px; color: white; background: var(--rose); border-radius: 50%; font: 45px "ZCOOL XiaoWei"; }
.tips-title p { margin: 0 0 4px; }
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tips-grid article { padding: 28px; border-top: 3px solid var(--rose); background: rgba(255,253,249,.85); border-radius: 0 0 20px 20px; }
.tips-grid b { color: #ddb1bd; font-size: 36px; }
.tips-grid h3 { margin: 12px 0 8px; color: var(--rose-dark); }
.tips-grid p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.allergy { margin: 25px 0 0; padding: 18px 25px; color: var(--rose-dark); background: var(--rose-soft); border-radius: 14px; font-size: 13px; text-align: center; }

.order-section { margin: 0 max(4vw, 18px) 80px; padding: 90px 24px; position: relative; overflow: hidden; text-align: center; color: white; background: var(--rose-dark); border-radius: 42px; }
.order-section::before, .order-section::after { content: "♡"; position: absolute; color: rgba(255,255,255,.07); font: 380px serif; }
.order-section::before { left: -70px; top: -160px; }
.order-section::after { right: -30px; bottom: -250px; }
.order-section .eyebrow, .order-section h2 { color: white; }
.order-section > p:not(.eyebrow) { max-width: 650px; margin: 22px auto; color: #f3ced9; line-height: 1.8; }
.order-dog { display: block; margin-bottom: 12px; font-size: 48px; }
.order-actions { position: relative; z-index: 2; display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.order-section .primary-btn { color: var(--rose-dark); border-color: white; background: white; box-shadow: none; }
.order-section .outline-btn { color: white; border-color: rgba(255,255,255,.5); }
.copy-feedback { display: block; height: 20px; margin-top: 16px; color: #ffdbe5; font-size: 13px; }

footer { padding: 0 max(6vw, 24px) 45px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer-brand { transform: scale(.82); transform-origin: left; }
footer a { color: var(--rose); font-weight: 700; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 440px; gap: 45px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .site-header { height: 70px; padding-inline: 18px; }
  nav { display: none; }
  .mini-order { padding: 9px 15px; }
  .admin-entry { padding: 7px 9px; font-size: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { width: min(88%, 520px); grid-row: 1; }
  .art-card { height: 520px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .badge-one { left: -26px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .menu-tools { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .story-section { grid-template-columns: 1fr; }
  .story-image { height: 500px; }
  footer { gap: 18px; flex-direction: column; text-align: center; }
  .footer-brand { transform-origin: center; }
}
@media (max-width: 540px) {
  h1 { font-size: 53px; }
  .hero { padding-inline: 18px; }
  .art-card { height: 420px; }
  .hero-points { margin-top: 42px; }
  .hero-points li { min-width: 0; padding-right: 16px; margin-right: 16px; }
  .menu-section, .tips-section { padding: 80px 18px; }
  .menu-grid, .tips-grid { grid-template-columns: 1fr; }
  .menu-card { min-height: 168px; }
  .product-photo { height: 250px; }
  .dialog-layout { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .dialog-layout > img { min-height: 0; height: 330px; }
  .dialog-layout > div { padding: 34px 26px; }
  .admin-panel { height: 92vh; overflow-y: auto; }
  .admin-topbar { padding: 25px; align-items: flex-start; gap: 16px; flex-direction: column; }
  .admin-hint { padding-inline: 25px; }
  .admin-workspace { height: auto; grid-template-columns: 1fr; }
  .admin-workspace aside { height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-editor { padding: 25px; }
  .admin-preview img { width: 150px; height: 150px; }
  .story-section { padding: 80px 24px; }
  .order-section { padding-block: 70px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
