/* Performance Optimized CSS - Kefinity Pet Supplies Website */

/* Base Style Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Font loading is handled in font.css */

/* Link Styles */
a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b35;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6b35;
    color: white;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    will-change: transform;
}

.btn:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Header Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    will-change: transform;
}

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

.logo h1 {
    color: #ff6b35;
    font-size: 24px;
}

.logo i {
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a.active,
nav ul li a:hover {
    color: #ff6b35;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6b35;
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)) 0 0, url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1950&q=80') 0 0;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 50px;
    will-change: transform;
}

.page-header h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)) 0 0, url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1950&q=80') 0 0;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    margin-bottom: 50px;
    will-change: transform;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 特色服务 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-item {
    flex: 0 0 30%;
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 48px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 热门产品 */
.popular-products {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.popular-products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff6b35;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* 懒加载占位符 */
    background-color: #eee;
    transition: opacity 0.3s ease;
}

.product-card h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
}

.product-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 14px;
}

.product-card .price {
    display: block;
    padding: 0 15px 15px;
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
}

/* 关于我们 */
.about-us {
    padding: 80px 0;
    background-color: white;
}

.about-us h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff6b35;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* 懒加载占位符 */
    background-color: #eee;
    transition: opacity 0.3s ease;
}

/* 产品列表页 */

/* 产品分类导航 */
.category-nav {
    padding: 20px 0;
    background-color: white;
    margin-bottom: 50px;
}

.category-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.category-nav ul li {
    margin: 0 10px 10px;
}

.category-nav ul li a {
    display: block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.category-nav ul li a:hover,
.category-nav ul li a.active {
    background-color: #ff6b35;
    color: white;
}

/* 产品列表 */
.product-list {
    padding-bottom: 50px;
}

.product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.add-to-cart {
    background-color: #ff6b35;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    will-change: transform;
}

.add-to-cart:hover {
    background-color: #e55a2b;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: white;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #ff6b35;
    color: white;
}

/* 关于我们页面 */

/* 公司介绍 */
.company-info {
    padding: 50px 0;
    background-color: white;
}

.info-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #ff6b35;
}

.info-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.info-image {
    flex: 1;
}

.info-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* 懒加载占位符 */
    background-color: #eee;
    transition: opacity 0.3s ease;
}

/* 团队介绍 */
.team {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.team h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    /* 懒加载占位符 */
    background-color: #eee;
    transition: opacity 0.3s ease;
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* 品牌优势 */
.brand-strengths {
    padding: 80px 0;
    background-color: white;
}

.brand-strengths h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.strength-item {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.strength-item i {
    font-size: 48px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.strength-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 发展历程 */
.timeline {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.timeline h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.timeline-content {
    position: relative;
    max-width: 800px;
    margin-left: 100px;
    text-align: left;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #ff6b35;
    left: 1%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-year {
    flex: 0 0 100px;
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    text-align: center;
    padding-top: 10px;
}

.timeline-text {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-text h3 {
    margin-bottom: 10px;
    color: #ff6b35;
}

/* 联系我们页面 */

/* 联系信息 */
.contact-info {
    padding: 50px 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.contact-item i {
    font-size: 48px;
    color: #ff6b35;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}


/* 联系表单 */
.contact-form {
    padding: 80px 0;
    background-color: white;
}

.contact-form h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

/* 常见问题 */
.faq {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.faq-item {
    background-color: white;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ff6b35;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #ff6b35;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
}

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

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

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ff6b35;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .feature-item {
        flex: 0 0 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .info-content {
        flex-direction: column;
    }
    
    .timeline-content::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row-reverse;
    }
    
    .timeline-year {
        flex: 0 0 60px;
    }
    
    .timeline-text {
        margin-left: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
}

/* 关键帧动画优化 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 懒加载图片的样式 */
img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* ===== 产品页面增强样式 ===== */

/* Hero Section */
.products-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)) 0 0, url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1950&q=80') 0 0;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.products-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.products-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* Product Statistics */
.product-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Categories Grid */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

/* 分类按钮样式 - 扁平化微质感 */
.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.category-btn:hover {
    background-color: #f9fafb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 选中态高亮色 */
.category-btn.active {
    background-color: #FF6B35;
    color: #ffffff;
    border-color: #FF6B35;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.category-btn i {
    font-size: 16px;
}

.category-card {
    flex: 1 1 200px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background-color: #ff6b35;
    color: white;
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
    color: white;
}

.category-name {
    font-size: 16px;
    font-weight: 500;
}

/* Product Controls */
.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.filter-badge .filter-name {
    margin-right: 10px;
}

.filter-badge .remove-filter {
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.filter-badge .remove-filter:hover {
    color: #ff6b35;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Enhanced Product Card */
.enhanced-product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.enhanced-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.enhanced-product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-tag {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tag-new {
    background-color: #28a745;
    color: white;
}

.tag-hot {
    background-color: #dc3545;
    color: white;
}

.tag-sale {
    background-color: #ffc107;
    color: #333;
}

.quick-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-product-card:hover .quick-actions {
    opacity: 1;
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background-color: #ff6b35;
    color: white;
    transform: scale(1.1);
}

.product-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 50%;
}

/* 内容区域 - 自动占据可用空间 */
.product-content-inner {
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    transition: color 0.3s ease;
}

.enhanced-product-card:hover .product-title {
    color: #ff6b35;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.price-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 22px;
    font-weight: bold;
    color: #ff6b35;
    margin-right: 10px;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background-color: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.primary-btn {
    flex: 1;
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.primary-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
}

.secondary-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
}

.secondary-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #FF6B35;
    color: #FF6B35;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background-color: #FF6B35;
    color: #ffffff;
    border-color: #FF6B35;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-btn.prev,
.pagination-btn.next {
    width: auto;
    padding: 0 15px;
    font-size: 16px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* ===== 响应式设计 ===== */

/* 平板设备 */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        flex: 1 1 45%;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .products-hero {
        padding: 40px 0;
    }
    
    .products-hero h1 {
        font-size: 28px;
    }
    
    .products-hero p {
        font-size: 16px;
    }
    
    .product-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
    
    .categories-grid {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        gap: 10px;
    }
    
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
    
    .category-card {
        flex: 0 0 150px;
        margin-right: 10px;
    }
    
    /* 移动设备上的分类按钮样式 */
    .category-btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .category-btn i {
        font-size: 14px;
    }
    
    .product-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .active-filters {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
    }
    
    .active-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-badge {
        white-space: nowrap;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .product-image-container img {
        height: 300px;
    }
    
    .product-card-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
        margin-top: auto;
        padding-top: 5px;
    }
    
    .secondary-btn {
        width: 100%;
        height: auto;
        padding: 10px;
    }
    
    .pagination-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .pagination-info {
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .pagination-btn.prev,
    .pagination-btn.next {
        font-size: 14px;
        padding: 0 12px;
    }
}