:root {
    /* 主色调变量定义 */
    --primary-color: #223a5e;
    /* 主色调 - 深蓝色 */
    --primary-light: #3a5485;
    /* 浅色变体 */
    --primary-dark: #19294a;
    /* 深色变体 */
    --primary-darker: #0e1a31;
    /* 更深色变体 */

    /* 背景色 */
    --bg-gradient-start: #f7f9ff;
    --bg-gradient-end: #eff4fe;

    /* 文本颜色 */
    --text-color: #333333;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);

    /* 装饰颜色 */
    --accent-color: #f0f5ff;
    --border-color: #e2e8f0;
    --divider-color: rgba(34, 58, 94, 0.05);

    /* 交互状态颜色 */
    --hover-bg: rgba(34, 58, 94, 0.08);
    --active-bg: rgba(34, 58, 94, 0.12);

    /* 阴影 */
    --shadow-sm: 0 4px 15px rgba(34, 58, 94, 0.1);
    --shadow-md: 0 15px 30px rgba(34, 58, 94, 0.05);
    --shadow-lg: 0 20px 40px rgba(34, 58, 94, 0.08);
    --shadow-hover: 0 25px 50px rgba(34, 58, 94, 0.12);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    /* 渐变 */
    --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-dark: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    --gradient-bg: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3) 100%);

    /* 功能颜色 */
    --secondary-color: #2196f3;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --gray-color: #757575;
    --light-gray: #f5f5f5;
    --dark-gray: #424242;
    --white: #ffffff;

    /* 其他样式变量 */
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* 隐藏网页纵向滚动条 */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* iOS Safari：100% 高度与可视区域对齐，减轻底部被地址栏/工具栏“挡住”的错觉 */
    min-height: 100%;
    min-height: -webkit-fill-available;
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    overflow-y: scroll;
    /* 保持页面可滚动 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    /* 多层回退：dvh 随浏览器 UI 变化； -webkit-fill-available 适配 iOS；JS 在小屏写入 --common3-app-px 避免仅用 vh 的偏差 */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* 小屏：用 layout 视口高度变量（见 common3.js），避免与 100vh 在 Safari 上不一致导致底部内容被裁切 */
@media screen and (max-width: 768px) {
    body {
        min-height: var(--common3-app-px, 100dvh);
        min-height: var(--common3-app-px, -webkit-fill-available);
    }

    /* 页脚、移动端菜单底部留出安全区（横条 home indicator） */
    .common3-footer-content-wrapper {
        padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    }

    .common3-mobile-nav-footer {
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    }
}

/* 增强版鼠标跟随效果样式 */
.common3-cursor-follower {
    position: fixed;
    width: 22px;
    height: 22px;
    background: rgba(34, 58, 94, 0.3);
    /* 使用系统主色 #223a5e */
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s linear, width 0.2s ease, height 0.2s ease, background 0.2s ease, border 0.2s ease;
    will-change: transform, width, height;
    mix-blend-mode: normal;
    box-shadow: 0 0 15px rgba(34, 58, 94, 0.4);
    /* 使用系统主色 #223a5e */
}

.common3-cursor-follower.active {
    transform: scale(1.8);
    background: rgba(34, 58, 94, 0.5);
    /* 使用系统主色 #223a5e */
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 25px rgba(34, 58, 94, 0.6);
    /* 使用系统主色 #223a5e */
    transition: transform 0.15s ease-out, background 0.3s ease, border 0.3s ease;
}

/* 增加双层跟随效果 */
.common3-cursor-follower::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0.9;
}

/* 移动设备上禁用鼠标跟随 */
@media (max-width: 768px),
(hover: none) {
    .common3-cursor-follower {
        display: none !important;
    }
}

/* 在线交流对话框样式 */
/* 在线交流按钮样式 */
.chat-btn {
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    position: relative;
    overflow: visible;
}

.chat-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

/* 聊天对话框样式 */
.chat-dialog {
    position: fixed;
    bottom: -500px;
    /* 初始位置在屏幕下方 */
    right: 30px;
    width: 360px;
    height: 480px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.chat-dialog.active {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

/* 聊天对话框头部 */
.chat-header {
    padding: 12px 16px;
    background-color: #1e88e5;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 600;
    font-size: 16px;
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.chat-actions button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 聊天对话框内容区域 */
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    position: relative;
}

.message.system {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.message-content {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.message.system .message-content {
    background-color: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background-color: #1e88e5;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    margin-left: 4px;
}

.message.user .message-time {
    text-align: right;
    margin-right: 4px;
}

/* 聊天对话框底部 */
.chat-footer {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    height: 40px;
    max-height: 100px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #1e88e5;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e88e5;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-btn:hover {
    background-color: #1565c0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .chat-dialog {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    #chat-dialog-global {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: fixed !important;
    }

    /* 确保头部和底部更大更易触摸 */
    .chat-header {
        height: 50px !important;
        padding: 10px 15px !important;
    }

    /* 加大按钮点击区域 */
    .chat-actions button {
        width: 34px !important;
        height: 34px !important;
        padding: 6px !important;
    }

    /* 更新底部样式 */
    .chat-footer {
        padding: 12px 15px !important;
        height: 65px !important;
    }

    .chat-input {
        height: 42px !important;
        /* 与全局小屏输入框一致，避免 iOS Safari 聚焦缩放整页 */
        font-size: 16px !important;
    }

    #chat-send-btn-global,
    #chat-refresh-btn-global {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    #chat-send-btn-global i,
    #chat-refresh-btn-global i {
        font-size: 14px !important;
    }

    /* 消息内容调整 */
    .message-content {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

/* 针对平板设备的额外样式 */
@media (min-width: 569px) and (max-width: 768px) {
    #chat-dialog-global {
        width: 90% !important;
        height: 90% !important;
        max-width: 600px !important;
        max-height: 80vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 8px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .chat-header {
        border-radius: 8px 8px 0 0 !important;
    }
}

/* 悬浮按钮组样式 - 仿照Ant Design */
.common3-floating-buttons {
    position: fixed;
    right: 24px;
    top: 65%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* 手机端拖动手柄（仅小屏显示） */
.common3-floating-drag-handle {
    display: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    width: 40px;
    height: 22px;
    padding: 0;
    margin: 0 6px 0 0;
    border: none;
    border-radius: 11px;
    cursor: grab;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.common3-floating-drag-handle::before {
    content: "⋮⋮";
    letter-spacing: -2px;
    font-weight: bold;
    opacity: 0.95;
}

.common3-floating-drag-handle:active {
    cursor: grabbing;
    background: rgba(0, 0, 0, 0.55);
}

.common3-floating-buttons.common3-floating-dragging .common3-float-button {
    pointer-events: none;
}

.common3-floating-buttons.common3-floating-dragging {
    transition: none;
}

.common3-float-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

/* 单个按钮项 */
.common3-float-button-item {
    display: flex;
    align-items: center;
    animation: fadeInRight 0.6s ease forwards;
}

/* 隐藏不可见的按钮项（通过 JavaScript 添加此类） */
.common3-float-button-item.hidden {
    display: none !important;
}

/* 为每个按钮项添加延迟动画 */
.common3-float-button-item:nth-child(1) {
    animation-delay: 0.1s;
}

.common3-float-button-item:nth-child(2) {
    animation-delay: 0.15s;
}

.common3-float-button-item:nth-child(3) {
    animation-delay: 0.2s;
}

.common3-float-button-item:nth-child(4) {
    animation-delay: 0.25s;
}

/* 为更多按钮添加延迟动画（支持动态添加的按钮） */
.common3-float-button-item:nth-child(n+5) {
    animation-delay: 0.3s;
}

/* 悬浮按钮基础样式 */
.common3-float-button {
    height: 48px;
    width: 52px;
    padding: 4px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
    text-decoration: none;
    border: none;
    outline: none;
    color: white;
    box-sizing: content-box !important;
    /* 默认样式：蓝色到青色渐变背景 */
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.common3-float-button:hover {
    transform: translateY(-1px) scale(1.02);
    color: white;
    /* 默认悬停效果 */
    background: linear-gradient(135deg, #40a9ff 0%, #5cdbd3 100%);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/* 按钮内文字样式 */
.common3-float-button-text {
    font-size: 10px;
    font-weight: 600;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* 按钮图标 */
.common3-float-button i {
    font-size: 23px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.common3-float-button:hover i {
    transform: scale(1.1);
}

/* 悬浮按钮：系统图片图标（openapi/sysImg） */
.common3-float-button .common3-float-button-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.common3-float-button:hover .common3-float-button-img {
    transform: scale(1.08);
}

/* 不同功能按钮的颜色主题 */
.common3-chat-btn {
    background: #1677ff;
    box-shadow: 0 2px 6px rgba(22, 119, 255, 0.2);
}

.common3-chat-btn:hover {
    background: #4096ff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.common3-ai-assistant-btn {
    background: #52c41a;
    box-shadow: 0 2px 6px rgba(82, 196, 26, 0.2);
}

.common3-ai-assistant-btn:hover {
    background: #73d13d;
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.common3-trust-auth-btn {
    background: #fa8c16;
    box-shadow: 0 2px 6px rgba(250, 140, 22, 0.2);
}

.common3-trust-auth-btn:hover {
    background: #ffa940;
    box-shadow: 0 4px 12px rgba(250, 140, 22, 0.3);
}

.common3-back-to-top-btn {
    background: #f0f0f0;
    color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 0;
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.common3-back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    height: 44px;
    width: 48px;
    padding: 3px;
    margin: 0;
}

.common3-back-to-top-btn:hover {
    background: #d9d9d9;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 手机版隐藏悬浮按钮（小程序/H5 窄屏不展示整组） */
    .common3-floating-buttons {
        display: none !important;
    }
}

/* 动画效果 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 移除旧样式，保持兼容性 */
.common3-floating-btn {
    display: none;
}

.common3-btn-tooltip {
    display: none;
}

/* 轮播图样式 */
.common3-carousel {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.common3-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.common3-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center center;
}

.common3-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 20%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.2) 60%,
            rgba(0, 0, 0, 0.4) 80%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.common3-carousel-item.active {
    opacity: 1;
}

/* 轮播图指示器样式 */
.common3-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.common3-carousel-indicator {
    width: 30px;
    height: 30px;
    background: url('/images/page.png') center center no-repeat;
    background-size: contain;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
    filter: brightness(1.5);
}

.common3-carousel-indicator.active {
    opacity: 1;
    filter: brightness(2);
}

/* 手机端轮播：背景图水平+垂直居中（覆盖内联 background，避免部分机型上裁剪偏移） */
@media (max-width: 768px) {
    .common3-carousel-item {
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
    }
}

/* 业务通道样式 */
.common3-service-channels {
    position: absolute;
    top: 78%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 30px 0;
    width: 80%;
    max-width: 1300px;
    margin: 0 auto;
}

.common3-channel-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.common3-channel-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px 20px;
    width: 180px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
    flex: 0 0 auto;
}

.common3-service-channels.animated .common3-channel-card {
    animation: fadeInUp 0.6s ease forwards;
}

.common3-channel-card:nth-child(1) {
    animation-delay: 0.1s;
}

.common3-channel-card:nth-child(2) {
    animation-delay: 0.2s;
}

.common3-channel-card:nth-child(3) {
    animation-delay: 0.3s;
}

.common3-channel-card:nth-child(4) {
    animation-delay: 0.4s;
}

.common3-channel-card:nth-child(5) {
    animation-delay: 0.5s;
}

.common3-channel-card:nth-child(6) {
    animation-delay: 0.6s;
}

.common3-channel-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.common3-channel-card i {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.common3-channel-card h2 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.common3-channel-card h2:only-child {
    margin: 0;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

@media (max-width: 1200px) {
    .common3-channel-card {
        width: 160px;
        padding: 20px 15px;
    }

    .common3-channel-grid {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .common3-service-channels {
        top: 70%;
        width: 90%;
    }

    .common3-channel-grid {
        gap: 15px;
    }

    .common3-channel-card {
        width: 140px;
        padding: 15px 10px;
    }

    .common3-channel-card i {
        font-size: 2.3rem;
        margin-bottom: 15px;
    }

    .common3-channel-card h2 {
        font-size: 1rem;
    }
}

/* 小屏手机（如 360px）强制 2*2 网格，避免业务模块排成单列 */
@media (max-width: 480px) {
    .common3-service-channels {
        width: 92%;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .common3-channel-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        justify-content: center;
    }

    .common3-channel-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 12px 8px;
    }

    .common3-channel-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .common3-channel-card h2 {
        font-size: 0.9rem;
    }

    /* 小屏顶部 logo 再缩小 - 随页面宽度自适应 */
    .common3-nav-logo-container {
        max-width: min(180px, 70vw);
    }

    .common3-nav-logo {
        height: 38px;
        max-height: 38px;
        margin-top: 0;
        max-width: 100%;
    }

    .common3-top-nav.scrolled .common3-nav-logo {
        height: 36px;
        max-height: 36px;
    }

    .common3-top-nav.scrolled .common3-nav-logo img {
        max-height: 36px;
    }
}

/* 页脚样式 */
/* 友情链接区域样式优化 */
.common3-footer-top {
    background-color: #f9f9f9;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.common3-footer-top:hover {
    background-color: #f5f5f5;
}

/* 页脚样式 */
.common3-footer-content-wrapper {
    background: #223a5e;
    padding: 20px 40px 40px;
    position: relative;
    overflow: hidden;
}

.common3-footer-content-wrapper::before,
.common3-footer-content-wrapper::after {
    content: '';
    position: absolute;
    opacity: 0.04;
    z-index: 0;
}

.common3-footer-content-wrapper::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.common3-footer-content-wrapper::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
}

/* 三栏主色块下方独立版权行（不增加 content-wrapper 内三栏区域高度） */
.common3-footer-copyright-row {
    background: #223a5e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 40px 12px;
    position: relative;
    z-index: 1;
}

.common3-footer-copyright-row .common3-copyright {
    flex: none;
}

.common3-footer-copyright-row .common3-copyright p {
    margin: 0;
}

.common3-footer-top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.common3-footer-top-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 20px;
    padding-right: 25px;
    position: relative;
    white-space: nowrap;
}

.common3-footer-top-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.common3-footer-top-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(34, 58, 94, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.common3-footer-top-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
    transition: opacity 0.3s;
}

.common3-footer-top-link:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.common3-footer-top-link:hover::before {
    opacity: 0.1;
}

.common3-footer-top-link i {
    margin-right: 8px;
    color: var(--primary-light);
    transition: all 0.3s;
}

.common3-footer-top-link:hover i {
    color: var(--primary-color);
}

.common3-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
    min-height: 120px;
    /* 设置最小高度 */
    align-items: center;
    /* 垂直居中所有元素 */
}

.common3-footer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直居中 */
}

.common3-footer-col.common3-align-right {
    justify-content: center;
    /* 改为垂直居中 */
    align-items: flex-end;
    padding-right: 40px;
    /* 增加右侧空间 */
    display: flex;
    /* 确保是flex容器 */
    height: 100%;
    /* 确保高度占满父容器 */
}

.common3-footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*padding-left: 40px;*/
    height: 100%;
    /* 确保高度充满父容器 */
    transform: translateX(-12px);
}

.common3-footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.common3-footer-logo img {
    height: 70px;
    width: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

/*.common3-footer-logo:hover img {*/
/*    transform: translateY(-5px);*/
/*    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));*/
/*}*/

.common3-footer-logo-text {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.common3-footer-slogan {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}

.common3-footer-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 13px;
}

.common3-footer-col h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.common3-footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.common3-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.common3-contact-info p {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    margin: 0;
}

.common3-contact-info p span,
.common3-contact-info p strong {
    font-size: 13px;
    font-weight: 400;
}

.common3-contact-info i {
    width: 20px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 5px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.common3-contact-info p:hover i {
    color: #fff;
    transform: translateX(2px);
}

.common3-contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.common3-contact-info a:hover {
    color: #fff;
}

/* 快速通道：标题与链接同一行，不换行 */
.common3-footer-quick-channel {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.common3-footer-quick-channel-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
}

.common3-footer-quick-channel-title i {
    width: 16px;
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transform: scale(0.8);
}

.common3-footer-quick-channel-links {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0 16px;
    align-items: center;
    margin-left: 8px;
}

.common3-footer-quick-channel-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s;
    white-space: nowrap;
}

.common3-footer-quick-channel-link:hover {
    color: #fff;
}

.common3-qrcode-container {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
    /* 移除底部外边距 */
    align-items: center;
    /* 确保子元素垂直居中 */
    transform: translateY(12px);
}

.common3-qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.common3-qrcode-item:hover {
    transform: translateY(-5px);
}

.common3-qrcode-box {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.common3-qrcode-item:hover .common3-qrcode-box {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.common3-qrcode-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.common3-qrcode-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.common3-footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

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

.common3-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.common3-footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.common3-footer-links i {
    margin-right: 10px;
}

.common3-footer-bottom {
    padding: 5px 40px;
    /* 减少垂直内边距以减少底部留白 */
    background: #1a2d4b;
}

.common3-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0;
    width: 100%;
}

.common3-visitor-count {
    text-align: left;
    flex: 1;
    min-width: 200px;
}

.common3-copyright {
    text-align: center;
    flex: 2;
}

.common3-footer-extra {
    text-align: right;
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

@media (max-width: 768px) {
    .common3-footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
    }

    .common3-visitor-count,
    .common3-copyright,
    .common3-footer-extra {
        text-align: center;
        width: 100%;
        justify-content: center;
    }
}

.common3-visitor-count,
.common3-copyright,
.common3-footer-extra {
    margin: 0;
}

.common3-visitor-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.common3-visitor-count i {
    margin-right: 8px;
    transition: all 0.3s;
}

.common3-visitor-count:hover i {
    transform: scale(1.2);
    color: #fff;
}

.common3-visitor-count strong {
    color: #fff;
    margin: 0 3px;
}

.common3-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: center;
    font-size: 12px !important;
}

.common3-footer-extra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.common3-footer-extra a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    position: relative;
    padding: 2px 6px;
    transition: all 0.3s ease;
}

.common3-footer-extra a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: all 0.3s;
}

.common3-footer-extra a:hover {
    color: #fff;
}

.common3-footer-extra a:hover::after {
    width: 100%;
}

.common3-footer-extra .common3-divider {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
    .common3-footer-content {
        gap: 15px;
    }

    .common3-footer-logo img {
        height: 50px;
    }

    .common3-footer-col.common3-align-right {
        padding-right: 20px;
    }

    .common3-footer-content-wrapper {
        padding: 15px 20px;
    }

    .common3-footer-copyright-row {
        padding: 8px 20px 12px;
    }

    .common3-footer-bottom {
        padding: 5px 20px;
        /* 移动端进一步减少垂直内边距 */
    }
}

@media (max-width: 768px) {
    .common3-footer-top {
        padding: 10px 0;
    }

    .common3-footer-content-wrapper {
        padding: 15px 10px 8px;
    }

    .common3-footer-copyright-row {
        padding: 6px 10px 10px;
    }

    .common3-footer-top-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .common3-footer-top-title {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    .common3-footer-top-title::after {
        display: none;
    }

    .common3-footer-top-link {
        font-size: 0.9rem;
    }

    .common3-footer-logo-container {
        grid-row: 1;
        grid-column: 1 / -1;
    }

    .common3-footer-logo {
        margin-bottom: 8px;
    }

    .common3-footer-logo img {
        height: 52px;
        margin-bottom: 0;
    }

    .common3-footer-content .common3-footer-col:first-child {
        grid-row: 2;
        grid-column: 1 / -1;
    }

    .common3-footer-content .common3-footer-col:first-child h3 {
        font-size: 1.1rem;
    }

    .common3-footer-content .common3-footer-col:first-child h3::after {
        width: 25px;
    }

    .common3-contact-info {
        margin-bottom: 25px;
    }

    .common3-contact-info p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .common3-footer-content .common3-footer-col.common3-footer-logo-container {
        order: -2;
    }

    .common3-footer-content .common3-footer-col.common3-align-right {
        grid-row: 3;
        grid-column: 1 / -1;
    }

    .common3-qrcode-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        gap: 10px;
        transform: translateY(6px);
    }

    .common3-qrcode-box {
        width: 44px;
        height: 44px;
        padding: 3px;
        margin-bottom: 6px;
    }

    .common3-qrcode-title {
        font-size: 10px;
    }

    .common3-footer-bottom {
        padding: 10px 10px;
    }

    .common3-footer-bottom-inner {
        flex-direction: column;
        gap: 5px;
    }

    .common3-visitor-count,
    .common3-copyright,
    .common3-footer-extra {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .common3-visitor-count {
        order: 3;
        margin-top: 5px;
    }

    .common3-copyright {
        order: 1;
    }

    .common3-footer-extra {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
    }

    .common3-footer-col.common3-align-right {
        padding-right: 0;
        align-items: center;
    }

    /* 手机版页脚：模块整体居中，模块内文字左对齐 */
    .common3-footer-content .common3-footer-col:first-child {
        transform: translateX(15%);
    }

    .common3-footer-desc {
        text-align: left;
    }

    .common3-contact-info {
        align-items: flex-start;
        text-align: left;
    }

    .common3-footer-quick-channel {
        justify-content: flex-start;
        margin-top: 0px;
    }

    .common3-footer-quick-channel-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .common3-footer-logo-container {
        transform: none;
    }
}

/* 登录注册按钮样式 */
.common3-auth-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

/* 已登录状态样式 */
.common3-auth-buttons.common3-logged-in {
    justify-content: flex-end;
    align-items: flex-start;
}

.common3-auth-buttons.common3-logged-in .common3-message-icon {
    position: relative;
    margin-right: 10px;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.common3-auth-buttons.common3-logged-in .common3-message-icon:hover {
    color: #f0f0f0;
}

.common3-auth-buttons.common3-logged-in .common3-layui-badge {
    position: absolute;
    top: 0;
    right: -10px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #ff1744 100%);
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 8px;
    font-weight: 600;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4), 0 0 0 2px white;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: pulse-badge 2s infinite;
    line-height: 1;
    letter-spacing: -0.5px;
    z-index: 10;
}

/* 添加脉动动画 */
@keyframes pulse-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4), 0 0 0 2px white, 0 0 0 4px rgba(255, 71, 87, 0);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 12px rgba(255, 71, 87, 0.6), 0 0 0 2px white, 0 0 0 4px rgba(255, 71, 87, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4), 0 0 0 2px white, 0 0 0 4px rgba(255, 71, 87, 0);
    }
}

/* 悬停效果 */
.common3-auth-buttons.common3-logged-in .common3-message-icon:hover .common3-layui-badge {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff3742 0%, #ff1744 50%, #e91e63 100%);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6), 0 0 0 2px white;
    animation: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .common3-auth-buttons.common3-logged-in .common3-layui-badge {
        top: -8px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        font-weight: 700;
    }
}

/* 用户菜单相关样式 */
.common3-user-menu-wrapper {
    position: relative;
    margin-left: 5px;
    max-width: 20em;
    min-width: 0;
    /* 从15px改为5px，减小间距；限制宽度避免遮挡左侧菜单 */
}

.common3-user-menu {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s;
}

.common3-user-menu:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.common3-user-menu .common3-username {
    font-weight: 500;
    color: #fff;
    margin-right: 8px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 15em;
    display: inline-block;
    vertical-align: bottom;
}

.common3-user-menu i {
    color: #fff;
    font-size: 12px;
}

.common3-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    white-space: nowrap;
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(34, 58, 94, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.common3-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background-color: transparent;
}

.common3-dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.common3-dropdown-menu li {
    list-style: none;
}

.common3-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.common3-dropdown-menu li a:hover {
    background-color: rgba(34, 58, 94, 0.1);
    color: #223a5e;
}

.common3-dropdown-menu li a i {
    margin-right: 10px;
    width: 16px;
    font-size: 14px;
    text-align: center;
    color: #223a5e;
    transition: transform 0.2s ease;
}

.common3-dropdown-menu li a:hover i {
    transform: translateX(2px);
}

.common3-dropdown-menu li.common3-divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

.common3-dropdown-menu .common3-logout-btn {
    color: #e74c3c;
}

.common3-dropdown-menu .common3-logout-btn:hover {
    background-color: #fee;
}

.common3-dropdown-menu .common3-logout-btn i {
    color: #e74c3c;
}

@media (min-width: 769px) {
    .common3-user-menu {
        padding: 4px 8px;
        border-radius: 20px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        cursor: pointer;
        color: white;
    }

    .common3-user-menu:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .common3-user-menu .common3-username {
        margin-right: 4px;
        font-weight: 500;
        font-size: 13px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 15em;
    }

    .common3-user-menu i {
        font-size: 14px;
        color: #fff;
    }

    .common3-user-menu .common3-dropdown-menu {
        min-width: 140px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(34, 58, 94, 0.1);
        margin-top: 8px;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .common3-dropdown-menu li a {
        padding: 10px 15px;
        transition: all 0.2s ease;
        color: #333;
    }

    .common3-dropdown-menu li a:hover {
        background-color: rgba(34, 58, 94, 0.1);
        color: #223a5e;
    }
}

/* 删除原有 .user-menu-wrapper、.user-menu、.username、.dropdown-menu 及其相关的所有无前缀样式 */

/* 移动导航按钮 - 默认隐藏 */
.mobile-menu-btn {
    display: none;
    /* 桌面版隐藏 */
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 动画效果 */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端菜单动画 */
.common3-nav.active .common3-nav-item {
    animation: fadeInRight 0.5s forwards;
    animation-delay: calc(0.1s * var(--item-index, 0));
    opacity: 0;
}

.common3-nav.active .common3-mobile-user-header {
    animation: fadeInUp 0.5s forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

.common3-nav.active .common3-mobile-auth-buttons .common3-auth-btn {
    animation: fadeInRight 0.5s forwards;
    animation-delay: calc(0.15s * var(--item-index, 0));
    opacity: 0;
}

/* 确保移动端导航项在PC端隐藏 */
.common3-mobile-only {
    display: none !important;
}

/* 消息中心样式 */
.common3-message-center-span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* 导航栏相关样式 */
/* 顶部导航样式 */
.common3-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: url('/images/head_bg.png') no-repeat right top;
    background-size: auto 100%, cover;
    background-blend-mode: overlay;
    padding: 0;
    height: 125px;
    transition: all 0.3s ease;
}

/* 从栅格布局改为flexbox布局 - logo与右侧菜单/按钮垂直居中对齐 */
.common3-top-nav .common3-header-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 0;
    max-width: 1850px;
    /* 限制最大宽度 */
    margin: 0 auto;
    /* 居中显示 */
    width: 100%;
    /* 设置宽度为100% */
    box-sizing: border-box;
    /* 确保padding包含在宽度内 */
}

.common3-top-nav.scrolled .common3-header-container {
    align-items: center !important;
    padding-top: 0px !important;
}

/* logo区域样式 - 根据页面宽度自适应 */
.common3-nav-logo-container {
    display: flex;
    align-items: center;
    padding-right: 20px;
    padding-top: 0;
    max-width: min(590px, 38vw);
    flex-shrink: 0;
}

.common3-nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    max-width: 100%;
}

.common3-nav-logo-link:hover {
    opacity: 0.8;
}

.common3-nav-logo {
    height: 50px;
    max-height: 56px;
    max-width: 100%;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.common3-top-nav.scrolled .common3-nav-logo {
    margin-top: 0;
    max-height: 50px;
}

.common3-nav-logo img {
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* 菜单区域 - 占据中间所有剩余空间，与 logo/按钮垂直居中 */
.common3-menu-container {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.common3-desktop-nav {
    display: flex;
    align-items: center;
    padding-top: 0;
    width: 100%;
    justify-content: flex-start;
}

/* 用户信息/登录注册按钮区域 - 固定宽度 */
.common3-auth-container {
    min-width: 120px;
    max-width: 24em;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    margin-right: 14px;
}

.common3-top-nav.scrolled {
    height: 70px;
    padding: 0;
    background: linear-gradient(to bottom, rgba(34, 58, 94, 0.9), rgba(34, 58, 94, 0.7));
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.common3-top-nav.scrolled .common3-nav-logo {
    height: 50px;
    max-height: 50px;
    padding-top: 0;
}

.common3-top-nav.scrolled .common3-nav-link {
    padding: 0.5rem 1.2rem;
    font-size: 14px;
}

.common3-top-nav.scrolled .common3-menu-container {
    align-items: center;
}

.common3-top-nav.scrolled .common3-auth-container {
    align-items: center;
    padding-top: 0;
}

.common3-top-nav.scrolled .common3-nav-logo-container {
    padding-top: 0;
}

.common3-top-nav.scrolled .common3-desktop-nav {
    padding-top: 0;
}

.common3-nav-logo {
    height: 50px;
    max-width: 100%;
    padding-left: 0;
    display: flex;
    align-items: center;
    padding-top: 0;
}


.common3-nav {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
}

.common3-desktop-nav {
    display: flex;
    align-items: flex-start;
    padding-top: 0;
    /* 顶部微调 */
}

.common3-nav-item.common3-has-submenu {
    position: relative;
}

/* 为桌面端导航菜单项添加分隔符 */
.common3-desktop-nav .common3-nav-item:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 300;
    z-index: 1;
}

.common3-nav-link {
    border-bottom: none !important;
    display: inline-flex;
    align-items: center;
    width: auto;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 15px;
    margin: 4px 0;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
    gap: 4px;
    font-family: "Arial", "Microsoft YaHei", "\u5b8b\u4f53", Tahoma, Geneva, sans-serif !important;
}

.common3-nav-link:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

/* 移除首页菜单选中状态样式 */

.common3-nav-link::after {
    content: '' !important;
    font-family: none !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
    opacity: 0 !important;
}

.common3-nav-link:hover::after {
    transform: scaleX(1) !important;
    opacity: 1 !important;
    width: 100% !important;
}

.common3-nav-link i {
    margin-right: 1px;
    font-size: 14px;
    background: transparent !important;
    transition: transform 0.3s ease;
}

.common3-nav-link:hover i {
    transform: translateY(-1px);
    background: transparent !important;
}

/* 移除首页菜单选中状态图标样式 */

.common3-nav-item.common3-has-submenu:hover .common3-submenu-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.common3-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    opacity: 0.8 !important;
    background-color: var(--primary-color);
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0;
}

.common3-nav-item.common3-has-submenu:hover .common3-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.common3-submenu li {
    display: block;
    width: 100%;
}

.common3-submenu li:first-child a {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.common3-submenu li:last-child a {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.common3-submenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
}

.common3-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

.common3-submenu-arrow-right {
    float: right;
    margin-left: 8px;
    font-size: 10px;
    opacity: 0.8;
}

.common3-third-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 140px;
    white-space: nowrap;
    background: rgba(34, 58, 94, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 0 8px 8px 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1002;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.common3-submenu .common3-nav-item.common3-has-submenu:hover .common3-third-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.common3-third-menu li {
    display: block;
    width: 100%;
}

.common3-third-menu li:first-child a {
    border-top-right-radius: 8px;
}

.common3-third-menu li:last-child a {
    border-bottom-right-radius: 8px;
}

.common3-third-menu-item {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.common3-third-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 20px;
}

.common3-desktop-only {
    display: block;
}

.common3-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .common3-desktop-only {
        display: none !important;
    }

    .common3-mobile-only {
        display: block !important;
    }

    .common3-desktop-nav {
        display: none !important;
    }

    .common3-nav-link {
        display: flex !important;
        align-items: center !important;
    }

    .common3-nav-link i:not(.common3-submenu-arrow) {
        margin-right: 12px !important;
        width: 20px !important;
        text-align: center !important;
    }

    .common3-nav-link span {
        flex: 1 !important;
        padding-left: 5px !important;
    }

    .common3-submenu-arrow {
        margin-left: auto !important;
    }

    .common3-submenu {
        display: none !important;
    }

    .common3-nav-item.common3-has-submenu.active .common3-submenu {
        display: block !important;
    }

    .common3-third-menu {
        display: none !important;
    }

    .common3-submenu li.common3-has-submenu.active .common3-third-menu {
        display: block !important;
    }

    .common3-submenu li a span {
        flex: 1 !important;
        padding-left: 5px !important;
    }

    .common3-submenu-arrow-right {
        margin-left: auto !important;
    }
}

/* 移动端导航面板及相关 */
.common3-mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 320px;
    /* 与 common3.js 的 --common3-app-px 一致，避免 100vh 含地址栏区域导致底部被裁切 */
    height: 100vh;
    height: 100dvh;
    height: var(--common3-app-px, 100dvh);
    max-height: var(--common3-app-px, 100dvh);
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 刘海屏等：面板贴边时顶部留出安全区 */
    padding-top: env(safe-area-inset-top, 0px);
    box-sizing: border-box;
}

.common3-mobile-nav-panel.active {
    right: 0;
}

.common3-mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.common3-mobile-nav-title {
    font-weight: 600;
    font-size: 16px;
    color: #223a5e;
}

.common3-mobile-nav-close {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.common3-mobile-nav-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.common3-mobile-nav-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.common3-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.common3-mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.common3-mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 16px 15px 12px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    position: relative;
    transition: all 0.2s;
}

/* PC端用户菜单样式修复 */
@media (min-width: 769px) {
    .common3-auth-buttons.common3-logged-in {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .common3-user-menu {
        display: flex;
        align-items: center;
        padding: 5px 10px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .common3-user-menu:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }

    .common3-user-menu .common3-username {
        color: white;
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 15em;
    }

    .common3-user-menu i {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.8);
    }

    .common3-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 140px;
        width: auto;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        border: 1px solid rgba(34, 58, 94, 0.1);
        margin-top: 10px;
        z-index: 1000;
        overflow: hidden;
        transition: all 0.3s;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .common3-dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .common3-dropdown-menu li {
        list-style: none;
    }

    .common3-dropdown-menu li a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        transition: all 0.2s;
    }

    .common3-dropdown-menu li a:hover {
        background-color: rgba(34, 58, 94, 0.1);
        color: #223a5e;
    }

    .common3-dropdown-menu li a i {
        margin-right: 10px;
        width: 16px;
        text-align: center;
        color: #223a5e;
        font-size: 14px;
    }

    .common3-dropdown-menu li.common3-divider {
        height: 1px;
        background-color: #eee;
        margin: 5px 0;
    }

    .common3-dropdown-menu .common3-logout-btn {
        color: #e53935;
    }

    .common3-dropdown-menu .common3-logout-btn:hover {
        background-color: rgba(229, 57, 53, 0.1);
    }

    .common3-dropdown-menu .common3-logout-btn i {
        color: #e53935;
    }
}

/* 已移除最小化相关样式 */

.common3-footer-extra a {
    min-width: 60px;
    padding: 0 6px;
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .common3-footer-extra {
        flex-wrap: wrap;
        gap: 8px;
    }

    .common3-footer-extra a {
        min-width: 50px;
        padding: 0 4px;
        font-size: 0.95rem;
    }
}

.common3-floating-btn:hover .common3-btn-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.common3-trust-auth-btn {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

@media (max-width: 768px) {
    .common3-floating-btn {
        width: 50px;
        height: 50px;
    }

    .common3-floating-btn i {
        font-size: 1.5rem;
    }

    .common3-btn-tooltip {
        display: none;
    }
}

.common3-mobile-menu-btn {
    display: none;
    /* 默认隐藏 */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
}

.common3-mobile-menu-btn i {
    transition: transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.common3-mobile-menu-btn.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.common3-mobile-menu-btn.active i {
    transform: rotate(90deg);
}

.common3-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.common3-mobile-nav-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 以下为批量前缀化后的移动端导航相关样式 */
.common3-mobile-nav-link:hover,
.common3-mobile-nav-link:active {
    background-color: #f9f9f9;
    color: #223a5e;
}

.common3-mobile-nav-link .common3-mobile-submenu-toggle {
    margin-left: auto;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 14px;
    color: #888;
    transition: transform 0.2s;
}

.common3-mobile-nav-item.active .common3-mobile-submenu-toggle {
    transform: rotate(180deg);
}

.common3-mobile-submenu {
    display: none;
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

.common3-mobile-nav-item.active .common3-mobile-submenu {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.common3-mobile-submenu-item {
    border-bottom: 1px solid #eaeaea;
}

.common3-mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 10px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    position: relative;
}

.common3-mobile-submenu-link:hover {
    background-color: #efefef;
    color: #223a5e;
}

.common3-mobile-third-menu-toggle {
    margin-left: auto;
    transition: transform 0.2s;
}

.common3-mobile-submenu-item.active .common3-mobile-third-menu-toggle {
    transform: rotate(180deg);
}

.common3-mobile-third-menu {
    display: none;
    list-style: none;
    padding: 0 0 0 14px;
    margin: 0;
    background-color: #e9e9e9;
    box-sizing: border-box;
}

.common3-mobile-submenu-item.active .common3-mobile-third-menu {
    display: block;
}

.common3-mobile-third-menu-item {
    border-bottom: 1px solid #dedede;
}

.common3-mobile-third-menu-item a {
    display: block;
    padding: 10px 16px 10px 10px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.common3-mobile-third-menu-item a:hover {
    background-color: #e0e0e0;
    color: #223a5e;
}

.common3-mobile-nav-footer {
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    padding: 15px;
    background-color: #f9f9f9;
}

.common3-mobile-auth-buttons {
    display: flex;
    gap: 10px;
}

.common3-mobile-auth-buttons .common3-auth-btn {
    flex: 1;
    text-align: center;
}

.common3-mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.common3-mobile-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.common3-mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #223a5e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.common3-mobile-user-data {
    flex: 1;
}

.common3-mobile-user-name {
    font-weight: 600;
    font-size: 15px;
    color: #223a5e;
    margin-bottom: 4px;
}

.common3-mobile-user-role {
    font-size: 12px;
    color: #777;
}

.common3-mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.common3-mobile-user-action {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.common3-mobile-user-action:hover {
    background-color: #efefef;
    color: #223a5e;
}

.common3-mobile-user-action i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: #666;
}

.common3-mobile-user-action .layui-badge {
    margin-left: auto;
}

.common3-mobile-user-action.common3-mobile-logout-action {
    margin-top: 5px;
    color: #e53935;
}

.common3-mobile-user-action.common3-mobile-logout-action i {
    color: #e53935;
}

.common3-mobile-nav-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.common3-mobile-nav-panel {
    z-index: 10000;
}

/* 此处有重复定义的移动菜单按钮样式，已删除 */
/* 此处有重复定义的移动菜单按钮样式，已删除 */

.common3-login-btn {
    background: linear-gradient(90deg, #223a5e 0%, #35507b 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 28px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(34, 58, 94, 0.08);
    transition: background 0.22s, box-shadow 0.22s, transform 0.13s;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.common3-login-btn:hover,
.common3-login-btn:focus {
    background: linear-gradient(90deg, #35507b 0%, #223a5e 100%);
    box-shadow: 0 4px 14px rgba(34, 58, 94, 0.13);
    transform: translateY(-1.5px) scale(1.03);
}

.common3-register-btn {
    background: #fff;
    color: #223a5e;
    border: 1.5px solid #223a5e;
    border-radius: 6px;
    padding: 8px 28px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(34, 58, 94, 0.06);
    transition: background 0.22s, color 0.22s, border 0.22s, box-shadow 0.22s, transform 0.13s;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.common3-register-btn:hover,
.common3-register-btn:focus {
    background: #f5f7fa;
    color: #35507b;
    border-color: #35507b;
    box-shadow: 0 4px 14px rgba(34, 58, 94, 0.10);
    transform: translateY(-1.5px) scale(1.03);
}

/* PC版登录/注册按钮样式美化 */
.common3-auth-buttons.common3-desktop-only {
    display: flex;
    align-items: center;
    gap: 12px;
}

.common3-login-btn {
    background: #223a5e;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.common3-login-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s;
}

.common3-login-btn:hover {
    background: #2d4373;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.common3-login-btn:hover:before {
    opacity: 1;
}

.common3-login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.common3-register-btn {
    background: transparent;
    color: #223a5e;
    border: 1px solid #223a5e;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    text-align: center;
}

.common3-register-btn:hover {
    background: rgba(34, 58, 94, 0.05);
    border-color: #2d4373;
    color: #2d4373;
    transform: translateY(-1px);
}

.common3-register-btn:active {
    transform: translateY(1px);
}

/* 添加图标到按钮 - 可选 */
.common3-login-btn:before {
    font-family: 'FontAwesome';
    content: "\f2f6";
    margin-right: 8px;
    font-size: 15px;
}

.common3-register-btn:before {
    font-family: 'FontAwesome';
    content: "\f234";
    margin-right: 8px;
    font-size: 15px;
}

/* PC版登录/注册按钮恢复原风格并加前缀 */
.common3-auth-btn {
    display: inline-block;
    padding: 8px 20px;
    margin-left: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.common3-auth-btn.common3-login-btn {
    background-color: transparent;
    border-color: white;
    color: white;
    min-width: unset;
    display: inline-block;
    width: auto;
    text-align: center;
}

.common3-auth-btn.common3-login-btn:hover {
    background-color: white;
    color: var(--primary-color);
    text-shadow: none;
}

.common3-auth-btn.common3-register-btn {
    background-color: white;
    color: var(--primary-color);
    min-width: unset;
    display: inline-block;
    width: auto;
    text-align: center;
}

.common3-auth-btn.common3-register-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: white;
}

/* 清除之前添加的按钮前图标 */
.common3-login-btn:before,
.common3-register-btn:before {
    content: none;
    margin: 0;
}

:root {
    --primary-color: #223a5e;
}

.common3-auth-btn.common3-login-btn,
.common3-auth-btn.common3-register-btn {
    width: auto;
    /* 取消固定宽度，让文字决定宽度 */
    padding: 4px 14px;
    /* 减小内边距，让按钮更小 */
    font-size: 12px !important;
    /* 减小字体大小 */
    text-align: center;
    min-width: unset;
    /* 确保没有最小宽度限制 */
    font-family: "Arial", "Microsoft YaHei", "\u5b8b\u4f53", Tahoma, Geneva, sans-serif;
}

/* 清除可能的影响样式 */
.common3-auth-buttons.common3-desktop-only {
    gap: 8px;
    /* 减小按钮之间的间距 */
}

/* 底部容器也应用相同的边距样式 */
.common3-footer-bottom .common3-header-container,
.common3-footer-content-wrapper .common3-header-container,
.common3-footer-top .common3-header-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.common3-footer-content:first-child {
    margin-left: 20px;
}

/* 在移动设备上减少边距 */
@media (max-width: 768px) {

    .common3-top-nav .common3-header-container,
    .common3-footer-bottom .common3-header-container,
    .common3-footer-content-wrapper .common3-header-container,
    .common3-footer-top .common3-header-container {
        padding-right: 15px;
    }

    /* 手机版顶部导航压低高度 */
    .common3-top-nav {
        height: 56px;
        background-size: 100% 100%;
        background-position: center top;
    }

    .common3-top-nav.scrolled {
        height: 52px;
    }

    /* 手机版顶部 logo 尺寸适配 - 随页面宽度自适应 */
    .common3-nav-logo-container {
        padding-right: 10px;
        max-width: min(240px, 70vw);
    }

    .common3-nav-logo {
        height: 40px;
        max-height: 40px;
        margin-top: 0;
        max-width: 100%;
    }

    .common3-nav-logo img {
        height: 100%;
        max-height: 100%;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .common3-top-nav.scrolled .common3-nav-logo {
        height: 36px;
        max-height: 36px;
        margin-top: 0;
    }

    .common3-top-nav.scrolled .common3-nav-logo img {
        max-height: 36px;
    }
}

.common3-top-nav.scrolled .common3-auth-buttons.common3-desktop-only,
.common3-top-nav.scrolled .common3-auth-buttons.common3-logged-in,
.common3-top-nav.scrolled .common3-desktop-nav,
.common3-top-nav.scrolled .common3-nav-logo-container,
.common3-top-nav.scrolled .common3-nav-logo,
.common3-top-nav.scrolled .common3-menu-container,
.common3-top-nav.scrolled .common3-auth-container {
    padding-top: 0;
    align-items: center;
}

/* 减小手机版页脚间距 */
@media (max-width: 768px) {
    .common3-footer-content-wrapper {
        padding: 10px 10px 5px;
    }

    .common3-footer-content {
        gap: 5px;
    }

    .common3-footer-content:first-child {
        margin-left: 0 !important;
    }

    .common3-footer-col {
        margin-bottom: 5px;
    }

    .common3-contact-info {
        margin-bottom: 10px;
    }

    .common3-contact-info p {
        margin-bottom: 3px;
    }

    .common3-footer-desc {
        margin-bottom: 10px;
    }

    .common3-footer-bottom {
        padding: 5px 10px;
    }

    .common3-footer-bottom-inner {
        gap: 5px;
    }
}

/* 顶部导航菜单按钮样式调整 */
.common3-mobile-menu-btn {
    display: none;
    /* 默认状态下隐藏按钮 */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .common3-mobile-menu-btn {
        display: flex !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 1.2rem !important;
        border-radius: 6px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    }
}

/* 移动端底部登录注册按钮样式（紧凑尺寸） */
.common3-mobile-auth-buttons {
    display: flex;
    gap: 8px;
    padding: 6px 4px;
}

.common3-mobile-auth-buttons .common3-auth-btn {
    flex: 1;
    text-align: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    height: auto;
}

.common3-mobile-auth-buttons .common3-auth-btn:before {
    font-family: 'FontAwesome';
    margin-right: 4px;
    font-size: 13px;
}

.common3-mobile-auth-buttons .common3-login-btn {
    background-color: #223a5e;
    color: #fff;
    border: none;
}

.common3-mobile-auth-buttons .common3-register-btn {
    background-color: white;
    color: #223a5e;
    border: 1.5px solid #223a5e;
}

/* 面包屑导航样式 */
.common3-breadcrumb {
    width: 100%;
    background-color: rgba(34, 58, 94, 0.04);
    padding: 12px 0;
    border-bottom: 1px solid rgba(34, 58, 94, 0.07);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.common3-breadcrumb-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.common3-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.common3-breadcrumb-item {
    display: flex;
    align-items: center;
}

.common3-breadcrumb-separator {
    display: flex;
    align-items: center;
}

.common3-breadcrumb-separator i {
    margin: 0 8px;
    color: #8a9cb1;
    font-size: 12px;
}

.common3-breadcrumb-link {
    color: #223a5e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.common3-breadcrumb-link:hover {
    color: #3a5485;
    text-decoration: underline;
}

.common3-breadcrumb-link i {
    font-size: 14px;
    margin-right: 5px;
}

.common3-breadcrumb-current {
    color: #3a5485;
    font-weight: 600;
    font-size: 14px;
}

/* 移动端适配 - 与压低后的顶部导航一致 */
@media (max-width: 768px) {
    .common3-breadcrumb {
        top: 50px;
        padding: 8px 0;
        /* 极多业务名时限制高度，内部滚动，避免占满屏；配合 initFixedStackMainPadding 计算主内容上边距 */
        max-height: min(42vh, 240px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .common3-breadcrumb-container {
        padding: 0 15px;
    }

    .common3-breadcrumb-link,
    .common3-breadcrumb-current {
        font-size: 13px;
    }

    .common3-breadcrumb-separator i {
        margin: 0 6px;
        font-size: 10px;
    }
}

/* 移动端滚动时的面包屑位置调整 */
@media (max-width: 768px) {
    .common3-top-nav.scrolled+.common3-breadcrumb {
        top: 50px;
    }
}

/* 主内容区域顶部边距，避免被固定面包屑遮挡 */
.common3-main-content {
    margin-top: 110px;
}

@media (max-width: 768px) {
    .common3-main-content {
        margin-top: 60px;
    }
}

/* 业务流程组件样式 - 极简优雅风格 */
.common3-process-flow-wrapper {
    position: relative;
}

/* 左侧折叠标签：桌面端隐藏，手机端为悬浮窗小块，「业务流程」四字竖排 */
.common3-process-flow-tab {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 0 14px 14px 0;
    background: var(--primary-color, #223a5e);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.common3-process-flow-tab span {
    display: block;
    line-height: 1.1;
}

.common3-process-flow-tab:hover {
    background: var(--primary-dark, #1a2d47);
    box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.2);
}

.common3-process-flow-tab:active {
    transform: translateY(-50%) scale(0.98);
}

.common3-process-flowchart {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 20px;
}

.common3-process-title {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.common3-process-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    position: relative;
    display: inline-block;
}

.common3-process-title h3::before,
.common3-process-title h3::after {
    display: none;
}

.common3-process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.common3-process-steps.vertical {
    position: relative;
    padding: 0;
    margin: 0;
}

.common3-process-steps.vertical::before {
    display: none;
}

.common3-process-step {
    display: flex;
    align-items: center;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
    padding: 12px 0;
    margin-left: 0;
}

.common3-process-step.active {
    opacity: 1;
}

/* 在每个步骤后添加连接线（除了最后一个） */
.common3-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: calc(100% + 6px);
    width: 2px;
    height: 20px;
    background: #e5e7eb;
    z-index: 1;
    transition: all 0.3s ease;
}

.common3-process-step.active:not(:last-child)::after {
    background: #223a5e;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.common3-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-right: 16px;
    flex-shrink: 0;
}

.common3-process-step.active .common3-step-number {
    background: #223a5e;
    color: white;
    border-color: #223a5e;
}

.common3-step-content {
    flex: 1;
}

.common3-step-content h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.common3-process-step.active .common3-step-content h4 {
    color: #374151;
    font-weight: 600;
}

.common3-step-content p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.common3-process-step.active .common3-step-content p {
    color: #6b7280;
}

.common3-step-arrow {
    display: none;
}

.common3-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: calc(100%);
    width: 2px;
    height: 20px;
    background: #e5e7eb;
    z-index: 1;
    transition: all 0.3s ease;
}

.common3-process-step.active:not(:last-child)::after {
    background: #223a5e;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* 业务流程组件移动端：左侧小块 + 侧滑卡片（无全屏遮罩，避免与面板错位） */
@media (max-width: 768px) {
    .process-column {
        position: fixed;
        left: 0;
        top: 270px;
        z-index: 1002;
        width: auto;
        min-width: 0;
        overflow: visible;
        padding: 0;
        flex: none;
        order: 1;
        pointer-events: none;
    }

    .process-column .common3-process-flow-tab {
        pointer-events: auto;
    }

    .common3-process-flow-wrapper {
        position: relative;
        width: 36px;
        z-index: 1002;
        /* 给绝对定位的小块提供稳定的定位参照与命中区域 */
        height: 70px;
        pointer-events: none;
    }

    .common3-process-flow-wrapper .common3-process-flow-tab,
    .common3-process-flow-wrapper.is-open .common3-process-flowchart {
        pointer-events: auto;
    }

    .common3-process-flow-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        left: 0;
        /* 拖拽时由 JS 更新该值，实现上下移动 */
        top: var(--process-flow-tab-offset, 0px);
        transform: none;
        width: 36px;
        height: 70px;
        min-height: 70px;
        padding: 2px 0;
        border-radius: 0 14px 14px 0;
        z-index: 1004;
        font-size: 13px;
        line-height: 1.1;
        box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.14);
        touch-action: none;
    }

    .common3-process-flow-tab span {
        display: block;
        line-height: 1.1;
    }

    .common3-process-flow-tab:active {
        transform: scale(0.97);
    }

    /* 侧滑卡片：紧挨左侧标签条，整体贴在面包屑下方 */
    .common3-process-flowchart {
        display: block;
        position: fixed;
        left: 44px;
        top: 110px;
        width: min(280px, calc(100vw - 52px));
        max-width: calc(100vw - 52px);
        max-height: calc(100vh - 130px);
        margin: 0;
        padding: 20px 18px 22px;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border: none;
        border-radius: 16px;
        box-shadow:
            0 16px 40px rgba(15, 23, 42, 0.2),
            0 0 0 1px rgba(15, 23, 42, 0.06);
        background: #fff;
        z-index: 1003;
        transform: translate3d(calc(-100vw - 40px), 0, 0);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
            opacity 0.28s ease;
        will-change: transform, opacity;
    }

    .common3-process-flow-wrapper.is-open .common3-process-flowchart {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        pointer-events: auto;
    }

    .common3-process-title {
        margin-bottom: 20px;
        padding-right: 0;
        padding-bottom: 4px;
        border-bottom: 1px solid rgba(34, 58, 94, 0.08);
    }

    .common3-process-title h3 {
        font-size: 16px;
    }

    .common3-process-steps {
        gap: 14px;
    }

    .common3-process-steps.vertical::before {
        display: none;
    }

    .common3-process-step {
        padding: 10px 0;
    }

    .common3-process-step:not(:last-child)::after {
        left: 14px;
        top: calc(100%);
        width: 1.5px;
        height: 16px;
    }

    .common3-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 12px;
    }

    .common3-step-content h4 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .common3-step-content p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .common3-footer-extra {
        text-align: center;
    }

    .common3-footer-extra a {
        font-size: 12px;
        padding: 2px 4px;
    }
}

.common3-mobile-menu-btn {
    display: none;
    /* 默认隐藏 */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
}

/* ==================== 通用地址表单样式 ==================== */
/* 这些样式仅针对地址表单弹窗，使用 .layui-layer-content 限定作用域，避免影响全局 layui 样式 */

/* 地址表单弹窗样式 - 仅当弹窗内容包含 addressForm 时生效 */
/* PC：不覆盖 position，沿用 layui layer offset:auto 水平+垂直居中；移动端左对齐见下方 768 媒体查询 */
.layui-layer:has(.layui-form[lay-filter="addressForm"]) {
    border-radius: 8px !important;
    overflow: hidden;
}

.layui-layer:has(.layui-form[lay-filter="addressForm"]) .layui-layer-title {
    text-align: left !important;
    padding-left: 16px !important;
    box-sizing: border-box !important;
}

/* 弹窗关闭按钮样式 - 仅针对地址表单弹窗 */
.layui-layer:has(.layui-form[lay-filter="addressForm"]) .layui-layer-close {
    font-size: 18px !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.layui-layer:has(.layui-form[lay-filter="addressForm"]) .layui-layer-close:hover {
    transform: scale(1.1) !important;
}

/* 地址表单样式 - 限定在弹窗内容区域内 */
.layui-layer-content .layui-form[lay-filter="addressForm"] {
    padding: 15px !important;
}

/* 整表用 flex 排布，去掉 layui 浮动 + 大 margin-left，标签收窄 */
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item:last-child {
    margin-bottom: 0 !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item::before,
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item::after {
    display: none !important;
    content: none !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-label {
    float: none !important;
    width: 76px !important;
    flex: 0 0 76px !important;
    max-width: 76px !important;
    padding: 9px 8px 0 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    text-align: left !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-input-block {
    float: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-input,
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-textarea {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-input:focus,
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(34, 58, 94, 0.1) !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* 表单中的开关样式 */
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-onswitch {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
}

/* 按钮样式 - 仅针对地址表单内的按钮 */
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item .layui-input-block {
    margin-left: 0 !important;
}

/* 所在地区：与上一行输入框左缘对齐（标签与其它行同宽，三个下拉等分剩余宽度） */
.layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker.layui-form-item {
    align-items: flex-start !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-form-label {
    flex: 0 0 76px !important;
    width: 76px !important;
    max-width: 76px !important;
    padding-top: 10px !important;
    align-self: flex-start !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-input-inline {
    float: none !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    display: block !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-input-inline .layui-form-select,
.layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-input-inline select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-form-select .layui-select-title {
    box-sizing: border-box !important;
}

/* 无标签行（保存/重置）：占满一行 */
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item:last-child {
    justify-content: center !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item:last-child .layui-input-block {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 4px !important;
    padding: 0 20px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-btn-primary {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #666 !important;
}

/* 表单验证提示 */
.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-danger:focus {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1) !important;
}

.layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-danger+.layui-form-tip {
    color: #ff4d4f !important;
}

/* 地址表单响应式：768 及以下与 JS area 一致，避免 577–768 仍按桌面三列省市区溢出 */
@media (max-width: 768px) {
    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-label {
        flex: 0 0 70px !important;
        width: 70px !important;
        max-width: 70px !important;
        padding: 9px 6px 0 0 !important;
        font-size: 13px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-input-block,
    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item .layui-input-block {
        margin-left: 0 !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-btn {
        padding: 0 15px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 13px !important;
    }

    /* 弹窗：限制最大宽/高，内容区可滚动；窄屏靠左对齐（PC 居中不受影响） */
    .layui-layer:has(.layui-form[lay-filter="addressForm"]) {
        width: 92% !important;
        max-width: 560px !important;
        max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px) !important;
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px) !important;
        box-sizing: border-box !important;
        left: max(12px, env(safe-area-inset-left, 0px)) !important;
        right: auto !important;
        margin-left: 0 !important;
        top: 50% !important;
        margin-top: 0 !important;
        transform: translateY(-50%) !important;
    }

    .layui-layer:has(.layui-form[lay-filter="addressForm"]) .layui-layer-title {
        font-size: 14px !important;
    }

    .layui-layer:has(.layui-form[lay-filter="addressForm"]) .layui-layer-content {
        padding: 10px !important;
        max-height: calc(100vh - 120px) !important;
        max-height: calc(100dvh - 120px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] {
        padding: 10px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-input,
    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-textarea {
        padding: 6px 10px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-textarea {
        min-height: 80px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-switch {
        height: 24px !important;
        line-height: 24px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-switch em {
        font-size: 12px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item {
        margin-bottom: 15px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item:last-child {
        margin-bottom: 0 !important;
    }

    /* 底部按钮：窄屏换行、不挤出视口 */
    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item:last-child .layui-input-block {
        margin-left: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item:last-child .layui-btn {
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }

    /* 省市区：纵向排列，下拉区整体与「收件人」等输入框左缘对齐（与标签列宽 70px 一致） */
    .layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker.layui-form-item {
        flex-direction: column !important;
        align-items: stretch !important;
        row-gap: 10px !important;
        column-gap: 0 !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-form-label {
        flex: 0 0 auto !important;
        width: 70px !important;
        max-width: 100% !important;
        padding: 0 6px 4px 0 !important;
        text-align: left !important;
        float: none !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-input-inline {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        /* 与同行「标签 70px + 输入框」的输入区域左缘对齐 */
        padding-left: 70px !important;
        display: block !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-input-inline:last-child {
        margin-bottom: 0 !important;
    }
}

/* 超小屏再收紧标签列宽 */
@media (max-width: 400px) {
    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-label {
        flex: 0 0 64px !important;
        width: 64px !important;
        max-width: 64px !important;
        padding: 9px 4px 0 0 !important;
        font-size: 12px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-input-block,
    .layui-layer-content .layui-form[lay-filter="addressForm"] .layui-form-item .layui-input-block {
        margin-left: 0 !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-form-label {
        width: 64px !important;
    }

    .layui-layer-content .layui-form[lay-filter="addressForm"] #area-picker .layui-input-inline {
        padding-left: 64px !important;
    }
}