:root {
    --paper: #FFF4E0;
    --surface: #FFFFFF;
    --soft: #F8E2B0;
    --ink: #3A2208;
    --text: #4A2E12;
    --muted: #7A5530;
    --quiet: #A07A4A;
    --yellow: #F5C518;
    --orange: #F08A24;
    --green: #3D8B4A;
    --deep: #1F1408;
    --border: rgba(240, 138, 36, 0.22);
    --shadow: 0 14px 34px rgba(58, 34, 8, 0.10);
    --radius: 16px;
    --header-h: 134px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.75; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { font: inherit; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.ticker-bar { height: 22px; background: var(--deep); color: var(--yellow); font-size: 12px; }
.ticker-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { min-height: 22px; padding: 0 5px; background: transparent; color: var(--yellow); }
.stall-bar { height: 70px; background: var(--yellow); border-bottom: 1px solid rgba(31,20,8,.12); }
.stall-inner { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; max-width: 270px; }
.brand-logo { max-height: 38px; width: auto; }
.brand-text { color: var(--deep); font-size: 22px; letter-spacing: .03em; }
.basket-button, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 0 18px; font-weight: 800; }
.basket-button { background: var(--deep); color: #fff9e8; }
.app-link { justify-self: end; background: #fff; color: var(--deep); border: 1px solid rgba(31,20,8,.14); }
.fruit-tabs { height: 42px; background: #fff; border-bottom: 1px solid var(--border); }
.fruit-tabs-inner { height: 42px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.fruit-tabs a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.fruit-tabs a.is-current { background: var(--orange); color: var(--deep); }
.site-main { min-height: 65vh; padding-top: calc(var(--header-h) + 24px); }
.page-hero, .hero-shelf { padding: 34px 0 26px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-weight: 900; letter-spacing: .12em; font-size: 13px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 16px; }
h2 { font-size: 22px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--text); max-width: 820px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 28px; align-items: center; }
.hero-copy { padding: 10px 0; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.primary-link, .secondary-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; font-weight: 800; }
.primary-link { background: linear-gradient(135deg,#F5C518 0%,#F08A24 70%); color: var(--deep); }
.secondary-link { background: #fff; color: var(--deep); border: 1px solid var(--border); }
.primary-link:hover, .secondary-link:hover, .basket-button:hover, .app-link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(58,34,8,.10); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(61,139,74,.45); outline-offset: 3px; }
.section { padding: 24px 0 42px; }
.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.image-slot { min-height: 210px; border-radius: var(--radius); background: linear-gradient(145deg, var(--soft), #fff7e8); border: 1px dashed rgba(240,138,36,.38); display: flex; align-items: center; justify-content: center; color: var(--quiet); font-weight: 900; letter-spacing: .15em; }
.banner-image, .image-slot.banner-image { width: 100%; max-height: 320px; min-height: 220px; object-fit: cover; border-radius: 18px; }
.content-image, .image-slot.content-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; }
.media-small, .image-slot.media-small { width: 100%; min-height: 180px; max-height: 260px; object-fit: cover; border-radius: 14px; }
.shelf-stack { display: grid; gap: 18px; }
.shelf-row { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.shelf-row:first-child { border-top: 0; }
.shelf-no { font-size: 34px; font-weight: 950; color: var(--orange); letter-spacing: -.04em; }
.shelf-row p { margin: 4px 0 0; color: var(--muted); }
.inline-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--green); font-weight: 900; }
.tag-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.tag-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; min-height: 150px; }
.tag-card:nth-child(3n+1) .tag-mark { background: var(--yellow); }
.tag-card:nth-child(3n+2) .tag-mark { background: var(--orange); }
.tag-card:nth-child(3n) .tag-mark { background: var(--green); color: white; }
.tag-mark { display: inline-block; border-radius: 8px; padding: 3px 8px; color: var(--deep); font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.info-card p:last-child { margin-bottom: 0; }
.number-list { counter-reset: item; display: grid; gap: 12px; }
.number-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 18px 76px; position: relative; min-height: 86px; }
.number-item::before { counter-increment: item; content: counter(item, decimal-leading-zero); position: absolute; left: 18px; top: 14px; color: var(--orange); font-size: 28px; font-weight: 950; }
.timeline { position: relative; margin-left: 10px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 10px; width: 2px; background: var(--orange); opacity: .45; }
.timeline-item { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.timeline-item::before { content: ""; position: absolute; left: -31px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--paper); }
.status { display: inline-block; padding: 3px 8px; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 900; }
.quote-note { border-left: 4px solid var(--green); background: #fff; padding: 18px 20px; border-radius: 0 14px 14px 0; color: var(--muted); }
.prose { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.prose h2 { margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.app-showcase { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 26px; align-items: center; }
.app-icon { width: 74px; height: 74px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
.app-icon-slot { width: 74px; height: 74px; min-height: 74px; border-radius: 16px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.faq-item h2 { font-size: 18px; }
.notice { background: var(--soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; color: var(--ink); }
.site-footer { background: var(--deep); color: var(--soft); margin-top: 36px; padding: 42px 0 calc(30px + env(safe-area-inset-bottom)); }
.footer-top { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff6de; }
.footer-brand div { display: grid; }
.footer-brand strong { font-size: 20px; }
.footer-brand span { color: var(--yellow); font-size: 12px; }
.footer-logo { max-height: 36px; width: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.footer-grid h2 { color: var(--yellow); font-size: 15px; margin-bottom: 10px; }
.footer-grid a { display: block; min-height: 34px; color: var(--soft); font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(248,226,176,.18); color: #dfcda4; font-size: 13px; }
.overlay { position: fixed; inset: 0; background: rgba(31,20,8,.54); z-index: 100; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.basket-panel { position: fixed; left: 50%; bottom: 0; width: min(760px,100%); max-height: min(82vh, 760px); overflow-y: auto; transform: translate(-50%, 105%); background: var(--paper); z-index: 110; border-radius: 18px 18px 0 0; box-shadow: 0 -18px 45px rgba(31,20,8,.18); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.basket-panel.is-open { transform: translate(-50%,0); visibility: visible; pointer-events: auto; }
.basket-head, .search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.basket-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.basket-brand img { max-height: 34px; width: auto; }
.panel-close { min-width: 64px; min-height: 44px; border-radius: 10px; background: #fff; color: var(--deep); border: 1px solid var(--border); font-weight: 800; }
.basket-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.basket-group { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.basket-group h2 { font-size: 16px; color: var(--green); }
.basket-group a { display: block; border-top: 1px solid rgba(240,138,36,.12); padding: 10px 0; }
.basket-group a:first-of-type { border-top: 0; }
.basket-group b { display: block; color: var(--ink); }
.basket-group span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 2px; }
.search-layer { position: fixed; left: 0; right: 0; top: 92px; z-index: 120; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-layer.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); padding: 20px; }
.search-card label { display: block; margin: 14px 0 8px; color: var(--muted); }
.search-card input { width: 100%; min-height: 48px; border: 1px solid rgba(58,34,8,.22); border-radius: 10px; padding: 0 14px; color: var(--ink); background: #fffaf0; }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); font-weight: 800; }
.search-empty { color: var(--muted); margin-top: 12px; }
.mobile-bottom { display: none; }
.feature-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.feature-strip a { min-height: 96px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.feature-strip b { display: block; color: var(--ink); }
.feature-strip span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 900px) {
    .tag-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .card-grid-3 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .hero-grid, .two-col, .app-showcase { grid-template-columns: 1fr; }
    .feature-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    :root { --header-h: 92px; }
    .fruit-tabs { display: none; }
    .stall-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-logo { max-height: 32px; max-width: 150px; }
    .brand-text { font-size: 18px; white-space: nowrap; }
    .basket-button, .app-link { padding: 0 11px; min-width: 56px; }
    .site-main { padding-top: calc(var(--header-h) + 18px); }
    .hero-shelf, .page-hero { padding-top: 22px; }
    .section { padding: 18px 0 30px; }
    .section-card, .prose { padding: 20px; }
    .tag-grid, .card-grid-2, .basket-groups, .search-presets, .feature-strip { grid-template-columns: 1fr; }
    .shelf-row { grid-template-columns: 66px minmax(0,1fr); gap: 12px; }
    .shelf-row .inline-link { grid-column: 2; }
    .shelf-no { font-size: 28px; }
    .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .basket-panel { max-height: 88vh; }
    .search-layer { inset: 0; background: var(--paper); }
    .search-card { width: 100%; min-height: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 22px 16px; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5,1fr); }
    .mobile-bottom a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 13px; font-weight: 800; }
    .mobile-bottom a.is-current { background: var(--orange); color: var(--deep); }
    .banner-image, .image-slot.banner-image { min-height: 180px; max-height: 260px; }
}
