:root {
  --ink: #102236;
  --muted: #607086;
  --line: #d9e2ec;
  --paper: #f5f8fb;
  --white: #fff;
  --navy: #082f5f;
  --blue: #1697d8;
  --cyan: #20c7d9;
  --gold: #8a5a17;
  --radius: 14px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px; }
.skip:focus { left: 8px; z-index: 5; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: var(--blue); color: var(--white); font-size: 13px; }
.topbar-inner { min-height: 30px; display: flex; gap: 24px; justify-content: flex-end; align-items: center; }
.nav { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.nav-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--blue); min-width: 0; }
.brand-logo { width: 235px; max-width: 42vw; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 10px 14px; color: #177dc5; border-radius: 8px; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { background: #eaf6fd; color: var(--navy); }
.menu-button { display: none; border: 1px solid var(--line); background: var(--white); padding: 8px 12px; border-radius: 8px; }
.hero { background: #dff4fb; }
.hero-card { min-height: 380px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: 42px 0; }
.hero-copy h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.05; margin: 0 0 18px; color: var(--navy); }
.hero-copy p { font-size: 21px; color: #24506f; margin: 0 0 24px; }
.hero-image { position: relative; height: 330px; border-radius: var(--radius); overflow: hidden; background: #07111c; box-shadow: 0 18px 50px rgba(8,47,95,.18); }
.hero-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; animation: heroSlide 20s infinite; }
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 5s; }
.hero-slider img:nth-child(3) { animation-delay: 10s; }
.hero-slider img:nth-child(4) { animation-delay: 15s; }
.hero-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots span { width: 28px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(0,0,0,.2); animation: heroDot 20s infinite; }
.hero-dots span:nth-child(1) { animation-delay: 0s; }
.hero-dots span:nth-child(2) { animation-delay: 5s; }
.hero-dots span:nth-child(3) { animation-delay: 10s; }
.hero-dots span:nth-child(4) { animation-delay: 15s; }
@keyframes heroSlide {
  0%, 22% { opacity: 1; }
  27%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes heroDot {
  0%, 22% { background: var(--blue); }
  27%, 95% { background: rgba(255,255,255,.55); }
  100% { background: var(--blue); }
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 8px; background: var(--blue); color: var(--white); font-weight: 700; border: 0; cursor: pointer; }
.button.secondary { background: var(--navy); }
.section { padding: 42px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 24px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(16,34,54,.06); }
.card-body { padding: 18px; }
.article-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.article-row h3 { margin: 0; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-list .card-body { min-height: 396px; }
.home-list .article-row { min-height: 49px; align-items: center; }
.home-list .date { white-space: nowrap; }
.featured-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px 0 18px; border-bottom: 1px dashed var(--line); min-height: 118px; }
.featured-row img { width: 120px; height: 96px; object-fit: cover; border-radius: 4px; background: #e5edf5; display: block; }
.featured-row h3 { margin: 2px 0 12px; font-size: 16px; line-height: 1.45; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.date, .tag, .muted { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; color: #e11d48; font-weight: 700; font-size: 12px; margin-right: 4px; }
.store-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: #dce8f3; display: block; }
.store-card h3 { margin: 0 0 6px; }
.chain-store-list { background: var(--white); }
.chain-store-row { min-height: 96px; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: stretch; padding: 0 12px; border-bottom: 1px solid #d8d8d8; color: var(--text); }
.chain-store-row:hover { background: #f6fbff; }
.chain-store-info { padding: 12px 0; }
.chain-store-info h3 { margin: 0 0 12px; font-size: 15px; font-weight: 500; }
.chain-store-info p { margin: 0 0 10px; font-size: 14px; line-height: 1.35; }
.chain-store-row img { width: 170px; height: 90px; object-fit: cover; align-self: center; background: #dce8f3; }
.food-section { background: #f4f8fb; }
.food-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.food-card { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: #dce8f3; box-shadow: 0 12px 28px rgba(8,47,95,.12); }
.food-card img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; display: block; }
.food-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 12px; color: var(--white); font-weight: 700; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62)); }
.food-empty { grid-column: 1 / -1; padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--white); text-align: center; }
.page-title { background: var(--white); border-bottom: 1px solid var(--line); padding: 26px 0; }
.page-title h1 { margin: 0; font-size: 28px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; background: var(--white); }
.admin-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.admin-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 108px; }
.admin-side button { width: 100%; text-align: left; margin: 4px 0; border: 0; background: transparent; padding: 10px; border-radius: 8px; cursor: pointer; }
.admin-side button.active { background: #eaf6fd; color: var(--navy); font-weight: 700; }
.auth-wrap { max-width: 460px; }
.admin-shell { width: min(1500px, calc(100% - 24px)); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 20px; }
.admin-nav { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px; position: sticky; top: 108px; }
.admin-nav button { width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 12px; border-radius: 6px; cursor: pointer; }
.admin-nav button.active { background: #eaf6fd; color: var(--navy); font-weight: 700; }
.admin-main { min-width: 0; }
.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.admin-panel-head h2, .admin-form h2 { margin: 0; }
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.compact { max-width: 180px; }
.grow { flex: 1 1 260px; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.admin-table { min-width: 1120px; border-radius: 0; }
.food-admin-table { min-width: 920px; }
.admin-table th { background: #f6f9fc; white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.admin-table input[type="checkbox"] { width: 18px; height: 18px; }
.admin-status-col { min-width: 78px; white-space: nowrap; }
.admin-action-col { min-width: 128px; white-space: nowrap; }
.inline-check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tiny { width: 76px; }
.title-input { min-width: 280px; }
.date-input { width: 120px; }
.cover-input { min-width: 220px; }
.image-field { display: flex; gap: 8px; align-items: center; min-width: 280px; }
.image-field .input { min-width: 0; }
.settings-block { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fbff; }
.settings-block strong { color: var(--navy); }
.upload-button, .editor-upload-button { position: relative; overflow: hidden; white-space: nowrap; }
.upload-button input, .editor-upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-form { max-width: 720px; }
.form-error { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 8px; margin: 0; }
.form-ok { background: #dcfce7; color: #166534; padding: 10px 12px; border-radius: 8px; margin: 0; }
.mini-button { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.pagination button.active, .pagination button:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.editor-panel { max-width: 1180px; }
.editor-form { display: grid; gap: 14px; }
.editor-grid { display: grid; grid-template-columns: 2fr 1fr 2fr 120px; gap: 12px; align-items: end; }
.editor-flags { display: flex; gap: 18px; flex-wrap: wrap; }
.url-import { display: flex; gap: 10px; align-items: center; }
.editor-toolbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; background: #f6f9fc; border: 1px solid var(--line); border-radius: 8px; }
.editor-toolbar button { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.editor-upload-button { border: 1px solid var(--line); background: var(--white); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.rich-editor { width: 100%; max-width: 720px; min-height: 420px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px; overflow: auto; }
.rich-editor:focus { outline: 2px solid rgba(22,151,216,.28); border-color: var(--blue); }
.rich-editor img { max-width: 100%; }
.rich-editor img.raw-image,
.rich-editor p > img:only-child { height: auto; margin: 10px auto; display: block; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.detail { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.detail h1 { margin-top: 0; }
.detail-body > img,
.detail-body p > img:only-child { border-radius: 10px; margin: 14px auto; display: block; }
.article-detail { max-width: 860px; }
.article-detail > img { max-width: 100%; margin: 18px auto 24px; border-radius: 10px; }
.article-detail .detail-body { max-width: 677px; margin: 0 auto; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.article-detail .detail-body p { margin: 0 0 1em; }
.article-detail .detail-body section { max-width: 100%; box-sizing: border-box; }
.article-detail .detail-body img { max-width: 100%; border-radius: 0; }
.article-detail .detail-body img.raw-image,
.article-detail .detail-body p > img:only-child { height: auto; margin: 8px auto; display: block; }
.article-detail .detail-body > svg { max-width: 100%; height: auto; display: block; }
.article-detail .detail-body table { max-width: 100%; border-collapse: collapse; }
.rich-editor section[style*="justify-content: center"][style*="display: flex"] > section,
.article-detail .detail-body section[style*="justify-content: center"][style*="display: flex"] > section { margin-left: auto; margin-right: auto; }
.rich-editor section[style*="display: flex"][style*="width: 100%"] > section[style*="z-index"],
.article-detail .detail-body section[style*="display: flex"][style*="width: 100%"] > section[style*="z-index"] { width: 100%; }
.rich-editor section[style*="display: grid"] > section[style*="grid-column-start: 1"][style*="grid-row-start: 1"],
.article-detail .detail-body section[style*="display: grid"] > section[style*="grid-column-start: 1"][style*="grid-row-start: 1"] { justify-self: center; }
.rich-editor section[style*="display: grid"] > section[style*="width: max-content"],
.article-detail .detail-body section[style*="display: grid"] > section[style*="width: max-content"] { align-self: center; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination button { border: 1px solid var(--line); background: var(--white); padding: 8px 12px; border-radius: 6px; }
.media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.media-tile { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.media-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e5edf5; }
.media-tile span { display: block; padding: 7px 8px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer { background: #07396c; color: var(--white); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 36px; align-items: start; padding: 34px 0; }
.footer-brand img { width: 214px; max-width: 100%; display: block; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { margin: 0; max-width: 440px; color: rgba(255,255,255,.82); line-height: 1.8; }
.footer-contact strong { display: block; margin-bottom: 10px; font-size: 18px; }
.footer span { display: block; color: rgba(255,255,255,.82); margin-top: 5px; }
.footer-qrs { display: flex; gap: 18px; justify-content: flex-end; align-items: flex-start; }
.footer-qrs figure { margin: 0; text-align: center; }
.qr-box { width: 104px; height: 104px; padding: 7px; border-radius: 8px; background: var(--white); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-box img:not([src]), .qr-box img[src=""] { display: none; }
.qr-empty::before { content: none; display: none; }
.footer-qrs figcaption { margin-top: 8px; color: rgba(255,255,255,.86); font-size: 14px; }
.footer-record { border-top: 1px solid rgba(255,255,255,.18); padding: 12px 0 16px; display: flex; justify-content: center; align-items: center; gap: 10px; color: rgba(255,255,255,.82); font-size: 14px; }
.footer-record a { color: rgba(255,255,255,.92); text-decoration: none; }
.footer-record a:hover { text-decoration: underline; }
@media (max-width: 820px) {
  body { background: #eef5f9; font-size: 15px; }
  .wrap { width: min(100% - 28px, 430px); }
  .topbar { display: none; }
  .nav { position: sticky; top: 0; background: rgba(255,255,255,.98); box-shadow: 0 6px 20px rgba(16,34,54,.08); }
  .nav-inner { min-height: 64px; gap: 12px; }
  .brand-logo { width: 168px; max-width: calc(100vw - 112px); }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--navy); font-weight: 700; flex: 0 0 auto; }
  .nav-links { display: none; position: absolute; inset: 66px 14px auto 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px; flex-direction: column; align-items: stretch; box-shadow: 0 18px 44px rgba(16,34,54,.18); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 9px; }
  .hero { background: linear-gradient(180deg, #dff4fb 0%, #edf8fc 100%); }
  .hero-card { min-height: 0; padding: 22px 0 28px; gap: 18px; }
  .hero-copy h1 { font-size: 38px; line-height: 1.06; margin: 0 0 14px; }
  .hero-copy p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
  .hero-copy .button { min-height: 40px; padding: 0 16px; }
  .hero-card, .grid.two, .grid.three, .admin-grid, .footer-grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
  .section-head { align-items: center; margin-bottom: 14px; padding-bottom: 10px; }
  .section-head h2 { font-size: 21px; }
  .section-head a { font-size: 14px; }
  .card { border-radius: 12px; box-shadow: 0 8px 18px rgba(16,34,54,.05); }
  .card-body { padding: 14px; }
  .home-list .card-body { min-height: 0; }
  .home-list .article-row { min-height: 0; }
  .article-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; align-items: center; }
  .article-row h3 { font-size: 15px; }
  .home-list .article-row .date { display: none; }
  .date, .tag, .muted { font-size: 13px; }
  .featured-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 4px 0 14px; }
  .featured-row img { width: 92px; height: 72px; }
  .featured-row h3 { font-size: 15px; margin: 0 0 8px; line-height: 1.4; }
  .store-card h3 { font-size: 17px; line-height: 1.35; }
  .store-card .card-body { padding: 13px 14px 15px; }
  .food-card { border-radius: 12px; box-shadow: 0 10px 22px rgba(8,47,95,.1); }
  .food-empty { padding: 22px 14px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .editor-grid, .url-import { grid-template-columns: 1fr; display: grid; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image { height: auto; aspect-ratio: 1672 / 941; border-radius: 12px; box-shadow: 0 10px 26px rgba(8,47,95,.14); }
  .chain-store-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; padding: 0 8px; }
  .chain-store-row img { width: 112px; height: 76px; }
  .chain-store-info h3 { margin-bottom: 8px; font-size: 15px; }
  .chain-store-info p { margin-bottom: 6px; font-size: 13px; }
  .page-title { padding: 18px 0; }
  .page-title h1 { font-size: 23px; }
  .page-title .muted { display: none; }
  .detail { padding: 18px 14px; border-radius: 12px; }
  .article-detail { max-width: none; }
  .article-detail .detail-body { max-width: 100%; font-size: 15px; line-height: 1.8; }
  .pagination { gap: 6px; flex-wrap: wrap; margin-top: 18px; }
  .pagination button { padding: 7px 11px; }
  .footer { margin-top: 24px; }
  .footer-grid { gap: 20px; padding: 24px 0; }
  .footer-brand img { width: 168px; margin-bottom: 10px; }
  .footer-qrs { justify-content: flex-start; align-items: flex-start; gap: 14px; }
  .qr-box { width: 92px; height: 92px; padding: 6px; }
  .footer-record { padding: 12px 0 14px; justify-content: center; text-align: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
}

@media (min-width: 560px) and (max-width: 820px) {
  .food-grid, .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .wrap { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 16px; }
  .button + .button { margin-top: 8px; }
  .article-row { grid-template-columns: 1fr; gap: 3px; }
  .chain-store-row { grid-template-columns: minmax(0, 1fr) 96px; min-height: 86px; }
  .chain-store-row img { width: 96px; height: 68px; }
}
