/*
Theme Name: 企业官网主题
Theme URI: https://corp.example.com
Author: Your Company
Description: 企业官方网站主题 - 展示公司介绍、新闻动态、联系方式
Version: 1.0.0
Text Domain: corp-theme
Tags: corporate, business, responsive
Requires at least: 6.0
Requires PHP: 7.4
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Noto Sans SC', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-navigation {
    margin-right: 8px;
}

.main-navigation + .language-switcher {
    margin-left: 0;
}

/* 购物车图标 */
.header-cart {
    position: relative;
}

.header-cart .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.header-cart .cart-link:hover {
    background: var(--primary);
    color: var(--white);
}

.header-cart .cart-icon {
    width: 20px;
    height: 20px;
}

.header-cart .cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
}

.header-cart .cart-link:hover .cart-count {
    background: var(--white);
    color: var(--primary);
}
.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* 站点品牌区域 - Logo + 标题副标题 */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding .custom-logo {
    height: 25px;
    width: auto;
    max-width: 200px;
}

/* 站点信息（标题+副标题）*/
.site-branding .site-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 12px;
}

.site-branding .site-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.site-branding .site-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-branding .site-title a:hover {
    color: var(--primary);
}

.site-branding .site-description {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0 0 0;
    line-height: 1.3;
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    background: transparent !important;
    white-space: nowrap;
}
.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-menu a:hover {
    color: var(--primary);
    background: transparent !important;
}
.nav-menu a:hover::before {
    width: 80%;
}

/* 多级菜单样式 */
.nav-menu li {
    position: relative;
}

/* 隐藏子菜单 */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 鼠标悬停时显示子菜单 */
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 子菜单项样式 */
.nav-menu .sub-menu li {
    margin: 0;
    width: 100%;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-menu .sub-menu a::before {
    display: none;
}

.nav-menu .sub-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* 三级菜单 */
.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 5px;
}

/* Language Switcher Dropdown - Hover Trigger */
.language-switcher {
    margin-left: 24px;
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.lang-dropdown-toggle:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.lang-dropdown:hover .lang-dropdown-toggle {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-arrow {
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
}

.lang-dropdown:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    pointer-events: none;
    /* 确保垂直排列 */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 添加一个透明的连接区域，防止鼠标移动到菜单时触发关闭 */
.lang-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* 鼠标悬停时显示下拉菜单 */
.lang-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-dropdown-item {
    margin: 0;
}

.lang-dropdown-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.15s ease;
    text-decoration: none;
}

.lang-dropdown-item a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.lang-dropdown-item.active a {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.lang-dropdown-item .lang-name {
    flex: 1;
}

.lang-check {
    color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: hidden;
}

/* 有视频时的 Hero 样式 */
.hero-has-video {
    background: #FFF;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* 视频容器 - 按比例显示，水平居中 */
.hero-video-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
}

/* 文字内容区域 */
.hero-text {
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    color: #1d1d1f;
}
.hero p {
    font-size: 24px;
    font-weight: 400;
    color: #1d1d1f;
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Section */
.section { padding: 80px 0; }
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

/* Homepage Section (可配置栏目) */
.homepage-section {
    width: 100%;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 20px;
}
.homepage-section-overlay{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.6);
}
.homepage-section .container{
    position: relative;
}

.homepage-section .section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.homepage-section .section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #6e6e73;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.section-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    padding: 24px 24px 16px;
    margin: 0;
}

.section-item-image,
.section-item-media {
    width: 100%;
    margin: 0;
}

.section-item-image img,
.section-item-media video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.section-item-subtitle {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
    padding: 16px 24px 24px;
    margin: 0;
}

/* 子模块链接样式 */
.section-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.section-item.has-link {
    cursor: pointer;
}

.section-item.has-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-item-link:hover .section-item-title {
    color: #0073aa;
}



/* 移动端适配 */
@media (max-width: 768px) {
    .homepage-section {
        padding: 60px 20px;
    }

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

    .homepage-section .section-subtitle {
        font-size: 16px;
    }

    .section-items {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-item-image img {
        height: 300px;
    }
}

/* Footer - 新版样式 */
.site-footer {
    padding: 60px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
    color: #FFF;
}

/* 公司信息 */
.footer-company {
    padding-right: 20px;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 16px;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #FFF;
}

.footer-company-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

/* 快速链接 */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 10px;
}

.footer-menu-list a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-menu-list a:hover {
    opacity: 1;
}

/* 联系方式 */
.footer-address,
.footer-email {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-icon {
    flex-shrink: 0;
}

/* 二维码区域 */
.footer-qrcodes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-qrcode-item {
    text-align: center;
}

.footer-qrcode-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.footer-qrcode-name {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.8;
}

/* 版权区域 */
.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    opacity: 0.7;
}

.footer-policies a {
    margin: 0 8px;
}

/* Footer 移动端适配 */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-company {
        padding-right: 0;
    }

    .footer-address,
    .footer-email {
        justify-content: center;
    }

    .footer-qrcodes {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* 移动端汉堡菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 - X 形 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }

    /* Header 移动端布局 */
    .header-inner {
        position: relative;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        position: relative;
        z-index: 1002;
    }

    /* 移动端导航 - 从上往下弹出的全屏菜单 */
    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background: #fff !important;
        padding: 80px 20px 30px !important;
        margin: 0 !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.3s ease;
        z-index: 1000 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .main-navigation.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 移动端菜单列表 */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
        margin: 0;
        width: 100%;
        text-align: left;
    }

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

    .nav-menu a {
        display: block;
        padding: 16px 20px;
        font-size: 18px;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
        text-align: left;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(180deg, #00d4ff, #7b2ff7);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        color: #00d4ff;
        padding-left: 28px;
    }

    .nav-menu a:hover::before,
    .nav-menu a:active::before {
        transform: scaleY(1);
    }

    /* 移动端子菜单样式 */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        display: none;
    }

    .nav-menu li.menu-item-has-children > a::after {
        content: '▼';
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .nav-menu li.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
    }

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

    .nav-menu .sub-menu li {
        border-bottom: none;
        padding-left: 20px;
    }

    .nav-menu .sub-menu a {
        font-size: 16px;
        padding: 12px 20px;
        background: rgba(0, 0, 0, 0.02);
    }

    /* 语言切换 */
    .language-switcher {
        margin-left: auto;
        order: 2;
        position: relative;
        z-index: 1002;
    }
    .lang-dropdown-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
    .lang-dropdown-toggle .lang-name {
        display: none;
    }
    .lang-dropdown-menu {
        min-width: 150px;
        right: 0;
    }

    /* 站点品牌区域移动端调整 */
    .site-branding .site-info {
        display: flex;
        border-left: none;
        padding-left: 8px;
    }

    .site-branding .site-title {
        font-size: 14px;
    }

    .site-branding .site-description {
        font-size: 10px;
    }

    .section { padding: 48px 0; }
    .section-title { font-size: 28px; }
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    /* 移动端遮罩层 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Page Content */
.page-content {
    min-height: 60vh;
}

/* Error Page */
.error-404 {
    min-height: 60vh;
    padding-top: 100px;
}

/* Single Post */
.single-post {
    min-height: 60vh;
    padding-top: 100px;
}
.single-post p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.single-post img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: var(--radius);
}

/* ========================================
   WooCommerce 样式
   ======================================== */
.woocommerce-main {
    padding-top: 100px;
    min-height: 60vh;
}

.woocommerce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 产品网格 */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 15px 15px 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.woocommerce ul.products li.product .price {
    padding: 0 15px 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.woocommerce ul.products li.product .button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-dark);
}

/* 单个产品页面 */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.woocommerce div.product div.images {
    border-radius: var(--radius);
    overflow: hidden;
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
}

.woocommerce div.product .product_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.woocommerce div.product p.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.woocommerce div.product form.cart {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .qty {
    width: 80px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

.woocommerce div.product form.cart button.button {
    flex: 1;
    padding: 15px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce div.product form.cart button.button:hover {
    background: var(--primary-dark);
}

/* 面包屑导航 */
.woocommerce-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.woocommerce-breadcrumb a {
    color: var(--primary);
}

/* 购物车和结算页面 */
.woocommerce-cart-form,
.woocommerce-checkout {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.woocommerce table.shop_table th {
    font-weight: 600;
    color: var(--secondary);
}

/* 按钮样式 */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* 消息提示 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    list-style: none;
}

.woocommerce-message {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.woocommerce-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* 响应式 */
@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .woocommerce ul.products li.product a img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

