/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    -webkit-text-size-adjust: 100%; /* 防止在iPhone上文字自动放大 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #3498db;
}

/* Header styles */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    margin-bottom: 0;
    position: relative;
}

header h1 {
    margin-bottom: 15px;
    text-align: left;
    font-size: 22px;
}

header h1 a {
    color: #fff;
    text-decoration: none;
}

header h1 a:hover {
    color: #fff;
}

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 20px 0 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 0;
    border-radius: 0;
    transition: color 0.3s;
    display: block;
    font-size: 16px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, 
nav ul li a.active {
    background-color: transparent;
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* Product grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    position: relative;
    padding-top: 100%; /* 1:1比例 */
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: #2980b9;
}

.product-price {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
    font-size: 16px;
}

.product-description {
    color: #666;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-cta {
    margin-top: auto;
    text-align: center;
}

.view-product-btn {
    display: inline-block;
    background-color: #2980b9;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.view-product-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product detail page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

.product-detail-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例完整显示 */
    object-position: center;
    transition: transform 0.3s ease;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-info h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
    color: #333;
    line-height: 1.3;
}

.product-category {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

.product-category a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/* 描述图片部分 */
.product-description-images-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.product-description-images-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-description-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.description-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.description-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .product-description-images {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-description-images {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        margin-bottom: 0;
    }
}

.product-contact {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #2980b9;
}

.related-products h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* About & Contact pages */
.page-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.page-content h1 {
    margin-bottom: 25px;
    font-size: 32px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.about-section {
    margin-bottom: 30px;
}

.about-section h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-section ul li {
    margin-bottom: 8px;
}

.contact-cta {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.contact-cta h2 {
    margin-bottom: 15px;
    color: #333;
}

.whatsapp-contact {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #2980b9;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent; /* 去除移动端点击时的高亮 */
}

.btn:hover {
    background-color: #3498db;
    color: #fff;
}

/* Contact page specific styles */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-details h2,
.contact-form-container h2,
.wholesale-info h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.contact-method {
    margin-bottom: 20px;
}

.contact-method h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 10px; /* 增加高度，便于手机操作 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    -webkit-appearance: none; /* 去除iOS默认的表单样式 */
    appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.wholesale-info {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.wholesale-info ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.wholesale-info ul li {
    margin-bottom: 8px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-right: 20px;
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #3498db;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
}

/* 当菜单打开时，给body添加的类 */
body.menu-open {
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
    
    header h1 {
        margin-bottom: 0;
        font-size: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
    }
    
    nav.show {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        z-index: 100;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    
    nav ul {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        padding: 12px 15px;
        text-align: left;
        display: block;
        border-bottom: 1px solid #444;
        border-radius: 0;
    }
    
    nav ul li a:hover, 
    nav ul li a.active {
        background-color: #444;
        color: white;
        border-bottom: 1px solid #444;
    }
    
    .featured-link-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        margin: 20px 0;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .product-description {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .view-product-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .featured-links {
        padding: 20px 0;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links ul {
        flex-direction: column;
    }
    
    .footer-links ul li {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .footer-links ul li a {
        display: block;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .products {
        gap: 15px 10px;
    }
}

/* 相关产品样式 */
.related-products .products {
    margin-top: 20px;
}

.related-products h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Wholesale Info Section */
.wholesale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wholesale-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wholesale-card:hover {
    transform: translateY(-5px);
}

.wholesale-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.wholesale-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.wholesale-price {
    color: #28a745;
    margin-bottom: 10px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 20px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: #e6e6e6;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote {
    margin-bottom: 15px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.author {
    font-weight: bold;
    text-align: right;
}

/* Intro Section Enhancement */
.intro-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.intro-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
}

.intro-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Hero Section Enhancement */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .wholesale-grid,
    .process-steps,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .step, .wholesale-card, .testimonial {
        padding: 15px;
    }
}

/* Featured Links Section */
.featured-links {
    padding: 30px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.featured-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.featured-link-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    height: 100%;
}

.featured-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.featured-link-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.featured-link-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #007bff;
}

.featured-link-card p {
    color: #666;
}

@media (max-width: 768px) {
    .featured-link-grid {
        grid-template-columns: 1fr;
    }
} 