/*
Theme Name: Zanray
Theme URI: http://example.com/zanray
Author: Your Name
Author URI: http://example.com
Description: A custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme
Text Domain: zanray
*/

/* 解决iOS Safari视口高度问题 */
:root {
    --vh: 1vh;
    --swiper-theme-color: #333;
    /* 设置 Swiper 主题色为深灰色 */
}

/* ===== 通用样式（适用于所有设备） ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

header {
    position: absolute;
    top: 0;
    margin-top: 30px;
    left: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.swiper {
    width: 50%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.mySwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    width: 250px !important;
    height: 350px !important;
    padding: 20px;
    background-size: 90% auto;
    background-repeat: no-repeat;
}

.page-template-standard .swiper {
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-template-standard .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    width: 250px !important;
    height: 350px !important;
    padding: 20px;
    background-size: 90% auto;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

.sub_title {
    width: 500px;
    height: 90px;
    background: rgba(198, 0, 11, 0.65);
    position: relative;
    left: 0;
    margin: 100px 0 50px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.subtitle {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-align: right;
    display: block;
    padding-right: 4rem;
    margin: 0;
    line-height: 1;
}

.main-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    left: 0;
    top: 0;
}

.banner-item.active {
    opacity: 1;
    z-index: 2;
}

.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
    top: 0;
}

.banner-caption {
    position: absolute;
    top: 40vh;
    left: 10vw;
    border-radius: 5px;
    text-align: center;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    max-width: 80%;
}

.banner-text {
    position: absolute;
    top: 58vh;
    /* 在 banner-caption 下方 40px */
    left: 10vw;
    /* 与 banner-caption 左对齐 */
    z-index: 40;
    border-radius: 5px;
    font-weight: 300;
}

.banner-text-part1 {
    color: #ff0000;
    font-size: 1.8rem;
    display: block;
}

.banner-text-part2 {
    color: #ffffff;
    font-size: 1.6rem;
}

.banner-text-part2 {
    font-size: 1.2rem;
}

.section {
    padding: 50px 0;
}

.partners .subject {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px auto;

}

.footer {
    background-color: #0d0d0d;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.logo {
    margin-left: 30px;
    /* 确保Logo不被顶部遮挡 */
    display: flex;
    align-items: center;
}

.logo img {
    width: 200px;
    height: auto;
    /* 确保高度自动调整 */
    display: block;
}

/* 语言切换器基础样式 */
#translate select {
    color: #fff;
    cursor: pointer;
}

/* 语言选择器容器样式 */
.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.language-selector .language-icon {
    margin-right: 5px;
    height: 20px;
    width: auto;
    vertical-align: middle;
}

.language-selector #translate {
    display: inline-block;
    vertical-align: middle;
}

/* 菜单遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* 页脚样式 */
.footer-menu {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: #0d0d0d;
    max-width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fff;
}

.footer-nav>li {
    flex: 1;
    margin: 0 10px;
    text-align: left;
}

.footer-nav>li>a {
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.footer-nav>li>a:hover {
    color: #ccc;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 0.8rem;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ccc;
}

.tel {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    font-size: 2rem;
    font-weight: 900;
}

.tel:hover {
    color: #990000;
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    color: #fff;
}

.footer-qr {
    text-align: center;
    margin-top: 20px;
}

.footer-qr img {
    width: 100px;
    height: auto;
    margin-bottom: 5px;
}

.footer-bottom p {
    margin: 10px 0;
    clear: both;
    width: 100%;
}

/* 针对特定的二级菜单使用两列 */
#menu-topmenu .sub-menu-10 {
    width: 400px !important;
    column-count: 2 !important;
}

.footer .sub-menu-151 {
    min-width: 220px;
    column-count: 2 !important;
}

/* 默认隐藏汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
}

/* ===== 桌面端样式 (宽度 > 1024px) ===== */
@media screen and (min-width: 1025px) {

    /* 桌面导航布局 */
    header {
        position: absolute;
        top: 0;
        margin-top: 30px;
        left: 0;
        width: 100%;
        color: #fff;
        text-align: center;
        z-index: 9999999999;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .logo {
        margin-left: 30px;
        display: flex;
        align-items: center;
    }

    .logo img {
        width: 200px;
    }

    /* 桌面菜单样式 */
    .nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        font-size: 0.9rem !important;
        margin-left: auto;
    }

    .nav-menu li {
        position: relative;
        margin-right: 20px;
    }

    .nav-menu li a {
        display: block;
        padding: 10px 15px;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .nav-menu li a:hover,
    .nav-menu li a:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* 桌面端子菜单 */
    .nav-menu li ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        background-color: rgba(0, 0, 0, 0.6);
        list-style: none;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        column-count: 1;
        column-gap: 20px;
    }

    .nav-menu li:hover ul {
        display: block;
    }

    .nav-menu li ul li {
        margin: 0;
    }

    .nav-menu li ul li a {
        padding: 10px 15px;
        color: #fff;
        text-decoration: none;
        transition: background-color 0.3s ease;
    }

    .nav-menu li ul li a:hover,
    .nav-menu li ul li a:focus {
        background-color: rgba(255, 255, 255, 0.2);
    }

    /* 桌面端语言选择器 */
    #translate {
        position: relative;
        z-index: 1001;
        display: flex;
        align-items: center;
        margin: 10px 15px;
    }

    .navbar #translate {
        position: static;
        padding: 0;
        display: flex;
        align-items: center;
    }

    #translate select {
        background-color: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 5px 25px 5px 10px;
        border-radius: 4px;
        font-size: 0.85rem;
    }

    #translate select:hover {
        background-color: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* ===== 移动设备样式 (宽度 ≤ 1024px) ===== */
@media screen and (max-width: 1024px) {

    /* 基础样式调整 */
    body {
        font-size: 1rem;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 头部布局调整 */
    header {
        margin-top: 10px;
        flex-direction: column;
    }

    .logo {
        margin-bottom: 10px;
        z-index: 1001;
        margin-left: 20px;
    }

    .logo img {
        max-width: 80%;
    }

    /* 移动菜单按钮 */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        line-height: 35px;
        text-align: center;
        background-color: #990000;
        border-radius: 4px;
        z-index: 100000;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background-color: #cc0000;
    }

    /* 侧边抽屉式菜单容器 */
    .navbar {
        position: fixed;
        top: 0;
        right: -600px;
        /* 初始位置在屏幕外 */
        width: 600px;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 99999;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 60px;
        display: flex;
        flex-direction: column;
    }

    /* 当菜单激活时显示 */
    .navbar.mobile-active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    /* 菜单项样式 */
    .nav-menu {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 99999;
        flex-direction: column;
    }

    .nav-menu li {
        display: block;
        margin: 0;
        padding: 0;
        text-align: left;
        position: relative;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        font-weight: bold;
        font-size: 16px;
        color: #fff;
        position: relative;
        z-index: 99999;
        text-decoration: none;
    }

    /* 子菜单样式 */
    .nav-menu li ul {
        position: static;
        width: 100%;
        display: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        margin: 0;
        padding: 0;
        transform: none;
        left: auto;
        column-count: 1;
        z-index: 99999;
    }

    /* 子菜单箭头标识 */
    .nav-menu li.menu-item-has-children>a {
        position: relative;
    }

    .nav-menu li.menu-item-has-children>a::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: bold;
    }

    .nav-menu li.menu-item-has-children.open>a::after {
        content: "-";
    }

    /* 打开的子菜单样式 */
    .nav-menu li.menu-item-has-children.open>ul {
        display: block;
    }

    .nav-menu li ul li:last-child {
        border-bottom: none;
    }

    .nav-menu li ul li a {
        padding: 12px 20px 12px 35px;
        font-size: 14px;
        font-weight: normal;
        color: #e0e0e0;
    }

    /* 语言选择器移动版样式 */
    .language-selector {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        order: -1;
        /* 确保在导航菜单上方显示 */
    }

    #translate {
        position: static;
        display: inline-block;
        margin: 0;
        padding: 0;
        width: auto;
        border-bottom: none;
        order: 2 !important;
        /* 确保在图标后面显示 */
    }

    .language-selector .language-icon {
        margin-left: 20px;
        height: 18px;
        width: auto;
        order: 1;
        /* 确保在translate前面显示 */
    }

    #translate select {
        background-color: transparent;
        border: none;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 16px;
        color: #fff;
        text-align: left;
        border-radius: 0;
        width: auto;
        max-width: calc(100% - 20px);
    }

    #translate select:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* ===== 特小屏幕设备额外样式 (宽度 ≤ 576px) ===== */
@media screen and (max-width: 576px) {
    .logo img {
        max-width: 70%;
    }

    .footer-nav {
        flex-direction: column;
    }

    .footer-nav>li {
        margin: 10px 0;
    }
}

.banner-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* 占满父容器的宽度 */
    height: 100%;
    /* 占满父容器的高度 */
    display: flex;
    justify-content: center;
    /* 水平居中 */
    align-items: center;
    /* 垂直居中 */
    gap: 20px;
    z-index: 10;
    /* 确保在最上层 */
}

.banner-icon {
    position: absolute;
    width: 100vw;
    /* 设置宽度为窗口宽度 */
    height: auto;
    /* 保持宽高比 */
    opacity: 0.5;
    /* 设置透明度为0.5 */
}

.banner-icon.left {
    left: 0;
    /* 确保与窗口左边对齐 */
    top: 0;
    /* 从顶部开始 */
    height: 100vh;
    /* 设置高度为视口高度的100% */
    width: auto;
    /* 宽度等比例缩放 */
}

.banner-icon.bottom {
    bottom: 0;
    /* 靠底部显示 */
    left: 0;
    /* 从左边开始 */
    height: auto;
    /* 保持宽高比 */
    opacity: 0.1;
    /* 设置透明度为0.3 */
}

.banner-icon.right {
    right: 0;
    /* 靠右显示 */
    bottom: 0;
    /* 靠底部显示 */
    width: auto;
    /* 保持原始宽度 */
    height: auto;
    /* 保持原始高度 */
}

.caption-part1 {
    margin-right: 1rem;
    color: #fff;
    font-size: 5rem;
    /* 放大200% */
    font-weight: 900;
    /* 使用最粗的字体 */
    /* 设置"防护"的字体大小和颜色 */
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    /* 添加白色描边 */
    line-height: 4rem;
    display: inline-block;
    /* 确保是内联块级元素 */
}

.caption-part2 {
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    line-height: 4rem;
    /* 设置较细的字体 */
    /* 设置"无处不在"的字体大小和颜色 */
    display: inline-block;
    /* 确保是内联块级元素 */
    white-space: normal;
    /* 允许文本换行 */
}

.custom-section {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* 宽度 100%，高度自动 */
    background-position: top center;
    /* 贴顶显示，水平居中 */
    background-repeat: no-repeat;
    /* 不重复显示 */
}

#section5 {
    margin: 2rem auto;
}

#section1 {
    height: 200%;
    z-index: 10;
    /* 设置第一个 section 的高度 */
}

.combined-sections {
    background-size: cover;
    /* 宽度 100%，高度自动 */
    background-position: top center;
    /* 贴顶显示，水平居中 */
    background-repeat: no-repeat;
    /* 不重复显示 */
}

.content {

    z-index: 9999;
    color: #333333;
    text-align: center;
}

#section1 .contents {
    text-align: left;
}

#section1 .content p {
    margin: 1rem auto;
}

.content p {
    width: 80%;
    margin: 0 auto;
}

.aboutus_bg {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 2rem;
}

.content h2 {
    color: #cc0000;
    /* 设置标题颜色 */
    font-size: 1.3rem;
    /* 调整字体大小 */
}

#section4 h2 {
    color: #ffffff;
}

#section2 {
    height: 1100px;
}

#section2 .content {
    position: relative;
    top: 150px;
    /*top: 750px;
    /* 根据需要调整 */
}

.brand-philosophy p {
    text-align: center;
    margin: 1rem auto;
}

.section3 {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    /* 设置背景为 50% 透明度 */
    background-blend-mode: overlay;
    /* 确保背景图和颜色混合 */
}

#section3 .content {
    top: 60%;
    /* 根据需要调整 */
}

#section4 .content {
    background: rgba(0, 0, 0, 0.6);
    margin: 50px auto;
    padding: 50px 0;
}

#section5 .content {
    padding-bottom: 60px;
    /* 根据需要调整 */
}

.content-columns {
    display: flex;
    justify-content: space-between;
    gap: 0;
    /* 去掉间距 */
    width: 100%;
}

.column {
    flex: 0 0 30%;
    color: #333333;
    /* 设置字体颜色 */
    text-align: left;
    /* 左右对齐 */
}

.spacer1 {
    flex: 0 0 17%;
    /* 两侧空白占 20% */
}

.spacer2 {
    flex: 0 0 6%;
    /* 两侧空白占 20% */
}

.brand-philosophy {
    margin-top: 50px;
    width: 80%;
    /* 设置宽度为窗口宽度的 50% */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    color: #333333;
}

.brand-philosophy .title {
    font-size: 1.1rem;
    text-align: center;
    font-weight: 900;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
}

.page-template-aboutus .year {
    width: 50%;
    display: flex;
    flex-direction: column;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1.3rem;
    color: #cc0000;
    text-align: right !important;
    padding: 0 5px;
    height: 70px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    justify-content: center;
}

.description {
    color: #333333;
    font-size: 0.9rem;
    width: 50%;
    text-align: left;
    padding: 0 5px;
    border-left: 1px solid #cc0000;
    min-height: 70px;
    display: flex;
    align-items: center;
    line-height: 1rem;
}

.event:nth-child(even) .description {
    text-align: right;
    border-right: 1px solid #cc0000;
    border-left: none;
    justify-content: flex-end;
    /* 贴近中心线 */
}

.event:nth-child(even) .year {
    order: 2;
    text-align: left !important;
}

.news-list {
    padding: 30px 0px;
    background-color: #f9f9f9;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1000px;
    /* 设置宽度 */
    height: 347px;
    /* 设置高度 */
    margin: 0 auto;
    margin-bottom: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.news-item .date {
    flex: 0 0 33%;
    text-align: right;
    padding-right: 10px;
}

.news-item .date .year {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 6rem;
    /* 设置年份字体大小 */
    font-weight: bold;
    /* 设置年份字体加粗 */
    color: #ffffff;
    /* 设置年份颜色 */
}

.news-item .date .day {
    font-weight: lighter;
    font-size: 3rem;
    /* 设置日期字体大小 */
    color: #ffffff;
    /* 设置日期颜色 */
}

.news-item .date span {
    display: block;
}

.news-item .content {
    flex: 0 0 64%;
    text-align: left;
    padding-left: 20px;
}

.news-item .content h2 {
    display: block;
    width: 95%;
    margin: 0 0 10px;
    font-size: 24px;
    color: #ffffff;
}

.news-item .content p {
    margin: 0;
    color: #aaa;
}

.news-item a {
    color: #0073aa;
    text-decoration: none;
}

.latest-news {
    background-color: #b30000;
    /* 背景颜色 */
    padding: 40px 20px;
    color: #fff;
}

.post-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-item {
    background-color: #fff;
    color: #000;
    overflow: hidden;
    width: 24%;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: pointer;
}

.post-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    /* 调整斜角大小 */
    border-color: transparent transparent #b30000 transparent;
    /* 红色斜角 */
}

.post-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* 使其成为正方形 */
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-content {
    padding: 15px;
    position: relative;
    min-height: 120px;
    /* 最小高度而不是固定高度，以适应各种内容 */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    /* 确保padding不影响总高度 */
}

.post-content .title {
    text-align: left;
    font-size: 1rem;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 限制为3行 */
    -webkit-box-orient: vertical;
    margin-bottom: 25px;
    /* 为日期腾出空间 */
}

.post-date {
    font-size: 0.9em;
    color: #999999;
    position: absolute;
    bottom: 15px;
    right: 15px;
    margin-top: 0;
    text-align: right;
    background-color: #fff;
    /* 添加背景色，防止文字遮挡 */
    padding: 2px 0 0 5px;
    /* 稍微增加内边距 */
}

.more-link {
    text-align: center;
    margin-top: 20px;
}

.more-link a {
    color: #fff;
    text-decoration: none;
    margin: 40px auto;
    display: block;
}

.posts {
    width: 80%;
    margin: 0 auto;
}

.latest-news .subject {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    width: 100%;
    margin: 20px auto;
}

.partner-container {
    padding: 20px 0px;
    background-color: #f5f5f5;
    height: auto;
    /* 自动适应内容高度 */
    overflow: hidden;
    /* 隐藏溢出 */
    position: relative;
}

.cart-container {
    padding: 20px 0px;
    background-color: #0a0a0a;
    background-repeat: no-repeat;
    height: auto;
    /* 自动适应内容高度 */
    overflow: hidden;
    /* 隐藏溢出 */
    position: relative;
}

.partner-section {
    width: 1000px;
    margin: 60px auto;
    z-index: 2;
    /* 确保在背景之上 */
    position: relative;
}

.partner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-text {
    flex: 1;
    margin-right: 20px;
}

.partner-text h2 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #003366;
}

.partner-content img {
    width: 50%;
    flex-shrink: 0;
}

.partner-content p {
    max-width: 600px;
    color: #666666;
    font-size: 0.9rem;
}

.partner-bg {
    background: rgba(255, 255, 255, .7);
    width: 65%;
    height: 100%;
    position: absolute;
    top: 230px;
    /* 从顶部开始 */
    left: 0;
    z-index: 1;
    /* 确保在底层 */
}

.aftersale-container {
    position: relative;
    height: 1850px;
    padding: 20px 0px;
    background-color: #f5f5f5;
    overflow: hidden;
    background-position: top;
    /* 确保背景居中显示 */
}

.aftersale-services {
    width: 450px;
    margin: 0 auto;
    color: #999999;
    /* 居中对齐 */
}

.repair-service {
    padding-left: 90px;
    border-radius: 5px;
    margin-top: 730px;
}

.repair-service h2 {
    color: #990000;
    font-size: 2.6rem;
    border-left: 6px solid #990000;
    line-height: 2.6rem;
    padding-left: 10px;
}

.cleaning-service {
    border-radius: 5px;
    margin-top: 200px;
}

.cleaning-service h2 {
    color: #0066cc;
    font-size: 3rem;
    text-align: right;
    border-right: 6px solid #0066cc;
    font-size: 2.6rem;
    line-height: 2.6rem;
    padding-right: 10px;
}

.emergency-service {
    margin-top: 180px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.emergency-service h2 {
    border-left: 6px solid #ff9900;
    color: #ff9900;
    font-size: 3rem;
    font-size: 2.6rem;
    line-height: 2.6rem;
    padding-left: 10px;
}

/* FAQ 页面样式 */
.faq-container {
    margin: 0 auto;
    padding: 20px 0px;
    background-position: top;
    background-repeat: no-repeat;
    background-color: #000000;
}

.faq-section {
    width: 90%;
    margin: 20px auto;
}

.faq-section h2 {
    margin: 30px 0;
    border-left: 5px solid #990000;
    padding-left: 10px;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    margin: 10px 0;
    padding: 20px;
    background-color: #cccccc;
    color: #333333;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    /* 为伪元素定位 */
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    /* 调整斜角大小 */
    border-color: transparent transparent #e74c3c transparent;
    /* 默认红色斜角 */
}

.faq-question:hover {
    background-color: #c0392b;
    color: #fff;
    transform: translateY(-2px);
}

.faq-question:hover::after {
    border-color: transparent transparent #fff transparent;
    /* 悬停时变为白色斜角 */
}

.faq-answer {
    display: none;
    padding: 15px;
    background-color: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.faq-answer.open {
    display: block;
    max-height: 500px;
    opacity: 1;
}

.white-bg {
    background-color: #fff;
    width: 1000px;
    margin: 359px auto 30px;
    padding: 20px 0px;
}

.nav-menu .menu-item-has-children.open>.sub-menu {
    display: block;
}

.nav-menu .menu-item-has-children>.sub-menu {
    display: none;
}

.logo-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200px * 20);
    /* 10个logo，每个200px宽 */
    flex-shrink: 0;
    /* 防止flex项目被压缩 */
}

.logo-track img {
    width: 200px;
    height: auto;
    margin: 0 20px;
    object-fit: contain;
    flex-shrink: 0;
    /* 防止图片被压缩 */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 10));
        /* 移动一半的距离，因为我们重复了logo */
    }
}

.standard-content {
    display: flex;
    flex-direction: column;
    padding: 20px 0px;
}

.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto;
}

.contact-info {
    flex: 0 0 100%;
    padding: 0 20px;
    color: #ffffff;
    text-align: center;
}

.cart-info {
    flex: 0 0 100%;
    padding: 0 20px;
    text-align: center;
}

.cart-info a,
.cart-info a:hover,
.cart-info a:active,
.cart-info a:visited {
    color: #c0392b;
    text-decoration: none;
}

.contact-form {
    display: none;
}

.swiper-navigation {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.product-showcase {
    width: 750px;
    max-width: 100%;
    z-index: 10;
    position: relative;
}

.product-swiper {
    overflow: hidden;
    padding: 10px 0;
    width: 100%;
    position: relative;
}

.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #990000;
    transition: background 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 24px;
}

.contact-form {
    width: 1000px;
    background-color: rgba(255, 255, 255, 0.2);
    /* 白色透明底 */
    margin: 0 auto;
    /* 居中对齐 */
    padding: 20px;
    /* 内边距 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* 阴影效果 */
    color: #ffffff;
    /* 设置字体颜色为白色 */
}

.contact-form p {
    margin-left: 10px;
}

.modal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    /* 黑色半透明遮罩 */
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    /* 占窗口80%的宽度 */
    height: 60%;
    /* 占窗口80%的高度 */
    overflow-y: auto;
    position: relative;
    z-index: 99999999;
}

.close {
    color: #aaa;
    float: right;
    font-size: 3rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.productcat {
    background-position: center top;
    min-height: 800px;
    position: relative;
    padding: 30px 0px;
    justify-content: center;
    align-items: center;
}

.product-showcase .swiper-slide {
    width: 350px;
    padding: 0;
}

.productcat-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 150px auto 100px;
}

.page-title {
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.producthead {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 812px;
    overflow: hidden;
    mask-image: url('assets/images/producthead.png');
    mask-size: cover;
    /* 或contain、100% 100%等 */
    mask-repeat: no-repeat;
    mask-position: center;

    /* 为了兼容Webkit内核浏览器，如Chrome和Safari */
    -webkit-mask-image: url('assets/images/producthead.png');
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.producthead-img {
    margin-left: -500px;
    position: absolute;
    z-index: 999;
    margin-top: 150px;
}

.producthead-img2 {
    width: 2000px;
    opacity: 0.2;
    position: absolute;
    left: -500px;
    top: -15%;
    filter: grayscale(100%);
}

.product-card {
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 350px;
    max-width: 100%;
    margin: 0;
    transition: transform 0.3s ease;
}

.product-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 卡片悬停效果 */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 375px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
    justify-content: center;
    align-items: center;
}

.product-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
    height: 3rem;
    /* 设置固定高度，预留两行空间 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-model {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0;
    text-align: center;
    font-style: italic;
    height: 2.4rem;
    /* 设置固定高度，预留两行空间 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-details-link {
    display: none;
}

.no-products {
    width: 50%;
    margin: 500px auto 380px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.product-images-swiper {
    width: 514px;
    height: 977px;
    position: relative;
    top: 314px;
    /* 使用 vw 单位，根据实际效果微调数值 */
    overflow: hidden;
    mask-image: url('assets/images/productslide.png');
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: center;

    -webkit-mask-image: url('assets/images/productslide.png');
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background-color: transparent;
}

.product-images-swiper .swiper {
    padding-top: 80px;
}

.product-images-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-menu li:hover ul {
    display: block;
}

.nav-menu li ul li {
    margin: 0;
}

.nav-menu li ul li a {
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-menu li ul li a:hover,
.nav-menu li ul li a:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.current-category-name {
    width: 90%;
    margin: 180px 0 160px;
}

.current-category-name h2 {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    display: inline-block;
}

/* 产品详情页样式 */
.product-detail-container {
    background-position: center top;
    min-height: 800px;
    padding: 40px 20px;
    position: relative;
}

.product-detail-wrapper {
    margin: 0 auto;
    padding: 30px;
}

.back-to-category {
    margin-bottom: 20px;
}

.back-to-category a {
    display: inline-flex;
    align-items: center;
    color: #990000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-category a:hover {
    color: #cc0000;
}

.product-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.product-detail-title {
    margin-top: 100px;
    font-size: 1.8rem;
    font-weight: bolder;
    margin-bottom: 5px;
    color: #fff;
    z-index: 999;
    position: relative;
}

.product-detail-model {
    font-size: 2rem;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: #fff;
    margin-bottom: 5px;
}

.product-detail-category {
    font-size: 16px;
    color: #990000;
    margin-top: 5px;
    font-weight: bold;
}

.product-detail-content {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    height: 700px;
}

.product-detail-images {
    flex: 0 0 45%;
}

.product-main-image {
    margin-bottom: 20px;
    text-align: center;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 5px;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-thumbnail {
    flex: 0 0 calc(25% - 10px);
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.gallery-thumbnail.active {
    border-color: #990000;
}

.gallery-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info {
    flex: 0 0 calc(55% - 30px);
}

.product-description,
.product-parameters,
.technical-specifications {
    margin-top: 350px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.product-description h2,
.product-parameters h2,
.technical-specifications h2,
.size-chart h2,
.related-products h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.description-content,
.specs-content {
    line-height: 1.6;
    color: #333;
}

.parameters-table,
.size-chart,
.size-chart table {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    width: 100%;
}

.parameters-table th,
.parameters-table td,
.size-chart td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #353d40;
    color: #fff;
    background-color: #535d5f;
}

.size-chart td {
    text-align: center;
}

.parameters-table tr:hover {
    background-color: #f9f9f9;
}

.parameters-table th {
    width: 30%;
    font-weight: 600;
    color: #fff;
    background-color: #3d4548;
}

.size-chart th {
    padding: 12px 15px;
    font-weight: 600;
    color: #fff;
    background-color: #3d4548;
    border: 1px solid #353d40;
}

.related-products {
    margin-top: 40px;
}

.related-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.related-product-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.related-product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-image {
    height: 200px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-info {
    padding: 15px;
}

.related-product-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

.related-product-model {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* 响应式设计 */
@media only screen and (max-width: 768px) {
    .product-detail-content {
        flex-direction: column;
    }

    .product-detail-images,
    .product-detail-info {
        flex: 0 0 100%;
    }

    .gallery-thumbnail {
        flex: 0 0 calc(33.333% - 10px);
    }

    .related-product-card {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .parameters-table th {
        width: 40%;
    }

    .sub_title {
        width: 90%;
    }

    .subtitle {
        font-size: 1.4rem;
        text-align: left;
        padding-left: 2rem;
    }
}

@media only screen and (max-width: 768px) {
    .product-images-swiper {
        width: 100%;
        height: auto;
        background-image: none;
    }

    .product-images-swiper .swiper {
        padding-top: 0;
    }

}

/* 响应式设计 - 移动设备自适应 */
@media only screen and (max-width: 768px) {

    /* 基本样式调整 */
    body {
        font-size: 1rem;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }

    /* 强制防止水平滚动 */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 修复标准模板的水平滚动问题 */
    .page-template-standard {
        overflow-x: hidden;
        width: 100%;
    }

    /* Banner高度调整 */
    .main-banner {
        height: 100vh;
        /* 标准浏览器 */
        height: calc(var(--vh, 1vh) * 100);
        /* 修复iOS Safari */
        min-height: 500px;
        /* 确保有最小高度 */
        position: relative;
        display: block !important;
        /* 强制显示 */
        z-index: 1;
        /* 确保在正确的层级 */
    }

    .banner-item {
        height: 100%;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
    }

    .banner-item.active {
        opacity: 1;
        z-index: 2;
    }

    .page-template-standard .swiper {
        width: 100%;
        padding: 20px 0;
        max-width: 100vw;
    }

    .page-template-standard .content,
    .page-template-standard .standard-content,
    .page-template-standard .content-wrapper {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* 头部导航调整 */
    header {
        margin-top: 10px;
        flex-direction: column;
    }

    .logo {
        margin-bottom: 10px;
        z-index: 1001;
    }

    .logo img {
        max-width: 80%;
        height: auto;
    }

    /* 移动菜单按钮 */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        line-height: 35px;
        text-align: center;
        background-color: #990000;
        border-radius: 4px;
        z-index: 100000;
        /* 确保按钮在最顶层 */
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background-color: #cc0000;
    }

    /* 侧边抽屉式菜单容器 */
    .navbar {
        position: fixed;
        top: 0;
        right: -280px;
        /* 初始位置在屏幕外 */
        width: 280px;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 99999;
        /* 增加z-index确保在最上层 */
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 60px;
        display: flex;
        flex-direction: column;
    }

    /* 当菜单激活时显示 */
    .navbar.mobile-active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    /* 菜单项样式 */
    .nav-menu {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-menu li {
        display: block;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        font-weight: bold;
        font-size: 16px;
        color: #fff;
    }

    .nav-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* 子菜单样式 */
    .nav-menu li ul {
        position: static;
        width: 100%;
        display: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        margin: 0;
        padding: 0;
        transform: none;
        left: auto;
        column-count: 1;
    }

    .nav-menu li.menu-item-has-children>a {
        position: relative;
    }

    .nav-menu li.menu-item-has-children>a::after {
        content: "+";
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: bold;
    }

    .nav-menu li.menu-item-has-children.open>a::after {
        content: "-";
    }

    .nav-menu li.menu-item-has-children.open>ul {
        display: block;
    }

    .nav-menu li ul li:last-child {
        border-bottom: none;
    }

    .nav-menu li ul li a {
        padding: 12px 20px 12px 35px;
        font-size: 14px;
        font-weight: normal;
        color: #e0e0e0;
    }

    #menu-topmenu .sub-menu-10 {
        width: 100% !important;
    }

    /* 确保其他样式仍然有效 */
    .section {
        padding: 30px 15px;
    }

    .white-bg {
        width: 90%;
        padding: 15px;
    }

    .content-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .contact-info,
    .cart-info,
    .contact-form {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .contact-form {
        width: 100%;
    }

    .caption-part1 {
        font-size: 4rem;
        line-height: 5rem;
        /* 调整行高 */
        margin-right: 1rem;
    }

    .caption-part2 {
        font-size: 2rem;
        /* 减少间距 */
        margin-top: 0.5rem;
        /* 添加上边距，在窄屏幕上可能会换行 */
    }

    .banner-caption {
        max-width: 90%;
        /* 在移动设备上增加宽度 */
        left: 10vw;
        /* 调整左边距 */
        right: 5%;
        /* 确保右边有足够空间 */
        flex-direction: column;
        /* 在非常窄的屏幕上，改为纵向排列 */
        align-items: flex-start;
        /* 左对齐 */
    }

    .banner-text-part1 {
        font-size: 1.2rem;
    }

    .banner-text-part2 {
        font-size: 1rem;
        letter-spacing: 0rem;
    }

    /* 自适应轮播 */
    .swiper {
        width: 100%;
        padding: 20px 0;
    }

    .mySwiper .swiper-slide {
        width: 200px !important;
        height: 280px !important;
    }

    /* 合作伙伴区域优化 */
    .partner-container {
        flex-direction: column;
        padding: 30px 0px;
        background-size: cover;
        background-position: center;
    }

    .partner-section {
        width: 100%;
        margin: 20% 0 20%;
    }

    .partner-content {
        flex-direction: column;
        margin-bottom: 25px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .partner-text {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        order: 2;
    }

    .partner-text h2 {
        font-size: 1.3rem;
        margin: 15px 0;
        text-align: center;
        color: #990000;
    }

    .partner-content img {
        width: 90%;
        margin: 0 auto 15px;
        display: block;
        border-radius: 5px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
        order: 1;
        margin-top: -20%;
    }

    .partner-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 5px;
    }

    .partner-bg {
        display: none;
        /* 在移动端隐藏背景层 */
    }

    .aftersale-container {
        background-image: url('assets/images/aftersalebg2.jpg');
        /* 移动端背景图 */
        background-size: auto;
        /* 确保背景图能够完全覆盖容器 */
        height: auto;
        background-position: top left;
    }

    .aftersale-services {
        width: 90%;
    }

    .repair-service,
    .cleaning-service,
    .emergency-service {
        margin-left: 0px;
        padding-left: 0px;
    }

    .repair-service {
        margin-top: 500px;
    }

    .cleaning-service {
        margin-top: 150px;
    }

    .emergency-service {
        margin-top: 180px;
        padding-bottom: 100px;
    }

    .repair-service h2,
    .cleaning-service h2,
    .emergency-service h2 {
        font-size: 1.5rem;
        line-height: 2rem;
        text-align: right;
        width: 100%;
        border-left: 0px;
        padding-right: 10px;
        padding-left: 0px;
    }

    .repair-service h2 {
        border-right: 6px solid #990000;
    }

    .cleaning-service h2 {
        border-right: 6px solid #0066cc;
    }

    .emergency-service h2 {
        border-right: 6px solid #ff9900;
    }

    .aftersale-services .pp {
        width: 60%;
        position: relative;
        right: 0px;
        margin-left: auto;
        text-align: justify;
    }

    .modal-content {
        width: 80%;
    }

    .column {
        flex: 0 0 45%;
        color: #333333;
        /* 设置字体颜色 */
        text-align: justify;
        /* 左右对齐 */
    }

    .spacer1 {
        flex: 0 0 4%;
        /* 两侧空白占 20% */
    }

    .spacer2 {
        flex: 0 0 1%;
        /* 两侧空白占 20% */
    }

    .page-template-aboutus .content-columns p {
        width: 90%;
        text-align: left;
    }

    .brand-philosophy {
        width: 90%;
    }

    .footer-menu {
        display: none;
    }

    /* 首页帖子区域调整 */
    .posts {
        width: 100% !important;
    }

    .post-item {
        width: 100% !important;
        margin-bottom: 20px;
        display: flex;
        flex-direction: row;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        overflow: hidden;
    }

    .post-image {
        width: 40% !important;
        padding-bottom: 0 !important;
        height: 120px;
    }

    .post-content {
        width: 60%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        min-height: 120px;
        /* 使用最小高度而不是固定高度 */
        position: relative;
        box-sizing: border-box;
    }

    .post-content .title {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: bold;
        -webkit-line-clamp: 2;
        /* 移动设备限制为2行 */
        margin-bottom: 20px;
        /* 为日期腾出空间 */
    }

    .post-date {
        font-size: 0.8rem;
        bottom: 10px;
        right: 10px;
        background-color: #fff;
        padding: 2px 0 0 5px;
    }

    .post-grid {
        flex-direction: column;
        gap: 15px;
    }

    .combined-sections {
        background-size: auto 100%;
    }

    .product-showcase {
        width: 250px;
    }

    .size-chart table {
        min-width: 768px;
        margin-left: auto;
        margin-right: auto;
        border-collapse: collapse;
        width: 100%;
    }

    .size-chart-move {
        width: 100%;
        overflow-x: scroll;
    }
}

/* 平板设备自适应 */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .white-bg {
        width: 90%;
    }

    .content-wrapper {
        width: 90%;
    }

    .contact-form {
        width: 90%;
    }

    .modal-content {
        width: 70%;
    }

    /* Banner高度调整 */
    .main-banner {
        height: 100vh;
    }

    .banner-item {
        height: 100%;
        /* 确保banner-item高度与main-banner一致 */
    }
}

/* 平板设备竖屏状态适配 */
@media only screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {

    /* 头部导航调整 */
    header {
        margin-top: 10px;
        flex-direction: column;
    }

    .logo {
        margin-bottom: 10px;
    }

    /* 首页帖子区域调整 */
    .posts {
        width: 90% !important;
        margin: 0 auto;
    }

    .post-item {
        width: 30% !important;
    }

    /* 调整帖子之间的间距，确保三个帖子能正常排列 */
    .post-grid {
        gap: 3%;
    }

    .nav-menu li.menu-item-has-children.open {
        background-color: transparent;
        /* 移除菜单项的背景色 */
    }

    .nav-menu li.menu-item-has-children.open>a {
        background-color: #990000;
        /* 将深红色背景应用到链接上 */
    }

    /* 重置特定子菜单的宽度 */
    #menu-topmenu .sub-menu-10 {
        width: 100% !important;
        /* 覆盖桌面端的固定宽度 */
        column-count: 2 !important;
        /* 在平板竖屏模式使用单列显示 */
    }

    /* Banner高度调整 */
    .main-banner {
        height: 100vh;
    }

    .banner-item {
        height: 100%;
        /* 确保banner-item高度与main-banner一致 */
    }

    /* 新闻项目样式调整 */
    .news-item .date {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .news-item .date .year {
        margin-right: 10px;
    }

    .news-item .date .day {
        margin-top: 0;
    }
}

/* 分页导航样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 40px;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #990000;
    text-decoration: none;
    color: #990000;
    font-size: 28px;
    font-weight: bold;
}

.nav-arrow:hover {
    background: #990000;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.nav-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    border-color: #cccccc;
    background: rgba(255, 255, 255, 0.7);
    color: #cccccc;
}

.woocommerce {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

/* ===== 我的账户页面样式 ===== */

/* 我的账户页面专用样式 */
.myaccount-container {
    padding: 20px 0px;
    background-color: #0a0a0a;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top center;
    height: auto;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
}

.myaccount-info {
    flex: 0 0 100%;
    padding: 0 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

/* 强制左右布局 - 使用CSS Grid */
.myaccount-info .woocommerce {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px;
    display: grid !important;
    grid-gap: 30px !important;
    align-items: start !important;
}

/* 登录页面特殊处理 - 一列显示 */
.myaccount-info .woocommerce #customer_login,
.myaccount-info .woocommerce .u-columns {
    display: block !important;
    grid-template-columns: 1fr !important;
    grid-gap: 0 !important;
}

/* 强制覆盖WooCommerce默认的两列布局 */
.myaccount-info .woocommerce #customer_login .u-columns,
.myaccount-info .woocommerce #customer_login .u-column1,
.myaccount-info .woocommerce #customer_login .u-column2 {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin: 0 0 30px 0 !important;
    clear: both !important;
}

/* 确保登录表单容器也是单列 */
.myaccount-info .woocommerce .u-columns .u-column1 .woocommerce-form,
.myaccount-info .woocommerce .u-columns .u-column2 .woocommerce-form {
    margin: 0 auto !important;
}

/* 额外强制规则 - 针对所有可能的WooCommerce登录页面元素 */
.myaccount-info .woocommerce #customer_login *,
.myaccount-info .woocommerce .u-columns * {
    float: none !important;
    clear: both !important;
}

/* 确保登录页面容器本身也是单列 */
.myaccount-info .woocommerce #customer_login {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* 登录页面内的列容器也强制单列 */
.myaccount-info .woocommerce .u-columns .u-column1,
.myaccount-info .woocommerce .u-columns .u-column2 {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin: 0 0 30px 0 !important;
}

/* 导航栏样式 */
.myaccount-info .woocommerce-MyAccount-navigation {
    grid-column: 1 !important;
    background: linear-gradient(135deg, #c0392b, #990000);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.myaccount-info .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.myaccount-info .woocommerce-MyAccount-navigation li {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: block !important;
    float: none !important;
    width: 100% !important;
}

.myaccount-info .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.myaccount-info .woocommerce-MyAccount-navigation a {
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 15px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    text-align: left !important;
    font-size: 16px !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.myaccount-info .woocommerce-MyAccount-navigation a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.myaccount-info .woocommerce-MyAccount-navigation .is-active a {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 内容区域样式 */
.myaccount-info .woocommerce-MyAccount-content {
    grid-column: 2 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e0e0e0 !important;
    min-height: 500px !important;
    float: none !important;
    width: inherit !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: inherit !important;
}

/* 重置所有可能的浮动 */
.myaccount-info .woocommerce * {
    float: none !important;
}

/* 表单样式美化 */
.myaccount-info .woocommerce form {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.myaccount-info .woocommerce form .form-row {
    margin-bottom: 20px !important;
}

.myaccount-info .woocommerce form label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

.myaccount-info .woocommerce form input[type="text"],
.myaccount-info .woocommerce form input[type="email"],
.myaccount-info .woocommerce form input[type="password"],
.myaccount-info .woocommerce form input[type="tel"],
.myaccount-info .woocommerce form textarea,
.myaccount-info .woocommerce form select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.myaccount-info .woocommerce form input[type="text"]:focus,
.myaccount-info .woocommerce form input[type="email"]:focus,
.myaccount-info .woocommerce form input[type="password"]:focus,
.myaccount-info .woocommerce form input[type="tel"]:focus,
.myaccount-info .woocommerce form textarea:focus,
.myaccount-info .woocommerce form select:focus {
    border-color: #c0392b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

/* 按钮样式美化 */
.myaccount-info .woocommerce .button,
.myaccount-info .woocommerce input[type="submit"] {
    background: linear-gradient(135deg, #c0392b, #990000) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3) !important;
}

.myaccount-info .woocommerce .button:hover,
.myaccount-info .woocommerce input[type="submit"]:hover {
    background: linear-gradient(135deg, #990000, #c0392b) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4) !important;
}

/* 表格样式美化 */
.myaccount-info .woocommerce table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.myaccount-info .woocommerce table th {
    background: linear-gradient(135deg, #c0392b, #990000) !important;
    color: #ffffff !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

.myaccount-info .woocommerce table td {
    padding: 15px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.myaccount-info .woocommerce table tr:hover {
    background-color: #f8f9fa !important;
}

/* 消息样式美化 */
.myaccount-info .woocommerce-message,
.myaccount-info .woocommerce-info,
.myaccount-info .woocommerce-error {
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    border-radius: 6px !important;
    border-left: 4px solid !important;
}

.myaccount-info .woocommerce-message {
    background: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
}

.myaccount-info .woocommerce-info {
    background: #d1ecf1 !important;
    border-color: #17a2b8 !important;
    color: #0c5460 !important;
}

.myaccount-info .woocommerce-error {
    background: #f8d7da !important;
    border-color: #dc3545 !important;
    color: #721c24 !important;
}

/* 我的账户页面响应式设计 */
@media screen and (max-width: 1024px) {
    .myaccount-info .woocommerce {
        grid-template-columns: 1fr !important;
        grid-gap: 20px !important;
    }

    .myaccount-info .woocommerce-MyAccount-navigation {
        grid-column: 1 !important;
        position: static !important;
    }

    .myaccount-info .woocommerce-MyAccount-content {
        grid-column: 1 !important;
    }

    .myaccount-info .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .myaccount-info .woocommerce-MyAccount-navigation li {
        border-bottom: none !important;
        margin: 0 !important;
        width: auto !important;
    }

    .myaccount-info .woocommerce-MyAccount-navigation a {
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: auto !important;
    }
}

@media screen and (max-width: 768px) {
    .myaccount-info .woocommerce-MyAccount-navigation ul {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .myaccount-info .woocommerce-MyAccount-navigation a {
        text-align: center !important;
        padding: 15px 20px !important;
    }

    .myaccount-info .woocommerce {
        padding: 20px 15px !important;
    }

    .myaccount-info .woocommerce-MyAccount-content {
        padding: 20px 15px !important;
    }

    .myaccount-info .woocommerce table {
        font-size: 14px !important;
    }

    .myaccount-info .woocommerce table th,
    .myaccount-info .woocommerce table td {
        padding: 10px !important;
    }
}

@media screen and (max-width: 480px) {
    .myaccount-info .woocommerce table {
        font-size: 14px !important;
    }

    .myaccount-info .woocommerce form {
        padding: 15px !important;
    }
}

/* WooCommerce地址页面header冲突修复 */
.myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address-title h3,
.myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address h3 {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    color: #333333 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-align: left !important;
    display: block !important;
    z-index: auto !important;
    background: none !important;
    border: none !important;
    clip-path: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* 确保WooCommerce地址页面的header不受主题header样式影响 */
.myaccount-info .woocommerce .woocommerce-Addresses,
.myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address,
.myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address-title {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    text-align: left !important;
    z-index: auto !important;
    display: block !important;
    background: none !important;
    border: none !important;
    clip-path: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

/* 地址信息显示区域样式 */
.myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address {
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
}

/* 地址内容样式 */
.myaccount-info .woocommerce .woocommerce-Addresses address {
    margin: 0 0 15px 0 !important;
    font-style: normal !important;
    line-height: 1.6 !important;
    color: #666666 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 编辑地址链接样式 */
.myaccount-info .woocommerce .woocommerce-Addresses .edit {
    background: linear-gradient(135deg, #c0392b, #990000) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.3) !important;
    text-align: center !important;
    min-width: 80px !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    z-index: auto !important;
    transform: none !important;
    flex: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.myaccount-info .woocommerce .woocommerce-Addresses .edit:hover {
    background: linear-gradient(135deg, #990000, #c0392b) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4) !important;
}

/* 地址字段样式 */
.myaccount-info .woocommerce .woocommerce-address-fields {
    margin-top: 20px !important;
}

.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper {
    margin-bottom: 20px !important;
}

.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper .form-row {
    margin-bottom: 15px !important;
}

.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    text-align: left !important;
}

.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper input,
.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper select,
.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper input:focus,
.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper select:focus,
.myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper textarea:focus {
    border-color: #c0392b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

/* 保存地址按钮 */
.myaccount-info .woocommerce .woocommerce-address-fields .button {
    background: linear-gradient(135deg, #c0392b, #990000) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3) !important;
    margin-top: 10px !important;
    text-align: center !important;
    width: auto !important;
    min-width: 120px !important;
}

.myaccount-info .woocommerce .woocommerce-address-fields .button:hover {
    background: linear-gradient(135deg, #990000, #c0392b) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4) !important;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    .myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address-title h3,
    .myaccount-info .woocommerce .woocommerce-Addresses .woocommerce-Address h3 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .myaccount-info .woocommerce .woocommerce-Addresses address {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .myaccount-info .woocommerce .woocommerce-Addresses .edit {
        padding: 6px 15px !important;
        font-size: 13px !important;
        min-width: 70px !important;
    }

    .myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper input,
    .myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper select,
    .myaccount-info .woocommerce .woocommerce-address-fields__field-wrapper textarea {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}

/* WooCommerce订单表格订单号链接白色文字 */
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a,
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a:link,
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a:visited,
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a:hover,
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a:active,
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* 确保悬停时也保持白色 */
.myaccount-info .woocommerce .woocommerce-orders-table__cell-order-number a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* WooCommerce表格产品名称链接红色字体 */
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a,
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a:link,
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a:visited,
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a:hover,
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a:active,
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a:focus {
    color: #c0392b !important;
    text-decoration: none !important;
}

/* 确保悬停时也保持红色 */
.myaccount-info .woocommerce .woocommerce-table__product-name.product-name a:hover {
    color: #c0392b !important;
    text-decoration: underline !important;
}

.woocommerce a.button.alt {
    background-color: #c0392b !important;
}

.myaccount-info .woocommerce .woocommerce-MyAccount-content a,
.myaccount-info .woocommerce .woocommerce-MyAccount-content a:link,
.myaccount-info .woocommerce .woocommerce-MyAccount-content a:visited,
.myaccount-info .woocommerce .woocommerce-MyAccount-content a:hover,
.myaccount-info .woocommerce .woocommerce-MyAccount-content a:active,
.myaccount-info .woocommerce .woocommerce-MyAccount-content a:focus {
    color: #c0392b;
    text-decoration: none !important;
}

/* 微信支付二维码浮层美化样式 */
.rs-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rs-modal {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 600px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 20px !important;
    display: flex !important;
    flex-direction: column !important;
}

.rs-modal__header {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
    color: #fff !important;
    padding: 20px 24px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.rs-modal__content {
    padding: 40px 24px !important;
    text-align: center !important;
    background: #fff !important;
    min-height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.rs-modal__content #js-wprs-wc-wechatpay {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.rs-modal__content #js-wprs-wc-wechatpay canvas {
    border: 2px solid #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    max-width: 256px !important;
    height: auto !important;
}

.rs-modal__footer {
    background: #f8f9fa !important;
    padding: 20px 24px !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    position: relative !important;
    width: auto !important;
    bottom: auto !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
}

.rs-modal__footer .button {
    padding: 12px 24px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 100px !important;
    margin: 0 !important;
}

.rs-modal__footer .button.alt {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%) !important;
    color: #fff !important;
}

.rs-modal__footer .button.alt:hover {
    background: linear-gradient(135deg, #a93226 0%, #c0392b 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3) !important;
}

.rs-modal__footer .button:not(.alt) {
    background: #6c757d !important;
    color: #fff !important;
}

.rs-modal__footer .button:not(.alt):hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

/* 移动端适配，仅针对浮层 */
@media screen and (max-width: 768px) {
    .rs-modal {
        width: 95% !important;
        margin: 10px !important;
        max-height: 80vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .rs-modal__header {
        padding: 16px 20px !important;
        font-size: 16px !important;
    }

    .rs-modal__content {
        padding: 30px 20px !important;
        min-height: 150px !important;
    }

    .rs-modal__footer {
        padding: 16px 20px !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .rs-modal__footer .button {
        width: 100% !important;
        margin: 0 !important;
    }
}