/* ============================================================
   尧图企业网站定制 - 网站地图页
   风格：布艺配饰风分类网格 · 藕粉+浅绿+奶白
   布局：精简Banner + 分类卡片网格 + CTA
   ============================================================ */

/* ---------- 精简 Banner ---------- */
.sitemap-banner {
    position: relative; padding: 140px 0 60px; overflow: hidden;
    background: var(--cream-2);
}
.sitemap-banner::before {
    content: ""; position: absolute; top: 0; right: 0; width: 55%; height: 100%;
    background: linear-gradient(225deg, transparent, rgba(226, 196, 188, .25));
    z-index: 0;
}
.sitemap-banner::after {
    content: ""; position: absolute; left: 6%; bottom: 18px;
    width: 80px; height: 80px;
    border: 2px dashed var(--sage-deep); border-radius: 50%; opacity: .35;
}
.sitemap-banner .wrap { position: relative; z-index: 1; }
.sitemap-banner .tag-label { margin-bottom: 18px; }
.sitemap-banner h1 { margin-bottom: 14px; }
.sitemap-banner .lead { max-width: 580px; font-size: 1.02rem; color: var(--ink-soft); }
.sitemap-banner .sm-count {
    margin-top: 24px; display: inline-flex; align-items: center; gap: 18px;
    padding: 12px 26px; background: var(--white); border-radius: 40px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: .88rem; color: var(--ink-soft);
}
.sitemap-banner .sm-count b {
    font-family: var(--f-serif); font-size: 1.4rem; color: var(--lotus-deep);
    line-height: 1;
}
.sitemap-banner .sm-count .sep { width: 1px; height: 22px; background: var(--line); }

/* ---------- 地图主体 ---------- */
.sitemap-body { padding: 80px 0 90px; }

/* 分类组：布艺标签 + 卡片网格 */
.sm-group { margin-bottom: 60px; }
.sm-group:last-child { margin-bottom: 0; }
.sm-group-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.sm-group-head .sm-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px 8px 12px; background: var(--white);
    border: 1px solid var(--line); border-radius: 2px 22px 22px 2px;
    font-family: var(--f-serif); font-size: 1.1rem; color: var(--ink);
    box-shadow: var(--shadow-sm); position: relative;
}
.sm-group-head .sm-tag::before {
    content: ""; width: 22px; height: 22px; border-radius: 50%;
    background: var(--lotus-soft); display: grid; place-items: center;
}
.sm-group:nth-child(odd) .sm-tag::before { background: var(--lotus-soft); }
.sm-group:nth-child(even) .sm-tag::before { background: var(--sage-soft); }
.sm-group-head .sm-num {
    font-family: var(--f-serif); font-size: .9rem; color: var(--ink-mute);
    letter-spacing: 2px;
}
.sm-group-head .sm-line {
    flex: 1; height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

/* 卡片网格 */
.sm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sm-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sm-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.sm-card {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 22px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: all .35s; position: relative;
    overflow: hidden;
}
.sm-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--lotus); transform: scaleY(0); transform-origin: bottom;
    transition: transform .35s;
}
.sm-group:nth-child(even) .sm-card::before { background: var(--sage); }
.sm-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow);
    border-color: var(--lotus);
}
.sm-group:nth-child(even) .sm-card:hover { border-color: var(--sage); }
.sm-card:hover::before { transform: scaleY(1); transform-origin: top; }
.sm-card .sm-ic {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--lotus-soft); display: grid; place-items: center;
    color: var(--lotus-deep); flex-shrink: 0;
}
.sm-group:nth-child(even) .sm-card .sm-ic {
    background: var(--sage-soft); color: var(--sage-deep);
}
.sm-card .sm-ic svg { width: 20px; height: 20px; }
.sm-card .sm-txt { min-width: 0; }
.sm-card .sm-txt .nm {
    font-size: .98rem; font-weight: 600; color: var(--ink); line-height: 1.3;
    margin-bottom: 2px;
}
.sm-card .sm-txt .ds {
    font-size: .8rem; color: var(--ink-mute); line-height: 1.4;
}

/* 当前页标识 */
.sm-card.current { background: var(--lotus-soft); border-color: var(--lotus); }
.sm-card.current .sm-txt .nm { color: var(--lotus-deep); }
.sm-card.current .sm-ic { background: var(--white); }

/* ---------- 全站索引条 ---------- */
.sm-index {
    margin-top: 70px; padding: 36px; background: var(--white);
    border-radius: var(--radius-lg); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.sm-index::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: repeating-linear-gradient(90deg, var(--lotus) 0 14px, var(--sage) 14px 28px);
}
.sm-index h3 { margin-bottom: 8px; font-size: 1.2rem; }
.sm-index p { font-size: .9rem; margin-bottom: 20px; }
.sm-index .idx-links {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.sm-index .idx-links a {
    padding: 7px 16px; background: var(--cream-2); border-radius: 20px;
    font-size: .84rem; color: var(--ink-soft); transition: all .3s;
}
.sm-index .idx-links a:hover {
    background: var(--lotus-deep); color: var(--white);
}

/* ---------- CTA ---------- */
.sitemap-cta {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--sage-deep), var(--sage));
    border-radius: var(--radius-lg); padding: 50px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.sitemap-cta::before {
    content: ""; position: absolute; right: -40px; bottom: -40px;
    width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.12);
}
.sitemap-cta h2 { color: var(--white); margin-bottom: 8px; position: relative; z-index: 1; }
.sitemap-cta p { color: rgba(255,255,255,.88); position: relative; z-index: 1; }
.sitemap-cta .btn { background: var(--white); color: var(--ink); position: relative; z-index: 1; }
.sitemap-cta .btn:hover { background: var(--cream-2); transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .sm-grid, .sm-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .sitemap-banner { padding: 120px 0 40px; }
    .sm-grid, .sm-grid.cols-2, .sm-grid.cols-4 { grid-template-columns: 1fr; }
    .sm-group-head .sm-line { display: none; }
    .sitemap-cta { padding: 36px 24px; flex-direction: column; text-align: center; }
    .sitemap-banner .sm-count { flex-wrap: wrap; gap: 10px; }
}
