:root {
    --paper: #FFF4E0;
    --white: #FFFFFF;
    --sand: #F8E2B0;
    --title: #3A2208;
    --text: #4A2E12;
    --muted: #7A5530;
    --soft: #A07A4A;
    --yellow: #F5C518;
    --orange: #F08A24;
    --green: #3D8B4A;
    --brown: #1F1408;
    --line: rgba(240, 138, 36, 0.22);
    --shadow: 0 14px 34px rgba(58, 34, 8, 0.10);
    --radius: 16px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    min-width: 0;
    background: var(--paper);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    padding-top: 134px;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { border: 0; }
img { max-width: 100%; height: auto; display: block; }
.site-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.brand-strip { height: 22px; background: var(--brown); color: var(--yellow); font-size: 12px; }
.strip-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.strip-brand { font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.strip-search { min-width: 52px; height: 22px; padding: 0 8px; background: transparent; color: var(--yellow); cursor: pointer; font-weight: 800; }
.stall-bar { height: 70px; background: var(--yellow); border-bottom: 1px solid rgba(58,34,8,.12); }
.stall-inner { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-logo { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; max-width: 250px; }
.logo-image { height: 38px; width: auto; object-fit: contain; }
.logo-text { font-size: 24px; font-weight: 900; color: var(--brown); letter-spacing: -.04em; }
.basket-trigger, .app-link {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    color: var(--brown);
    cursor: pointer;
}
.basket-trigger { background: var(--white); border: 1px solid rgba(58,34,8,.12); box-shadow: 0 7px 20px rgba(58,34,8,.08); }
.app-link { justify-self: end; background: var(--brown); color: var(--sand); }
.fruit-tabs { height: 42px; background: var(--white); border-bottom: 1px solid var(--line); }
.fruit-tabs-inner { height: 42px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; overflow: hidden; }
.fruit-tabs a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.fruit-tabs a.is-active { background: var(--orange); color: var(--brown); }
.site-main { min-height: 60vh; }

.hero, .page-hero { padding: 34px 0 22px; }
.hero-media, .page-media {
    min-height: 180px;
    max-height: 320px;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--sand), #fff8e9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-media img, .page-media img { width: 100%; max-height: 320px; object-fit: cover; }
.hero-copy { padding-top: 24px; max-width: 860px; }
.kicker, .eyebrow { color: var(--orange); font-weight: 900; letter-spacing: .08em; font-size: 13px; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 14px; letter-spacing: -.03em; }
h2 { font-size: 23px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 17px; color: var(--muted); max-width: 820px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn-primary, .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 900;
}
.btn-primary { background: linear-gradient(135deg, #F5C518 0%, #F08A24 70%); color: var(--brown); }
.btn-secondary { background: var(--white); color: var(--brown); border: 1px solid var(--line); }
.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.section-head p { color: var(--muted); margin: 0; max-width: 620px; }
.card, .article-block, .shelf-card, .note-card, .policy-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.article-block, .policy-block { padding: 24px; margin-bottom: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { padding: 20px; }
.card p:last-child, .article-block p:last-child, .policy-block p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; color: var(--green); }
.tag-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.flavor-tag { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.flavor-tag strong { display: inline-block; margin-bottom: 6px; color: var(--title); }
.flavor-tag p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.flavor-tag a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 900; }
.flavor-tag:nth-child(3n+1) { border-top: 5px solid var(--yellow); }
.flavor-tag:nth-child(3n+2) { border-top: 5px solid var(--orange); }
.flavor-tag:nth-child(3n) { border-top: 5px solid var(--green); }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.number { font-size: 28px; font-weight: 950; color: var(--orange); line-height: 1; }
.number-item p { margin: 4px 0 0; color: var(--muted); }
.number-item a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 900; color: var(--green); }
.shelf { display: grid; gap: 14px; }
.shelf-card { padding: 18px 20px; display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; }
.shelf-card .shelf-label { font-weight: 950; color: var(--title); }
.shelf-card p { margin: 0; color: var(--muted); }
.shelf-card a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 900; color: var(--green); }
.big-number-list { display: grid; gap: 12px; }
.big-number-item { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.big-number-item:last-child { border-bottom: 0; }
.big-number-item .number { font-size: 48px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 3px solid var(--paper); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 8px; background: var(--sand); color: var(--brown); font-size: 13px; font-weight: 900; }
.step-list { counter-reset: step; display: grid; gap: 14px; }
.step-card { counter-increment: step; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.step-card::before { content: counter(step, decimal-leading-zero); display: inline-block; margin-bottom: 8px; color: var(--orange); font-size: 26px; font-weight: 950; }
.callout { background: var(--sand); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--title); }
.editor-note { border-left: 5px solid var(--green); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.contents-strip { display: grid; gap: 10px; }
.contents-strip a { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contents-strip span { color: var(--muted); font-size: 14px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.faq-item h2 { font-size: 18px; }
.faq-item p { margin-bottom: 0; }
.app-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.app-feature { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.app-icon { width: 76px; height: 76px; border-radius: 18px; background: var(--sand); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.mini-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mini-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-weight: 800; }

.site-footer { margin-top: 44px; background: var(--brown); color: var(--sand); padding: 34px 0 24px; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid rgba(248,226,176,.18); }
.footer-brand { display: flex; align-items: center; gap: 14px; min-width: 220px; }
.footer-logo { width: auto; height: 36px; object-fit: contain; }
.footer-brand strong { display: block; color: var(--yellow); font-size: 18px; }
.footer-brand span { display: block; font-size: 12px; color: var(--sand); }
.footer-brand-row p { max-width: 700px; color: var(--sand); margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; padding: 26px 0; }
.footer-grid h2 { color: var(--yellow); font-size: 15px; margin-bottom: 10px; }
.footer-grid a { display: block; min-height: 36px; color: var(--sand); font-size: 14px; }
.footer-bottom { padding-top: 18px; border-top: 1px solid rgba(248,226,176,.18); color: var(--sand); font-size: 13px; }

.overlay { position: fixed; inset: 0; background: rgba(31,20,8,.48); z-index: 80; 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(78vh, 760px);
    overflow-y: auto;
    transform: translate(-50%, 102%);
    background: var(--paper);
    z-index: 90;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 50px rgba(31,20,8,.20);
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s ease, visibility .24s ease;
}
.basket-panel.is-open { transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.basket-head { position: sticky; top: 0; z-index: 2; background: var(--yellow); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid rgba(58,34,8,.12); }
.basket-brand { display: flex; align-items: center; gap: 10px; color: var(--brown); }
.basket-logo { height: 32px; width: auto; }
.panel-close { min-height: 44px; min-width: 58px; padding: 0 12px; border-radius: 10px; background: var(--white); color: var(--brown); font-weight: 900; cursor: pointer; }
.basket-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
.basket-groups section { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.basket-groups h2 { font-size: 15px; color: var(--orange); margin-bottom: 6px; }
.basket-groups a { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; min-height: 54px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.basket-groups a:last-child { border-bottom: 0; }
.basket-groups strong { color: var(--title); }
.basket-groups span { color: var(--muted); font-size: 13px; }
.search-layer { position: fixed; top: 92px; left: 0; right: 0; z-index: 91; visibility: hidden; pointer-events: none; transform: translateY(-10px); opacity: 0; transition: .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(calc(100% - 32px), 760px); margin: 0 auto; padding: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.search-head h2 { margin-bottom: 14px; }
.search-look { min-height: 62px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; color: var(--muted); }
.search-look strong { color: var(--title); }
.search-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-weight: 900; }
.mobile-bottom-nav { display: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
a:hover, button:hover { filter: brightness(.98); }
.fruit-tabs a:hover, .footer-grid a:hover, .card-link:hover, .number-item a:hover, .shelf-card a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
    .card-grid, .three-col { grid-template-columns: 1fr 1fr; }
    .tag-grid { grid-template-columns: 1fr 1fr; }
    .app-feature-grid { grid-template-columns: 1fr 1fr; }
    .shelf-card { grid-template-columns: 120px 1fr; }
    .shelf-card a { grid-column: 2; justify-self: start; }
    .footer-brand-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
    body { padding-top: 92px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .site-shell { width: min(calc(100% - 32px), var(--max)); }
    .fruit-tabs { display: none; }
    .stall-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-logo { min-width: 0; max-width: 150px; }
    .logo-image { max-width: 100%; height: 32px; }
    .logo-text { font-size: 19px; white-space: nowrap; }
    .basket-trigger, .app-link { min-width: 58px; padding: 0 10px; font-size: 14px; }
    .app-link { justify-self: end; }
    .hero, .page-hero { padding-top: 24px; }
    .hero-media, .page-media { min-height: 150px; max-height: 260px; }
    .hero-media img, .page-media img { max-height: 260px; }
    .section { padding: 22px 0; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .card-grid, .three-col, .two-col, .tag-grid, .app-feature-grid { grid-template-columns: 1fr; }
    .number-item { grid-template-columns: 48px 1fr; }
    .number-item a { grid-column: 2; justify-self: start; }
    .shelf-card { grid-template-columns: 1fr; }
    .shelf-card a { grid-column: 1; }
    .big-number-item { grid-template-columns: 62px 1fr; }
    .big-number-item .number { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer { margin-top: 30px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .basket-panel { width: 100%; max-height: 82vh; }
    .basket-groups { grid-template-columns: 1fr; }
    .basket-groups a { grid-template-columns: 92px 1fr; }
    .search-layer { inset: 0; top: 0; background: var(--paper); overflow-y: auto; }
    .search-card { width: 100%; min-height: 100vh; margin: 0; border: 0; box-shadow: none; padding: calc(20px + env(safe-area-inset-top)) 16px 24px; }
    .search-look { align-items: flex-start; flex-direction: column; justify-content: center; padding: 14px 16px; }
    .search-links { grid-template-columns: 1fr 1fr; }
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        height: calc(50px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5,1fr);
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(58,34,8,.08);
    }
    .mobile-bottom-nav a { min-width: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: var(--muted); }
    .mobile-bottom-nav a.is-active { background: var(--orange); color: var(--brown); }
    .overlay { z-index: 80; }
    .basket-panel, .search-layer { z-index: 90; }
}

@media (max-width: 420px) {
    .strip-brand { max-width: calc(100vw - 80px); overflow: hidden; text-overflow: ellipsis; }
    .basket-trigger, .app-link { font-size: 13px; padding: 0 8px; }
    .search-links, .footer-grid { grid-template-columns: 1fr; }
}
