* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #ffd54f;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: rgba(255,255,255,0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 42px;
    color: #1a237e;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    color: #555;
}

/* 产品区域 */
.products-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd54f;
    margin: 15px auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-info .desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #e53935;
    font-size: 22px;
    font-weight: bold;
}

.price::before {
    content: '¥';
    font-size: 14px;
}

.original-price {
    color: #bbb;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 8px;
}

.buy-btn {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: #283593;
}

/* 详情页 */
.detail-section {
    padding: 50px 0;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-image {
    border-radius: 8px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: auto;
}

.detail-info h2 {
    font-size: 28px;
    color: #1a237e;
    margin-bottom: 15px;
}

.detail-info .price {
    font-size: 32px;
    margin: 15px 0;
}

.detail-info .desc {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.detail-specs {
    margin: 20px 0;
}

.detail-specs h4 {
    color: #1a237e;
    margin-bottom: 10px;
}

.detail-specs ul {
    list-style: none;
}

.detail-specs ul li {
    padding: 6px 0;
    color: #555;
    border-bottom: 1px dashed #eee;
}

.detail-specs ul li::before {
    content: '✓ ';
    color: #43a047;
}

.detail-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #c62828;
}

.btn-secondary {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #283593;
}

/* 下单页面 */
.order-section {
    padding: 50px 0;
}

.order-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.order-product {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.order-product img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.order-product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.order-product-info .price {
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a237e;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.order-total {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 25px 0;
}

.order-total .row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.order-total .total {
    font-size: 20px;
    font-weight: bold;
    color: #e53935;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 8px;
}

.submit-order-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-order-btn:hover {
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background: #1a237e;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffd54f;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section p i {
    margin-right: 8px;
    color: #ffd54f;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 13px;
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
    color: #888;
}

.breadcrumb a {
    color: #1a237e;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 返回按钮 */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #1a237e;
    text-decoration: none;
    font-size: 14px;
}

.back-btn:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        gap: 10px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .detail-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }
}
