* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f5f5; color: #333; }
a { text-decoration: none; color: #333; }
ul { list-style: none; }

/* Header */
.header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 70px; }
.logo { font-size: 26px; font-weight: bold; color: #07c160; }
.logo span { color: #ff6b35; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; transition: color .2s; }
.nav a:hover { color: #07c160; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-right .btn-login { padding: 6px 18px; border: 1px solid #07c160; color: #07c160; border-radius: 20px; font-size: 14px; cursor: pointer; background: #fff; transition: all .2s; }
.header-right .btn-login:hover { background: #07c160; color: #fff; }

/* Banner */
.banner { max-width: 1200px; margin: 20px auto; border-radius: 12px; overflow: hidden; height: 340px; background: linear-gradient(135deg, #07c160 0%, #06ad56 100%); display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.banner-text { text-align: center; z-index: 1; }
.banner-text h1 { font-size: 42px; margin-bottom: 16px; }
.banner-text p { font-size: 18px; opacity: .9; }
.banner::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 300px; height: 300px; background: rgba(255,255,255,.08); border-radius: 50%; }
.banner::before { content: ''; position: absolute; left: -30px; top: -30px; width: 200px; height: 200px; background: rgba(255,255,255,.06); border-radius: 50%; }

/* Section */
.section { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.section-title { font-size: 22px; font-weight: bold; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid #07c160; }

/* Category */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-item { background: #fff; border-radius: 12px; padding: 24px 16px; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.category-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.category-icon { font-size: 40px; margin-bottom: 10px; }
.category-name { font-size: 14px; color: #666; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.product-img { width: 100%; height: 200px; background: #e8f5e9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 16px; }
.product-name { font-size: 15px; font-weight: 500; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc { font-size: 12px; color: #999; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.product-price { color: #ff6b35; font-size: 18px; font-weight: bold; }
.product-price small { font-size: 13px; }
.btn-cart { width: 32px; height: 32px; border-radius: 50%; background: #07c160; color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.btn-cart:hover { background: #06ad56; }

/* Footer */
.footer { background: #2c3e50; color: #aaa; padding: 40px 20px; margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 30px; }
.footer-left { min-width: 240px; }
.footer-left h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-left p { font-size: 13px; color: #aaa; margin-bottom: 8px; }
.footer-left a { color: #aaa; font-size: 13px; }
.footer-right { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-col p, .footer-col a { display: block; font-size: 13px; color: #aaa; margin-bottom: 8px; }
.footer-bottom { max-width: 1200px; margin: 20px auto 0; padding-top: 20px; border-top: 1px solid #3d5166; text-align: center; font-size: 12px; color: #777; }

/* Toast */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,.75); color: #fff; padding: 14px 28px; border-radius: 8px; font-size: 14px; z-index: 9999; display: none; }

/* Login Page */
.login-page { min-height: 100vh; background: linear-gradient(135deg, #07c160 0%, #04a050 100%); display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 16px; padding: 50px 40px; width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.login-box h2 { text-align: center; margin-bottom: 8px; font-size: 24px; color: #333; }
.login-box .subtitle { text-align: center; color: #999; font-size: 13px; margin-bottom: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; }
.form-group input { width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 8px; padding: 0 14px; font-size: 14px; outline: none; transition: border-color .2s; }
.form-group input:focus { border-color: #07c160; }
.btn-submit { width: 100%; height: 46px; background: #07c160; color: #fff; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background .2s; margin-top: 10px; }
.btn-submit:hover { background: #06ad56; }
.login-footer { text-align: center; margin-top: 24px; font-size: 13px; color: #999; }
.login-footer a { color: #07c160; }
.login-back { display: block; text-align: center; margin-top: 16px; color: #999; font-size: 13px; }
.login-back:hover { color: #07c160; }

/* Product Detail */
.detail-page { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.detail-back { display: inline-block; margin-bottom: 20px; color: #07c160; font-size: 14px; cursor: pointer; }
.detail-back:hover { text-decoration: underline; }
.detail-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: 12px; padding: 30px; }
.detail-img { width: 100%; height: 400px; background: #e8f5e9; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 24px; margin-bottom: 12px; }
.detail-info .desc { color: #999; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.detail-info .price-box { background: #fff7f3; padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; }
.detail-info .price-box .price { color: #ff6b35; font-size: 32px; font-weight: bold; }
.detail-info .price-box .price small { font-size: 16px; }
.detail-info .price-box .original { color: #ccc; font-size: 14px; text-decoration: line-through; margin-left: 12px; }
.detail-meta { margin-bottom: 24px; }
.detail-meta p { font-size: 14px; color: #666; margin-bottom: 10px; }
.detail-meta span { color: #333; }
.detail-actions { display: flex; gap: 16px; }
.detail-actions .btn { padding: 12px 36px; border-radius: 8px; font-size: 15px; cursor: pointer; border: none; transition: all .2s; }
.detail-actions .btn-primary { background: #ff6b35; color: #fff; }
.detail-actions .btn-primary:hover { background: #e55a28; }
.detail-actions .btn-secondary { background: #07c160; color: #fff; }
.detail-actions .btn-secondary:hover { background: #06ad56; }
.detail-tabs { background: #fff; border-radius: 12px; padding: 30px; margin-top: 20px; }
.detail-tabs h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #07c160; display: inline-block; }
.detail-tabs .tab-content { line-height: 1.8; color: #666; font-size: 14px; }
.detail-tabs .tab-content p { margin-bottom: 10px; }

/* Shop Section on Detail Page */
.detail-shop-bar { max-width: 1200px; margin: 0 auto 16px; background: #fff; border-radius: 12px; padding: 16px 24px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: box-shadow .2s; }
.detail-shop-bar:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.detail-shop-bar .dsb-icon { font-size: 32px; }
.detail-shop-bar .dsb-name { font-size: 16px; font-weight: 600; color: #333; }
.detail-shop-bar .dsb-tag { font-size: 12px; color: #07c160; background: #e8f5e9; padding: 2px 10px; border-radius: 10px; margin-left: 10px; }
.detail-shop-bar .dsb-arrow { margin-left: auto; color: #ccc; font-size: 18px; }

/* Shop Page */
.shop-banner { max-width: 1200px; margin: 20px auto; border-radius: 12px; overflow: hidden; height: 200px; background: linear-gradient(135deg, #07c160 0%, #04a050 100%); display: flex; align-items: center; justify-content: center; color: #fff; }
.shop-banner h1 { font-size: 28px; margin-bottom: 8px; }
.shop-banner p { font-size: 14px; opacity: .9; }
.shop-info-bar { max-width: 1200px; margin: 0 auto 20px; background: #fff; border-radius: 12px; padding: 24px 30px; display: flex; align-items: center; gap: 30px; }
.shop-info-bar .shop-logo { font-size: 48px; }
.shop-info-bar .shop-detail h2 { font-size: 20px; color: #333; margin-bottom: 6px; }
.shop-info-bar .shop-detail p { font-size: 13px; color: #888; }
.shop-info-bar .shop-stats { margin-left: auto; display: flex; gap: 30px; }
.shop-info-bar .shop-stats div { text-align: center; }
.shop-info-bar .shop-stats .num { font-size: 20px; font-weight: bold; color: #ff6b35; }
.shop-info-bar .shop-stats .label { font-size: 12px; color: #999; }

/* Nav publish link */
.btn-publish { background: none; border: none; color: #333; font-size: 15px; cursor: pointer; padding: 0; font-family: inherit; transition: color .2s; }
.btn-publish:hover { color: #07c160; }

/* Service provider badge */
.provider-badge { display: inline-block; font-size: 12px; color: #fff; background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 10px; margin-top: 8px; }
.service-provider { font-size: 13px; color: #07c160; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-main { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .banner-text h1 { font-size: 28px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-info-bar { flex-direction: column; text-align: center; }
  .shop-info-bar .shop-stats { margin-left: 0; }
}
