/* ===================================================================
   Storage Mini Program Home — index.css
   Warm off-white + wood + sage green · Japanese-inspired order
   Glass nav / sunlit hero / alternating features / QR card / footer
   =================================================================== */

/* ---- reset & vars ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
    --c-warm:      #FFFDF9;
    --c-cream:     #FBF6EE;
    --c-linen:     #F3EDE3;
    --c-wood:      #C4A882;
    --c-wood-d:    #A89070;
    --c-sage:      #7D9B76;
    --c-sage-d:    #6B8A6A;
    --c-sage-l:    #E8F0E5;
    --c-text:      #3D3226;
    --c-muted:     #8B7E6E;
    --c-soft:      #B5A898;
    --c-border:    #E8E0D5;
    --c-surface:   #FFFFFF;
    --c-glass-bg:  rgba(255,253,249,.82);
    --c-glass-border: rgba(196,168,130,.18);
    --radius:      14px;
    --radius-sm:   8px;
    --shadow-xs:   0 1px 3px rgba(61,50,38,.05);
    --shadow-card: 0 4px 24px rgba(61,50,38,.07);
    --shadow-lg:   0 12px 40px rgba(61,50,38,.09);
    --ease-out:    cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --nav-h: 64px;
    --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC","Microsoft YaHei","SF Pro SC","SF Pro Display",system-ui,-apple-system,sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.nav.is-scrolled {
    background: var(--c-glass-bg);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: var(--shadow-xs);
    border-bottom: 1px solid var(--c-border);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.008em;
}

.nav-logo-mark {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--c-sage-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-sage);
    flex-shrink: 0;
}

/* links */
.nav-panel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 15px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--c-muted);
    border-radius: var(--radius-sm);
    transition: color .25s, background .25s;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--c-sage);
    background: var(--c-sage-l);
}

.nav-auth { display: flex; gap: 8px; margin-left: 12px; }

/* burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform .25s var(--ease-out), opacity .25s;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 24px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.4;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s, color .25s, border-color .25s;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
    color: var(--c-sage);
    border: 1.5px solid var(--c-border);
}
.btn-ghost:hover {
    border-color: var(--c-sage);
    background: var(--c-sage-l);
}

.btn-fill {
    color: #fff;
    background: var(--c-sage);
}
.btn-fill:hover { background: var(--c-sage-d); box-shadow: 0 6px 20px rgba(125,155,118,.3); }

/* ---- HERO ---- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--c-warm);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 75% 25%, rgba(125,155,118,.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 25% 70%, rgba(196,168,130,.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 85%, rgba(125,155,118,.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-body {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    padding: 0 24px;
}

.hero-heading {
    font-size: clamp(34px, 5.5vw, 50px);
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero-lede {
    font-size: clamp(15px, 2vw, 17.5px);
    color: var(--c-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-fill {
    color: #fff;
    background: var(--c-sage);
    font-size: 16px;
    padding: 14px 34px;
    box-shadow: 0 6px 24px rgba(125,155,118,.28);
}

.btn-hero-fill:hover {
    background: var(--c-sage-d);
    box-shadow: 0 10px 32px rgba(125,155,118,.38);
    transform: translateY(-2px);
}

.btn-hero-outline {
    color: var(--c-sage);
    font-size: 16px;
    padding: 14px 34px;
    border: 1.5px solid var(--c-border);
}

.btn-hero-outline:hover {
    border-color: var(--c-sage);
    background: var(--c-sage-l);
    transform: translateY(-2px);
}

/* scroll hint */
.hero-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-hint-chevron {
    display: block;
    width: 26px; height: 26px;
    border-right: 2px solid var(--c-soft);
    border-bottom: 2px solid var(--c-soft);
    transform: rotate(45deg);
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
    0%,100% { transform: rotate(45deg) translateY(0); }
    50%     { transform: rotate(45deg) translateY(7px); }
}

/* ---- SECTION HEADERS ---- */
.sec-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.sec-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.sec-desc {
    font-size: 16.5px;
    color: var(--c-muted);
    line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
    padding: 100px 24px;
    background: var(--c-surface);
}

.feat-list {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.feat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.feat-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-icon-ring {
    width: 128px; height: 128px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-sage-l);
    color: var(--c-sage);
    box-shadow: 0 2px 4px rgba(61,50,38,.04), 0 6px 20px rgba(125,155,118,.1);
    transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-out);
    position: relative;
}

.feat-icon-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 34px;
    border: 1.5px dashed var(--c-border);
    pointer-events: none;
    transition: border-color .35s;
}

.feat-row:hover .feat-icon-ring {
    transform: scale(1.07);
    box-shadow: 0 4px 8px rgba(61,50,38,.05), 0 10px 32px rgba(125,155,118,.16);
}

.feat-row:hover .feat-icon-ring::after {
    border-color: var(--c-sage);
}

.feat-copy {
    max-width: 460px;
}

.is-reverse .feat-copy {
    margin-left: auto;
    text-align: right;
}
.is-reverse .feat-visual { order: 2; }
.is-reverse .feat-copy  { order: 1; }

.feat-name {
    font-size: 23px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.01em;
    margin-bottom: 12px;
}

.feat-desc {
    font-size: 15.5px;
    color: var(--c-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.feat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.is-reverse .feat-tags { justify-content: flex-end; }

.feat-tags span {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-sage-d);
    background: var(--c-sage-l);
    border-radius: 9999px;
    transition: background .25s, color .25s;
}

/* ---- MINI PROGRAM QR ---- */
.qrcode {
    padding: 100px 24px;
    background: var(--c-cream);
}

.qrcode-card {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    background: var(--c-surface);
    border-radius: 20px;
    padding: 56px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-border);
}

.qrcode-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder {
    position: relative;
    width: 200px; height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-warm);
    border: 2px dashed var(--c-border);
    border-radius: 16px;
    padding: 20px;
}

.qrcode-placeholder svg {
    opacity: .55;
}

.qrcode-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--c-soft);
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}

.qrcode-copy {
    max-width: 340px;
}

.qrcode-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.012em;
    line-height: 1.3;
    margin-bottom: 12px;
}

.qrcode-desc {
    font-size: 15px;
    color: var(--c-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.qrcode-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qrcode-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: var(--c-text);
}

.qrcode-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--c-sage-l);
    color: var(--c-sage);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--c-cream);
    color: var(--c-muted);
    border-top: 1px solid var(--c-border);
}

.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 56px 24px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 14px;
    letter-spacing: -.005em;
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--c-muted);
    padding: 5px 0;
    transition: color .2s;
}

.footer-link:hover { color: var(--c-sage); }

.footer-bar {
    border-top: 1px solid var(--c-border);
    padding: 18px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--c-soft);
}

.footer-bar a {
    color: var(--c-soft);
    transition: color .2s;
}

.footer-bar a:hover { color: var(--c-sage); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* tablet */
@media (max-width: 1023px) {
    .feat-row { gap: 44px; }
    .feat-icon-ring {
        width: 104px; height: 104px;
        border-radius: 24px;
    }
    .feat-icon-ring::after { border-radius: 30px; }
    .feat-icon-ring svg { width: 36px; height: 36px; }
    .qrcode-card { gap: 40px; padding: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* mobile */
@media (max-width: 767px) {
    :root { --nav-h: 56px; }

    /* nav */
    .nav.is-scrolled {
        background: rgba(255,253,249,.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .nav-burger { display: flex; }

    .nav-panel {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        bottom: 0;
        z-index: 99;
        background: rgba(255,253,249,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 28px 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform .35s var(--ease-out);
        overflow-y: auto;
    }
    .nav-panel.is-open { transform: translateX(0); }

    .nav-link {
        padding: 14px 16px;
        font-size: 17px;
        font-weight: 600;
        color: var(--c-text);
        border-radius: var(--radius-sm);
    }
    .nav-link:hover,
    .nav-link.is-active { color: var(--c-sage); background: var(--c-sage-l); }
    .nav-auth {
        margin-left: 0;
        margin-top: 16px;
        flex-direction: column;
        gap: 10px;
    }
    .btn-ghost,
    .btn-fill { width: 100%; padding: 14px 0; font-size: 16px; }

    /* hero */
    .hero-body { padding: 0 20px; }
    .hero-heading { font-size: 32px; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-hero-fill,
    .btn-hero-outline { width: 100%; }

    /* features */
    .features { padding: 72px 20px; }
    .sec-head { margin-bottom: 48px; }
    .feat-list { gap: 56px; }
    .feat-row {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .is-reverse .feat-copy { margin-left: 0; text-align: center; }
    .is-reverse .feat-visual { order: -1; }
    .feat-copy { max-width: none; }
    .feat-visual { order: -1; }
    .feat-tags { justify-content: center; }
    .is-reverse .feat-tags { justify-content: center; }

    .feat-icon-ring {
        width: 80px; height: 80px;
        border-radius: 20px;
    }
    .feat-icon-ring::after { border-radius: 26px; }
    .feat-icon-ring svg { width: 32px; height: 32px; }

    /* qrcode */
    .qrcode { padding: 72px 20px; }
    .qrcode-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
        text-align: center;
    }
    .qrcode-copy { max-width: none; }
    .qrcode-placeholder { width: 180px; height: 180px; }
    .qrcode-steps { align-items: center; }
    .qrcode-step { text-align: left; }

    /* footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 20px 28px;
    }
    .footer-bar { padding: 16px 20px; }
}

/* small phones */
@media (max-width: 380px) {
    .hero-heading { font-size: 26px; }
    .sec-title { font-size: 23px; }
    .qrcode-card { padding: 24px 18px; }
    .qrcode-title { font-size: 22px; }
}
