/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --text-color: #333333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #FFFFFF; /* 白色 */
    transition: var(--transition);
}

a:hover {
    color: #FFA500;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004494;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: var(--white);
}

.btn-small {
    color: #1da851;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.whatsapp {
    color: #25D366 !important;
}

/* Header */
.header {
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: auto;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a.active:after,
.main-nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    margin: 0 10px;
}

/* Featured Categories */
.featured-categories {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured-categories h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding: 20px;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    border-radius: 4px;
    margin-bottom: 15px;
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.category-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
     margin-bottom: 10px;
    color: var(--dark-color);
}

.product-card .price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-card .description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-content p {
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.quote {
    position: relative;
    margin-bottom: 20px;
}

.quote i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.quote p {
    font-style: italic;
    color: var(--text-color);
}

.client {
    display: flex;
    align-items: center;
}

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.client h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.client p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), url('images/cta-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social a {
    display: inline-block;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom ul {
    display: flex;
}

.footer-bottom ul li {
    margin-left: 20px;
}

.footer-bottom ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom ul li a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-section .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .featured-categories,
    .featured-products,
    .about-section,
    .testimonials,
    .cta {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    .footer-bottom ul li {
        margin: 0 10px;
    }
}
/* 之前的样式代码保持不变 */

/* Product Detail Section */
.product-detail {
    padding: 80px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
}

.product-catalog {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-catalog h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.product-catalog ul li {
    margin-bottom: 10px;
    position: relative;
}

.product-catalog ul li a {
    color: var(--text-color);
}

.product-catalog ul li a:hover {
    color: var(--primary-color);
}

/* 三级目录样式 */
.product-catalog .sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
    min-width: 200px;
    z-index: 1;
}

.product-catalog ul li:hover .sub-menu {
    display: block;
}

.product-catalog .sub-menu li {
    margin-bottom: 5px;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-top {
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px; /* 增加内边距以放大上面部分 */
}

.product-top img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.brief-description h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.brief-description p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.brief-description .btn {
    display: inline-block;
}

.product-middle {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.product-middle h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-bottom {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.product-bottom h4 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-product-card {
    text-align: center;
}

.related-product-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-product-card h5 {
    margin-bottom: 10px;
    color: var(--dark-color);
}
.breadcrumb {
    padding: 10px 0;
    background-color: #f5f5f5;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Layout */
.product-layout {
    display: flex;
    gap: 20px;
}

/* Product Catalog */
.product-catalog {
    flex: 0 0 25%;
}

/* Product Content */
.product-content {
    flex: 0 0 75%;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* Accordion */
.accordion {
    background-color: #f9f9f9;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    border-radius: 5px;
}

.active,
.accordion:hover {
    background-color: #ddd;
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    height: 350px; /* 设置固定高度，可根据实际情况调整 */
}

.product-card img {
    width: 100%; 
    height: 200px; /* 设置图片的固定高度 */
    object-fit: cover; /* 保持图片比例，覆盖整个容器 */
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background - color 0.3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.product-title {
  color: black; /* 或 #000 或使用Tailwind的 text-gray-900 */
}

.product-title:hover {
  color: #FFA500; /* 悬停时变为橙色 */
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: #3b82f6; /* 蓝色主色调 */
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #10b981; /* 绿色辅助色 */
  color: white;
}

.btn-secondary:hover {
  background-color: #059669;
}

.btn i {
  margin-right: 0.5rem;
}

/* 小按钮样式（如果需要） */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}