/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #2c3e50;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.top-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-size: 12px;
}

.top-links a:hover {
    text-decoration: underline;
}

.main-header {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.search-area {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-form {
    display: flex;
    border: 2px solid #3498db;
    border-radius: 5px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

.user-actions {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
}

.cart-link:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.cart-icon {
    margin-right: 5px;
    font-size: 18px;
}

/* Navigation */
.main-nav {
    background: #34495e;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center; /* 菜单项居中 */
    flex-wrap: wrap; /* 允许换行 */
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background 0.3s;
    font-weight: 500;
    white-space: nowrap; /* 防止文字换行 */
}

.nav-link:hover {
    background: #2c3e50;
}

.nav-item.active .nav-link {
    background: #2c3e50;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: #ecf0f1;
    padding: 12px 0;
    border-bottom: 1px solid #bdc3c7;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #7f8c8d;
}

.breadcrumb-list a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:last-child {
    color: #7f8c8d;
}

/* Product Detail Styles */
.product-detail {
    background: #fff;
    padding: 30px 0;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
}

.main-image {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #3498db;
}

.thumbnail:hover {
    border-color: #3498db;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info-main {
    padding: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-meta {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.meta-item {
    display: flex;
    margin-bottom: 8px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item label {
    font-weight: bold;
    min-width: 80px;
    color: #34495e;
}

.meta-item span {
    color: #2c3e50;
}

/* Product Price */
.product-price-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f1f3f4;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
}

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

.discount {
    background: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.price-inquiry {
    text-align: center;
}

.inquiry-text {
    font-size: 18px;
    color: #34495e;
    font-weight: bold;
}

.tax-info {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Stock Info */
.stock-info {
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 6px;
    margin-bottom: 25px;
}

.stock-status,
.delivery-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 14px;
}

.stock-status:last-child,
.delivery-time:last-child {
    margin-bottom: 0;
}

.stock-status i,
.delivery-time i {
    color: #27ae60;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-button:hover {
    color: #3498db;
}

.tab-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ecf0f1;
}

.tab-content.active {
    display: block;
}

/* Product Description */
.product-description {
    line-height: 1.8;
}

.product-description h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

.product-description p {
    margin-bottom: 15px;
    color: #555;
}

.product-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-description li {
    margin-bottom: 5px;
    color: #555;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specifications-table th,
.specifications-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.specifications-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    width: 30%;
}

.specifications-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Related Products */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.related-products h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.feature-icon {
    background: #27ae60;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Sections */
.section-title {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e74c3c;
}

.categories-section,
.featured-products,
.latest-products {
    padding: 60px 0;
}

.categories-section {
    background: #fff;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

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

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-manufacturer {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #3498db;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-section .contact-info p {
    margin-bottom: 5px;
    color: #fcfeff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #FFFFFF;
    font-size: 14px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-primary { background: #3498db; }
.btn-primary:hover { background: #2980b9; }

.btn-secondary { background: #95a5a6; }
.btn-secondary:hover { background: #7f8c8d; }

.btn-success { background: #27ae60; }
.btn-success:hover { background: #219a52; }

.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }

.btn-warning { background: #f39c12; }
.btn-warning:hover { background: #e67e22; }

/* Product Details Tabs */
.product-details-tabs {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #ecf0f1;
}

.tabs-navigation {
    display: flex;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-right: 10px;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-btn:hover {
    color: #3498db;
}

.tabs-content {
    min-height: 300px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.tab-content h4 {
    color: #34495e;
    margin: 25px 0 15px 0;
    font-size: 16px;
}

.description-content,
.features-content,
.application-content,
.usage-content,
.installation-content,
.maintenance-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specifications-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.spec-label {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
    width: 30%;
}

.spec-value {
    color: #555;
}

.specifications-table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Category Header Styles */
.category-header {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #ecf0f1;
}

.category-info h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 15px;
}

.category-description {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-stats {
    color: #95a5a6;
    font-size: 14px;
}

.product-count {
    background: #ecf0f1;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

/* Sub Categories Styles */
.sub-categories {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #ecf0f1;
}

.sub-categories h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.sub-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sub-category-card {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sub-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.sub-category-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sub-category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.sub-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sub-category-card:hover .sub-category-image img {
    transform: scale(1.05);
}

.sub-category-card h3 {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
    border-top: 1px solid #ecf0f1;
}

.sub-category-card:hover h3 {
    color: #3498db;
}

/* Category Products Section */
.category-products {
    background: #f8f9fa;
    padding: 40px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.products-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0;
}

.results-info {
    color: #7f8c8d;
    font-size: 14px;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-products-content i {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-products-content h3 {
    color: #7f8c8d;
    font-size: 20px;
    margin-bottom: 10px;
}

.no-products-content p {
    color: #95a5a6;
    margin-bottom: 30px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: #fff;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #3498db;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: #3498db;
    color: #fff;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    color: #7f8c8d;
    text-decoration: none;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.pagination-number.active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #bdc3c7;
    font-size: 14px;
} 