/* 花边辅料网站 - 高级现代化设计 */

/* 全局变量 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f59e0b;
    --accent-color: #ec4899;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 公司名称顶部条形 ==================== */
.company-bar {
    background: #ffffff !important;
    width: 100%;
    position: relative;
    z-index: 1001;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ==================== 轮播图区域 ==================== */
.banner-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
}

.banner-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.banner-slide.active {
    display: block;
    opacity: 1;
}

.banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* 轮播图图片样式 - 使用更具体的选择器避免被覆盖 */
.banner-carousel-wrapper .banner-image,
.banner-carousel .banner-image,
.banner-carousel-wrapper .banner-slide .banner-image,
.banner-carousel .banner-slide .banner-image,
.banner-carousel-wrapper .banner-link .banner-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    max-height: 250px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.banner-controls {
    display: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.banner-prev,
.banner-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.banner-prev:active,
.banner-next:active {
    transform: scale(0.95);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    width: 32px;
    border-radius: 6px;
}

/* ==================== 工厂视频区块 ==================== */
.homepage-business-intro-section {
    padding: 36px 0 20px;
    background: var(--white);
}

.homepage-business-intro-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.homepage-business-intro-card {
    position: relative;
    padding: 38px 44px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.homepage-business-intro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(99, 102, 241, 0.03), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.homepage-business-intro-card p {
    position: relative;
    margin: 0;
    font-size: 20px;
    line-height: 1.95;
    letter-spacing: 0.02em;
    color: #243041;
    text-align: center;
    text-wrap: pretty;
}

.factory-video-section {
    background: var(--white);
    padding: 28px 0 48px;
}

.factory-video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.factory-video-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-xl);
}

.factory-video-card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-xl);
}

.factory-video-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    display: block;
}

.factory-video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.42) 100%);
    pointer-events: none;
    z-index: 1;
}

.factory-video-poster,
.factory-video-iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.factory-video-poster {
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.factory-video-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 64px;
    border: none;
    border-radius: 18px;
    background: #ff0000;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.factory-video-play-btn:hover,
.factory-video-placeholder:focus-visible .factory-video-play-btn {
    transform: translate(-50%, -50%) scale(1.04);
    background: #e60000;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.34);
}

.factory-video-play-icon {
    font-size: 30px;
    margin-left: 6px;
    line-height: 1;
    pointer-events: none;
}

.factory-video-player {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    outline: none;
    background: #000;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.factory-video-player[data-generate-poster="true"]:not([data-poster-ready="1"]) {
    opacity: 0;
}

.factory-video-player:hover {
    transform: scale(1.002);
}

@media (max-width: 767px) {
    .homepage-business-intro-section {
        padding: 24px 0 16px;
    }

    .homepage-business-intro-container {
        padding: 0 16px;
    }

    .homepage-business-intro-card {
        padding: 26px 20px;
        border-radius: 22px;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    }

    .homepage-business-intro-card p {
        font-size: 16px;
        line-height: 1.85;
    }

    .factory-video-section {
        padding: 12px 0 32px;
    }

    .factory-video-container {
        padding: 0;
    }

    .factory-video-frame {
        border-radius: 0;
        box-shadow: none;
    }

    .factory-video-card {
        border-radius: 0;
        box-shadow: none;
    }

    .factory-video-player {
        object-fit: cover;
    }

    .factory-video-play-btn {
        width: 76px;
        height: 54px;
        border-radius: 16px;
    }

    .factory-video-play-icon {
        font-size: 25px;
        margin-left: 5px;
    }
}

/* 桌面端优化 */
@media (min-width: 768px) {
    .banner-carousel-wrapper {
        max-width: 1000px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        padding: 0;
    }
    
    .banner-carousel-wrapper .banner-image,
    .banner-carousel .banner-image,
    .banner-carousel-wrapper .banner-slide .banner-image,
    .banner-carousel .banner-slide .banner-image,
    .banner-carousel-wrapper .banner-link .banner-image {
        max-height: 280px !important;
        max-width: 100% !important;
    }
}

/* 移动端响应式 */
@media (max-width: 767px) {
    .banner-carousel-wrapper .banner-image,
    .banner-carousel .banner-image,
    .banner-carousel-wrapper .banner-slide .banner-image,
    .banner-carousel .banner-slide .banner-image,
    .banner-carousel-wrapper .banner-link .banner-image {
        max-height: 200px !important;
    }
    
    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
        padding: 0 15px;
    }
    
    .banner-dots {
        bottom: 10px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
    
    .banner-dot.active {
        width: 24px;
    }
}

.company-bar .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
}

.company-name-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 24px;
    padding-bottom: 16px;
    min-height: 60px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 0;
    position: relative;
}

.company-name-bar.has-back-btn {
    justify-content: center;
    gap: 8px;
}

.company-name-bar.has-back-btn .back-to-home-btn {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.company-name-bar.has-back-btn .company-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.company-name-bar.has-back-btn .menu-toggle-btn {
    position: absolute;
    right: 24px;
}

.company-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #000000 !important;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.company-name-bar.has-back-btn .company-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.company-link:hover {
    opacity: 0.85;
}

.company-logo {
    max-height: 40px;
    width: auto;
    filter: brightness(0);
    display: block;
}

.company-name {
    font-size: 11px;
    font-weight: 700;
    color: #000000 !important;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    margin: 0;
    display: block;
}

.company-name-bar.has-back-btn .company-name {
    font-size: 11px;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    color: #000;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 8px;
    width: auto;
    height: auto;
    text-underline-offset: 0;
    text-decoration-line: none;
    line-height: 1;
}

.back-icon {
    height: 20px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.back-to-home-btn:hover .back-icon {
    opacity: 0.7;
}

@media (max-width: 767px) {
    .company-name {
        font-size: 11px;
    }
    .company-logo {
        max-height: 32px;
    }
    .company-name-bar {
        padding: 12px 16px;
        min-height: 52px;
    }
    .back-to-home-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: 24px;
        min-height: 24px;
    }
    
    .company-name-bar.has-back-btn .back-to-home-btn {
        left: 16px;
    }
    
    .company-name-bar.has-back-btn .menu-toggle-btn {
        right: 16px;
    }
}

/* ==================== 头部导航 ==================== */
.site-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header:hover {
    box-shadow: none;
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.main-nav a:hover::before {
    left: 0;
}

.main-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.main-nav a.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    font-weight: 600;
}

/* ==================== Banner区域 ==================== */
.banner-section {
    width: 100%;
    margin-bottom: 60px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

/* 主Banner图片样式 - 只针对.banner-section内的图片 */
.banner-section .banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.banner-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* ==================== 首页样式 ==================== */
.home-page {
    padding: 40px 0 80px;
}

.intro-section,
.categories-section,
.products-section {
    margin-bottom: 80px;
}

.intro-section h2,
.categories-section h2,
.products-section h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #000000;
    letter-spacing: 1px;
}

.intro-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    line-height: 1.9;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.intro-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* ==================== 分类卡片 ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.category-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card:hover .category-icon {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

.category-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ==================== 产品卡片 ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.more-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.more-link:hover {
    gap: 12px;
    color: #000000;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    text-align: center;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 分类页面 ==================== */
.category-page {
    padding: 0 0 80px;
    margin-top: 0;
}

.category-page .container {
    padding-top: 0;
    margin-top: 0;
}

.page-header {
    margin-bottom: 24px;
    margin-top: 0;
    text-align: left;
    padding: 0;
    padding-top: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
}


.page-header h1 {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
    padding-top: 0;
    padding-left: 42px;
    color: #000000;
    line-height: 1.2;
}

.category-filter-link {
    display: inline-block;
    margin-bottom: 12px;
    padding-left: 42px;
    font-size: 11px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    line-height: 1.2;
}

.category-filter-link:hover,
.category-filter-link:focus-visible {
    text-decoration: underline;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0;
}

/* ==================== 筛选区域 ==================== */
.filter-section {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-btn {
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-btn:active {
    transform: translateY(0);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.clear-filter-btn {
    padding: 10px 20px;
    background: var(--gradient-secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.clear-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== 产品详情页 ==================== */
/* 产品详情页时：去掉导航栏间距 */
body:has(.product-page) .site-header {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
}

body:has(.product-page) .site-header .container {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
}

/* 产品详情页时：去掉主要内容区域的上边距 */
body:has(.product-page) .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:has(.category-page) .main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.product-page {
    padding: 0 0 80px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.product-page .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .product-page {
        padding: 0;
        min-height: 100vh;
    }
    
    .product-page .container {
        padding: 0;
        padding-top: 0;
        max-width: 100%;
        margin-top: 0;
    }
    
    .product-page .breadcrumb {
        padding: 12px 16px;
        padding-top: 0;
        margin-top: 0;
    }
}


.breadcrumb {
    margin-bottom: 24px;
    margin-top: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .breadcrumb {
        margin-bottom: 16px;
        padding: 0;
        font-size: 12px;
    }
}

.product-detail .breadcrumb {
    margin-top: 0 !important;
    margin-bottom: 24px;
    margin-left: -24px;
    padding-left: 24px;
    padding-top: 0 !important;
    padding-bottom: 0;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    body:has(.product-page) .site-header .container {
        padding: 0;
    }
    
    .product-detail .breadcrumb {
        margin-top: 0 !important;
        margin-bottom: 16px;
        margin-left: -16px;
        padding-left: 16px;
        padding-top: 0 !important;
        padding-bottom: 0;
    }
    
    .product-detail > .breadcrumb:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 16px;
    }
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb span {
    color: #000;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: transparent;
    padding: 0;
    padding-top: 0 !important;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-top: 0 !important;
}

/* 确保面包屑是第一个元素，没有上边距 */
.product-detail > .breadcrumb:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .product-detail {
        padding: 0;
        gap: 24px;
        border-radius: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
    }
}

.product-images {
    margin-bottom: 0;
    min-width: 0;
}

.main-image {
    width: 100%;
    margin-bottom: 16px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 18px;
}

.main-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
    transition: transform 0.18s ease;
}

.main-image.is-zooming img {
    transform: scale(1.85);
}

.image-preview-trigger {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.image-preview-trigger:hover {
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-1px);
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    max-width: 100%;
}

.thumbnail-list::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 2px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e0e0e0;
    background: #fff;
    padding: 4px;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
    border-width: 3px;
}

.image-preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
    z-index: 10020;
}

.image-preview-modal.is-open {
    display: flex;
}

.image-preview-body {
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-preview-stage {
    max-width: 100%;
    max-height: 86vh;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    touch-action: none;
}

.image-preview-body img {
    display: block;
    max-width: min(1200px, 100%);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    transform: translate(var(--preview-x, 0px), var(--preview-y, 0px)) scale(var(--preview-scale, 1));
    transform-origin: center center;
    transition: transform 0.16s ease;
    will-change: transform;
}

.image-preview-tools {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.image-preview-tool {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.image-preview-tool:hover {
    background: rgba(15, 23, 42, 0.94);
}

.image-preview-close,
.image-preview-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-preview-close:hover,
.image-preview-nav:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.04);
}

.image-preview-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.image-preview-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.image-preview-prev {
    left: 20px;
}

.image-preview-next {
    right: 20px;
}

.product-info {
    padding: 0;
}

.product-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
    color: var(--text-primary);
    text-align: center;
}

.product-description,
.product-attributes {
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: none;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-attributes h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(80, 200, 120, 0.08) 100%);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 3px solid rgba(74, 144, 226, 0.3);
    display: inline-block;
    width: 100%;
}

.desc-content {
    line-height: 1.9;
    color: var(--text-secondary);
    font-size: 16px;
}

.attributes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.attribute-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.attribute-item strong {
    min-width: auto;
    color: var(--text-primary);
    font-weight: 600;
}

.attribute-item span {
    color: var(--text-secondary);
}

.product-meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-products {
    margin-top: 80px;
}

.related-products h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 搜索页面 ==================== */
.search-page {
    padding: 40px 0 80px;
}

.catalog-page {
    padding: 40px 0 100px;
}

.catalog-hero {
    padding: 40px 0 10px;
}

.catalog-hero-content {
    text-align: left;
    max-width: 640px;
}

.catalog-hero-content .eyebrow {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.catalog-hero-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.catalog-hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
}

.catalog-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-top: 32px;
}

.catalog-filters {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.filter-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.filter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-card-header h2 {
    font-size: 20px;
    margin: 0;
}

.clear-all {
    font-size: 14px;
    color: var(--danger-color, #e53e3e);
    text-decoration: none;
}

.catalog-filter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.filter-field input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-checkbox {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.filter-checkbox input {
    accent-color: var(--primary-color);
}

.filter-checkbox input:checked + span,
.filter-checkbox input:checked ~ span {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-checkbox:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.catalog-results {
    min-height: 400px;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-toolbar h2 {
    margin: 0;
    font-size: 24px;
}

.catalog-toolbar p {
    margin: 6px 0 0;
    color: var(--text-secondary);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 14px;
    background: var(--light-bg);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
}

.product-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
}

.attribute-tags {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attribute-tag {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;
}

.attribute-tag strong {
    color: var(--text-primary);
}

.catalog-empty {
    background: var(--white);
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.catalog-empty h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.catalog-empty p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .catalog-content {
        grid-template-columns: 1fr;
    }
    
    .catalog-filters {
        position: static;
        order: 2;
    }
    
    .catalog-results {
        order: 1;
    }
    
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .catalog-hero-content h1 {
        font-size: 34px;
    }
    
    .filter-card {
        padding: 20px;
    }
    
    .filter-checkbox {
        width: calc(50% - 6px);
        justify-content: flex-start;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

.search-form-large {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-large {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 18px;
    transition: all 0.3s ease;
    background: var(--white);
}

.search-input-large:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-btn-large {
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.advanced-filters {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.advanced-filters h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.filter-form {
    margin-top: 24px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.results-info {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.search-tips {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-tips h3 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-tips ul {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.search-tips li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.search-tips li:last-child {
    border-bottom: none;
}

/* ==================== 分页 ==================== */
.pagination-wrapper {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--white);
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow);
}

/* ==================== 无结果 ==================== */
.no-results {
    background: var(--white);
    padding: 80px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.no-results p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.no-results .btn {
    font-size: 11px;
    padding: 8px 16px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
}

/* ==================== WhatsApp按钮 ==================== */
.whatsapp-button-wrapper {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.whatsapp-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2FE076 0%, #25D366 100%);
}

.whatsapp-button:active {
    transform: translateY(-2px);
}

/* ==================== 底部 ==================== */
.site-footer {
    background: transparent;
    color: var(--text-color);
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}


.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 0;
    padding-bottom: 24px;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-info p {
    line-height: 1.9;
    color: var(--text-color);
    font-size: 15px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 15px;
}

.footer-contact strong {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 24px -24px 0;
    padding-left: 24px;
    padding-right: 24px;
}

/* ==================== 响应式设计 ==================== */
@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .header-content {
        padding: 24px 32px;
    }
}

@media (min-width: 1024px) {
    .filter-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .home-page {
        padding: 60px 0 100px;
    }
    
    .product-page,
    .search-page {
        padding: 60px 0 100px;
    }
    
    .category-page {
        padding: 0 0 100px;
    }
}

@media (max-width: 767px) {
    .product-page,
    .product-page .container,
    .product-detail {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-image {
        min-height: 0;
        padding: 10px;
        border-radius: 10px;
    }

    .main-image.is-zooming img {
        transform: none;
    }

    .main-image img {
        width: 100%;
        max-width: 100%;
        max-height: 34vh;
    }

    .image-preview-trigger {
        display: none;
    }

    .image-preview-modal {
        padding: 20px 12px;
    }

    .image-preview-body {
        width: 100%;
    }

    .image-preview-stage {
        width: 100%;
        max-height: 72vh;
    }

    .image-preview-body img {
        width: 100%;
        max-width: 100%;
        max-height: 72vh;
        border-radius: 10px;
    }

    .image-preview-close {
        top: 12px;
        right: 12px;
    }

    .image-preview-nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .image-preview-prev {
        left: 8px;
    }

    .image-preview-next {
        right: 8px;
    }

    .image-preview-tools {
        right: 12px;
        bottom: 12px;
        gap: 6px;
    }

    .image-preview-tool {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        margin: 24px -24px 0;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .intro-section h2,
    .categories-section h2,
    .products-section h2 {
        font-size: 12px;
    }
    
    .more-link {
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .category-page .page-header h1 {
        font-size: 11px;
    }
    
    .product-name {
        font-size: 12px;
        margin-bottom: 16px;
    }
    
    .main-image {
        margin-bottom: 12px;
    }
    
    .thumbnail-list {
        gap: 8px;
        padding-bottom: 4px;
    }
    
    .product-description,
    .product-attributes {
        margin-bottom: 20px;
        padding-bottom: 0;
    }
    
    .product-description h3,
    .product-attributes h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .whatsapp-button-wrapper {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .whatsapp-button {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .whatsapp-button svg {
        width: 20px;
        height: 20px;
    }

    .category-icon {
        font-size: 40px;
    }

    .category-card h3 {
        font-size: 12px;
    }
    
    .product-info h3 {
        font-size: 12px;
    }
    
    .category-card p {
        font-size: 12px;
    }
    
    .category-image {
        padding-top: 100%; /* 保持1:1比例 */
        margin-bottom: 0; /* 移除margin，因为已经有了padding */
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-section,
.categories-section,
.products-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==================== 菜单按钮和弹出层 ==================== */
/* 菜单按钮 - 菜单图标 */
.menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.company-name-bar.has-back-btn .menu-toggle-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.menu-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* 搜索按钮 */
.search-icon-btn {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #000000;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1002;
}

.search-icon-btn:hover,
.search-icon-btn:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.search-icon-graphic {
    width: 22px;
    height: 22px;
    display: block;
}

.search-icon-graphic svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: #000000;
    fill: none;
}

.company-name-bar.has-back-btn .search-icon-btn {
    left: 72px;
}

/* 菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 菜单抽屉 */
.menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-drawer.active {
    right: 0;
}

/* 菜单头部 */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.menu-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-close-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-close-btn:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* 菜单内容区域 */
.menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* 菜单项链接 */
.menu-item-link {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.menu-item-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 28px;
}

/* 空状态 */
.menu-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-secondary);
}

/* 菜单内容页面样式 */
.menu-content-page {
    margin: 30px 0;
}

.menu-content-body {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 14px;
}

.menu-content-body h1,
.menu-content-body h2,
.menu-content-body h3,
.menu-content-body h4,
.menu-content-body h5,
.menu-content-body h6 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.menu-content-body h1 {
    font-size: 20px;
}

.menu-content-body h2 {
    font-size: 18px;
}

.menu-content-body h3 {
    font-size: 16px;
}

.menu-content-body p {
    margin: 12px 0;
}

.menu-content-body ul,
.menu-content-body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.menu-content-body li {
    margin: 8px 0;
}

.menu-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.menu-content-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-content-body a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .menu-toggle-btn {
        width: 36px;
        height: 36px;
        right: 16px;
    }

    .company-name-bar.has-back-btn .menu-toggle-btn {
        right: 16px;
    }

    .menu-icon {
        width: 20px;
        height: 20px;
    }

    .search-icon-btn {
        width: 36px;
        height: 36px;
        left: 16px;
    }

    .company-name-bar.has-back-btn .search-icon-btn {
        left: 56px;
    }

    .search-icon-graphic {
        width: 20px;
        height: 20px;
    }

    .menu-drawer {
        width: 85%;
        max-width: 100%;
    }

    .menu-header {
        padding: 16px 20px;
    }

    .menu-header h2 {
        font-size: 18px;
    }

    .menu-item-link {
        padding: 14px 20px;
        font-size: 15px;
    }

    .menu-content-body {
        padding: 20px;
        margin: 20px 0;
    }

    .menu-content-body h1 {
        font-size: 18px;
    }

    .menu-content-body h2 {
        font-size: 16px;
    }

    .menu-content-body h3 {
        font-size: 14px;
    }

    .page-header h1 {
        padding-left: 0;
    }
}
