/* 衣图宝官网首页样式
   —— 独立文件而不是内联到模板，避免 CSS 的 { } 被 ThinkTemplate 误解析
   —— 不依赖任何外部 CDN 与图片资源，纯 CSS 绘制界面示意 */

:root {
    /* 主色取自 YTB logo：玫红底 + 橙色点缀 */
    --brand: #e0187a;
    --brand-dark: #c41269;
    --brand-deep: #9c0e55;
    --brand-accent: #f5871f;
    --brand-soft: #fdeaf4;
    --ink: #1d1820;
    --ink-2: #645b66;
    --ink-3: #958b98;
    --line: #f0e9ed;
    --bg-soft: #fdf6fa;
    --radius: 20px;
    --shadow-sm: 0 6px 18px -10px rgba(120, 20, 72, .25);
    --shadow: 0 24px 50px -26px rgba(120, 20, 72, .35);
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- 导航 ---------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .5px;
    flex-shrink: 0;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 16px -8px rgba(224, 24, 122, .55);
}

.logo-text {
    letter-spacing: .5px;
}

.nav-links {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 14.5px;
    color: var(--ink-2);
}

.nav-links a:hover {
    color: var(--brand-dark);
}

.nav-cta {
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 20px -12px rgba(224, 24, 122, .95);
    transition: transform .18s ease, background .18s ease;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 78% -6%, #fce4f1 0%, rgba(252, 228, 241, 0) 70%),
        radial-gradient(600px 300px at 8% 90%, #fff0e0 0%, rgba(255, 240, 224, 0) 70%),
        linear-gradient(180deg, #fff9fc 0%, #ffffff 62%);
}

/* 注意：只写上下内边距，左右沿用 .wrap 的 24px，
   否则会覆盖 .wrap 的 padding 导致内容贴边、文字被 overflow 裁切 */
.hero-inner {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 56px;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 84px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 600;
}

.badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent);
}

.hero h1 {
    margin: 20px 0 18px;
    font-size: 46px;
    line-height: 1.22;
    letter-spacing: -1px;
    font-weight: 800;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand);
    /* 底部橙色高亮，呼应 logo 的丝带；用背景渐变避免伪元素被背景遮挡 */
    background: linear-gradient(transparent 68%, rgba(245, 135, 31, .26) 68%);
}

.hero p.lead {
    margin: 0;
    max-width: 540px;
    font-size: 16.5px;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 16px 30px -16px rgba(224, 24, 122, .95);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    color: var(--brand-dark);
    border-color: #f4c9df;
    transform: translateY(-2px);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: var(--ink-3);
}

.hero-points li::before {
    content: "✓";
    color: var(--brand);
    font-weight: 700;
    margin-right: 6px;
}

/* ---------------- 手机示意 ---------------- */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone {
    position: relative;
    width: 292px;
    border-radius: 40px;
    background: #10141a;
    padding: 10px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(16, 20, 26, .06);
    transform: rotate(-2deg);
}

.phone::after {
    content: "";
    position: absolute;
    inset: -34px -34px auto auto;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 24, 122, .25), rgba(224, 24, 122, 0) 68%);
    z-index: -1;
}

.phone-screen {
    border-radius: 32px;
    background: #f5f7f9;
    padding: 18px 14px 22px;
    min-height: 486px;
    overflow: hidden;
}

.mock-bar {
    height: 34px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.mock-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 22px -18px rgba(120, 20, 72, .45);
    margin-bottom: 12px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.mock-grid span {
    aspect-ratio: 1 / 1;
    border-radius: 7px;
    background: linear-gradient(150deg, #f8dce9, #fceef4);
}

.mock-grid span:nth-child(2) {
    background: linear-gradient(150deg, #fbe3d4, #f7efe8);
}

.mock-grid span:nth-child(3) {
    background: linear-gradient(150deg, #dbe4f8, #eef2fb);
}

.mock-grid span:nth-child(4) {
    background: linear-gradient(150deg, #f6dbe6, #fbf0f4);
}

.mock-line {
    height: 9px;
    border-radius: 999px;
    background: #eef1f4;
    margin: 11px 0 8px;
}

.mock-line.short {
    width: 62%;
}

.mock-tags {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.mock-tags span {
    height: 16px;
    border-radius: 5px;
    background: var(--brand-soft);
    width: 46px;
}

.mock-tags span:nth-child(2) {
    width: 36px;
    background: #f1f4f7;
}

.mock-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #f3f5f7;
}

.mock-foot span {
    height: 8px;
    width: 52px;
    border-radius: 999px;
    background: #f0f3f5;
}

.mock-foot b {
    height: 8px;
    width: 30px;
    border-radius: 999px;
    background: var(--brand-soft);
}

/* ---------------- 通用段落 ---------------- */
.section {
    padding: 82px 0;
}

.section-head {
    max-width: 620px;
    margin-bottom: 44px;
}

.section-head .eyebrow {
    color: var(--brand-dark);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 12px 0 14px;
    font-size: 33px;
    line-height: 1.3;
    letter-spacing: -.5px;
    font-weight: 800;
}

.section-head p {
    margin: 0;
    color: var(--ink-2);
    font-size: 15.5px;
}

.section-soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------------- 功能卡 ---------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: #f4c9df;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.feature p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-2);
}

/* ---------------- 流程 ---------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 30px 24px 26px;
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 12px 22px -14px rgba(224, 24, 122, .95);
}

.step h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.step p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
}

/* ---------------- 适用人群 ---------------- */
.scenes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.scene {
    padding: 22px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .18s ease, border-color .18s ease;
}

.scene:hover {
    color: var(--brand-deep);
    border-color: #f4c9df;
}

/* ---------------- 底部 CTA ---------------- */
.cta {
    padding: 64px 0 78px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 54px 48px;
    background: linear-gradient(130deg, #e0187a 0%, #a20e55 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    box-shadow: 0 30px 60px -34px rgba(162, 14, 85, .85);
}

.cta-card::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.cta-card::after {
    content: "";
    position: absolute;
    right: 90px;
    bottom: -120px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    margin: 0 0 12px;
    font-size: 30px;
    letter-spacing: -.5px;
}

.cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    max-width: 520px;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 224px;
}

/* 小程序码：白色卡片托底，避免二维码白底与深绿背景直接相邻 */
.qr-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px 12px 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 36px -22px rgba(0, 0, 0, .65);
}

.qr-img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    flex-shrink: 0;
}

.qr-tip {
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 600;
    color: var(--brand-deep);
}

/* ---------------- 页脚 ---------------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 30px 0 40px;
    background: #fff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    color: var(--ink-3);
}

.footer-inner a:hover {
    color: var(--brand-dark);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 46px;
        padding-top: 56px;
        padding-bottom: 64px;
    }

    .hero h1 {
        font-size: 38px;
    }

    /* 移动端：先让用户读到标题与说明，再看到界面示意，避免首屏被示意图占满 */
    .hero-visual {
        order: 1;
    }

    .phone {
        width: 258px;
        transform: none;
    }

    .features,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenes {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 31px;
    }

    .hero p.lead {
        font-size: 15.5px;
    }

    .section {
        padding: 60px 0;
    }

    .section-head h2 {
        font-size: 26px;
    }

    .features,
    .steps,
    .scenes {
        grid-template-columns: 1fr;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    .cta-actions {
        width: 100%;
    }
}
