* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航 - 珊瑚红渐变 */
.header {
    background: linear-gradient(135deg, #d6336c, #c2255c);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(214,51,108,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: bold; letter-spacing: 2px; }
.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.2); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Banner区域 - 柔和珊瑚色 */
.banner {
    background: linear-gradient(135deg, #fff5f5, #ffe3e3);
    padding: 60px 0;
    text-align: center;
}
.banner h1 { font-size: 42px; color: #c2255c; margin-bottom: 15px; }
.banner p { font-size: 18px; color: #888; }

/* 产品区域 */
.products-section { padding: 50px 0; }
.section-title {
    text-align: center; font-size: 32px; color: #333; margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: #d6336c; 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.06); 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(214,51,108,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: #d6336c; 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: linear-gradient(135deg, #d6336c, #c2255c);
    color: #fff; border: none; padding: 8px 20px; border-radius: 20px;
    cursor: pointer; font-size: 14px; transition: opacity 0.3s;
}
.buy-btn:hover { opacity: 0.9; }

/* 详情页 */
.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: #333; 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: #c2255c; 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: #d6336c; }
.detail-actions { margin-top: 30px; display: flex; gap: 15px; }
.btn-primary {
    background: linear-gradient(135deg, #d6336c, #c2255c);
    color: #fff; border: none; padding: 14px 40px; font-size: 16px;
    border-radius: 6px; cursor: pointer; transition: opacity 0.3s;
    text-decoration: none; display: inline-block;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
    background: #333; color: #fff; border: none; padding: 14px 40px;
    font-size: 16px; border-radius: 6px; cursor: pointer;
    text-decoration: none; display: inline-block; transition: opacity 0.3s;
}
.btn-secondary:hover { opacity: 0.9; }

/* 下单页面 */
.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: #d6336c;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.order-total { padding: 20px; background: #fafafa; 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: #d6336c; border-top: 1px solid #eee;
    padding-top: 12px; margin-top: 8px;
}
.submit-order-btn {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #d6336c, #c2255c);
    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: #2d2d2d; 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: #ffd43b; }
.footer-section p { color: #bbb; margin-bottom: 8px; font-size: 14px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #888; font-size: 13px; }

/* 面包屑 */
.breadcrumb { padding: 20px 0; color: #888; }
.breadcrumb a { color: #d6336c; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* 返回按钮 */
.back-btn { display: inline-block; margin-bottom: 20px; color: #d6336c; text-decoration: none; font-size: 14px; }
.back-btn:hover { text-decoration: underline; }

/* 顶部公告栏 */
.top-bar {
    background: linear-gradient(90deg, #d6336c, #c2255c);
    color: #fff; font-size: 13px; padding: 8px 0; text-align: center;
}
.announcement span { letter-spacing: 1px; }

.header .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header-contact .hotline { font-size: 14px; background: rgba(255,255,255,0.15); padding: 8px 16px; border-radius: 20px; }

/* Banner */
.banner-left { text-align: left; max-width: 900px; margin: 0 auto; }
.banner-left h1 { font-size: 42px; color: #c2255c; margin-bottom: 10px; }
.banner-left .banner-sub { font-size: 18px; color: #888; margin-bottom: 20px; }
.banner-story { font-size: 15px; color: #666; line-height: 1.9; margin-bottom: 30px; }
.banner-stats { display: flex; gap: 40px; justify-content: flex-start; }
.banner-stats .stat-item { text-align: center; }
.banner-stats strong { display: block; font-size: 28px; color: #d6336c; }
.banner-stats span { font-size: 13px; color: #888; }

/* 分类导航 */
.category-nav { background: #fff; padding: 30px 0; border-bottom: 1px solid #eee; }
.category-nav h3 { font-size: 18px; color: #333; margin-bottom: 20px; }
.category-list { display: flex; gap: 15px; flex-wrap: wrap; }
.cat-tag {
    padding: 10px 20px; background: #f8f8f8; border: 1px solid #eee;
    border-radius: 24px; text-decoration: none; color: #555; font-size: 14px;
    transition: all 0.3s;
}
.cat-tag:hover { background: #d6336c; color: #fff; border-color: #d6336c; }

.section-sub { text-align: center; color: #888; margin-top: -30px; margin-bottom: 40px; font-size: 14px; }

.product-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999; margin-top: 12px; }

/* 客户评价 */
.review-section { padding: 60px 0; background: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.review-card {
    background: #fff5f5; border-radius: 12px; padding: 25px;
    border: 1px solid #ffe3e3;
}
.review-stars { font-size: 16px; margin-bottom: 10px; }
.review-card p { color: #555; line-height: 1.7; font-size: 14px; margin-bottom: 15px; }
.reviewer { color: #d6336c; font-size: 13px; font-weight: 500; }

/* 服务保障 */
.service-section { padding: 60px 0; background: #fafafa; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.service-card {
    background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.service-icon { font-size: 36px; margin-bottom: 15px; }
.service-card h4 { color: #333; margin-bottom: 8px; font-size: 16px; }
.service-card p { color: #888; font-size: 13px; }

/* 关于我们 + 资质 */
.about-section { padding: 60px 0; background: #fff; }
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.about-text h3 { color: #c2255c; margin: 25px 0 12px; font-size: 18px; border-left: 3px solid #d6336c; padding-left: 12px; }
.about-text h3:first-child { margin-top: 0; }
.about-text p { color: #555; line-height: 2; font-size: 14px; margin-bottom: 12px; }
.about-list { list-style: none; padding-left: 0; }
.about-list li { padding: 8px 0; color: #555; border-bottom: 1px dashed #eee; font-size: 14px; }
.about-list li strong { color: #c2255c; margin-right: 10px; }

.about-qualifications {
    background: #f8f8f8; border-radius: 12px; padding: 30px; height: fit-content;
}
.about-qualifications h3 { color: #333; margin-bottom: 20px; font-size: 18px; text-align: center; }
.qual-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.qual-item:last-child { border-bottom: none; }
.qual-label { color: #999; font-size: 13px; }
.qual-value { color: #333; font-size: 13px; font-weight: 500; max-width: 60%; text-align: right; word-break: break-all; }

/* 支付图标 */
.payment-icons { margin-top: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-icons span { color: #bbb; font-size: 13px; }
.pay-alipay {
    background: #1677FF; color: #fff !important; padding: 4px 10px;
    border-radius: 4px; font-size: 12px; font-weight: 500;
}
.pay-wechat {
    background: #07C160; color: #fff !important; padding: 4px 10px;
    border-radius: 4px; font-size: 12px; font-weight: 500;
}

.footer-content { display: grid; grid-template-columns: 1.5fr 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }

/* 法律条款页 */
.legal-section { padding: 50px 0; }
.legal-wrapper {
    max-width: 900px; margin: 0 auto; background: #fff; padding: 50px;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.legal-wrapper h1 { color: #333; margin-bottom: 30px; font-size: 24px; padding-bottom: 15px; border-bottom: 2px solid #d6336c; }
.legal-wrapper h2 { color: #c2255c; margin: 30px 0 15px; font-size: 18px; }
.legal-wrapper p, .legal-wrapper li { color: #555; line-height: 2; font-size: 14px; }
.legal-wrapper ul { padding-left: 20px; }
.legal-wrapper .update-time { color: #999; font-size: 13px; margin-bottom: 30px; }

/* 规格选项 */
.option-group { margin: 20px 0; }
.option-group label { display: block; margin-bottom: 10px; font-weight: 500; color: #444; }
.option-group label span { color: #d6336c; margin-left: 5px; }
.opt-item {
    display: inline-block; padding: 8px 18px; margin: 4px;
    border: 1px solid #ddd; border-radius: 4px; cursor: pointer;
    font-size: 13px; color: #555; transition: all 0.2s;
}
.opt-item:hover { border-color: #d6336c; color: #d6336c; }
.opt-item.active { border-color: #d6336c; background: #d6336c; color: #fff; }

.qty-group { display: flex; align-items: center; gap: 15px; margin: 20px 0; }
.qty-group label { font-weight: 500; color: #444; }
.qty-group input { width: 70px; padding: 8px; border: 1px solid #ddd; border-radius: 4px; text-align: center; }

.product-stats { display: flex; gap: 20px; margin: 12px 0; font-size: 13px; color: #888; }
.product-stats span { padding: 2px 8px; background: #fff5f5; border-radius: 4px; }

.detail-tabs { margin-top: 30px; }
.tab-nav { display: flex; border-bottom: 2px solid #eee; }
.tab-nav button {
    padding: 12px 24px; border: none; background: none; cursor: pointer;
    font-size: 15px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab-nav button.active { color: #d6336c; border-bottom-color: #d6336c; font-weight: 500; }
.tab-content { padding: 30px 0; color: #555; line-height: 2; font-size: 14px; }
.tab-content .review-card { margin-bottom: 20px; }

.detail-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 25px; }
.detail-service-item { text-align: center; padding: 15px; background: #fff5f5; border-radius: 8px; }
.detail-service-item .icon { font-size: 24px; margin-bottom: 5px; }
.detail-service-item span { font-size: 12px; color: #666; }

/* 购物车角标 */
.header-tools { display: flex; align-items: center; gap: 20px; }
.header-cart { position: relative; color: #fff; text-decoration: none; font-size: 15px; }
.cart-badge {
    position: absolute; top: -8px; right: -12px;
    background: #fff; color: #d6336c; font-size: 11px; font-weight: bold;
    width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* 悬浮客服组件 */
.floating-service { position: fixed; right: 20px; bottom: 80px; z-index: 999; }
.floating-service button {
    display: block; width: 52px; height: 52px; margin-bottom: 10px;
    border-radius: 50%; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s;
    font-size: 22px;
}
.floating-service button:hover { transform: scale(1.1); }
.fs-cart { background: #d6336c; color: #fff; position: relative; }
.fs-cart .cart-badge {
    position: absolute; top: -5px; right: -5px; background: #fff; color: #d6336c;
    font-size: 11px; font-weight: bold; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.fs-service { background: #4caf50; color: #fff; }
.fs-back { background: #666; color: #fff; }

/* 购物车页面 */
.cart-section { padding: 50px 0; }
.cart-wrapper {
    max-width: 900px; margin: 0 auto; background: #fff; padding: 40px;
    border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cart-item {
    display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid #eee;
}
.cart-item img { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.cart-item-actions button {
    width: 30px; height: 30px; border: 1px solid #ddd; border-radius: 4px;
    background: #fff; cursor: pointer; font-size: 16px;
}
.cart-summary {
    margin-top: 30px; padding: 25px; background: #fafafa; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
}

/* 支付方式选择 */
.pay-option {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 20px; margin: 8px; border: 1px solid #ddd; border-radius: 8px;
    cursor: pointer; transition: all 0.2s; font-size: 14px;
}
.pay-option.active { border-color: #d6336c; background: #fff5f5; }
.pay-option .pay-alipay-label { background: #1677FF; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.pay-option .pay-wechat-label { background: #07C160; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; }

/* 分类筛选 */
.cat-link {
    display: inline-block; padding: 8px 20px; margin: 4px;
    border: 1px solid #ddd; border-radius: 20px; text-decoration: none;
    color: #555; font-size: 13px; transition: all 0.2s;
}
.cat-link.active, .cat-link:hover { background: #d6336c; color: #fff; border-color: #d6336c; }

/* 响应式 */
@media (max-width: 768px) {
    .top-bar { font-size: 11px; padding: 6px 0; }
    .header .container { flex-direction: column; gap: 15px; }
    .header-contact { display: none; }
    .nav ul { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .banner-left h1 { font-size: 28px; }
    .banner-stats { gap: 20px; flex-wrap: wrap; }
    .banner-stats strong { font-size: 22px; }
    .about-content { grid-template-columns: 1fr; }
    .detail-wrapper { grid-template-columns: 1fr; padding: 20px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .product-image { height: 220px; }
    .legal-wrapper { padding: 25px; }
}
