*{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;font-size:14px;color:#333;background:#f5f5f5;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:#333}
a:hover{color:#e4393c}
img{max-width:100%;border:0}
input,select,textarea,button{font-family:inherit;font-size:14px;outline:none}
ul,ol{list-style:none}
.container{width:1200px;max-width:100%;margin:0 auto;padding:0 15px}
.required{color:#e4393c}

/* Header */
.header{background:#fff;border-bottom:1px solid #eee}
.header-top{background:#f7f7f7;border-bottom:1px solid #eee;font-size:12px;color:#999;height:32px;line-height:32px}
.header-top .container{display:flex;justify-content:space-between}
.header-top a{color:#666;margin-left:12px;font-size:12px}
.header-top a:hover{color:#e4393c}
.header-main{padding:20px 0}
.header-main .container{display:flex;align-items:center}
.logo a{font-size:26px;font-weight:700;color:#e4393c;letter-spacing:2px;white-space:nowrap;margin-right:60px}
.search-bar{flex:1;max-width:540px}
.search-bar form{display:flex;border:2px solid #e4393c;border-radius:0}
.search-bar input[type="text"]{flex:1;height:38px;padding:0 12px;border:0;font-size:13px;background:#fff}
.search-bar button{width:80px;height:38px;background:#e4393c;color:#fff;border:0;cursor:pointer;font-size:14px}
.search-bar button:hover{background:#c9222b}
.hot-words{margin-top:8px;font-size:12px;color:#999}
.hot-words a{color:#666;margin:0 8px 0 0;font-size:12px}
.hot-words a:hover{color:#e4393c}

.nav-bar{background:#fff;border-bottom:2px solid #e4393c}
.nav-bar .container{display:flex;height:40px;align-items:center;overflow-x:auto}
.nav-item{padding:0 18px;height:40px;line-height:40px;font-size:14px;color:#333;white-space:nowrap}
.nav-item:hover,.nav-item.active{background:#e4393c;color:#fff}

/* Banner */
.banner{background:linear-gradient(135deg,#ffeef0 0%,#fff5f5 50%,#fff 100%);padding:50px 0}
.banner-content{text-align:center}
.banner-content h2{font-size:32px;color:#333;font-weight:600;margin-bottom:12px}
.banner-content p{font-size:16px;color:#777}

/* Search Result */
.search-result-bar{padding:16px 0 8px;font-size:14px;color:#666}
.search-result-bar em{color:#e4393c;font-style:normal;font-weight:600}

/* Product Grid */
.product-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;padding:20px 0}
.product-card{background:#fff;border-radius:2px;overflow:hidden;transition:box-shadow .2s}
.product-card:hover{box-shadow:0 2px 12px rgba(0,0,0,.1)}
.product-card a{display:block;color:#333}
.product-img{width:100%;aspect-ratio:1;overflow:hidden;background:#f8f8f8}
.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.product-card:hover .product-img img{transform:scale(1.03)}
.product-info{padding:10px 12px 14px}
.product-title{font-size:13px;line-height:1.5;height:40px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333;margin-bottom:8px}
.product-price-row{margin-bottom:6px}
.product-price{font-size:18px;font-weight:700;color:#e4393c}
.product-price-original{font-size:12px;color:#bbb;text-decoration:line-through;margin-left:6px}
.product-meta{font-size:12px;color:#999;display:flex;justify-content:space-between}
.product-sales{color:#999}
.product-shop{max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Pagination */
.pagination{text-align:center;padding:30px 0 40px;display:flex;justify-content:center;gap:4px;flex-wrap:wrap}
.pagination a{display:inline-block;min-width:36px;height:36px;line-height:36px;padding:0 10px;border:1px solid #ddd;color:#333;font-size:13px;background:#fff}
.pagination a:hover{border-color:#e4393c;color:#e4393c}
.pagination a.active{background:#e4393c;border-color:#e4393c;color:#fff}
.page-dot{line-height:36px;padding:0 6px;color:#999}

/* Breadcrumb */
.breadcrumb{padding:14px 0;font-size:13px;color:#999}
.breadcrumb a{color:#666}
.breadcrumb a:hover{color:#e4393c}
.breadcrumb span{margin:0 4px;color:#ccc}
.breadcrumb .current{color:#333}

/* Detail Page */
.detail-wrap{display:flex;gap:30px;background:#fff;padding:25px;margin-bottom:20px}
.detail-left{width:400px;flex-shrink:0}
.detail-img-main{width:400px;height:400px;border:1px solid #eee;overflow:hidden;background:#fafafa}
.detail-img-main img{width:100%;height:100%;object-fit:contain}
.detail-right{flex:1;padding-top:5px}
.detail-title{font-size:18px;font-weight:600;line-height:1.6;color:#333;margin-bottom:6px}
.detail-subtitle{font-size:12px;color:#999;margin-bottom:16px}
.detail-price-box{background:#fafafa;padding:15px 18px;margin-bottom:18px;border-radius:2px}
.detail-price-row{display:flex;align-items:baseline;margin-bottom:10px}
.detail-price-row label{font-size:13px;color:#999;width:50px}
.detail-price{font-size:28px;font-weight:700;color:#e4393c}
.detail-price-original{font-size:14px;color:#bbb;text-decoration:line-through;margin-left:12px}
.detail-sales-row{display:flex;gap:20px;font-size:12px;color:#999}
.detail-sales-row strong{color:#666}
.detail-info-row{display:flex;align-items:center;padding:10px 0;border-bottom:1px solid #f5f5f5;font-size:13px}
.detail-info-row label{color:#999;width:60px;flex-shrink:0}
.qty-box{display:inline-flex;align-items:center;border:1px solid #ddd}
.qty-btn{width:30px;height:30px;border:0;background:#f5f5f5;cursor:pointer;font-size:16px;color:#666}
.qty-btn:hover{background:#eee}
.qty-input{width:50px;height:30px;text-align:center;border:0;border-left:1px solid #ddd;border-right:1px solid #ddd}
.qty-input::-webkit-inner-spin-button{display:none}
.stock-info{font-size:12px;color:#999;margin-left:12px}
.detail-actions{margin-top:25px;display:flex;gap:15px}
.btn-buy{display:inline-block;width:160px;height:46px;line-height:46px;text-align:center;background:#e4393c;color:#fff;font-size:16px;border-radius:2px}
.btn-buy:hover{background:#c9222b;color:#fff}
.btn-cart{display:inline-block;width:160px;height:46px;line-height:46px;text-align:center;border:1px solid #e4393c;color:#e4393c;font-size:16px;border-radius:2px;background:#fff}
.btn-cart:hover{background:#fff5f5;color:#e4393c}

.detail-content-wrap{display:flex;gap:20px;margin-bottom:40px}
.detail-content-main{flex:1;background:#fff}
.detail-tabs{display:flex;border-bottom:2px solid #e4393c;height:42px}
.tab-item{padding:0 24px;height:42px;line-height:42px;cursor:pointer;font-size:14px;color:#666;background:#f5f5f5;border:1px solid #eee;border-bottom:0;margin-right:-1px}
.tab-item.active{background:#e4393c;color:#fff;border-color:#e4393c}
.detail-desc{padding:20px}
.spec-table{width:100%;border-collapse:collapse;margin-bottom:20px}
.spec-table td{padding:10px 15px;border:1px solid #eee;font-size:13px}
.spec-table td:first-child{width:120px;background:#fafafa;color:#999;font-weight:normal}
.detail-img-list{text-align:center}
.detail-img-list img{max-width:600px;margin:10px auto}
.detail-sidebar{width:220px;flex-shrink:0}
.detail-sidebar h3{font-size:14px;color:#333;padding:12px 0;border-bottom:2px solid #e4393c;margin-bottom:10px}
.rec-item{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #f5f5f5}
.rec-item img{width:60px;height:60px;object-fit:cover;flex-shrink:0;background:#f8f8f8}
.rec-info{flex:1;overflow:hidden}
.rec-title{font-size:12px;color:#333;line-height:1.4;height:34px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:4px}
.rec-price{font-size:14px;color:#e4393c;font-weight:700}

/* Order Page */
.order-page{margin-bottom:40px}
.order-page-title{font-size:20px;font-weight:600;color:#333;padding:20px 0 16px;border-bottom:2px solid #e4393c;margin-bottom:20px}
.order-section{background:#fff;padding:20px 24px;margin-bottom:16px;border-radius:2px}
.order-section h3{font-size:15px;color:#333;font-weight:600;margin-bottom:18px;padding-bottom:10px;border-bottom:1px solid #eee}
.address-form{max-width:700px}
.form-row{display:flex;gap:20px;margin-bottom:16px}
.form-group{flex:1}
.form-group.full{flex:1 0 100%}
.form-group label{display:block;font-size:13px;color:#666;margin-bottom:6px}
.form-group input,.form-group select,.form-group textarea{width:100%;height:38px;padding:0 12px;border:1px solid #ddd;border-radius:2px;background:#fff;color:#333}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#e4393c}
.form-group textarea{height:auto;padding:10px 12px;resize:vertical}
.region-select{display:flex;gap:10px}
.region-select select{flex:1;height:38px;padding:0 8px;border:1px solid #ddd;border-radius:2px;color:#333;background:#fff}

.order-goods-table{width:100%;border-collapse:collapse}
.order-goods-table th{background:#fafafa;padding:10px 12px;font-size:13px;color:#999;font-weight:normal;text-align:center;border-bottom:1px solid #eee}
.order-goods-table th.col-goods{text-align:left;width:50%}
.order-goods-table td{padding:16px 12px;text-align:center;border-bottom:1px solid #f5f5f5;font-size:13px}
.order-goods-table td.col-goods{text-align:left}
.total-cell{color:#e4393c;font-weight:700;font-size:16px}
.goods-cell{display:flex;gap:12px;align-items:center}
.goods-cell img{width:80px;height:80px;object-fit:cover;flex-shrink:0;border:1px solid #eee}
.goods-cell-info{flex:1}
.goods-cell-title{font-size:13px;color:#333;line-height:1.5;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.goods-cell-shop{font-size:12px;color:#999}

.pay-methods{display:flex;gap:12px;flex-wrap:wrap}
.pay-method-item{cursor:pointer;display:block}
.pay-method-item input{display:none}
.pay-method-inner{display:flex;align-items:center;gap:8px;padding:12px 24px;border:1px solid #ddd;border-radius:2px;background:#fff;transition:border-color .2s}
.pay-method-inner img{width:24px;height:24px}
.pay-method-inner span{font-size:14px;color:#333}
.pay-method-item.selected .pay-method-inner{border-color:#e4393c;background:#fff5f5}
.pay-method-item:hover .pay-method-inner{border-color:#e4393c}

.order-submit-bar{background:#fff;padding:18px 24px;border-radius:2px;display:flex;align-items:center;justify-content:flex-end;gap:20px}
.order-total-info{font-size:14px;color:#333}
.order-total-info strong{color:#e4393c}
.order-total-price{font-size:24px;font-weight:700;color:#e4393c}
.order-shipping{font-size:12px;color:#999;margin-left:4px}
.btn-submit-order{width:180px;height:48px;background:#e4393c;color:#fff;border:0;font-size:16px;cursor:pointer;border-radius:2px}
.btn-submit-order:hover{background:#c9222b}
.btn-submit-order:disabled{background:#ccc;cursor:not-allowed}

/* Pay Result */
.pay-result-page{text-align:center;background:#fff;padding:60px 20px 80px;margin:30px 0}
.pay-result-icon{width:70px;height:70px;border-radius:50%;line-height:70px;font-size:36px;margin:0 auto 20px}
.pay-result-icon.success{background:#f0fff0;color:#52c41a;border:2px solid #b7eb8f}
.pay-result-page h2{font-size:22px;color:#333;margin-bottom:12px}
.pay-result-page p{font-size:14px;color:#999;margin-bottom:6px}
.pay-result-actions{margin-top:30px;display:flex;gap:15px;justify-content:center}
.btn-back,.btn-order-detail{display:inline-block;width:140px;height:40px;line-height:40px;text-align:center;font-size:14px;border-radius:2px}
.btn-back{background:#e4393c;color:#fff}
.btn-back:hover{background:#c9222b;color:#fff}
.btn-order-detail{border:1px solid #ddd;color:#333}
.btn-order-detail:hover{border-color:#e4393c;color:#e4393c}

/* Footer */
.footer{margin-top:0}
.footer-service{background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:25px 0}
.footer-service .container{display:flex;justify-content:space-around}
.service-item{display:flex;align-items:center;gap:10px}
.service-icon{width:40px;height:40px;background:#fafafa;border-radius:50%;text-align:center;line-height:40px;font-size:18px;color:#e4393c}
.service-title{font-size:14px;color:#333;font-weight:600;margin-bottom:2px}
.service-text p{font-size:12px;color:#999}
.footer-main{background:#333;padding:35px 0 0}
.footer-main .container{display:flex;justify-content:space-between;padding-bottom:25px}
.footer-col h4{font-size:14px;color:#fff;margin-bottom:12px;font-weight:normal}
.footer-col a{display:block;font-size:12px;color:#999;line-height:2;padding:0}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid #444;padding:15px 0;text-align:center}
.footer-bottom p{font-size:12px;color:#777}

/* SKU Options */
.sku-options{display:flex;flex-wrap:wrap;gap:8px}
.sku-tag{display:inline-block;padding:5px 14px;border:1px solid #ddd;border-radius:2px;font-size:13px;cursor:pointer;background:#fff;color:#333;transition:all .15s}
.sku-tag:hover{border-color:#e4393c;color:#e4393c}
.sku-tag.selected{border-color:#e4393c;color:#e4393c;background:#fff5f5}
.detail-thumbs{display:flex;gap:8px;margin-top:10px}
.thumb{width:60px;height:60px;object-fit:cover;border:2px solid transparent;cursor:pointer;opacity:.7;transition:all .15s}
.thumb:hover,.thumb.active{border-color:#e4393c;opacity:1}
.detail-shop-bar{margin-top:18px;padding:12px 0;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:12px;font-size:13px}
.shop-name{font-weight:600;color:#333}
.shop-years{background:#fff7e6;color:#fa8c16;padding:2px 8px;border-radius:2px;font-size:12px}
.shop-link{margin-left:auto;color:#e4393c;font-size:13px}

/* Review */
.review-list{padding:10px 0}
.review-item{padding:16px 0;border-bottom:1px solid #f5f5f5}
.review-user{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.review-name{font-size:13px;color:#333}
.review-date{font-size:12px;color:#bbb}
.review-stars{color:#fa8c16;font-size:13px;margin-bottom:6px}
.review-text{font-size:13px;color:#666;line-height:1.6}

/* Service Content */
.service-content{padding:15px 0}
.service-content h4{font-size:14px;color:#333;margin:16px 0 8px;font-weight:600}
.service-content h4:first-child{margin-top:0}
.service-content p{font-size:13px;color:#666;line-height:1.8}

/* Tab Content */
.tab-content{min-height:200px}

/* Responsive */
@media(max-width:1230px){
  .container{width:100%}
}
@media(max-width:768px){
  .header-top{display:none}
  .header-main .container{flex-direction:column;gap:10px}
  .logo a{font-size:22px;margin-right:0}
  .search-bar{max-width:100%;width:100%}
  .nav-bar .container{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .nav-item{padding:0 12px;font-size:13px}
  .banner{padding:30px 0}
  .banner-content h2{font-size:22px}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:8px;padding:12px 0}
  .product-info{padding:8px 10px 10px}
  .product-price{font-size:16px}
  .detail-wrap{flex-direction:column;padding:15px}
  .detail-left{width:100%}
  .detail-img-main{width:100%;height:auto;aspect-ratio:1}
  .detail-right{padding-top:15px}
  .detail-price{font-size:22px}
  .detail-actions{flex-direction:column;gap:10px}
  .btn-buy,.btn-cart{width:100%}
  .detail-content-wrap{flex-direction:column}
  .detail-sidebar{width:100%;display:flex;gap:10px;overflow-x:auto;padding-bottom:10px}
  .detail-sidebar h3{display:none}
  .rec-item{flex-direction:column;min-width:120px;border:1px solid #eee;padding:8px;border-radius:2px}
  .rec-item img{width:100%;height:auto;aspect-ratio:1}
  .form-row{flex-direction:column;gap:12px}
  .region-select{flex-direction:column}
  .order-submit-bar{flex-direction:column;text-align:center;gap:12px}
  .btn-submit-order{width:100%}
  .pay-methods{flex-direction:column}
  .order-goods-table th:not(.col-goods),.order-goods-table td:not(.col-goods):not(.total-cell){display:none}
  .footer-service .container{flex-direction:column;gap:15px;align-items:flex-start;padding:0 20px}
  .footer-main .container{flex-direction:column;gap:20px;padding:0 20px 25px}
}
