/* ========================================
   全站统一头部 + 响应式（手机/平板）样式
   ======================================== */

.site-header-unified {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 2px 14px rgba(15,23,42,.04);
}
.dark-mode .site-header-unified { background: rgba(15,23,42,.95); }

.shu-top { max-width:1400px; margin:0 auto; height:64px; padding:0 22px; display:flex; align-items:center; gap:18px; }
.shu-inner { display:flex; align-items:center; gap:18px; width:100%; }

/* 品牌 */
.shu-brand { display:inline-flex; align-items:center; gap:9px; text-decoration:none; flex-shrink:0; }
.shu-brand-icon { width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(135deg,rgba(59,130,246,.12),rgba(139,92,246,.12)); border:1px solid rgba(59,130,246,.18); border-radius:10px; }
.shu-brand-icon svg { width:26px; height:26px; }
.shu-brand-text { font-size:21px; font-weight:800; letter-spacing:-.5px; background:linear-gradient(135deg,#3b82f6,#8b5cf6); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.shu-brand-text span { -webkit-text-fill-color:#ec4899; }
.shu-brand-tag { font-size:11px; font-weight:600; color:var(--accent-blue,#3b82f6); background:rgba(59,130,246,.08); border:1px solid rgba(59,130,246,.16); padding:3px 9px; border-radius:20px; white-space:nowrap; flex-shrink:0; }

/* 主导航 */
.shu-nav { display:flex; align-items:center; gap:2px; }
.shu-nav-link { display:inline-flex; align-items:center; gap:6px; padding:8px 13px; border-radius:9px; font-size:13.5px; font-weight:600; color:var(--text-secondary,#4a5568); text-decoration:none; white-space:nowrap; transition:all .15s; }
.shu-nav-link svg { width:15px; height:15px; }
.shu-nav-link:hover, .shu-nav-link.active { color:var(--accent-blue,#3b82f6); background:rgba(59,130,246,.08); }

/* 右侧操作 */
.shu-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.shu-search { position:relative; display:flex; align-items:center; }
.shu-search > span { position:absolute; left:13px; font-size:12px; opacity:.65; }
.shu-search-input { width:260px; height:38px; padding:0 36px 0 34px; border:1px solid var(--border-color,#e2e8f0); border-radius:20px; background:var(--bg-body,#f5f7fa); color:var(--text-primary,#1a202c); font-size:13px; transition:all .15s; }
.shu-search-input:focus { outline:none; border-color:var(--accent-blue,#3b82f6); box-shadow:0 0 0 4px rgba(59,130,246,.1); }
.shu-search kbd { position:absolute; right:12px; font-size:10px; color:var(--text-muted,#a0aec0); border:1px solid var(--border-color,#e2e8f0); border-radius:4px; padding:0 5px; pointer-events:none; }
.shu-search-input:focus + kbd { display:none; }
.shu-icon-btn { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--border-color,#e2e8f0); background:var(--bg-body,#f5f7fa); border-radius:10px; cursor:pointer; color:var(--text-secondary,#4a5568); transition:all .15s; flex-shrink:0; }
.shu-icon-btn:hover { color:var(--accent-blue,#3b82f6); border-color:var(--accent-blue,#3b82f6); }
.shu-icon-btn svg { width:17px; height:17px; }
.shu-menu-btn,
.shu-sidebar-btn { display:none; }

/* 第二行分类条 */
.shu-strip { border-top:1px solid var(--border-color,#e2e8f0); background:rgba(248,250,252,.7); }
.dark-mode .shu-strip { background:rgba(30,41,59,.5); }
.shu-strip-inner { max-width:1400px; margin:0 auto; padding:6px 22px; display:flex; align-items:center; gap:4px; overflow-x:auto; scrollbar-width:none; }
.shu-strip-inner::-webkit-scrollbar { display:none; }
.shu-strip-label { font-size:10px; font-weight:700; color:var(--text-muted,#a0aec0); letter-spacing:.5px; margin-right:6px; flex-shrink:0; }
.shu-strip a { font-size:12px; color:var(--text-secondary,#4a5568); text-decoration:none; padding:4px 10px; border-radius:14px; white-space:nowrap; transition:all .15s; }
.shu-strip a:hover { color:var(--accent-blue,#3b82f6); background:rgba(59,130,246,.08); }

/* ============ 平板 ============ */
@media (max-width: 1100px) {
    .shu-inner { gap:12px; }
    .shu-search-input { width:200px; }
    .shu-brand-tag { display:none; }
}

@media (max-width: 1024px) {
    .shu-sidebar-btn { display:inline-flex; }
}

@media (max-width: 900px) {
    .shu-top { height:58px; padding:0 14px; }
    .shu-nav { gap:0; }
    .shu-nav-link { padding:7px 9px; font-size:13px; }
    .shu-nav-link svg { display:none; }
    .shu-search-input { width:170px; }
    .shu-strip { display:none; }
}

/* ============ 手机 ============ */
@media (max-width: 680px) {
    .shu-top { height:auto; min-height:54px; padding:8px 12px; }
    .shu-inner { gap:8px; flex-wrap:wrap; }
    .shu-brand { margin-right:auto; }
    .shu-brand-icon { width:30px; height:30px; }
    .shu-brand-icon svg { width:22px; height:22px; }
    .shu-brand-text { font-size:18px; }
    .shu-actions { display:contents; }
    .shu-menu-btn { display:inline-flex; }
    .shu-search { order:10; width:100%; }
    .shu-search-input { width:100%; height:34px; padding:0 14px 0 32px; }
    .shu-search kbd { display:none; }
    .shu-nav {
        display:none;
        position:absolute;
        top:100%; left:0; right:0;
        flex-direction:column;
        align-items:stretch;
        gap:2px;
        background:var(--bg-card,#fff);
        padding:10px 14px 14px;
        border-bottom:1px solid var(--border-color,#e2e8f0);
        box-shadow:0 8px 20px rgba(0,0,0,.08);
    }
    .shu-nav.open { display:flex; }
    .shu-nav-link { padding:10px 12px; font-size:14px; border-radius:8px; }
    .shu-nav-link svg { display:block; width:16px; height:16px; }
    .shu-icon-btn { width:34px; height:34px; }
}

@media (max-width: 380px) {
    .shu-brand-text { font-size:16px; }
    .shu-nav-link { font-size:13px; }
}

/* ========================================
   全站统一底部样式（首页 / 资讯 / 反馈）
   ======================================== */
.site-footer-unified {
    position: relative;
    margin-top: 48px;
    background: #ffffff;
    border-top: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-secondary, #475569);
    font-size: 13px;
    overflow: hidden;
    transition: margin-left 0.25s ease;
}
.site-footer-unified.has-sidebar { margin-left: 220px; }
.dark-mode .site-footer-unified {
    background: #0b1120;
    border-top-color: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.sfu-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 140px;
    background: radial-gradient(65% 100% at 50% 0%, rgba(59, 130, 246, 0.07), rgba(139, 92, 246, 0.03) 50%, transparent 80%);
    pointer-events: none;
}
.dark-mode .sfu-glow {
    background: radial-gradient(65% 100% at 50% 0%, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.06) 50%, transparent 80%);
}
.sfu-inner {
    position: relative;
    max-width: 1220px;
    margin: 0 auto;
    padding: 36px 24px 20px;
}
.sfu-grid {
    display: grid;
    grid-template-columns: 1.45fr 1.2fr 0.65fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 24px;
}
.sfu-brand-col { min-width: 0; }
.sfu-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.sfu-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.sfu-brand-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 9px;
}
.sfu-brand-icon svg { width: 21px; height: 21px; }
.sfu-brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sfu-brand-text span { -webkit-text-fill-color: #ec4899; }
.sfu-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.dark-mode .sfu-status-pill {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.25);
}
.sfu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.sfu-desc {
    margin: 0 0 14px;
    max-width: 440px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--text-muted, #64748b);
}
.sfu-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sfu-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.sfu-cta-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.22);
}
.sfu-cta-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.32);
}
.sfu-cta-ghost {
    color: var(--text-secondary, #475569);
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
}
.sfu-cta-ghost:hover {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}
.dark-mode .sfu-cta-ghost {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.sfu-col-title {
    margin: 0 0 11px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    letter-spacing: 0.3px;
}
.dark-mode .sfu-col-title { color: #f1f5f9; }

.sfu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.sfu-tags a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #475569);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.sfu-tags a:hover {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-1px);
}
.dark-mode .sfu-tags a {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}
.dark-mode .sfu-tags a:hover {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
}

.sfu-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sfu-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
.sfu-nav-list a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
    transition: background 0.15s ease;
}
.sfu-nav-list a:hover {
    color: #3b82f6;
    transform: translateX(2px);
}
.sfu-nav-list a:hover::before { background: #3b82f6; }
.dark-mode .sfu-nav-list a { color: #cbd5e1; }
.dark-mode .sfu-nav-list a:hover { color: #93c5fd; }

.sfu-bottom {
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    font-size: 12px;
    color: var(--text-muted, #64748b);
}
.sfu-copy { margin: 0; }
.sfu-beian {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.sfu-beian a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.sfu-beian a:hover { color: #3b82f6; }
.sfu-mps {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sfu-mps img { width: 15px; height: 15px; display: block; }

@media (max-width: 1024px) {
    .site-footer-unified.has-sidebar { margin-left: 0; }
    .sfu-grid { grid-template-columns: 1.2fr 1fr 0.7fr; gap: 22px; }
}
@media (max-width: 780px) {
    .sfu-inner { padding: 26px 16px 18px; }
    .sfu-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 18px; }
    .sfu-nav-list { flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
    .sfu-bottom { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11.5px; }
}
@media (max-width: 480px) {
    .sfu-inner { padding: 22px 12px 16px; }
    .sfu-tags { gap: 6px; }
    .sfu-tags a { font-size: 11.5px; padding: 4px 9px; }
    .sfu-cta-btn { font-size: 11.5px; padding: 6px 12px; }
}

/* ========================================
   全站统一右下角回到顶部按钮
   ======================================== */
.zg-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    z-index: 1900;
    opacity: 0.92;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
    padding: 0;
}
.zg-back-to-top svg { width: 17px; height: 17px; display: block; }
.zg-back-to-top span { font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0.2px; }
.zg-back-to-top.show,
.zg-back-to-top:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(59, 130, 246, 0.45);
}
@media (max-width: 680px) {
    .zg-back-to-top {
        right: 14px;
        bottom: 18px;
        width: 40px;
        height: 44px;
        border-radius: 12px;
    }
    .zg-back-to-top svg { width: 15px; height: 15px; }
    .zg-back-to-top span { font-size: 9.5px; }
}
