/* 全局样式 */
:root {
    --primary-color: #4a6fff;
    --secondary-color: #6c757d;
    --success-color: #2ecc71;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --danger-color: #e74c3c;
    --body-bg: #ffffff;
    --body-color: #212529;
    --border-color: #e9ecef;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--body-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #1940b0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #1940b0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    padding: 40px 0;
    color: var(--secondary-color);
}

/* 头部样式 */
header {
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    max-height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品网格样式 */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
}

.products h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info-preview {
    padding: 20px;
}

.product-title-preview {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price-preview {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-desc-preview {
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-details {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--light-color);
    border-radius: 20px;
    transition: var(--transition);
}

.view-details:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.about h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-links h3, 
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links ul li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #adb5bd;
}

.footer-contact p i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    padding: 20px 0;
    font-size: 14px;
    color: var(--secondary-color);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 10px;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin-right: 10px;
}

/* 产品详情页样式 */
.product-detail {
    padding: 40px 0 80px;
}

.product-container {
    display: grid;
    grid-template-columns: 10% 45% 40%;
    gap: 20px;
    margin-bottom: 60px;
}

/* 产品图片样式 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

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

/* 产品信息样式 */
.product-info {
    padding-left: 20px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-short-desc {
    margin-bottom: 30px;
    color: var(--secondary-color);
    line-height: 1.8;
}

.payment-form {
    margin-bottom: 30px;
}

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

.email-input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.2);
}

.paypal-button {
    width: 100%;
    padding: 15px;
    background-color: #0070ba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.paypal-button:hover {
    background-color: #005ea6;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.meta-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
}

.meta-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
}

.meta-label i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 产品标签样式 */
.product-tabs {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    color: var(--secondary-color);
    transition: var(--transition);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
    line-height: 1.8;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-gallery {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .main-image {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .product-info {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        padding-left: 0;
        margin-top: 30px;
    }
    
    .thumbnail-container {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
    }
    
    .thumbnail {
        height: 80px;
        width: 80px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        display: none;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .tab {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-image {
        height: 300px;
    }
} 