/* 寰旭贸易网站样式 */

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

body {
    font-family: 'Microsoft YaHei', 'SimSun', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 导航栏 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    width: 650px;
    min-width: 300px;
    max-width: 650px;
}

.nav-logo img {
    width: 110px;
    float: left;
}

.nav-logo h2 {
    color: #2563eb;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.nav-item {
    list-style: none;
}

/* 语言切换按钮 */
.language-toggle {
    margin-left: 20px;
}

.lang-switch {
    position: relative;
    display: flex;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 25px;
    padding: 4px;
    cursor: pointer;
    width: 80px;
    height: 36px;
    transition: all 0.3s ease;
}

.lang-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: color 0.3s ease;
    z-index: 3;
    position: relative;
    cursor: pointer;
    pointer-events: all;
}

.lang-option.active {
    color: white;
}

.lang-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    z-index: 1;
    pointer-events: none;
}

.lang-switch.english .lang-slider {
    transform: translateX(100%);
}

.lang-switch:hover {
    background: rgba(37, 99, 235, 0.15);
}

.lang-switch:hover .lang-slider {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 按钮样式 */
.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #2563eb;
    padding: 12px 30px;
    border: 2px solid #2563eb;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* 轮播图 */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    background-color: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    pointer-events: all;
}

.slider-btn:hover {
    background-color: rgba(255,255,255,0.5);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 产品区域 */
.products-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.products-section:nth-child(even) {
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

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

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

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    gap: 10px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-btn {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.quick-view-btn {
    background-color: transparent;
    color: white;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    background-color: white;
    color: #333;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: #333;
    line-height: 1.4;
}


.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2563eb;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #2563eb;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.product-badge.sale {
    background-color: #ff5722;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

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

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

.about-text h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 联系我们区域 */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

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

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #2563eb;
}

.footer-section p {
    line-height: 1.6;
    color: #ccc;
}

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

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

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

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

.social-links {
    display: none;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #1d4ed8;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* 产品列表页样式 */
.products-page {
    padding: 40px 0 80px;
}

.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.category-sidebar {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.category-section,
.filter-section {
    margin-bottom: 30px;
}

.category-section h3,
.filter-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.category-list {
    list-style: none;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.category-link:hover,
.category-link.active {
    background-color: #2563eb;
    color: white;
}

.price-filter,
.brand-filter {
    list-style: none;
}

.price-filter li,
.brand-filter li {
    margin-bottom: 8px;
}

.price-filter a,
.brand-filter a {
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    display: block;
    transition: color 0.3s ease;
}

.price-filter a:hover,
.brand-filter a:hover {
    color: #2563eb;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.results-info {
    color: #666;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    background-color: #f5f5f5;
    color: #2563eb;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background-color: #2563eb;
    color: white;
}

/* 加载和错误状态 */
.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-spinner {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-state i {
    margin-bottom: 1rem;
    color: #ffc107;
}

.error-state button {
    margin-top: 1rem;
}

/* 产品列表视图 */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-list .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.products-list .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.products-list .product-image {
    width: 150px;
    height: 150px;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.products-list .product-info {
    flex: 1;
}

.products-list .product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.products-list .product-category {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.page-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.active,
.page-btn:hover:not(:disabled) {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 产品详情页样式 */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 20px 0;
    margin-top: 80px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.breadcrumb-nav a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb-nav .current {
    color: #333;
    font-weight: 500;
}

.product-detail {
    padding: 40px 0;
}

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

.product-images {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.zoom-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255,255,255,0.8);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background-color: white;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border-color: #2563eb;
}

.product-info-detail {
    padding: 20px 0;
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.new {
    background-color: #4caf50;
    color: white;
}

.badge.popular {
    background-color: #ff9800;
    color: white;
}

.product-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.product-price {
    margin: 20px 0;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #2563eb;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.discount {
    background-color: #ff5722;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #666;
}

.product-options {
    margin: 30px 0;
}

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

.option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option.active {
    border-color: #333;
    transform: scale(1.1);
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option.active,
.size-option:hover {
    border-color: #2563eb;
    background-color: #2563eb;
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background-color: #2563eb;
    color: white;
}

.qty-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
}

.purchase-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.buy-now {
    flex: 1;
}

.btn-wishlist {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background-color: #2563eb;
    color: white;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.feature i {
    color: #2563eb;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.share-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.wechat:hover {
    background-color: #7bb32e;
    color: white;
}

.share-btn.weibo:hover {
    background-color: #e6162d;
    color: white;
}

.share-btn.qq:hover {
    background-color: #12b7f5;
    color: white;
}

/* 标签页 */
.product-tabs {
    padding: 40px 0;
    background-color: #f9f9f9;
}

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

.tab-btn {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-panel {
    display: none;
    background-color: white;
    padding: 40px;
    border-radius: 5px;
}

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

.detail-images img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
}

.detail-text h4 {
    margin: 20px 0 10px;
    color: #333;
}

.detail-text ul li {
    margin-bottom: 5px;
    color: #666;
}

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

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

.specifications-table td:first-child,
.specifications-table th:first-child {
    background-color: #f9f9f9;
    font-weight: 500;
    width: 30%;
}

.size-chart {
    margin-top: 20px;
}

.size-chart th {
    background-color: #2563eb;
    color: white;
}

.reviews-summary {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 30px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2563eb;
}

.rating-distribution {
    flex: 1;
}

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

.bar {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-stars {
    color: #ffc107;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-tags {
    margin-top: 10px;
}

.tag {
    background-color: #2563eb;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.load-more-reviews {
    text-align: center;
    margin-top: 20px;
}

.shipping-section {
    margin-bottom: 30px;
}

.shipping-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #333;
}

.shipping-section ul li {
    margin-bottom: 8px;
    color: #666;
}

.related-products {
    padding: 60px 0;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

/* 关于我们页面样式 */
.company-intro {
    padding: 60px 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.company-stats {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    display: none;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.company-culture {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.culture-item {
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.culture-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.culture-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.culture-item p {
    color: #666;
    line-height: 1.6;
}

.company-timeline {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #2563eb;
    transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    height: 100px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

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

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

.company-advantages {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.advantages-grid {
    display: grid;
    gap: 40px;
}

.advantage-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item:nth-child(even) {
    grid-template-columns: 1fr 300px;
}

.advantage-item:nth-child(even) .advantage-image {
    order: 2;
}

.advantage-item:nth-child(even) .advantage-content {
    order: 1;
}

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

.advantage-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantage-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
}

.advantage-content h3 i {
    color: #2563eb;
    margin-right: 10px;
}

.advantage-content p {
    color: #666;
    line-height: 1.6;
}

.company-honors {
    padding: 80px 0;
}

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

.honor-item {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.honor-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.honor-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.honor-item p {
    color: #666;
}

.company-team {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.team-member {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.member-info {
    padding: 30px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.member-position {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-map {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.map-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #666;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2563eb;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .advantage-item {
        grid-template-columns: 1fr !important;
    }
    
    .advantage-item:nth-child(even) .advantage-image,
    .advantage-item:nth-child(even) .advantage-content {
        order: initial;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: -90px;
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .timeline-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .language-toggle {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        position: static;
        order: 2;
    }
    
    .products-main {
        order: 1;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content,
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .toolbar-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .purchase-buttons {
        flex-direction: column;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 1.2rem;
        position: absolute;
    }
    
    .slider-btn.prev {
        left: 15px;
    }
    
    .slider-btn.next {
        right: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .culture-grid,
    .honors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.culture-item,
.honor-item,
.team-member {
    animation: fadeInUp 0.6s ease forwards;
}

/* 图片预览弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 5px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

#modalImage {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 20px 30px;
    text-align: center;
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}


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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 70vh;
    }
    
    #modalImage {
        height: 400px;
    }
    
    .modal-info {
        padding: 15px 20px;
    }
    
    .modal-info h3 {
        font-size: 1.3rem;
    }
}
