/* ============================================
 * Chaogege 主题主样式 - 完整版
 * 包含：全局样式、头部、首页、产品列表页等
 * ============================================ */

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

body {
    font-family: 'Inter', "Texta Alt", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #1A2C3E;
    line-height: 1.5;
    font-size: 18px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 主题色变量 */
:root {
    --theme-purple: #6C5CE7;
    --theme-purple-light: #8B7DF5;
    --theme-purple-dark: #5B4BCF;
    --theme-purple-deep: #4A3AB8;
    --theme-orange: #FF8C42;
    --theme-orange-dark: #E67E22;
    --title-dark: #1E293B;
    --border-light: #E9EEF4;
    --bg-soft: #F8FAFE;
}

a {
    text-decoration: none;
    color: var(--theme-purple);
    transition: 0.2s linear;
}

a:hover {
    color: var(--theme-orange);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 12px 32px;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--theme-purple);
    border: 1px solid var(--theme-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--theme-purple-dark);
}

.btn-outline {
    border: 1px solid var(--theme-purple);
    background: transparent;
    color: var(--theme-purple);
}

.btn-outline:hover {
    background: #F0EDFA;
    border-color: var(--theme-orange);
    color: var(--theme-orange);
}

.btn-orange {
    background: var(--theme-orange);
    border: 1px solid var(--theme-orange);
    color: white;
}

.btn-orange:hover {
    background: var(--theme-orange-dark);
}

.btn-card-outline {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 8px 24px;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255,255,255,0.9);
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    font-family: inherit;
    text-transform: uppercase;
    color: white;
    margin-top: 16px;
}

.btn-card-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

h1, h2, h3, .headline {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--title-dark);
}

h1 { font-size: 3.2rem; }
.headline-md { font-size: 2.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* ========= 顶部栏 ========= */
.top-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    list-style: none;
}

.top-nav-links li a {
    color: #5A6E8A;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.top-nav-links li a:hover {
    color: var(--theme-orange);
}

/* ========= 主头部 ========= */
.main-header {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.logo img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ========= 多级导航栏 ========= */
.nav-multilevel {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-multilevel .nav-item {
    position: relative;
    list-style: none;
}

.nav-multilevel .nav-link {
    display: block;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 1rem;
    color: #2D3A4B;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.nav-multilevel .nav-link:hover {
    color: var(--theme-orange);
}

.nav-multilevel .dropdown-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    background: white;
    border: 1px solid var(--border-light);
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.nav-multilevel .nav-item:hover > .dropdown-menu-wrapper {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-multilevel .dropdown-menu-second {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-multilevel .dropdown-second-item {
    position: relative;
    list-style: none;
}

.nav-multilevel .dropdown-second-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #2D3A4B;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s;
}

.nav-multilevel .dropdown-second-item > a:hover {
    background: var(--bg-soft);
    color: var(--theme-orange);
}

.nav-multilevel .arrow-right {
    font-size: 0.8rem;
    color: #aaa;
}

.nav-multilevel .dropdown-third-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: white;
    border: 1px solid var(--border-light);
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.nav-multilevel .dropdown-second-item:hover .dropdown-third-menu {
    visibility: visible;
    opacity: 1;
}

.nav-multilevel .dropdown-third-menu li a {
    display: block;
    padding: 8px 20px;
    color: #3A3560;
    font-size: 0.9rem;
    transition: 0.2s;
}

.nav-multilevel .dropdown-third-menu li a:hover {
    background: var(--bg-soft);
    color: var(--theme-orange);
}

/* ========= 独立搜索栏 ========= */
.search-deep-bar {
    background: linear-gradient(135deg, var(--theme-purple) 0%, var(--theme-purple-deep) 100%);
    padding: 1rem 0;
}

.input-group-custom {
    display: flex;
    width: 100%;
    background: white;
}

.input-group-custom input {
    flex: 1;
    border: none;
    padding: 14px 22px;
    font-size: 1.05rem;
    background: white;
    outline: none;
    color: #1F2A44;
    font-weight: 500;
}

.input-group-custom button {
    background: var(--theme-orange);
    border: none;
    width: 68px;
    height: 54px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-custom button svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* ========= Hero Banner ========= */
.hero-banner {
    background: linear-gradient(105deg, #F8FAFF 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border-light);
    padding: 60px 0;
    position: relative;
}

.banner-slider {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    position: relative;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.banner-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.banner-content {
    flex: 1;
}

.banner-badge {
    color: var(--theme-orange);
    font-weight: 700;
    letter-spacing: 1.2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.banner-content h1 {
    font-size: 3rem;
    color: var(--title-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

.banner-content p {
    color: #4A5A72;
    margin: 0 0 28px 0;
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.banner-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 16px;
}

.hero-stats div span:first-child {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-purple);
    display: block;
    line-height: 1.2;
}

.hero-stats div span:last-child {
    font-size: 0.85rem;
    color: #5A6A82;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.banner-image img {
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-light);
    object-fit: cover;
}

.banner-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    background: #C9D2E5;
    cursor: pointer;
    transition: 0.2s;
}

.banner-dot.active {
    background: var(--theme-orange);
    width: 28px;
}

/* ========= 新产品轮播（首页） ========= */
.product-carousel-section {
    padding: 70px 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.carousel-nav {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--theme-orange);
    color: white;
}

.product-slider-wrapper {
    overflow: hidden;
}

.product-track {
    display: flex;
    gap: 28px;
    transition: transform 0.4s ease;
}

/* 首页轮播产品卡片 */
.product-carousel-section .product-card {
    flex: 0 0 calc(25% - 21px);
    min-width: 260px;
    background: white;
    border: 1px solid var(--border-light);
    padding: 20px;
    transition: 0.2s;
}

.product-carousel-section .product-card:hover {
    border-color: var(--theme-purple);
    transform: translateY(-2px);
}

.product-carousel-section .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #F0F2F8;
    margin-bottom: 16px;
}

.product-carousel-section .product-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.product-carousel-section .product-price {
    color: var(--theme-orange);
    font-weight: 700;
    margin: 12px 0;
    font-size: 1rem;
}

.product-carousel-section .add-to-cart {
    background: var(--theme-purple);
    color: white;
    border: none;
    padding: 8px 0;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.product-carousel-section .add-to-cart:hover {
    background: var(--theme-orange);
}

/* ========= 产品分类区域（首页） ========= */
.categories-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

.section-title {
    margin-bottom: 48px;
    border-left: 5px solid var(--theme-orange);
    padding-left: 20px;
}

.section-subtitle {
    margin: 32px 0 24px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--title-dark);
    border-left: 3px solid var(--theme-purple);
    padding-left: 16px;
}

.accent-line {
    width: 50px;
    height: 3px;
    background: var(--theme-orange);
    margin-top: 12px;
}

.big-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.big-category-card {
    background: white;
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    text-align: center;
    transition: 0.25s ease;
    cursor: pointer;
}

.big-category-card:hover {
    border-color: var(--theme-purple);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.big-category-icon {
    width: 72px;
    height: 72px;
    background: #F0EDFA;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.big-category-icon span {
    font-size: 36px;
}

.big-category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.big-category-card p {
    font-size: 0.9rem;
    color: #5A6A82;
    line-height: 1.4;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.subcategory-card {
    background: white;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    transition: 0.2s;
    cursor: pointer;
}

.subcategory-card:hover {
    border-color: var(--theme-orange);
    transform: translateX(2px);
}

.subcategory-icon {
    width: 44px;
    height: 44px;
    background: #F4F2FC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-icon span {
    font-size: 24px;
}

.subcategory-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.subcategory-info p {
    font-size: 0.8rem;
    color: #5A6A82;
    line-height: 1.3;
}

/* ========= 定制开发模块 ========= */
.custom-dev-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

.custom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-card-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px 28px;
    text-align: center;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
}

.custom-card-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 92, 231, 0.75);
    z-index: 1;
    transition: all 0.3s ease;
}

.custom-card-bg:hover::before {
    background: linear-gradient(135deg, rgba(255,140,66,0.75), rgba(108,92,231,0.8));
}

.custom-card-bg .custom-icon,
.custom-card-bg h3,
.custom-card-bg p,
.custom-card-bg .btn-card-outline {
    position: relative;
    z-index: 2;
    color: white;
}

.custom-card-bg h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.custom-card-bg p {
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.custom-card-bg-1 { background-image: url('https://images.pexels.com/photos/1262302/pexels-photo-1262302.jpeg?auto=compress&cs=tinysrgb&w=600&h=400&fit=crop'); }
.custom-card-bg-2 { background-image: url('https://images.pexels.com/photos/356040/pexels-photo-356040.jpeg?auto=compress&cs=tinysrgb&w=600&h=400&fit=crop'); }
.custom-card-bg-3 { background-image: url('https://images.pexels.com/photos/4057663/pexels-photo-4057663.jpeg?auto=compress&cs=tinysrgb&w=600&h=400&fit=crop'); }

/* ========= Promotion 模块 ========= */
.promo-section {
    padding: 70px 0;
    background: white;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.promo-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    padding: 40px 32px;
    text-align: center;
    transition: 0.2s;
}

.promo-card:hover {
    border-color: var(--theme-orange);
    transform: translateY(-3px);
}

.promo-badge {
    display: inline-block;
    background: var(--theme-orange);
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.promo-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.promo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.promo-card p {
    color: #5A6A82;
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ========= Blog 轮播 ========= */
.blog-section {
    padding: 70px 0;
    background: var(--bg-soft);
}

.blog-slider-wrapper {
    overflow: hidden;
}

.blog-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.blog-card {
    flex: 0 0 calc(33.333% - 20px);
    border: 1px solid var(--border-light);
    background: white;
    transition: 0.2s;
}

.blog-card:hover {
    border-color: var(--theme-purple);
    transform: translateY(-3px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--theme-purple);
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--theme-orange);
    margin-bottom: 8px;
    font-weight: 600;
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.85rem;
    color: #5A6A82;
    line-height: 1.4;
    margin-bottom: 12px;
}

.read-more {
    font-weight: 600;
    color: var(--theme-purple);
    font-size: 0.85rem;
}

/* ========= About 模块 ========= */
.about-section {
    background: white;
    padding: 70px 0;
    border-top: 1px solid var(--border-light);
}

.about-inner {
    display: flex;
    gap: 48px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin: 20px 0;
    color: #3A3560;
    font-size: 1rem;
    line-height: 1.5;
}

.about-image img {
    width: 100%;
    max-width: 460px;
    border: 1px solid var(--border-light);
}

/* ========= 页脚样式 ========= */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--title-dark);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: #5A6E8A;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--theme-orange);
}

.newsletter-signup {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 24px;
}

.newsletter-signup p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #2D3A4B;
}

.newsletter-flex {
    display: flex;
    border: 1px solid var(--border-light);
    background: white;
}

.newsletter-flex input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    background: white;
    outline: none;
    font-size: 0.85rem;
}

.newsletter-flex button {
    background: var(--theme-purple);
    border: none;
    padding: 0 20px;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.newsletter-flex button:hover {
    background: var(--theme-orange);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #5A6E8A;
}

.social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 24px;
    margin-top: 8px;
}

.social-icons-row {
    display: flex;
    gap: 28px;
}

.social-icons-row a {
    color: #5A6E8A;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.social-icons-row a i {
    font-size: 1.1rem;
}

.social-icons-row a:hover {
    color: var(--theme-orange);
}

.copyright-text {
    font-size: 0.75rem;
    color: #7A8DA8;
}

/* ========= 弹窗模态框 ========= */
.quote_modal, .enhanced_inquiry_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.quote_box, .enhanced_inquiry_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 900px;
    width: 90%;
    display: flex;
    z-index: 100000;
}

.quote_box .close, .enhanced_inquiry_box .close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>') no-repeat center;
    background-size: contain;
    z-index: 10;
}

.quote_box_pingpu, .img_aba {
    width: 40%;
}

.quote_box_pingpu img, .img_aba img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote_box .rt, .enhanced_inquiry_box .rt {
    width: 60%;
    padding: 40px;
}

.enhanced_inquiry_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

/* ============================================
 * 产品分类列表页样式 - 一行一个布局（双按钮版）
 * ============================================ */

.chaogege-products-main {
    padding: 40px 0;
    background: #ffffff;
}

.chaogege-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.chaogege-layout {
    display: flex;
    gap: 40px;
}

/* 左侧边栏 */
.chaogege-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.chaogege-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 20px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2c3e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-purple);
    display: inline-block;
}

/* 分类列表 */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    border-bottom: 1px solid #eef2f6;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.category-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.category-link:hover,
.category-item.active > .category-header .category-link {
    color: var(--theme-purple);
}

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.category-toggle.active svg {
    transform: rotate(180deg);
}

.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 20px;
}

.subcategory-item {
    padding: 6px 0;
}

.subcategory-item a {
    color: #718096;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.subcategory-item a:hover,
.subcategory-item.active a {
    color: var(--theme-purple);
}

/* 搜索框 */
.search-wrapper {
    display: flex;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
}

.search-button {
    background: var(--theme-purple);
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--theme-purple-dark);
}

/* 右侧内容区 */
.chaogege-products-content {
    flex: 1;
    min-width: 0;
}

.content-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a2c3e;
    margin-bottom: 12px;
}

.page-description p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* 控制栏 */
.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sort-wrapper .woocommerce-ordering {
    margin: 0;
}

.sort-wrapper select,
.perpage-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c5ce7' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.perpage-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.perpage-label,
.perpage-suffix {
    font-size: 13px;
    color: #4a5568;
}

.result-count {
    font-size: 13px;
    color: #4a5568;
}

.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--theme-purple);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.2s ease;
}

.mobile-filter-btn:hover {
    background: var(--theme-purple-dark);
}

/* ========= 产品列表 - 一行一个布局（双按钮版） ========= */
.chaogege-products-main .product-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chaogege-products-main .product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.chaogege-products-main .product-card:hover {
    border-color: var(--theme-purple);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
    transform: translateY(-2px);
}

/* 产品链接区域 */
.chaogege-products-main .product-main-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 16px 0;
}

/* 产品图片 */
.chaogege-products-main .product-image {
    width: 170px;
    height: 140px;
    flex-shrink: 0;
    margin-right: 24px;
    overflow: hidden;
    background: #f8fafc;
}

.chaogege-products-main .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chaogege-products-main .product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--theme-orange);
    color: #ffffff;
}

/* 产品信息 */
.chaogege-products-main .product-info {
    flex: 1;
    padding: 0;
}

.chaogege-products-main .product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.chaogege-products-main .product-title a {
    color: #1a2c3e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chaogege-products-main .product-title a:hover {
    color: var(--theme-purple);
}

.chaogege-products-main .product-description {
    color: #5a6a82;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chaogege-products-main .product-sku {
    display: inline-block;
    color: var(--theme-purple);
    font-size: 0.85rem;
    font-weight: 600;
    background: #f0edfa;
    padding: 4px 12px;
}

/* ========= 双按钮区域 ========= */
.chaogege-products-main .product-actions {
    margin-left: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 通用按钮样式 */
.chaogege-products-main .btn-action {
    background: linear-gradient(135deg, var(--theme-purple), #5b4bcb);
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 140px;
}

.chaogege-products-main .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* 询价按钮悬停变为橙色 */
.chaogege-products-main .btn-inquiry:hover {
    background: linear-gradient(135deg, var(--theme-orange), var(--theme-orange-dark));
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

/* 购物车按钮悬停加深紫色 */
.chaogege-products-main .btn-cart:hover {
    background: linear-gradient(135deg, #4a3ab8, #3a2a98);
}

.chaogege-products-main .btn-icon {
    font-size: 1rem;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eef2f6;
    text-align: center;
}

.pagination-wrapper .woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers.current {
    background: var(--theme-purple);
    border-color: var(--theme-purple);
    color: #ffffff;
}

.pagination-wrapper .page-numbers:hover:not(.current) {
    border-color: var(--theme-purple);
    color: var(--theme-purple);
}

/* 加载指示器 */
.page-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 24px 40px;
    text-align: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--theme-orange);
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.page-loading p {
    margin: 0;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}

.no-products p {
    margin: 0;
    color: #4a5568;
    font-size: 16px;
}

/* 移动端侧边栏遮罩 */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-sidebar-overlay.open {
    display: block;
}

/* ========= 响应式布局 ========= */
@media (max-width: 992px) {
    .chaogege-layout {
        gap: 30px;
    }
    
    .chaogege-sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .chaogege-products-main {
        padding: 24px 0;
    }
    
    .chaogege-container {
        padding: 0 16px;
    }
    
    .chaogege-layout {
        flex-direction: column;
        gap: 0;
    }
    
    .chaogege-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        z-index: 1000;
        background: #ffffff;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .chaogege-sidebar.open {
        left: 0;
    }
    
    .mobile-filter-btn {
        display: flex;
    }
    
    .control-group {
        flex: 1;
    }
    
    /* 移动端产品卡片改为上下布局 */
    .chaogege-products-main .product-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .chaogege-products-main .product-main-link {
        flex-direction: column;
        padding: 0 0 12px 0;
    }
    
    .chaogege-products-main .product-image {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .chaogege-products-main .product-actions {
        margin-left: 0;
        margin-top: 8px;
        flex-direction: row;
        gap: 12px;
    }
    
    .chaogege-products-main .btn-action {
        flex: 1;
        width: auto;
        padding: 10px 16px;
    }
    
    .chaogege-products-main .product-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 24px;
    }
    
    .page-description p {
        font-size: 14px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }
    
    .sort-wrapper,
    .perpage-wrapper,
    .result-count {
        width: 100%;
    }
    
    .sort-wrapper select,
    .perpage-select {
        width: 100%;
    }
    
    .perpage-wrapper {
        justify-content: space-between;
    }
    
    .chaogege-products-main .product-description {
        font-size: 0.85rem;
    }
    
    .chaogege-products-main .product-sku {
        font-size: 0.75rem;
    }
    
    .chaogege-products-main .product-actions {
        flex-direction: column;
    }
    
    .chaogege-products-main .btn-action {
        padding: 10px 12px;
    }
    
    .pagination-wrapper .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .chaogege-card {
        padding: 16px;
    }
    
    .card-title {
        font-size: 16px;
    }
}

@media (max-width: 380px) {
    .perpage-wrapper {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .chaogege-products-main .product-info {
        padding: 0;
    }
    
    .chaogege-products-main .product-title {
        font-size: 1rem;
    }
}

/* 首页响应式保留原有样式 */
@media (max-width: 1000px) {
    .big-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .subcategories-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .product-carousel-section .product-card { flex: 0 0 calc(50% - 14px); }
}

@media (max-width: 780px) {
    .big-categories-grid { grid-template-columns: 1fr; }
    .subcategories-grid { grid-template-columns: repeat(2, 1fr); }
    .header-flex { flex-direction: column; gap: 15px; }
    .banner-item { flex-direction: column; }
    .nav-multilevel { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .social-row { flex-direction: column; gap: 16px; align-items: center; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .custom-grid { grid-template-columns: 1fr; }
    .promo-grid { grid-template-columns: 1fr; }
    .blog-card { flex: 0 0 calc(100% - 20px); }
}