/* ============================================================
   统一头部
   ============================================================ */
header.header {
    background: linear-gradient(135deg, #1a3c6e 0%, #2a5a8a 100%);
    border-radius: 10px;
    padding: 10px 24px;
    box-shadow: 0 2px 8px rgba(26, 60, 110, 0.3);
    margin-bottom: 20px;
}
header.header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
header.header .header-logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
header.header .header-logo i {
    color: #4fc3f7;
    margin-right: 8px;
}
header.header .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
header.header .header-username {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 13px;
}
header.header .header-nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
header.header .header-nav-link:hover {
    background: rgba(255,255,255,0.15);
}
header.header .header-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
header.header .btn-primary { background: #4fc3f7; color: #1a3c6e; }
header.header .btn-primary:hover { background: #81d4fa; }
header.header .btn-success { background: #66bb6a; color: #fff; }
header.header .btn-success:hover { background: #81c784; }
header.header .btn-default { background: rgba(255,255,255,0.2); color: #fff; }
header.header .btn-default:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   统一底部
   ============================================================ */
footer.site-footer {
    margin-top: 30px;
    background: #1a3c6e;
    color: rgba(255,255,255,0.85);
    border-radius: 10px;
    padding: 24px 30px 16px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
footer.site-footer .footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}
footer.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
footer.site-footer .footer-brand {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
footer.site-footer .footer-brand i {
    color: #4fc3f7;
    margin-right: 6px;
}
footer.site-footer .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
footer.site-footer .footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
footer.site-footer .footer-links a:hover { color: #4fc3f7; }
footer.site-footer .footer-bottom {
    padding-top: 14px;
    text-align: center;
    font-size: 12px;
}
footer.site-footer .footer-bottom p {
    margin-bottom: 4px;
    color: rgba(255,255,255,0.6);
}
footer.site-footer .footer-tip {
    color: rgba(255,255,255,0.4) !important;
    font-size: 11px;
}

/* ============================================================
   客服悬浮
   ============================================================ */
.customer-service {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 9999;
}
.cs-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a3c6e 0%, #2a5a8a 100%);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26, 60, 110, 0.4);
    transition: all 0.3s;
    user-select: none;
}
.cs-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 60, 110, 0.5);
}
.cs-btn i { font-size: 18px; color: #4fc3f7; }
.cs-btn .cs-text { font-size: 13px; font-weight: 600; }

.cs-qr-box {
    display: none;
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: csFadeIn 0.3s;
}
.cs-qr-box.show { display: block; }

@keyframes csFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cs-qr-header {
    background: linear-gradient(135deg, #1a3c6e 0%, #2a5a8a 100%);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cs-qr-header i { color: #4fc3f7; margin-right: 6px; }
.cs-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    opacity: 0.8;
}
.cs-close:hover { opacity: 1; }

.cs-qr-body { padding: 20px; text-align: center; }
.cs-qr-body img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
    display: block;
    margin: 0 auto 12px;
    object-fit: cover;
}
.cs-qr-body p {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}
.cs-qr-body .cs-tip {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 640px) {
    header.header { padding: 8px 16px; }
    header.header .header-logo { font-size: 16px; }
    header.header .header-username { font-size: 12px; padding: 3px 10px; }
    header.header .header-btn { padding: 4px 10px; font-size: 11px; }
    footer.site-footer { padding: 16px 20px 12px; }
    footer.site-footer .footer-content { flex-direction: column; text-align: center; }
    .customer-service { right: 12px; bottom: 60px; }
    .cs-btn { padding: 10px 14px; }
    .cs-btn .cs-text { display: none; }
    .cs-qr-box { width: 220px; }
    .cs-qr-body img { width: 160px; height: 160px; }
}