*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fff;
    --bg-gray: #f7f7f7;
    --text: #111;
    --text-sub: #666;
    --text-light: #999;
    --border: #e8e8e8;
    --line: #06c755;
    --line-dark: #05a847;
    --red: #d32f2f;
    --black: #111;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    padding-bottom: calc(64px + var(--safe-bottom));
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 顶部促销 */
.promo-bar {
    background: var(--black);
    color: #fff;
    font-size: 12px;
    overflow: hidden;
}

.promo-bar-inner {
    padding: 8px 16px;
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.promo-sep {
    margin: 0 10px;
    opacity: 0.4;
}

/* 头部 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    gap: 12px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: 0.2s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.logo {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-line-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--line);
    border: 1.5px solid var(--line);
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    background: #fff;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.mobile-nav .nav-line-link {
    background: var(--line);
    color: #fff;
    text-align: center;
    font-weight: 700;
    border-bottom: none;
}

/* Hero */
.hero {
    background: var(--bg-gray);
    padding: 32px 16px;
    text-align: center;
}

.hero-label {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.hero-desc {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* LINE 按钮 */
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--line);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-line:active {
    background: var(--line-dark);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

/* 促销列表 */
.promo-list {
    padding: 20px 16px;
    border-bottom: 8px solid var(--bg-gray);
}

.promo-list ul {
    list-style: none;
}

.promo-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}

.promo-list li:last-child {
    border-bottom: none;
}

.promo-list strong {
    color: var(--text);
    font-weight: 700;
}

/* 商品区 */
.products {
    padding: 28px 16px 36px;
}

.section-head {
    text-align: center;
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-head p {
    font-size: 12px;
    color: var(--text-sub);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 2;
}

.product-img {
    aspect-ratio: 1;
    background: var(--bg-gray);
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.product-body {
    padding: 10px;
}

.product-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-sub {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-old {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-now {
    font-size: 15px;
    font-weight: 700;
}

.product-body .btn-line {
    font-size: 12px;
    padding: 9px 8px;
    width: 100%;
}

/* CTA */
.cta-strip {
    background: var(--black);
    color: #fff;
    text-align: center;
    padding: 28px 16px;
}

.cta-strip p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.cta-strip strong {
    color: #fff;
}

/* 信任区 */
.trust-section {
    padding: 28px 16px;
    background: var(--bg-gray);
}

.trust-grid {
    display: grid;
    gap: 16px;
}

.trust-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 4px;
}

.trust-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 12px;
    color: var(--text-sub);
}

/* 联系 */
.contact {
    padding: 32px 16px;
    text-align: center;
}

.contact h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact > p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.contact-hours {
    font-size: 12px;
    margin-bottom: 12px;
}

.contact-line-id {
    font-size: 13px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--bg-gray);
    display: inline-block;
    border-radius: 4px;
}

.contact-line-id strong {
    color: var(--line);
}

/* 页脚 */
.footer {
    padding: 20px 16px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-light);
}

.footer-age {
    margin-top: 4px;
}

/* 手机底部固定栏 */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 8px 12px calc(8px + var(--safe-bottom));
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.mobile-bottom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--line);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 13px;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-btn:active {
    background: var(--line-dark);
}

/* 平板 */
@media (min-width: 640px) {
    body {
        padding-bottom: 0;
    }

    .mobile-bottom-bar {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 48px 24px;
    }

    .products {
        padding: 40px 24px;
        max-width: 1100px;
        margin: 0 auto;
    }

    .promo-list,
    .trust-section,
    .contact,
    .cta-strip {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .promo-list {
        padding: 24px;
    }
}

/* 桌面 */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .header-inner {
        max-width: 1100px;
        margin: 0 auto;
        height: 60px;
        padding: 0 24px;
    }

    .mobile-nav {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 32px;
        border-top: none;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 24px 12px;
    }

    .mobile-nav a {
        border: none;
        padding: 0;
        font-size: 13px;
        color: var(--text-sub);
    }

    .mobile-nav a:hover {
        color: var(--text);
    }

    .mobile-nav .nav-line-link {
        background: none;
        color: var(--line);
        font-weight: 700;
        border: 1.5px solid var(--line);
        padding: 6px 14px;
        border-radius: 4px;
    }

    .header-line-btn {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .product-title {
        font-size: 13px;
    }

    .hero {
        padding: 60px 24px;
    }

    .hero h1 {
        font-size: 32px;
    }
}
