/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #0275d8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0275d8;
    color: white;
}

.btn-primary:hover {
    background-color: #025aa5;
}

.btn-secondary {
    background-color: #5cb85c;
    color: white;
}

.btn-secondary:hover {
    background-color: #449d44;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #0275d8;
    color: #0275d8;
}

.btn-outline:hover {
    background-color: #0275d8;
    color: white;
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-size: 2rem;
    color: #333;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #0275d8;
    margin: 10px auto;
}

/* 头部导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo a {
    text-decoration: none;
    color: #333;
}

.header__logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header__nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav li {
    margin: 0 15px;
}

.header__nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.header__nav a:hover,
.header__nav a.active {
    color: #007bff;
}

.header__nav a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
}

.header__actions {
    display: flex;
    align-items: center;
}

.language-selector {
    margin-right: 20px;
}

#language-select {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.user-menu a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.user-menu a:hover {
    color: #007bff;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer a {
    color: #ddd;
}

.footer a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .header__logo {
        margin-bottom: 15px;
    }
    
    .header__nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header__actions {
        margin-top: 15px;
    }
} 
/* 产品卡片样式优化 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.product-card__image {
    height: 320px; /* 再次增加高度以确保图片完全显示 */
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.product-card__image a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    display: block;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__content {
    padding: 18px 15px;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 10px;
}

.product-title h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 0;
    min-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.product-title h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title h3 a:hover {
    color: #0056b3;
}

.product-model {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.model-prefix {
    color: #888;
}

.model-divider {
    margin: 0 8px;
    color: #ddd;
}

.min-qty {
    color: #555;
}

.product-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-weight: 600;
    color: #e74c3c;
    font-size: 18px;
}

.price-actions {
    display: flex;
    gap: 10px;
}

.price-actions a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: all 0.2s;
}

.price-actions a:hover {
    background-color: #e0e0e0;
}

.price-actions img {
    width: 16px;
    height: 16px;
}

.product-card .btn-secondary {
    margin-top: auto;
    width: 100%;
    padding: 8px 15px;
    font-weight: 500;
    text-transform: none;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.product-card .btn-secondary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
/* 页脚区域 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__company h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer__company p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer__links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #0275d8;
}

.footer__links-column ul li {
    margin-bottom: 10px;
}

.footer__links-column ul li a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__links-column ul li a:hover {
    opacity: 1;
}

.footer__contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #0275d8;
}

.footer__contact p {
    margin-bottom: 10px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .header__logo {
        margin-bottom: 15px;
    }

    .header__nav {
        margin-bottom: 15px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header__nav ul {
        flex-direction: column;
        text-align: center;
    }

    .header__nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .header__actions {
        flex-direction: column;
    }

    .language-selector,
    .cart {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .newsletter__form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .newsletter__form button {
        border-radius: 4px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__bottom p {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .product-grid,
    .category-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}