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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 通用按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

/* 区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.title-line {
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.nav a:hover {
    color: #667eea;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.banner .btn-primary {
    background: #fff;
    color: #667eea;
    font-weight: 600;
}

/* 特色优势 */
.advantages {
    padding: 80px 0;
    background: #fff;
}

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

.advantage-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 12px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.advantage-card:hover {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: #fff;
}

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

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #222;
}

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

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* 商品展示 */
.products {
    padding: 80px 0;
    background: #f9f9f9;
}

.product-category-section {
    margin-bottom: 50px;
}

.product-category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.category-header h3 {
    font-size: 24px;
    color: #222;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.category-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.category-count {
    font-size: 14px;
    color: #999;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
}

.product-price .currency {
    font-size: 16px;
    margin-right: 2px;
}

.product-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.product-btn:hover {
    transform: scale(1.05);
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #fff;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-text h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}

.contact-text p,
.contact-text a {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #667eea;
}

.contact-form {
    background: #f9f9f9;
    padding: 35px;
    border-radius: 12px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #222;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
    resize: vertical;
}

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

.contact-form .btn {
    width: 100%;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 0;
}

.footer-content {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-info p {
    color: #bdc3c7;
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 14px;
}

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

.footer-info a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 14px;
}

.footer-bottom a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #667eea;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* 商品详情页 */
.product-detail-section {
    padding: 60px 0;
    background: #fff;
}

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

.product-detail-image {
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-detail-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 32px;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-category {
    display: inline-block;
    font-size: 14px;
    padding: 6px 15px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 6px;
    margin-bottom: 25px;
}

.product-detail-price {
    background: linear-gradient(135deg, #fef5f5 0%, #fef0f0 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.price-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.price-current {
    font-size: 42px;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
}

.price-current .currency {
    font-size: 24px;
    margin-right: 4px;
}

.price-original {
    font-size: 18px;
    color: #bbb;
    text-decoration: line-through;
    margin-top: 8px;
}

.product-detail-desc h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.product-detail-desc p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-detail-specs {
    margin-bottom: 30px;
}

.product-detail-specs h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

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

.spec-list li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    font-size: 15px;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-label {
    width: 100px;
    color: #888;
    flex-shrink: 0;
}

.spec-value {
    color: #333;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 16px 30px;
    font-size: 17px;
}

.btn-cart {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* 相关商品推荐 */
.related-products {
    padding: 60px 0 80px;
    background: #f9f9f9;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-content,
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .product-detail-image img {
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .nav ul li {
        padding: 12px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .banner {
        padding: 80px 0;
    }

    .banner h2 {
        font-size: 32px;
    }

    .banner p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .about,
    .products,
    .contact,
    .product-detail-section,
    .related-products {
        padding: 50px 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }

    .product-detail-image img {
        height: 300px;
    }

    .product-detail-info h1 {
        font-size: 24px;
    }

    .price-current {
        font-size: 32px;
    }

    .contact-form {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .banner h2 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .products-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    .footer-info h3 {
        font-size: 18px;
    }
}
