/* 由模板内联样式迁移而来 */
.sitemap-hero {
    position: relative;
    background: #0a2d5e;
    padding: 90px 0 70px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
/* unify.css 的裸 p{color:--u-text-secondary !important} 会盖掉继承的白色，深蓝底上几乎不可读 */
.sitemap-hero p {
    color: rgba(255, 255, 255, 0.92) !important;
}
.sitemap-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.sitemap-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80px;
    background: #fff;
    border-radius: 50% 50% 0 0;
}
.sitemap-hero .container { position: relative; z-index: 1; }
.sitemap-hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 12px; letter-spacing: 2px;color:#fff; }
.sitemap-hero p { opacity: .85; font-size: 1rem; }

.sitemap-wrap { max-width: 960px; margin: 0 auto; padding: 20px 20px 80px; }

.sitemap-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8faff;
    border-radius: 16px;
    border: 1px solid rgba(10,45,94,.06);
}
.sitemap-stat .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a2d5e;
    font-weight: 600;
    font-size: 1rem;
}
.sitemap-stat .stat-item svg {
    width: 20px; height: 20px;
    stroke: var(--pink, #e8107a);
    stroke-width: 2;
    fill: none;
}
.sitemap-stat .stat-badge {
    background: #c40d67;
    color: #fff;
    font-size: .9rem;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.sitemap-section { margin-bottom: 44px; }
.sitemap-section .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.sitemap-section .section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a2d5e;
    margin: 0;
}
.sitemap-section .section-header .section-count {
    font-size: .75rem;
    color: #5b6b85; /* 原 #999 对浅灰底仅 ~2.7:1 */
    background: #f0f2f8;
    padding: 2px 8px;
    border-radius: 10px;
}
.sitemap-section .section-bar {
    width: 40px;
    height: 4px;
    background: #e8107a;
    border-radius: 2px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.sitemap-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    color: #0a2d5e;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: all .25s ease;
    border: 1px solid rgba(10,45,94,.06);
    box-shadow: 0 2px 8px rgba(10,45,94,.04);
    position: relative;
    overflow: hidden;
}
.sitemap-grid a::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--pink, #e8107a);
    opacity: 0;
    transition: opacity .25s ease;
}
.sitemap-grid a:hover {
    background: #fff5f9;
    border-color: rgba(232,16,122,.25);
    box-shadow: 0 6px 20px rgba(232,16,122,.12);
    transform: translateX(4px);
}
.sitemap-grid a:hover::before { opacity: 1; }
.sitemap-grid a .link-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: rgba(232,16,122,.08);
    color: var(--pink, #e8107a);
    font-size: .8rem;
}
.sitemap-grid a:hover .link-icon {
    background: var(--pink, #e8107a);
    color: #fff;
}
.sitemap-grid a .link-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sitemap-grid a .link-date {
    flex-shrink: 0;
    font-size: .72rem;
    color: #5b6b85; /* 原 #bbb 对 #f5f7fa 仅 1.79:1，几乎不可读 */
    background: #f5f7fa;
    padding: 2px 8px;
    border-radius: 6px;
}
.sitemap-grid a:hover .link-date { background: rgba(255,255,255,.6); color: #475569; }

.sitemap-xml-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    padding: 24px 30px;
    background: #f8faff;
    border-radius: 16px;
    border: 1px solid rgba(10,45,94,.06);
}
.sitemap-xml-card .xml-info { display: flex; align-items: center; gap: 12px; }
.sitemap-xml-card .xml-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #e8107a;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.sitemap-xml-card .xml-icon svg { width: 22px; height: 22px; }
.sitemap-xml-card .xml-title { font-weight: 700; color: #0a2d5e; margin-bottom: 2px; }
.sitemap-xml-card .xml-desc { color: #888; font-size: .85rem; }
.sitemap-xml-card .xml-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 8px;
    background: #c40d67;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s ease;
    border: none;
    cursor: pointer;
}
.sitemap-xml-card .xml-btn:hover {
    background: #d10d6a;
    box-shadow: 0 4px 14px rgba(232,16,122,.3);
}
@media (max-width: 600px) {
    .sitemap-stat { flex-direction: column; gap: 12px; }
    .sitemap-xml-card { flex-direction: column; text-align: center; }
}

/* ===== 图标改为 sprite 后的尺寸约束（原内联 width/height 属性已移除）===== */
.sitemap-grid a .link-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* ===== 分组快捷跳转 ===== */
.sitemap-jump {
    max-width: 960px;
    margin: 0 auto 8px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sitemap-jump a {
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4eaf5;
    color: #1c3452;
    font-size: .84rem;
    line-height: 1.5;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.sitemap-jump a:hover {
    border-color: #0a2d5e;
    background: #f4f8ff;
    color: #0a2d5e;
}

/* 锚点跳转时避开固定页头的遮挡 */
.sitemap-section { scroll-margin-top: 96px; }

@media (max-width: 768px) {
    .sitemap-jump { padding: 0 16px; gap: 6px; }
    .sitemap-jump a { padding: 5px 11px; font-size: .78rem; }
    .sitemap-section { scroll-margin-top: 76px; }
}
