
/* ==================== 1. 首页涂鸦区 ==================== */
.hero { text-align: center; position: relative; padding: 80px 0 28px;}
        
/* 大标题涂鸦包裹器 */
.hero-title-wrapper {
    position: relative;
    display: inline-block; /* 收缩包裹，让涂鸦紧贴标题边缘 */
}
        
/* 漂浮涂鸦样式 */
.doodle {
    position: absolute;
    pointer-events: none; /* 不阻挡鼠标点击 */
    animation: doodleFloat 4s ease-in-out infinite alternate;
    z-index: -1;
}
.doodle i { 
    width: 64px; height: 64px; 
    stroke-width: 2px; color: var(--ink); 
    position: relative; z-index: 2;
}
/* 涂鸦背后的马克笔色块 */
.doodle-blob {
    position: absolute; width: 45px; height: 45px; border-radius: 50%;
    top: 5px; left: 0px; z-index: 1; opacity: 0.9;
}
.doodle-left { top: -20px; left: -80px; --rot: -15deg; }
.doodle-right { bottom: 15px; right: -70px; --rot: 20deg; animation-delay: -2s; }
        
@keyframes doodleFloat {
    0% { transform: translateY(0) rotate(var(--rot)); }
    100% { transform: translateY(-15px) rotate(calc(var(--rot) + 10deg)); }
}

.hero h1 {
    font-size: 56px; font-weight: 700; margin-bottom: 30px; line-height: 1.3;
}
        
.hero p {
    font-size: 22px; color: var(--ink-light);
    max-width: 700px; margin: 0 auto 40px; font-weight: 400;
    border-bottom: 2px dashed var(--ink-light); padding-bottom: 10px;
}

.hero-actions { display: flex; justify-content: center; gap: 24px; margin-bottom: 80px; }
.hero .hero-actions { margin-bottom: 52px; }

/* 手绘白板/终端假想图 */
.hero-showcase {
    max-width: 900px; margin: 0 auto; position: relative;
}
/* 便利贴胶带装饰 */
.tape {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg);
    width: 120px; height: 30px; background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 10; opacity: 0.8;
}

.showcase-panel {
    background: #fff;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-1);
    padding: 10px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-1deg);
}
.showcase-inner {
    border: 2px dashed var(--ink-light); border-radius: 12px;
    display: flex; flex-direction: column; background: #fafafa;
}
.showcase-header {
    height: 50px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; padding: 0 20px; gap: 12px;
}
.sc-dot { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; }
.sc-dot:nth-child(1) { background: #ffb6c1; } .sc-dot:nth-child(2) { background: #ffde59; } .sc-dot:nth-child(3) { background: #a7f3d0; }
.showcase-body { display: flex; padding: 24px; gap: 24px; min-height: 300px; text-align: left;}
        
.sc-doodle-text { font-size: 20px; color: var(--ink); line-height: 1.8;}
.sc-doodle-text span { color: var(--ink-light); }

/* 核心优势网格（缩小与上方 Hero/价目条的间距） */
.bento-section { padding: 36px 0 88px; }

/* 标题上方的商品展示栏（价目条） */
.product-strip {
    position: relative;
    max-width: 920px;
    margin: 0 auto 56px;
    padding: 28px 28px 24px;
    background: #fff;
    text-align: center;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.08);
}
.product-strip--in-hero {
    margin-bottom: 0;
    padding-bottom: 20px;
}
.product-strip-scribble {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--ink) 0,
        var(--ink) 4px,
        transparent 4px,
        transparent 9px
    );
    opacity: 0.12;
    border-radius: var(--sketch-radius-1) var(--sketch-radius-1) 0 0;
    pointer-events: none;
}
.product-strip-eyebrow {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin: 0 0 20px 0;
}
.product-strip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    text-align: left;
}
@media (max-width: 640px) {
    .product-strip-grid { grid-template-columns: 1fr; }
}
.product-strip-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 18px 16px;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-3);
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.06);
}
.product-strip-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
}
.product-strip-card--featured {
    border-width: 2.5px;
}
.psc-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
}
.psc-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--marker-blue);
}
.psc-badge-pop {
    background: var(--marker-pink);
}
.psc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin-top: 4px;
}
.psc-currency {
    font-size: 22px;
    font-weight: 800;
}
.psc-amount {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.psc-unit {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-light);
}
.psc-note {
    font-size: 13px;
    color: var(--ink-light);
    margin-top: 2px;
}
.product-strip-specs {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    border: 2px dashed var(--ink-light);
    border-radius: var(--sketch-radius-3);
    background: rgba(255, 255, 255, 0.6);
}
.product-strip-specs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.product-strip-specs i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2.25px;
}
.product-strip-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.product-strip-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.product-strip-cta--secondary {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}
.product-strip-cta:hover {
    color: var(--ink-light);
}
.product-strip-cta--secondary:hover {
    color: var(--ink);
}
.product-strip-cta i {
    width: 20px;
    height: 20px;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; display: inline-block; position: relative;}
.section-header h2::after { content:''; position: absolute; bottom: -5px; left: -10%; width: 120%; height: 6px; background: var(--marker-yellow); z-index: -1; transform: rotate(-1deg);}
.section-header p { color: var(--ink-light); font-size: 20px; max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.55; }

/* 商品展示栏上方的标题区：与下方价目条 / 与 hero 主区留白 */
.section-header--product-strip {
    margin-bottom: 28px;
}
.section-header--in-hero {
    margin-top: 8px;
}
.section-header--draft-showcase {
    margin-bottom: 28px;
}
.hero-showcase--in-bento {
    margin-bottom: 40px;
}

/* 草稿窗下方：流程 + 场景（补全首页信息密度） */
.home-flow-band {
    max-width: 960px;
    margin: 52px auto 40px;
    text-align: center;
}
.home-subsection-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.home-subsection-lead {
    font-size: 16px;
    color: var(--ink-light);
    margin: 0 0 22px 0;
}
.home-flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}
@media (max-width: 820px) {
    .home-flow-steps { grid-template-columns: 1fr; }
}
.home-flow-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 18px 16px;
    margin: 0;
    background: #fff;
}
.home-flow-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    background: var(--marker-yellow);
    border: var(--border-width) solid var(--ink);
    border-radius: 50%;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}
.home-flow-copy strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
}
.home-flow-copy p {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.55;
    margin: 0;
}

.home-scenes {
    max-width: 920px;
    margin: 0 auto 48px;
    text-align: center;
}
.home-scenes-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    margin-bottom: 16px;
}
.scene-tag {
    display: inline-block;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    background: #fafafa;
}
.home-scenes-foot {
    font-size: 15px;
    color: var(--ink-light);
    margin: 0;
    line-height: 1.6;
}
.home-scenes-foot a {
    font-weight: 800;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.home-scenes-foot a:hover {
    color: var(--ink-light);
}

.bento-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.bento-card {
    padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff;
}
/* 随机旋转手账卡片 */
.bento-card:nth-child(even) { transform: rotate(1.5deg); }
.bento-card:nth-child(odd) { transform: rotate(-1.5deg); }
.bento-card:hover { transform: rotate(0) translateY(-5px); }

.bento-icon { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); display:flex; align-items:center; justify-content:center; margin-bottom: 20px; background: var(--marker-blue);}
.bento-card:nth-child(2) .bento-icon { background: var(--marker-pink); }
.bento-card:nth-child(3) .bento-icon { background: var(--marker-green); }

/* ========== 首页增强动效（与 common.css 变量配合）========== */
@media (prefers-reduced-motion: no-preference) {
    .showcase-panel {
        animation: showcaseDrift 9s ease-in-out infinite alternate;
    }
    @keyframes showcaseDrift {
        from { transform: translateY(0) rotate(-1deg); }
        to { transform: translateY(-7px) rotate(-0.35deg); }
    }
}

.hero-title-wrapper h1 .hl-yellow {
    transition: transform 0.45s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1));
}
@media (prefers-reduced-motion: no-preference) {
    .hero-title-wrapper:hover h1 .hl-yellow {
        transform: rotate(-1deg) scale(1.03);
    }
}

.product-strip-card {
    transition:
        transform 0.4s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1)),
        box-shadow 0.35s ease,
        background 0.28s ease;
}

.bento-card {
    transition:
        transform 0.42s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1)),
        box-shadow 0.36s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .bento-card:hover {
        box-shadow: 10px 10px 0 rgba(43, 43, 43, 0.11);
    }
}

.home-flow-num {
    transition:
        transform 0.35s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1)),
        box-shadow 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .home-flow-step:hover .home-flow-num {
        transform: scale(1.1) rotate(-5deg);
        box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.12);
    }
}

.product-strip-cta i {
    transition: transform 0.32s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1));
}
.product-strip-cta:hover i {
    transform: translateX(5px);
}

.home-scenes-tags .scene-tag.sketch-box {
    transition:
        transform 0.38s var(--ease-spring, cubic-bezier(0.34, 1.35, 0.64, 1)),
        box-shadow 0.32s ease;
}
@media (prefers-reduced-motion: no-preference) {
    .home-scenes-tags .scene-tag.sketch-box:hover {
        transform: translate(-2px, -4px) rotate(0deg);
        box-shadow: 7px 7px 0 var(--ink);
    }
}

/* ========== 首页宽屏：主栏两侧小公仔（靠内、轻量动效）========== */
#page-home.home-page {
    position: relative;
}

@media (min-width: 1280px) {
    #page-home.home-page > section {
        position: relative;
        z-index: 1;
    }
}

.home-side-rail {
    display: none;
}

@media (min-width: 1280px) {
    .home-side-rail {
        display: block;
        position: fixed;
        top: 100px;
        bottom: auto;
        width: 118px;
        pointer-events: none;
        z-index: 0;
        overflow: visible;
        color: var(--ink);
    }

    /* 更靠主栏：提高比例与上限，宽屏时公仔再往中间收 */
    .home-side-rail--left {
        left: clamp(24px, calc((100vw - 1200px) * 0.62 + 68px), 500px);
        right: auto;
    }

    .home-side-rail--right {
        right: clamp(24px, calc((100vw - 1200px) * 0.62 + 68px), 500px);
        left: auto;
    }

    .home-side-rail-inner {
        position: relative;
        width: 100%;
        min-height: min(calc(100vh - 100px), 720px);
    }

    .home-rail-slot {
        position: absolute;
        width: 92px;
        pointer-events: none;
    }

    .home-rail-slot .home-rail-svg {
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        filter: drop-shadow(3px 4px 0 rgba(43, 43, 43, 0.08));
    }

    .home-rail-svg--tiny {
        width: 100%;
        max-width: 64px;
    }

    /* 左侧：云上、小豆子落到视窗中下（填下半空白，不挤在云上） */
    .home-rail-slot--cloud {
        top: 4px;
        left: 2px;
        transform: rotate(-8deg);
    }

    .home-rail-slot--bean {
        top: clamp(300px, 40vh, 480px);
        left: -6px;
        width: 58px;
        transform: rotate(18deg);
    }

    .home-rail-slot--bean .home-rail-svg--tiny {
        max-width: 58px;
    }

    /* 右侧：电仔略前倾；铅笔头小圆脸挂下角 */
    .home-rail-slot--spark {
        top: 20px;
        right: -6px;
        left: auto;
        transform: rotate(7deg);
    }

    .home-rail-slot--pencil {
        top: clamp(320px, 44vh, 500px);
        right: -10px;
        left: auto;
        width: 56px;
        transform: rotate(-11deg);
    }

    .home-rail-slot--pencil .home-rail-svg--tiny {
        max-width: 56px;
    }
}

@media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
    .home-rail-mascot {
        transform-origin: 50% 85%;
        animation: homeMascotBob 3.8s ease-in-out infinite;
    }

    .home-rail-mascot.home-rail-mascot--spark {
        animation: homeMascotBobSpark 3.8s ease-in-out infinite;
        animation-delay: -1.4s;
    }

    .home-rail-mascot--mini {
        transform-origin: 50% 75%;
        animation: homeMascotBobMini 2.7s ease-in-out infinite;
        animation-delay: -0.7s;
    }

    .home-rail-mascot--mini.home-rail-mascot--pencil {
        animation-duration: 3.2s;
        animation-delay: -1.9s;
    }

    @keyframes homeMascotBob {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-5px) rotate(-1.5deg); }
    }

    @keyframes homeMascotBobSpark {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-6px) rotate(1.8deg); }
    }

    @keyframes homeMascotBobMini {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); }
    }
}