/* ============================================================
   首页专属样式 - 布艺配饰风自由聚散布局
   ============================================================ */

/* ---------- Hero 区 ---------- */
.hero {
    position: relative; padding: 150px 0 90px; overflow: hidden;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .tag-label { margin-bottom: 24px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--lotus-deep); position: relative; }
.hero h1 em::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
    background: var(--sage-soft); z-index: -1; border-radius: 6px;
}
.hero-lead { font-size: 1.08rem; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 36px; margin-top: 46px; flex-wrap: wrap; }
.hero-meta .item .num { font-family: var(--f-serif); font-size: 2rem; color: var(--lotus-deep); font-weight: 600; }
.hero-meta .item .lbl { font-size: .85rem; color: var(--ink-mute); }

/* Hero 右侧：悬挂布艺图组 */
.hero-visual { position: relative; height: 520px; }
.hero-visual .frame-main {
    position: absolute; top: 0; right: 0; width: 78%; height: 88%;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px;
    overflow: hidden; box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}
.hero-visual .frame-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .frame-sub {
    position: absolute; left: 0; bottom: 0; width: 46%; height: 44%;
    border-radius: 8px var(--radius) var(--radius) var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    border: 6px solid var(--cream);
    transform: rotate(-3deg);
}
.hero-visual .frame-sub img { width: 100%; height: 100%; object-fit: cover; }
/* 悬挂吊牌 */
.hero-tag {
    position: absolute; background: var(--cream); padding: 10px 16px;
    border-radius: 6px; box-shadow: var(--shadow-sm); font-size: .82rem; color: var(--ink);
    z-index: 3; font-weight: 500;
}
.hero-tag::before {
    content: ""; position: absolute; top: -10px; left: 16px; width: 2px; height: 14px; background: var(--ink-mute);
}
.hero-tag.t1 { top: 8%; left: -4%; transform: rotate(-6deg); }
.hero-tag.t2 { top: 40%; right: -2%; transform: rotate(5deg); background: var(--sage-soft); }
/* 缝线圆点装饰 */
.hero-dots {
    position: absolute; top: -30px; left: 38%; display: grid; grid-template-columns: repeat(4, 8px); gap: 10px;
}
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--lotus); }
.hero-dots span:nth-child(2n) { background: var(--sage); }

/* ---------- 核心优势：散落卡片 ---------- */
.advantage { background: var(--cream-2); }
.adv-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 50px; }
.adv-cluster { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adv-card {
    background: var(--white); border-radius: var(--radius); padding: 34px 28px;
    box-shadow: var(--shadow-sm); transition: transform .4s, box-shadow .4s;
    position: relative; border: 1px solid var(--line);
}
.adv-card:nth-child(1) { transform: translateY(28px); }
.adv-card:nth-child(3) { transform: translateY(56px); }
.adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.adv-card:nth-child(1):hover, .adv-card:nth-child(3):hover { transform: translateY(20px); }
.adv-card .ic {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--lotus-soft); margin-bottom: 20px;
}
.adv-card:nth-child(2) .ic { background: var(--sage-soft); }
.adv-card .ic svg { width: 30px; height: 30px; }
.adv-card h3 { margin-bottom: 10px; }
.adv-card p { font-size: .94rem; }
.adv-card .num {
    position: absolute; top: 22px; right: 26px; font-family: var(--f-serif);
    font-size: 1.6rem; color: var(--cream-3); font-weight: 600;
}

/* ---------- 服务快速入口：错落列表 ---------- */
.svc-list { display: flex; flex-direction: column; gap: 14px; }
.svc-row {
    display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 26px;
    padding: 26px 30px; background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--line); transition: all .4s; cursor: pointer;
}
.svc-row:hover { background: var(--lotus-soft); border-color: var(--lotus); transform: translateX(10px); }
.svc-row .idx { font-family: var(--f-serif); font-size: 2.2rem; color: var(--lotus-deep); font-weight: 600; }
.svc-row .txt h3 { margin-bottom: 4px; font-size: 1.25rem; }
.svc-row .txt p { font-size: .9rem; }
.svc-row .go {
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream-2); color: var(--ink); transition: all .4s;
}
.svc-row:hover .go { background: var(--lotus-deep); color: var(--white); transform: rotate(-45deg); }

/* ---------- 流程：缎带步骤 ---------- */
.process-ribbon { position: relative; }
.step-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step-track::before {
    content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--lotus) 0 10px, transparent 10px 20px);
}
.step { text-align: center; position: relative; }
.step .ball {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
    background: var(--white); border: 2px dashed var(--lotus-deep); position: relative; z-index: 2;
    font-family: var(--f-serif); font-size: 1.3rem; color: var(--lotus-deep); font-weight: 600;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: .86rem; }

/* ---------- 案例预览：重叠卡片 ---------- */
.case-gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.case-card {
    border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
    transition: transform .4s; cursor: pointer; min-height: 380px;
}
.case-card:nth-child(2) { transform: translateY(36px); }
.case-card:hover { transform: translateY(-10px); }
.case-card:nth-child(2):hover { transform: translateY(26px); }
.case-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.case-card .mask {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(61,57,52,.85) 0%, transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: var(--cream);
}
.case-card .mask .ct { font-size: .76rem; letter-spacing: 2px; color: var(--lotus-soft); margin-bottom: 6px; }
.case-card .mask h3 { color: var(--cream); margin-bottom: 4px; }
.case-card .mask p { color: #d9cdbd; font-size: .86rem; }

/* ---------- 数据统计 ---------- */
.stats { background: var(--lotus-soft); position: relative; overflow: hidden; }
.stats::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255,255,255,.3);
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 2; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--f-serif); font-size: 3rem; color: var(--lotus-deep); font-weight: 600; line-height: 1; }
.stat-item .lbl { font-size: .92rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- 客户评价：布艺引语 ---------- */
.review-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card {
    background: var(--white); border-radius: var(--radius); padding: 32px 28px;
    border: 1px solid var(--line); position: relative; box-shadow: var(--shadow-sm);
}
.review-card::before {
    content: """; font-family: var(--f-serif); font-size: 4rem; color: var(--lotus-soft);
    position: absolute; top: 8px; left: 18px; line-height: 1;
}
.review-card .star { color: var(--lotus-deep); margin-bottom: 14px; letter-spacing: 3px; }
.review-card p { font-size: .95rem; margin-bottom: 20px; position: relative; z-index: 2; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review-card .who .nm { font-weight: 600; color: var(--ink); }
.review-card .who .cp { font-size: .82rem; color: var(--ink-mute); }

/* ---------- 首页资讯 ---------- */
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    transition: transform .4s, box-shadow .4s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card .pic { height: 180px; overflow: hidden; }
.news-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .pic img { transform: scale(1.06); }
.news-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.news-card .date { font-size: .8rem; color: var(--lotus-deep); margin-bottom: 8px; letter-spacing: 1px; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.5; }
.news-card .zh { font-size: .88rem; color: var(--ink-soft); flex: 1; }

/* ---------- CTA ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--sage-deep), var(--sage)); border-radius: var(--radius-lg);
    padding: 60px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; left: -40px; bottom: -40px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255,255,255,.12);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); }

/* 返回顶部 */
.back-top {
    position: fixed; right: 28px; bottom: 28px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--lotus-deep); color: var(--white); display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .35s; z-index: 900; cursor: pointer;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 380px; }
    .adv-cluster { grid-template-columns: 1fr; }
    .adv-card:nth-child(1), .adv-card:nth-child(3) { transform: none; }
    .step-track { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .step-track::before { display: none; }
    .case-gallery { grid-template-columns: 1fr 1fr; }
    .case-card:nth-child(2) { transform: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .review-row, .home-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero-visual { height: 300px; }
    .case-gallery { grid-template-columns: 1fr; }
    .svc-row { grid-template-columns: 50px 1fr auto; gap: 16px; padding: 20px; }
    .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
}
