/* ======================================================
   新外网络 - 公共样式表 (common.css)
   框架: Bootstrap 5.3.3 + Font Awesome 4.7.0
   ====================================================== */

/* ===== CSS 变量 ===== */
:root {
    --xw-primary: #2563eb;
    --xw-primary-light: #3b82f6;
    --xw-primary-dark: #1d4ed8;
    --xw-primary-50: #eff6ff;
    --xw-primary-100: #dbeafe;
    --xw-accent: #f59e0b;
    --xw-success: #10b981;
    --xw-danger: #ef4444;
    --xw-warning: #f59e0b;
    --xw-info: #06b6d4;

    --xw-gray-50: #f8fafc;
    --xw-gray-100: #f1f5f9;
    --xw-gray-200: #e2e8f0;
    --xw-gray-300: #cbd5e1;
    --xw-gray-400: #94a3b8;
    --xw-gray-500: #64748b;
    --xw-gray-600: #475569;
    --xw-gray-700: #334155;
    --xw-gray-800: #1e293b;
    --xw-gray-900: #0f172a;

    --xw-bg: #f8fafc;
    --xw-card-bg: #ffffff;
    --xw-text: #1e293b;
    --xw-text-secondary: #64748b;
    --xw-text-light: #94a3b8;
    --xw-border: #e2e8f0;

    --xw-radius: 16px;
    --xw-radius-md: 12px;
    --xw-radius-sm: 8px;
    --xw-radius-pill: 100px;

    --xw-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
    --xw-shadow-lg: 0 8px 40px rgba(0, 0, 0, .08);
    --xw-shadow-hover: 0 12px 32px rgba(0, 0, 0, .1);

    --xw-transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --xw-container-width: 1300px;
}

/* ===== 全局滚动条美化 ===== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .15);
}

/* Firefox 滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .08) transparent;
}

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", "Hiragino Sans GB", "Helvetica Neue", Helvetica, tahoma, arial, Verdana, sans-serif, "WenQuanYi Micro Hei", "\5B8B\4F53";
    color: var(--xw-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 容器 ===== */
.xw-container {
    max-width: var(--xw-container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Alpine.js 防闪烁 ===== */
[x-cloak] {
    display: none !important;
}

/* ===== 导航栏 ===== */
.xw-header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.xw-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.xw-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.xw-logo-icon {
    padding: 5px 8px;
    background: linear-gradient(135deg, var(--xw-primary), var(--xw-primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(37, 99, 235, .2);
}

.xw-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--xw-gray-800);
}

.xw-logo-text span {
    color: var(--xw-primary);
}

/* 导航菜单 */
.xw-nav {
    display: flex;
    align-items: center;
}

.xw-nav ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xw-nav ul li {
    position: relative;
}

.xw-nav>ul>li>a {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--xw-gray-700);
    border-radius: 8px;
    margin: 0 2px;
    white-space: nowrap;
    font-size: 1.05rem;
    line-height: 1.5;
    transition: color .3s ease;
    letter-spacing: .02em;
}

.xw-nav>ul>li>a:hover,
.xw-nav>ul>li.active>a {
    color: var(--xw-primary);
}

/* 下拉菜单图标 */
.xw-dd-icon {
    margin-left: 5px;
    font-size: .75rem;
    transition: transform .3s ease;
}

.xw-nav-item:hover>a .xw-dd-icon {
    transform: rotate(-180deg);
}

/* 二级下拉菜单 */
.xw-nav-item {
    position: relative;
}

/* 桥接伪元素：连接一级菜单与下拉菜单的不可见区域 */
.xw-nav-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

.xw-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--xw-gray-100);
    border-radius: 14px;
    display: none;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .03);
    padding: 12px 8px 10px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* 下拉菜单上方内边距：视觉上拉开距离 */
.xw-dropdown::before {
    content: '';
    display: block;
    height: 6px;
}

.xw-nav-item:hover>.xw-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

/* 宽下拉（解决方案 - 双列） */
.xw-dropdown--wide {
    min-width: 480px;
}

.xw-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.xw-dropdown-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
    gap: 14px;
}

.xw-dropdown-item:hover {
    background: var(--xw-primary-50);
    text-decoration: none;
}

.xw-dropdown-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--xw-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--xw-primary);
    flex-shrink: 0;
    transition: all .2s ease;
}

.xw-dropdown-item:hover .xw-dropdown-icon {
    background: var(--xw-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

.xw-dropdown-body {
    flex: 1;
    min-width: 0;
}

.xw-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--xw-gray-800);
    line-height: 1.4;
    white-space: nowrap;
}

.xw-dropdown-item:hover .xw-dropdown-name {
    color: var(--xw-primary);
}

.xw-dropdown-desc {
    font-size: 12px;
    color: var(--xw-gray-400);
    margin-top: 2px;
    line-height: 1.4;
    white-space: nowrap;
}

/* 导航占位 */
.xw-nav-spacer {
    height: 80px;
}

/* 会员登录注册按钮 */
.xw-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 20px;
    /* 固定宽度：防止 loading↔已登录↔未登录 状态切换时宽度变化导致页面闪动 */
    width: 220px;
}

.xw-auth-loading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 38px;
    /* 与按钮行高一致 */
}

.xw-auth-loading::after {
    content: '';
    visibility: visible;
    width: 18px;
    height: 18px;
    border: 2px solid var(--xw-gray-200);
    border-top-color: var(--xw-primary);
    border-radius: 50%;
    animation: xw-spin .6s linear infinite;
}

@keyframes xw-spin {
    to {
        transform: rotate(360deg);
    }
}

.xw-auth-logged-in,
.xw-auth-logged-out {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xw-auth-item {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 500;
    font-size: .88rem;
    transition: all .3s ease;
    text-decoration: none;
    cursor: pointer;
}

.xw-auth-item i {
    margin-right: 6px;
    font-size: .88rem;
}

.xw-auth-login {
    color: var(--xw-gray-700);
    background: rgba(37, 99, 235, .05);
    border: 1px solid rgba(37, 99, 235, .2);
}

.xw-auth-login:hover {
    background: rgba(37, 99, 235, .1);
    color: var(--xw-primary);
}

.xw-auth-register {
    color: #fff;
    background: linear-gradient(135deg, var(--xw-primary), var(--xw-primary-light));
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.xw-auth-register:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .4);
}

.xw-auth-user {
    color: #fff;
    background: linear-gradient(135deg, var(--xw-primary), var(--xw-primary-light));
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.xw-auth-user:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .4);
}

.xw-auth-logout {
    color: var(--xw-gray-500);
    background: rgba(0, 0, 0, .04);
    border: 1px solid rgba(0, 0, 0, .08);
}

.xw-auth-logout:hover {
    background: rgba(0, 0, 0, .08);
    color: var(--xw-gray-700);
}

/* 移动端菜单按钮 */
.xw-mobile-btn {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--xw-gray-800);
    background: rgba(37, 99, 235, .05);
    width: 42px;
    height: 42px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, .1);
}

/* 移动端用户状态指示器 */
.xw-mobile-user-status {
    display: none;
}

/* 移动端下拉菜单 */
.xw-mobile-menu {
    padding: 8px 0 16px;
}

.xw-mobile-menu-links {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--xw-radius);
    box-shadow: var(--xw-shadow-lg);
    padding: 8px;
}

.xw-mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--xw-gray-600);
    border-radius: var(--xw-radius-sm);
    transition: all .2s;
}

.xw-mobile-menu-links a:hover,
.xw-mobile-menu-links a.active {
    background: var(--xw-primary-50);
    color: var(--xw-primary);
}

.xw-mobile-menu-links a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.xw-mobile-menu-actions {
    padding: 12px 0 0;
}

.xw-mobile-auth-btns {
    display: flex;
    gap: 10px;
}

.xw-btn-block {
    flex: 1;
    justify-content: center;
}

/* ===== 按钮 ===== */
.xw-btn {
    padding: 10px 24px;
    border-radius: var(--xw-radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--xw-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.xw-btn-primary {
    background: var(--xw-primary);
    color: #fff;
}

.xw-btn-primary:hover {
    background: var(--xw-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
}

.xw-btn-outline {
    background: transparent;
    color: var(--xw-gray-600);
    border: 1px solid var(--xw-gray-200);
}

.xw-btn-outline:hover {
    border-color: var(--xw-primary);
    color: var(--xw-primary);
    background: var(--xw-primary-50);
}

.xw-btn-white {
    background: #fff;
    color: var(--xw-primary);
    border: none;
}

.xw-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, .3);
}

.xw-btn-lg {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: var(--xw-radius-md);
}

.xw-btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* ===== 页面头部 ===== */
.xw-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a365d 100%);
    color: #fff;
    padding: 64px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.xw-page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .12) 0%, transparent 70%);
}

.xw-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .06) 0%, transparent 70%);
}

.xw-page-header .xw-container {
    position: relative;
    z-index: 1;
}

.xw-page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.xw-page-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, .7);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== 面包屑 ===== */
.xw-breadcrumb {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--xw-gray-100);
}

.xw-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--xw-gray-400);
    list-style: none;
}

.xw-breadcrumb-list a {
    color: var(--xw-gray-500);
}

.xw-breadcrumb-list a:hover {
    color: var(--xw-primary);
}

.xw-breadcrumb-sep {
    color: var(--xw-gray-300);
    font-size: 12px;
}

/* ===== 通用卡片 ===== */
.xw-card {
    background: var(--xw-card-bg);
    border-radius: var(--xw-radius);
    border: 1px solid var(--xw-gray-100);
    padding: 28px;
    transition: var(--xw-transition);
}

.xw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xw-shadow-hover);
    border-color: transparent;
}

.xw-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.xw-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--xw-gray-800);
}

.xw-card p {
    font-size: 14px;
    color: var(--xw-gray-500);
    line-height: 1.7;
}

/* ===== 骨架屏 ===== */
.xw-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--xw-gray-200);
    border-radius: var(--xw-radius-sm);
}

.xw-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .5) 50%, transparent 100%);
    animation: xw-skeleton-shimmer 1.5s infinite;
}

@keyframes xw-skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.xw-skeleton-card {
    background: var(--xw-card-bg);
    border-radius: var(--xw-radius);
    border: 1px solid var(--xw-gray-100);
    padding: 28px;
}

.xw-skeleton-line {
    height: 14px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.xw-skeleton-line.w60 {
    width: 60%;
}

.xw-skeleton-line.w80 {
    width: 80%;
}

.xw-skeleton-line.w40 {
    width: 40%;
}

.xw-skeleton-line.w100 {
    width: 100%;
}

.xw-skeleton-circle {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
}

/* ===== 通用 Section 标题 ===== */
.xw-section-title {
    text-align: center;
    margin-bottom: 56px;
}

.xw-section-title h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--xw-gray-800);
    letter-spacing: -.01em;
}

.xw-section-title p {
    font-size: 16px;
    color: var(--xw-gray-500);
    max-width: 480px;
    margin: 0 auto;
}

/* ===== 页脚 ===== */
.xw-footer {
    background: var(--xw-gray-900);
    color: rgba(255, 255, 255, .5);
    padding: 56px 0 32px;
}

.xw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.xw-footer-grid--5 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

.xw-footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xw-footer-brand .xw-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--xw-primary), var(--xw-primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.xw-footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .4);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 360px;
}

.xw-footer h4 {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 16px;
    padding-left: 2rem;
}

.xw-footer-links {
    list-style: none;
}

.xw-footer-links li {
    margin-bottom: 10px;
}

.xw-footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, .45);
    transition: color .2s;
}

.xw-footer-links a:hover {
    color: rgba(255, 255, 255, .85);
}

.xw-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .35);
}

.xw-footer-bottom a {
    color: rgba(255, 255, 255, .45);
    transition: color .2s;
}

.xw-footer-bottom a:hover {
    color: rgba(255, 255, 255, .85);
}

/* ===== 通用工具类 ===== */
.text-primary {
    color: var(--xw-primary) !important;
}

.text-secondary {
    color: var(--xw-gray-500) !important;
}

.text-danger {
    color: var(--xw-danger) !important;
}

.text-success {
    color: var(--xw-success) !important;
}

.bg-primary-50 {
    background: var(--xw-primary-50) !important;
}

.bg-primary-100 {
    background: var(--xw-primary-100) !important;
}

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .xw-nav ul {
        display: none;
    }

    .xw-auth {
        display: none;
    }

    .xw-mobile-btn {
        display: flex;
    }

    .xw-mobile-user-status {
        display: flex;
        align-items: center;
        margin-right: 8px;
    }

    .xw-mobile-status-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--xw-primary-50);
        color: var(--xw-primary);
        font-size: 16px;
        transition: background .2s;
    }

    .xw-mobile-status-icon:hover {
        background: var(--xw-primary-100);
        color: var(--xw-primary-dark);
    }

    .xw-header-inner {
        padding: 14px 0;
    }

    .xw-nav-spacer {
        height: 68px;
    }

    .xw-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .xw-page-header h1 {
        font-size: 28px;
    }

    .xw-section-title h2 {
        font-size: 26px;
    }

    /* 平板端移动端菜单优化 */
    .xw-mobile-menu-links a {
        padding: 12px 14px;
        font-size: 14px;
    }

    .xw-mobile-menu-links a i {
        width: 18px;
        font-size: 15px;
    }

    /* 移动端 dropdown 覆盖 */
    .xw-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: auto;
        margin: 0;
        padding: 0;
        background: #f9fafc;
        opacity: 1;
        visibility: visible;
    }

    .xw-nav-item:hover>.xw-dropdown {
        display: none;
    }

    .xw-dropdown--wide {
        min-width: auto;
    }

    .xw-dropdown-grid {
        grid-template-columns: 1fr;
    }

    .xw-dropdown-item {
        padding: 10px 20px 10px 32px;
    }
}

@media (max-width: 767px) {

    /* 移动端导航栏优化 */
    .xw-header-inner {
        padding: 12px 0;
    }

    .xw-logo-text {
        font-size: 1.3rem;
    }

    .xw-logo-icon {
        font-size: 17px;
        padding: 4px 6px;
    }

    .xw-nav-spacer {
        height: 60px;
    }

    /* 移动端用户状态优化 */
    .xw-mobile-user-status {
        margin-right: 6px;
    }

    .xw-mobile-status-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    /* 移动端汉堡菜单优化 */
    .xw-mobile-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    /* 移动端页面头部优化 */
    .xw-page-header {
        padding: 48px 20px;
    }

    .xw-page-header h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .xw-page-header p {
        font-size: 14px;
    }

    /* 移动端 Section 标题优化 */
    .xw-section-title {
        margin-bottom: 40px;
    }

    .xw-section-title h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .xw-section-title p {
        font-size: 14px;
    }

    /* 移动端容器优化 */
    .xw-container {
        padding: 0 16px;
    }

    /* 移动端卡片优化 */
    .xw-card {
        padding: 20px;
        border-radius: 12px;
    }

    .xw-card-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 14px;
    }

    .xw-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .xw-card p {
        font-size: 13px;
    }

    /* 移动端按钮优化 */
    .xw-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .xw-btn-lg {
        padding: 12px 28px;
        font-size: 14px;
    }

    .xw-btn-sm {
        padding: 5px 14px;
        font-size: 12px;
    }

    /* 移动端页脚优化 */
    .xw-footer {
        padding: 40px 0 24px;
    }

    .xw-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .xw-footer-brand {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .xw-footer-brand .xw-logo {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .xw-footer-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .xw-footer h4 {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .xw-footer-links li {
        margin-bottom: 8px;
    }

    .xw-footer-links a {
        font-size: 13px;
    }

    .xw-footer-bottom {
        padding-top: 20px;
        font-size: 12px;
    }

    /* 移动端面包屑优化 */
    .xw-breadcrumb {
        padding: 12px 0;
    }

    .xw-breadcrumb-list {
        font-size: 13px;
        gap: 6px;
    }

    .xw-breadcrumb-sep {
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .xw-header-inner {
        padding: 10px 0;
    }

    .xw-logo-text {
        font-size: 1.2rem;
    }

    .xw-logo-icon {
        font-size: 15px;
        padding: 3px 5px;
    }

    .xw-nav-spacer {
        height: 54px;
    }

    .xw-mobile-status-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .xw-mobile-btn {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    /* 超小屏幕页面头部 */
    .xw-page-header {
        padding: 40px 16px;
    }

    .xw-page-header h1 {
        font-size: 20px;
    }

    .xw-page-header p {
        font-size: 13px;
    }

    /* 超小屏幕卡片 */
    .xw-card {
        padding: 16px;
    }

    .xw-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .xw-card h3 {
        font-size: 15px;
    }

    .xw-card p {
        font-size: 12px;
    }

    /* 超小屏幕按钮 */
    .xw-btn {
        padding: 7px 18px;
        font-size: 12px;
    }

    .xw-btn-lg {
        padding: 10px 24px;
        font-size: 13px;
    }

    /* 超小屏幕页脚 */
    .xw-footer {
        padding: 32px 0 20px;
    }

    .xw-footer-brand {
        font-size: 16px;
    }

    .xw-footer-desc {
        font-size: 12px;
    }

    .xw-footer h4 {
        font-size: 13px;
    }

    .xw-footer-links a {
        font-size: 12px;
    }

    .xw-footer-bottom {
        font-size: 11px;
    }
}

/* ===== 右侧悬浮按钮 ===== */
.xw-float-sidebar {
    position: fixed;
    right: 20px;
    bottom: calc(100vh / 3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.xw-float-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
    color: #374151;
    padding: 6px 0;
}

.xw-float-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, .15);
    border-color: #2563eb;
    color: #2563eb;
}

.xw-float-btn i {
    font-size: 22px;
    line-height: 1;
}

.xw-float-btn .xw-float-text {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 4px;
    white-space: nowrap;
    color: inherit;
    font-weight: 500;
}

.xw-float-btn .xw-float-label {
    position: absolute;
    right: 78px;
    white-space: nowrap;
    background: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all .25s ease;
    pointer-events: none;
}

.xw-float-btn .xw-float-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
    border-right: none;
}

.xw-float-btn:hover .xw-float-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 悬浮二维码弹出 */
.xw-float-qrcode {
    position: absolute;
    right: 78px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: all .25s ease;
    pointer-events: none;
    text-align: center;
    width: 164px;
}

.xw-float-qrcode::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
    border-right: none;
}

.xw-float-btn:hover .xw-float-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.xw-float-qrcode img {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
    max-width: none;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}

.xw-float-qrcode p {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* 热线按钮特殊样式 */
.xw-float-btn--phone {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
}

.xw-float-btn--phone:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .35);
}

.xw-float-btn--phone .xw-float-label {
    color: #2563eb;
    font-weight: 600;
}

/* 返回顶部按钮默认隐藏 */
.xw-float-btn--top {
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.xw-float-btn--top.visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .xw-float-sidebar {
        right: 12px;
        bottom: calc(100vh / 3 - 20px);
        gap: 8px;
    }

    .xw-float-btn {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        padding: 4px 0;
    }

    .xw-float-btn i {
        font-size: 18px;
    }

    .xw-float-btn .xw-float-text {
        font-size: 9px;
        margin-top: 2px;
    }

    .xw-float-qrcode img {
        width: 110px;
        height: 110px;
    }

    .xw-float-btn .xw-float-label {
        right: 66px;
    }

    .xw-float-qrcode {
        right: 66px;
        width: 134px;
    }
}