*{box-sizing:border-box}
body{margin:0;background:#f5f7fb;color:#111827;font-family:Arial,"Microsoft YaHei",sans-serif}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,calc(100% - 28px));margin:0 auto}
.site-header{position:sticky;top:0;z-index:20;background:#ffffff;border-bottom:1px solid #e5e7eb}
.header-inner{height:68px;display:flex;align-items:center;gap:26px}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:24px;font-weight:700;color:#0f172a;white-space:nowrap;min-width:0}
.brand-logo{width:auto;height:36px;max-width:150px;object-fit:contain}
.brand span{overflow:hidden;text-overflow:ellipsis}
.nav-links{display:flex;gap:22px;align-items:center;flex:1}
.nav-links a,.nav-item>a{font-size:14px;color:#334155;font-weight:700;display:inline-flex;align-items:center;gap:5px;height:38px}
.nav-links a:hover,.nav-links a.active{color:#2563eb}
.nav-item{position:relative}
.chevron{font-size:13px;color:#64748b}
.dropdown-menu{position:absolute;top:42px;left:0;min-width:170px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 18px 40px rgba(15,23,42,.12);padding:8px;display:none;z-index:30}
.has-dropdown:hover .dropdown-menu,.has-dropdown.open .dropdown-menu{display:grid}
.dropdown-menu a{height:34px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 10px;border-radius:6px;color:#334155;font-weight:600}
.dropdown-menu a:hover{background:#f1f5f9;color:#2563eb}
.dropdown-menu em{font-style:normal;min-width:24px;height:20px;border-radius:999px;background:#eef2ff;color:#4f46e5;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.category-menu{grid-template-columns:1fr 1fr;min-width:320px}
.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.login-link{height:32px;display:inline-flex;align-items:center;padding:0 14px;border-radius:6px;background:#f8fafc;color:#334155;font-size:14px;font-weight:700}
.login-link:before{content:"♟";font-size:12px;margin-right:4px}
.icon-btn{width:34px;height:34px;border:0;border-radius:50%;background:#f8fafc;color:#334155;font-size:18px;cursor:pointer}
.menu-toggle{display:none}
.search-bar{padding:0 0 14px}
.search-bar form{display:flex;gap:8px;max-width:460px;margin-left:auto}
.search-bar input{flex:1;height:38px;border:1px solid #e5e7eb;border-radius:6px;padding:0 12px;font-size:14px}
.search-bar button{height:38px;border:0;border-radius:6px;background:#2563eb;color:#fff;padding:0 16px;font-weight:700}
.hero{background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff}
.hero-grid{min-height:360px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:40px;align-items:center}
.hero-copy p{margin:0 0 12px;color:#bfdbfe;font-size:16px}
.hero-copy h1{margin:0;font-size:54px;line-height:1.1;font-weight:800}
.hero-actions{margin-top:30px;display:flex;gap:12px}
.primary-btn,.ghost-btn,.buy-button,.qq-button{display:inline-flex;align-items:center;justify-content:center;height:42px;padding:0 22px;border-radius:6px;font-weight:700}
.primary-btn,.buy-button{background:#2563eb;color:#fff}
.ghost-btn{border:1px solid rgba(255,255,255,.55);color:#fff}
.hero-panel{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:28px}
.hero-panel span,.hero-panel small{display:block;color:#dbeafe}
.hero-panel strong{display:block;margin:10px 0;font-size:56px}
.category-strip{display:flex;gap:16px;flex-wrap:wrap;padding:22px 0;align-items:center}
.category-strip a{height:38px;display:inline-flex;align-items:center;gap:9px;padding:0 17px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;font-size:14px;font-weight:700;color:#1f2937;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.category-strip a.active,.category-strip a:hover{border-color:#6366f1;background:#6366f1;color:#fff;box-shadow:0 10px 24px rgba(99,102,241,.26)}
.category-strip .count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;padding:0 7px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:12px;line-height:20px}
.category-strip a.active .count,.category-strip a:hover .count{background:rgba(255,255,255,.2);color:#fff}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-top:6px;margin-bottom:14px}
.section-head h2,.page-title h1,.description h2{margin:0;color:#0f172a}
.section-head a{color:#2563eb;font-size:14px}
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding-bottom:34px}
.product-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;transition:transform .16s ease,border-color .16s ease}
.product-card:hover{transform:translateY(-2px);border-color:#93c5fd}
.product-card img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#e5e7eb}
.product-body{padding:14px}
.product-body h3{height:44px;margin:0 0 8px;font-size:16px;line-height:22px;overflow:hidden;color:#111827}
.product-body p{height:40px;margin:0 0 12px;color:#64748b;font-size:13px;line-height:20px;overflow:hidden}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.price-row strong,.detail-price{color:#dc2626;font-weight:800}
.price-row span{color:#94a3b8;font-size:12px;white-space:nowrap}
.page-title{background:#fff;border-bottom:1px solid #e5e7eb;padding:34px 0}
.page-title p{margin:8px 0 0;color:#64748b}
.pager{display:flex;gap:8px;justify-content:center;padding:0 0 42px}
.pager a{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e7eb;border-radius:6px;color:#334155}
.pager a.active{background:#2563eb;color:#fff;border-color:#2563eb}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;padding:28px 0}
.gallery,.price-panel,.description{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:18px}
.main-image{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:#eef2f7}
.thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.thumbs button{border:1px solid #e5e7eb;background:#fff;border-radius:6px;padding:3px;cursor:pointer}
.thumbs img{width:70px;height:54px;object-fit:cover;border-radius:4px}
.price-panel h1{margin:0 0 12px;font-size:24px;line-height:1.35}
.price-panel h2{margin:0 0 12px;font-size:18px;color:#0f172a}
.price-panel p{margin:0 0 16px;color:#64748b;line-height:1.7}
.detail-price{font-size:34px;margin-bottom:18px}
.price-panel dl{margin:0 0 20px;border-top:1px solid #e5e7eb}
.price-panel dl div{display:flex;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding:12px 0}
.price-panel dt{color:#64748b}
.price-panel dd{margin:0;color:#111827}
.product-info-card{align-self:start}
.product-info-card .info-image{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:7px;margin-bottom:14px;background:#eef2f7}
.product-info-card h1{font-size:18px;margin-bottom:14px}
.original-price{font-size:20px;color:#ef3434;font-weight:800;margin:0 0 16px}
.member-prices div{padding:14px 0}
.member-prices dt{font-size:15px;color:#334155}
.member-prices dd{font-size:15px}
.buy-button{width:100%;height:46px;border:0;cursor:pointer;font-size:15px;background:#ef3434}
.qq-button{width:100%;height:44px;margin-top:14px;background:#19b8ee;color:#fff}
.description{margin-bottom:40px}
.description h2{margin-bottom:16px}
.description-body{line-height:1.8;color:#1f2937}
.description-body img{max-width:100%;height:auto;margin:0 auto 12px;border-radius:4px}
.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:28px 0 44px}
.info-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px}
.linked-card{display:block;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.linked-card:hover{border-color:#93c5fd;transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.08)}
.info-card h2{font-size:18px;margin:0 0 10px;color:#0f172a}
.info-card p{margin:0;color:#64748b;line-height:1.8}
.order-query-page{padding:28px 0 48px}
.order-query-card,.order-result,.query-empty{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px}
.order-query-form{display:flex;gap:0;max-width:760px}
.order-query-form input{flex:1;height:44px;border:1px solid #d1d5db;border-right:0;border-radius:6px 0 0 6px;padding:0 14px;font-size:15px;outline:none}
.order-query-form input:focus{border-color:#2563eb}
.order-query-form button{height:44px;border:0;border-radius:0 6px 6px 0;background:#2563eb;color:#fff;padding:0 22px;font-weight:800;cursor:pointer;white-space:nowrap}
.order-query-help{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;color:#64748b;font-size:13px}
.example-trigger{height:28px;border:0;border-radius:5px;background:#0ea5e9;color:#fff;padding:0 10px;font-size:12px;font-weight:700;cursor:pointer}
.query-empty{margin-top:18px;text-align:center}
.query-empty h2{margin:0 0 8px;color:#0f172a;font-size:20px}
.query-empty p{margin:0;color:#64748b}
.order-result{margin-top:18px}
.order-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e5e7eb;padding-bottom:16px}
.order-result-head span,.order-summary-grid span,.trade-row span{display:block;color:#64748b;font-size:13px;margin-bottom:5px}
.order-result-head strong{font-size:20px;color:#0f172a}
.order-result-head em{font-style:normal;min-width:78px;height:30px;border-radius:999px;background:#ecfdf5;color:#047857;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}
.order-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-bottom:1px solid #e5e7eb;padding:16px 0}
.order-summary-grid div{background:#f8fafc;border-radius:6px;padding:12px}
.order-summary-grid strong,.trade-row strong{color:#111827}
.trade-row{border-bottom:1px solid #e5e7eb;padding:14px 0;word-break:break-all}
.order-items{padding-top:16px}
.order-items h2{font-size:18px;margin:0 0 12px;color:#0f172a}
.order-item{display:flex;gap:12px;align-items:center;border:1px solid #e5e7eb;border-radius:8px;padding:10px;margin-bottom:10px}
.order-item img{width:86px;height:64px;object-fit:cover;border-radius:6px;background:#eef2f7;flex:0 0 auto}
.order-item h3{font-size:15px;line-height:1.5;margin:0;color:#111827}
.order-item p{margin:4px 0;color:#64748b;font-size:13px}
.order-item span{color:#64748b;font-size:13px}
.query-example-modal{position:fixed;inset:0;z-index:80;background:rgba(15,23,42,.48);display:flex;align-items:center;justify-content:center;padding:18px}
.query-example-modal[hidden]{display:none}
.query-example-dialog{width:min(620px,100%);background:#fff;border-radius:8px;box-shadow:0 24px 70px rgba(15,23,42,.28);overflow:hidden}
.query-example-head{height:54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding:0 16px}
.query-example-head h2{margin:0;font-size:18px;color:#111827}
.query-example-head button{width:32px;height:32px;border:0;background:transparent;color:#9ca3af;font-size:26px;line-height:32px;cursor:pointer}
.query-example-dialog img{width:100%;height:auto;background:#fff}
.payment-page{padding:42px 0}
.payment-card{max-width:560px;margin:0 auto;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:24px;text-align:center}
.payment-card h1{margin:0 0 12px;color:#0f172a}
.payment-card p{color:#64748b;line-height:1.8}
.alipay-submit{margin-top:18px}
@media (max-width:900px){
  .header-inner{height:auto;min-height:62px;align-items:flex-start;padding:14px 0;flex-wrap:wrap}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav-links{display:none;width:100%;padding-top:8px;order:3;flex-direction:column;align-items:stretch;gap:6px}
  .nav-links.open{display:flex}
  .nav-links a,.nav-item>a{height:36px}
  .dropdown-menu{position:static;box-shadow:none;margin:2px 0 8px;min-width:0}
  .category-menu{grid-template-columns:1fr}
  .header-actions{margin-left:auto}
  .hero-grid,.detail-layout,.content-grid{grid-template-columns:1fr}
  .order-summary-grid{grid-template-columns:1fr 1fr}
  .hero-grid{min-height:300px;padding:34px 0}
  .hero-copy h1{font-size:38px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-body h3{font-size:15px}
}
@media (max-width:520px){
  .container{width:min(100% - 20px,1180px)}
  .product-grid{grid-template-columns:1fr}
  .hero-actions{flex-direction:column}
  .primary-btn,.ghost-btn{width:100%}
  .order-query-form{display:grid;grid-template-columns:1fr}
  .order-query-form input{border-right:1px solid #d1d5db;border-radius:6px 6px 0 0}
  .order-query-form button{border-radius:0 0 6px 6px}
  .order-summary-grid{grid-template-columns:1fr}
  .order-result-head{align-items:flex-start;flex-direction:column}
}
