/* ================= 全局基础样式 (保持不变) ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Trebuchet MS', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* 字体排版 */
h1 {
    font-size: 54px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

p {
    font-size: 16px;
}

th {
    font-size: 14px;
}

td {
    font-size: 14px;
}

/* 通用样式 */
a {
    font-size: 16px;
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #FA9F00
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: contain;
}

/* 全局 Container (仅用于正文内容，Header 不使用它) */
.container {
    max-width: 1096px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 769px) {
    .container {
        width: 100% !important;
    }
}

/* =================================================================
   HEADER 模块 (全宽布局修改)
   ================================================================= */

/*.header{
!* 核心修改：确保 Header 占据全屏宽度 *!
.header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

!* 核心修改：Header 专用的流式容器 *!
!* 它不限制最大宽度，而是使用 padding 撑开两边，内容居中对齐 *!
.header .header-fluid {
    width: 100%;
    padding: 0 40px; !* 左右留出 40px 间隙，比 container 更宽 *!
    display: flex;
    align-items: center;
    justify-content: space-between;
}

!* 1. 顶部 Top Bar *!
.header .top-bar {
    background-color: #000;
    color: #ccc;
    font-size: 14px;
    padding: 10px 0;
    width: 100%; !* 确保背景全宽 *!
}

.header .top-bar-left h1 {
    font-family: Trebuchet MS, Helvetica, sans-serif;
    margin-right: 30px;
    font-weight: 400;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 0; !* 修复可能存在的 margin *!
}

.header .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .contact-info {
    display: flex;
}

.header .contact-info a {
    display: flex;
    margin-right: 15px;
}

.header .contact-info img {
    width: 20px;
    height: auto;
    margin: 0 10px;
    object-fit: contain;
}

!* 搜索框样式 *!
.header .top-search-form {
    position: relative;
}

.header .top-search-form input[type="search"] {
    padding: 5px 10px 5px 30px;
    border: 1px solid #333;
    border-radius: 20px;
    background-color: #222;
    color: #fff;
    font-size: 16px;
    width: 180px;
    transition: width 0.3s;
}

.header .top-search-form input[type="search"]:focus {
    width: 250px;
    outline: none;
    border-color: #FA9F00;
}

.header .top-search-form .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

!* 2. 导航栏 (Desktop) *!
.header .nav-wrapper {
    width: 100%;
    margin-bottom: -105px; !* 保持透明叠加效果 *!
    position: relative;
    z-index: 1010;
}

.header .nav {
    width: 100%; !* 确保导航栏背景全宽 *!
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, transparent 100%);
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
    display: flex;
    align-items: center; !* 垂直居中 *!
    height: 65px; !* 给一个固定高度，防止塌陷 *!
}

.header .nav .logo {
    width: 55px;
    height: 55px;
    flex-shrink: 0; !* 防止 logo 被压缩 *!
    margin-top: 10px;
}

.header .nav .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header .menu {
    display: flex;
    gap: 20px; !* 增加菜单项之间的间距 *!
    margin-left: auto; !* (可选) 如果想让菜单靠右，加上这行；默认不加则是 flex 撑开 *!
}

.header .menu a {
    padding: 10px 15px;
    font-weight: 600;
    display: block;
    font-size: 16px;
    text-transform: uppercase; !* 建议导航大写，更有设计感 *!
}

!* 滚动变色效果 *!
.header .nav.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
}

!* 二级菜单 (Submenu) *!
.header .menu li.has-submenu {
    position: relative;
    padding-bottom: 0;
}

.header .submenu-header {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header .arrow {
    display: none;
    margin-left: 5px;
}

.header .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); !* 加深阴影 *!
    min-width: 180px;
    z-index: 1100;
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 10px; !* 稍微与主菜单拉开一点距离 *!
}

.header .submenu li {
    display: block;
    width: 100%;
}

.header .submenu a {
    color: #333 !important;
    font-size: 14px;
    white-space: nowrap;
    text-transform: none; !* 子菜单不强制大写 *!
    padding: 8px 20px;
}

.header .submenu a:hover {
    background-color: #f9f9f9;
    color: #FA9F00 !important;
}

!* 移动端元素默认隐藏 *!
.header .mobile-menu-btn,
.header .mobile-menu-overlay,
.header .mobile-menu-header {
    display: none;
}

!* --- Header Desktop Hover 交互 --- *!
@media (min-width: 769px) {
    .header .menu li.has-submenu:hover .submenu {
        display: block;
    }
}

!* --- Header 移动端适配 (≤ 768px) --- *!
@media (max-width: 768px) {
    .header .top-bar {
        position: fixed;
    }

    !* 调整流式容器 Padding *!
    .header .header-fluid {
        padding: 0 20px;
    }

    !* 搜索框适配 *!
    .header .top-search-form input[type="search"] {
        width: 160px; !* 移动端稍微改小 *!
        padding-left: 30px;
    }

    .header .top-search-form input[type="search"]:focus {
        width: 200px !important;
    }

    !* 顶部栏布局 *!
    .header .top-bar-left h1 {
        font-size: 18px;
        margin-right: 10px;
        white-space: nowrap;
    }

    .header .top-bar-right {
        gap: 10px;
    }

    .header .top-bar .contact-info {
        display: none;
    }

    !* 隐藏 PC 导航内容，但保留 nav 容器用于显示汉堡菜单按钮 *!
    .header .nav .logo {
        display: none;
    }

    !* 注意：移除背景，因为移动端通常不需要那层渐变遮住内容，或者根据设计保留 *!
    .header .nav {
        height: auto;
        padding: 0;
        background: none !important;
        pointer-events: none; !* 让点击穿透，除了汉堡菜单 *!
    }

    !* 汉堡菜单按钮 *!
    .header .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 80px; !* 调整位置 *!
        right: 5px;
        z-index: 2000;
        width: 45px;
        height: 45px;
        background-color: #FA9F00;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        font-size: 20px;
        color: #fff;
        border: none;
        cursor: pointer;
        pointer-events: auto; !* 恢复点击 *!
    }

    !* 侧滑菜单 *!
    .header .menu {
        display: block !important;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: #1a1a1a;
        z-index: 2001;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        padding-top: 0;
        margin-left: 0; !* 重置 desktop 的 auto margin *!
        pointer-events: auto;
    }

    .header .menu.active {
        right: 0;
    }

    .header .menu li {
        border-bottom: 1px solid #333;
    }

    .header .menu a {
        padding: 15px 20px;
        color: #fff;
        font-size: 16px;
        text-transform: none;
    }

    !* 侧滑菜单头部 *!
    .header .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background-color: #000;
        color: #FA9F00;
        font-weight: bold;
    }

    .header .close-menu-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }

    !* 移动端子菜单 (手风琴) *!
    .header .submenu-header {
        justify-content: space-between;
        padding-right: 20px;
    }

    .header .arrow {
        display: inline-block;
        color: #888;
        padding: 10px;
        transform: rotate(0deg);
        transition: transform 0.3s;
    }

    .header .has-submenu.open .arrow {
        transform: rotate(180deg);
    }

    .header .submenu {
        display: none;
        position: static;
        box-shadow: none;
        background-color: #222;
        width: 100%;
        margin-top: 0;
    }

    .header .has-submenu.open .submenu {
        display: block;
    }

    .header .submenu a {
        padding-left: 40px;
        border-bottom: 1px solid #2a2a2a;
        color: #ccc !important;
    }

    !* 遮罩层 *!
    .header .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        backdrop-filter: blur(2px);
    }

    .header .mobile-menu-overlay.active {
        display: block;
    }
}

}*/

/* ==========================================================================
        1. Top Bar 顶部栏样式
        (对应 HTML: .header .top-bar)
        ========================================================================== */
.header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.header .top-bar {
    background-color: #000;
    color: #ccc;
    font-size: 14px;
    padding: 10px 0;
    width: 100%;
}

.header .top-bar .header-fluid {
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .top-bar .top-bar-left {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Logo */
.header .top-bar .top-bar-left .logo {
    width: 55px;
    height: auto;
}

.header .top-bar .top-bar-left .logo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 顶部左侧标题 */
.header .top-bar .top-bar-left h1 {
    font-family: "Knewave", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 28px;
    color: #FFFFFF;
    margin: 0;
}

/* 顶部右侧容器 */
.header .top-bar .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 联系方式 */
.header .top-bar .contact-info {
    display: flex;
}

.header .top-bar .contact-info a {
    display: flex;
    margin-right: 15px;
    color: #ccc;
    text-decoration: none;
}

.header .top-bar .contact-info img {
    width: 20px;
    height: auto;
    margin: 0 10px;
    object-fit: contain;
}

/* 顶部搜索框 */
.header .top-bar .top-search-form {
    position: relative;
}

.header .top-bar .top-search-form input[type="search"] {
    padding: 5px 10px 5px 30px;
    border: 1px solid #333;
    border-radius: 20px;
    background-color: #222;
    color: #fff;
    font-size: 16px;
    width: 180px;
    transition: width 0.3s;
}

.header .top-bar .top-search-form .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Top Bar 移动端适配 */
@media (max-width: 768px) {
    .header .top-bar {
        position: fixed;
        z-index: 2005;
        top: 0;
    }

    .header .top-bar .header-fluid {
        padding: 0 20px;
    }

    .header .top-bar .contact-info {
        display: none;
    }

    .header .top-bar .top-bar-left .logo {
        width: 30px;
    }

    .header .top-bar .top-bar-left h1 {
        font-size: 18px;
    }

    .header .top-bar .top-search-form input[type="search"] {
        font-size: 14px;
        width: 150px;
    }
}


/* ==========================================================================
   2. PC Navigation 电脑端主导航
   (对应 HTML: .header .nav-wrapper)
   ========================================================================== */
.header .nav-wrapper {
    width: 100%;
    margin-bottom: -105px;
    /* 保持透明叠加效果 */
    position: relative;
    z-index: 1010;
}

/* 导航条背景与布局 */
.header .nav-wrapper .nav {
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, transparent 100%);
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
    display: flex;
    align-items: center;
    height: 65px;
}

.header .nav-wrapper .header-fluid {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
}

/* 一级菜单 UL */
.header .nav-wrapper .main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.header .nav-wrapper .main-nav>li {
    position: static;
    /* 关键：允许 Mega Menu 全屏宽度 */
}

.header .nav-wrapper .main-nav>li>a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-family: Trebuchet MS, serif;
    font-weight: bold;
    padding: 20px 0;
    display: block;
    transition: color 0.3s;
}

/* 滚动后的样式 (JS控制) */
.header .nav-wrapper .nav.scrolled .main-nav>li>a {
    color: #333;
    /* 假设滚动后背景变白，文字变黑 */
}

/* --- Mega Menu (PC端超级菜单) --- */
.header .nav-wrapper .megamenu {
    position: absolute;
    top: 65px;
    width: 100%;
    left: 50%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    /* 只过渡 透明度 和 变换(位移/缩放) */
    transition: all 0.3s ease;
}

.header .nav-wrapper .main-nav>li:hover .megamenu {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu 内部布局 */
.header .nav-wrapper .megamenu-inner {
    display: flex;
    width: 1066px;
    padding: 40px 20px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* 左侧分类栏 */
.header .nav-wrapper .mega-side {
    flex: 0 0 30%;
    border-right: 1px solid #eee;
}

.header .nav-wrapper .mega-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header .nav-wrapper .mega-side ul li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 10px 0;
    color: #333;
    font-size: 18px;
    transition: all 0.2s;
}

.header .nav-wrapper .mega-side ul li.active a,
.header .nav-wrapper .mega-side ul li a:hover {
    color: #2b65ec;
    font-weight: bold;
}

/* 右侧内容栏 */
.header .nav-wrapper .mega-main {
    flex: 0 0 70%;
    display: flex;
    padding-left: 20px;
    gap: 20px;
}

/* --- 新增：Mega Menu 选项卡切换样式 --- */

/* 右侧内容容器默认隐藏 */
.header .nav-wrapper .mega-links {
    display: none;
}

/* 2. 激活状态：显示并启用 Flex 布局 */
.header .nav-wrapper .mega-links.active {
    display: flex;
    /* 【关键】激活时变身为 Flex 容器 */
    justify-content: space-between;
    /* 左右分布 */
    align-items: flex-start;
    /* 顶部对齐 */
    width: 100%;
    gap: 20px;
    animation: fadeIn 0.3s ease;
    /* 你的动画保持不变 */
}

/* 简单的淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header .nav-wrapper .mega-links h3 {
    font-size: 26px;
    color: #2b65ec;
    margin-bottom: 25px;
    font-weight: 500;
}

.header .nav-wrapper .mega-links ul {
    list-style: none;
    padding: 0;
}

.header .nav-wrapper .mega-links ul li {
    margin-bottom: 15px;
}

.header .nav-wrapper .mega-links ul li a {
    color: #444;
    font-size: 16px;
    transition: all 0.2s;
}

.header .nav-wrapper .mega-links ul li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.header .nav-wrapper .mega-left {
    flex: 3;
}

/* 右侧图片 */
.header .nav-wrapper .mega-image {
    flex: 2;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .nav-wrapper .mega-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PC Nav 移动端隐藏 */
@media (max-width: 768px) {
    .header .nav-wrapper {
        display: none;
    }
}

/* ==========================================================================
   3. Mobile Navigation Wrapper 移动端导航整体容器
   (对应 HTML: .header .mobile-nav-wrapper)
   ========================================================================== */

/* 默认 PC 端隐藏整个移动端结构 */
.header .mobile-nav-wrapper {
    display: none;
}

@media (max-width: 768px) {
    .header .mobile-nav-wrapper {
        display: block;
    }

    /* --- 汉堡按钮 --- */
    .header .mobile-nav-wrapper .mobile-menu-btn {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 2010;
        width: 45px;
        height: 45px;
        background-color: #FA9F00;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 0 10px;
        /* 改为左下角圆角以贴合右上角 */
        color: #fff;
        border: none;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        cursor: pointer;
    }

    /* --- 遮罩层 --- */
    .header .mobile-nav-wrapper .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 2015;
        /* 提高到 mobile-menu-btn 之上以遮挡它 */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .header .mobile-nav-wrapper .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* --- 侧边栏容器 --- */
    .header .mobile-nav-wrapper .mobile-nav {
        position: fixed;
        top: 0;
        right: -280px;
        /* 初始隐藏 */
        width: 280px;
        height: 100vh;
        background-color: #000;
        z-index: 2020;
        /* 最高层级，保证盖住遮罩和汉堡按钮 */
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        display: block;
    }

    .header .mobile-nav-wrapper .mobile-nav.active {
        right: 0;
    }

    /* --- 侧边栏头部 (MENU + Close) --- */
    .header .mobile-nav-wrapper .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #222;
        background-color: #000;
    }

    .header .mobile-nav-wrapper .menu-title {
        color: #fff;
        font-size: 18px;
        font-weight: bold;
        font-family: Trebuchet MS, Helvetica, sans-serif;
        letter-spacing: 1px;
    }

    .header .mobile-nav-wrapper .close-btn {
        color: #fff;
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        font-weight: 300;
        transition: color 0.3s;
    }

    .header .mobile-nav-wrapper .close-btn:hover {
        color: #FA9F00;
    }

    /* --- 菜单列表公共样式 --- */
    .header .mobile-nav-wrapper .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .header .mobile-nav-wrapper .mobile-menu-list>li {
        border-bottom: 1px solid #222;
    }

    .header .mobile-nav-wrapper .mobile-menu-list a {
        display: block;
        padding: 15px;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        flex-grow: 1;
    }

    /* --- 一级菜单容器 (含箭头) --- */
    .header .mobile-nav-wrapper .link-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 20px;
    }

    /* --- 二级菜单容器 (Submenu) --- */
    .header .mobile-nav-wrapper .submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #111;
        display: none;
    }

    .header .mobile-nav-wrapper .submenu.open {
        display: block;
    }

    .header .mobile-nav-wrapper .submenu li {
        border-bottom: 1px solid #1a1a1a;
    }

    /* 二级菜单标题包装器 */
    .header .mobile-nav-wrapper .sub-link-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px 12px 25px;
        cursor: pointer;
        border-bottom: 1px solid #1a1a1a;
    }

    /* 二级标题文字 */
    .header .mobile-nav-wrapper a.sub-category-title {
        color: #FA9F00 !important;
        font-size: 16px !important;
        padding: 0 !important;
        font-weight: 500;
    }

    /* --- 三级菜单容器 (Level 3) --- */
    .header .mobile-nav-wrapper .level3-menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #1a1a1a;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.3);
    }

    .header .mobile-nav-wrapper .level3-menu.open {
        display: block;
    }

    .header .mobile-nav-wrapper .level3-menu li a {
        padding: 12px 20px 12px 30px;
        /* 三级缩进 */
        color: #ccc;
        font-size: 16px;
        border-bottom: 1px solid #252525;
    }

    .header .mobile-nav-wrapper .level3-menu li:last-child a {
        border-bottom: none;
    }

    /* --- 箭头通用样式 --- */
    .header .mobile-nav-wrapper .arrow {
        color: #FA9F00;
        font-size: 40px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s;
    }

    .header .mobile-nav-wrapper .arrow.open {
        transform: rotate(90deg);
    }
}

/* ===========================
   Breadcrumb Navigation
   =========================== */
.main .breadcrumb-section {
    width: 100%;
    padding: 15px 0;
}

/* 列表样式 */
.main .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 16px;
}

/* 列表项 */
.main .breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 16px;
}

/* 分隔符 (使用 CSS 生成 >) */
.main .breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #333;
}

/* 链接样式 */
.main .breadcrumb li a {
    color: #1E50AE;
    /* 链接使用您的主题蓝 */
    text-decoration: none;
    transition: color 0.2s;
}

.main .breadcrumb li a:hover {
    text-decoration: underline;
}

/* 当前页面 (最后一项) */
.main .breadcrumb li.active span {
    color: #333;
    /* 当前页灰色，表示不可点 */
    cursor: default;
    font-size: 16px;
}

/* 移动端隐藏 */
@media (max-width: 768px) {
    .breadcrumb-section {
        display: none;
    }
}

/* =================================================================
   FOOTER 模块样式
   ================================================================= */

.footer {
    position: relative;
    /* 注意：背景图路径可能根据你的 CSS 文件位置需要调整，这里暂时保持 ../ 格式 */
    background: url('/assets/image/pen-background-black.png') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    font-size: 14px;
}

/* --- 1. 订阅区域 (Subscribe Row) --- */
.footer .footer-subscribe-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
    margin-bottom: 40px;
}

.footer .subscribe-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer .subscribe-text p {
    color: #ccc;
    font-size: 14px;
    max-width: 500px;
}

.footer .subscribe-form {
    display: flex;
    gap: 10px;
}

.footer .subscribe-form input[type="email"] {
    padding: 12px 15px;
    border: none;
    background-color: #f0f0f0;
    width: 300px;
    color: #333;
    outline: none;
}

.footer .subscribe-form button {
    padding: 12px 25px;
    background-color: #2b6edb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.footer .subscribe-form button:hover {
    background-color: #1a55b3;
}

.footer .privacy-note {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

/* --- 2. 核心信息区域 (Info Row) --- */
.footer .footer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

/* === 左侧：联系方式列 === */
.footer .footer-contact-cols {
    display: flex;
    gap: 20px;
    padding: 10px;
    align-items: center;
}

.footer .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 联系方式图标链接容器 */
.footer .contact-icon-link {
    display: block;
    width: 40px;
    /* 控制图标容器宽度 */
    height: 40px;
    /* 控制图标容器高度 */
    transition: opacity 0.3s;
    text-decoration: none;
    flex-shrink: 0;
    /* 防止图标被压缩 */
}

.footer .contact-icon-link:hover {
    opacity: 0.8;
    /* 鼠标悬停时的透明度效果 */
}

/* 图标图片通用样式 */
.footer .icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 保证图片按比例显示在容器内 */
    display: block;
}

.footer .contact-details h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
    font-weight: 700;
}

.footer .contact-details span {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

/* 分割线 */
.footer .contact-divider {
    height: 40px;
    width: 1px;
    background-color: #555;
}

/* === 右侧：微信与支付列 === */
.footer .footer-payment-cols {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
}

.footer .wechat-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer .qr-placeholder {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: #fff;
    padding: 2px;
}

.footer .wechat-text h4 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 700;
}

.footer .wechat-text p {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    max-width: 180px;
}

.footer .payment-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
}

/* PayPal 图片样式 */
.footer .payment-link {
    display: block;
    transition: opacity 0.3s;
}

.footer .payment-link:hover {
    opacity: 0.8;
}

.footer .payment-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 3. 社交媒体区域 (Social Row) --- */
.footer .footer-social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social-icon {
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 50%;
    /* 如果图片是圆形的可以保留，如果图片自带形状可去掉 */
    overflow: hidden;
    transition: transform 0.3s, opacity 0.3s;
}

.footer .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer .social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* --- 4. 移动端适配 (Mobile Responsive) --- */
@media (max-width: 768px) {
    .footer {
        padding: 100px 0 !important;
    }

    /* 订阅区域堆叠 */
    .footer .footer-subscribe-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer .subscribe-form {
        flex-direction: column;
        width: 100%;
    }

    .footer .subscribe-form input[type="email"] {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .footer .subscribe-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .footer .privacy-note {
        text-align: center;
        margin-top: 10px;
    }

    /* 核心信息区垂直排列 */
    .footer .footer-info-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    /* 联系方式列 */
    .footer .footer-contact-cols {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }

    .footer .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* 移动端稍微调大一点图标方便点击 */
    .footer .contact-icon-link {
        width: 40px;
        height: 40px;
    }

    /* 将垂直分割线改为水平隐藏或变成间距 */
    .footer .contact-divider {
        display: none;
    }

    /* 支付与二维码列 */
    .footer .footer-payment-cols {
        flex-direction: column;
        width: 100%;
    }

    .footer .wechat-text p {
        margin: 0 auto;
    }

    .footer .payment-logo-box {
        width: 100%;
        max-width: 200px;
    }
}

/*返回顶部*/
/* 基础样式 (移动端优先逻辑) */
/* --- 悬浮菜单组容器 (控制整体定位和显示/隐藏) --- */
.footer .floating-menu {
    position: fixed;
    bottom: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    /* 适配安全区 */
    right: 5px;
    z-index: 999;

    display: flex;
    flex-direction: column;
    gap: 10px;
    /* 四个按钮排成一列的间距 */

    /* 初始隐藏状态：向下偏移 20px 且透明 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* 激活显示状态 (滚动 > 300px 时由 JS 加上此类) */
.footer .floating-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 内部 4 个按钮的通用基础样式 --- */
.footer .floating-menu .float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    /* 默认白底 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    /* 针对 a 标签 */
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s ease;
}

/* 统一图片大小填满并保持圆形 */
.footer .floating-menu .float-btn img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- 针对返回顶部按钮的特殊样式 (还原截图的蓝底白箭头) --- */
.footer .floating-menu #back-to-top {
    background-color: #0062cc;
    /* 替换成你主题的蓝色 */
}

.footer .floating-menu #back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    /* 箭头变成白色 */
}

/* --- 桌面端适配 (大屏幕尺寸增大，间距调整) --- */
@media (min-width: 768px) {
    .footer .floating-menu {
        bottom: 40px;
        right: 40px;
    }

    .footer .floating-menu .float-btn {
        width: 50px;
        height: 50px;
    }
}

/* --- 交互优化 (只在支持鼠标悬停的设备上启用 Hover) --- */
@media (hover: hover) {
    .footer .floating-menu .float-btn:hover {
        transform: translateY(-5px);
        /* 单个按钮悬停上浮 */
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    /* 为了防止 hover 时变灰，让返回顶部的悬停效果稍微变亮点 */
    .footer .floating-menu #back-to-top:hover {
        background-color: #0056b3;
    }
}

/* --- 桌面端悬浮提示框 (Tooltip) 优化 --- */
@media (min-width: 768px) {

    /* 必须让按钮作为定位基准 */
    .footer .floating-menu .tooltip-btn {
        position: relative;
    }

    /* 伪元素生成提示框，读取 data-tooltip 的文字 */
    .footer .floating-menu .tooltip-btn::before {
        content: attr(data-tooltip);
        position: absolute;
        right: 60px;
        /* 定位在按钮左边 (按钮宽 50px + 间距 10px) */

        background-color: #333333;
        color: #ffffff;
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
        /* 防止电话号码换行 */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

        /* 初始状态：透明且稍微偏右一点点 */
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.3s ease;

        /* 防止鼠标移到提示框上时产生干扰 */
        pointer-events: none;
    }

    /* 鼠标悬停时，提示框和小三角同时滑出并显示 */
    .footer .floating-menu .tooltip-btn:hover::before,
    .footer .floating-menu .tooltip-btn:hover::after {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        /* 滑动归位 */
    }
}

/* =================================================================
   移动端底部固定按钮 (CTA)
   ================================================================= */
.mobile-bottom-cta {
    display: none;
    /* 默认在桌面端隐藏 */
}

@media (max-width: 768px) {
    .mobile-bottom-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        bottom: 20px;
        bottom: calc(20px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        /* 真正居中 */
        width: 70%;
        height: 38px;
        /* 高度适当加宽 */
        background-color: #E60000;
        /* 参考图片使用醒目的红色 */
        color: #fff !important;
        font-size: 16px;
        font-family: 'Trebuchet MS', Arial, sans-serif;
        font-weight: bold;
        border-radius: 23px;
        /* 胶囊形状 */
        z-index: 998;
        /* 层级低于悬浮菜单的999，但悬停视口上 */
        box-shadow: 0 4px 10px rgba(230, 0, 0, 0.4);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
        transition: transform 0.2s, background-color 0.2s;
    }
}
/* 表单备用字段：仅用于拦截自动提交脚本，真人用户不可见 */
.form-alt-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
