/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0071e3;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #0077ed;
}

/* 产品区域样式 */
.featured-products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 1rem;
}

.add-to-cart {
    background: #0071e3;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background: #0077ed;
}

/* 页脚样式 */
footer {
    background: #f5f5f7;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #0071e3;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

/* 产品页面样式 */
.products-page {
    padding: 120px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.products-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.filter-section {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f5f5f7;
}

.page-btn.active {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

/* 购物车页面样式 */
.cart-page {
    padding: 120px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.item-details h3 {
    margin-bottom: 0.5rem;
}

.item-details p {
    color: #666;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f5f5f7;
    border-color: #0071e3;
}

.quantity-input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    border-color: #0071e3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.item-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0071e3;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.remove-item:hover {
    color: #ff3b30;
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
    position: relative;
}

.summary-item.total {
    font-weight: 600;
    color: #333;
    font-size: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background: #0077ed;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item img {
        margin: 0 auto;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}

/* 联系我们页面样式 */
.contact-page {
    padding: 120px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #0077ed;
}

.map-section {
    margin-top: 4rem;
}

.map-section h2 {
    margin-bottom: 2rem;
}

.map-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    border-radius: 10px;
    color: #666;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}

/* 支付页面样式 */
.payment-page {
    padding: 120px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.order-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-summary h2 {
    margin-bottom: 2rem;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.item-info h3 {
    margin-bottom: 0.5rem;
}

.item-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.item-price {
    color: #0071e3;
    font-weight: 600;
}

.order-total {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #666;
}

.total-item.final {
    font-weight: 600;
    color: #333;
    font-size: 1.25rem;
}

.payment-methods {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.payment-methods h2 {
    margin-bottom: 2rem;
}

.payment-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    flex: 1;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + label {
    border-color: #0071e3;
    background: #f5f5f7;
}

.payment-option img {
    width: 40px;
    height: 40px;
}

.payment-form {
    margin-bottom: 2rem;
}

.payment-form .form-group {
    margin-bottom: 1.5rem;
}

.payment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.payment-form input,
.payment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.payment-form textarea {
    resize: vertical;
}

.pay-btn {
    width: 100%;
    padding: 1rem;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pay-btn:hover {
    background: #0077ed;
}

@media (max-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr;
    }
}

/* 购物车动画效果 */
.empty-cart {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 运费提示样式 */
.shipping-info {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
} 