/* ============================================================
   电子维修工具外贸独立站 - JBC 风格设计
   深蓝工业风 + 白色 + 红色点缀 (JBC 品牌色 #E30613)
   ============================================================ */
:root {
  --jbc-red: #e30613;
  --jbc-dark: #1a1d29;
  --jbc-navy: #232740;
  --jbc-blue: #00509e;
  --jbc-light: #f4f5f7;
  --jbc-text: #333a45;
  --jbc-muted: #7a8494;
  --jbc-border: #e2e5ea;
  --jbc-white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif; color: var(--jbc-text); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部语言条 ===== */
.lang-bar { background: var(--jbc-dark); color: #9aa3b2; font-size: 12px; }
.lang-bar-inner { max-width: 1200px; margin: 0 auto; padding: 6px 24px; display: flex; justify-content: flex-end; gap: 16px; align-items: center; }
.lang-bar a { color: #9aa3b2; padding: 2px 8px; border-radius: 3px; transition: all .2s; }
.lang-bar a:hover, .lang-bar a.active { color: #fff; background: var(--jbc-red); }
.lang-bar .pipe { opacity: .3; }

/* ===== 主导航 ===== */
.main-nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--jbc-border); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.main-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 32px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.logo .red { color: var(--jbc-red); }
.logo small { display: block; font-size: 10px; font-weight: 500; color: var(--jbc-muted); letter-spacing: 2px; text-transform: uppercase; }
.nav-menu { display: flex; gap: 4px; flex: 1; }
.nav-menu a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--jbc-text); border-radius: 4px; transition: all .2s; }
.nav-menu a:hover { color: var(--jbc-red); background: #fafafa; }
.nav-menu a.active { color: var(--jbc-red); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions .cart-btn { position: relative; font-size: 20px; }
.nav-actions .cart-count { position: absolute; top: -6px; right: -10px; background: var(--jbc-red); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-actions .btn-quote { background: var(--jbc-red); color: #fff; padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: opacity .2s; }
.nav-actions .btn-quote:hover { opacity: .88; }

/* ===== Hero Banner ===== */
.hero { position: relative; background: var(--jbc-navy); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1d29 0%, #232740 55%, #00509e 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(227,6,19,.25) 0%, transparent 50%); }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 80px 24px 70px; }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 .red { color: var(--jbc-red); }
.hero p { font-size: 17px; color: #b8c0d0; max-width: 620px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-red { background: var(--jbc-red); color: #fff; padding: 14px 32px; border-radius: 4px; font-size: 15px; font-weight: 600; border: none; transition: all .2s; }
.btn-red:hover { background: #c00510; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); padding: 13px 30px; border-radius: 4px; font-size: 15px; font-weight: 500; transition: all .2s; }
.btn-ghost:hover { border-color: #fff; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat .num { font-size: 28px; font-weight: 700; color: #fff; }
.hero-stat .label { font-size: 12px; color: #8b93a7; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ===== 应用分类 ===== */
.applications { padding: 64px 0; background: var(--jbc-light); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .tag { color: var(--jbc-red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; display: block; }
.section-head h2 { font-size: 32px; font-weight: 700; color: var(--jbc-dark); }
.section-head p { color: var(--jbc-muted); margin-top: 10px; font-size: 15px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.app-card { background: #fff; border: 1px solid var(--jbc-border); border-radius: var(--radius); padding: 28px 24px; text-align: center; cursor: pointer; transition: all .25s; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--jbc-red); }
.app-card .icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--jbc-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.app-card:hover .icon { background: #fdecec; }
.app-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.app-card p { font-size: 13px; color: var(--jbc-muted); line-height: 1.5; }

/* ===== 产品区 ===== */
.products { padding: 64px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--jbc-border); border-radius: var(--radius); overflow: hidden; transition: all .25s; cursor: pointer; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #d0d5dd; }
.product-card .thumb { aspect-ratio: 1; background: var(--jbc-light); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .info { padding: 18px; }
.product-card .cat { font-size: 11px; color: var(--jbc-red); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-card .title { font-size: 15px; font-weight: 600; margin: 6px 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .subtitle { font-size: 12px; color: var(--jbc-muted); margin-bottom: 12px; }
.product-card .foot { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--jbc-dark); }
.product-card .price .cur { font-size: 12px; color: var(--jbc-muted); margin-right: 2px; }
.product-card .learn-more { color: var(--jbc-red); font-size: 13px; font-weight: 600; }

/* ===== 为什么选我们 ===== */
.why { background: var(--jbc-dark); color: #fff; padding: 64px 0; }
.why .section-head h2 { color: #fff; }
.why .section-head p { color: #8b93a7; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-item { padding: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); transition: all .25s; }
.why-item:hover { background: rgba(255,255,255,.04); border-color: var(--jbc-red); }
.why-item .icon { font-size: 30px; margin-bottom: 14px; }
.why-item h4 { font-size: 16px; margin-bottom: 8px; }
.why-item p { font-size: 13px; color: #9aa3b2; line-height: 1.6; }

/* ===== 询盘/报价 CTA ===== */
.cta { background: linear-gradient(135deg, var(--jbc-red) 0%, #c00510 100%); color: #fff; padding: 56px 0; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 28px; font-weight: 700; }
.cta p { margin-top: 6px; opacity: .9; font-size: 15px; }
.btn-white { background: #fff; color: var(--jbc-red); padding: 14px 32px; border-radius: 4px; font-size: 15px; font-weight: 700; border: none; transition: all .2s; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ===== Footer ===== */
.footer { background: #14161f; color: #8b93a7; padding: 48px 0 24px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer a { display: block; font-size: 13px; padding: 4px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding: 16px 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; display: flex; justify-content: space-between; }

/* ===== 产品详情页 ===== */
.detail-wrap { display: flex; gap: 40px; padding: 40px 0; }
.detail-gallery { flex: 0 0 480px; }
.detail-gallery .main-img { width: 480px; height: 480px; object-fit: cover; border-radius: var(--radius); background: var(--jbc-light); }
.detail-info { flex: 1; }
.breadcrumb { font-size: 13px; color: var(--jbc-muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--jbc-red); }
.detail-title { font-size: 26px; font-weight: 700; color: var(--jbc-dark); margin-bottom: 8px; }
.detail-subtitle { color: var(--jbc-muted); margin-bottom: 16px; }
.detail-apps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.app-tag { background: var(--jbc-light); border: 1px solid var(--jbc-border); padding: 4px 12px; border-radius: 20px; font-size: 12px; color: var(--jbc-text); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.price-row .now { font-size: 30px; font-weight: 700; color: var(--jbc-dark); }
.price-row .orig { color: var(--jbc-muted); text-decoration: line-through; font-size: 15px; }
.spec-section { margin: 16px 0; }
.spec-label { font-size: 13px; color: var(--jbc-muted); margin-bottom: 8px; }
.spec-options { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-option { border: 1px solid var(--jbc-border); padding: 6px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; transition: all .2s; }
.spec-option.active { border-color: var(--jbc-red); color: var(--jbc-red); background: #fdecec; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-blue { background: var(--jbc-blue); color: #fff; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 600; border: none; transition: all .2s; }
.btn-blue:hover { background: #003f7d; }
.btn-outline-red { background: #fff; border: 1.5px solid var(--jbc-red); color: var(--jbc-red); padding: 11px 26px; border-radius: 4px; font-size: 14px; font-weight: 600; transition: all .2s; }
.btn-outline-red:hover { background: var(--jbc-red); color: #fff; }
.detail-desc { margin-top: 32px; border-top: 1px solid var(--jbc-border); padding-top: 24px; }
.detail-desc h3 { font-size: 18px; margin-bottom: 12px; }

/* ===== 询盘/报价表单 ===== */
.form-page { max-width: 720px; margin: 48px auto; padding: 0 24px; }
.form-card { background: var(--jbc-light); border: 1px solid var(--jbc-border); border-radius: 8px; padding: 36px; }
.form-card h1 { font-size: 24px; color: var(--jbc-dark); margin-bottom: 8px; }
.form-card .sub { color: var(--jbc-muted); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--jbc-text); }
.form-group label .req { color: var(--jbc-red); }
.form-control { width: 100%; height: 44px; border: 1px solid var(--jbc-border); border-radius: 4px; padding: 0 14px; font-size: 14px; outline: none; transition: border .2s; background: #fff; }
.form-control:focus { border-color: var(--jbc-red); }
textarea.form-control { height: auto; padding: 12px 14px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { text-align: center; padding: 60px 24px; }
.form-success .icon { font-size: 60px; margin-bottom: 20px; }
.form-success h2 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--jbc-muted); }

/* ===== 订单/通用列表 ===== */
.list-card { background: #fff; border: 1px solid var(--jbc-border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; display: flex; gap: 16px; align-items: center; }
.list-card .thumb { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; background: var(--jbc-light); }
.list-card .body { flex: 1; }
.list-card .title { font-size: 14px; font-weight: 500; }
.list-card .spec { font-size: 12px; color: var(--jbc-muted); margin-top: 4px; }
.checkout-bar { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--jbc-border); border-radius: var(--radius); padding: 14px 20px; display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.checkout-bar .total { margin-left: auto; }
.checkout-bar .amount { color: var(--jbc-dark); font-size: 22px; font-weight: 700; }
.status-tag { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 500; }
.status-0 { background: #fff7e6; color: #d48806; }
.status-1 { background: #e6f4ff; color: #1677ff; }
.status-2 { background: #f6ffed; color: #52c41a; }
.status-3 { background: #f0f0f0; color: #666; }
.status-4 { background: #f0f0f0; color: #999; }
.status-5 { background: #fff1f0; color: #ff4d4f; }

/* Toast */
.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.85); color: #fff; padding: 12px 28px; border-radius: 6px; font-size: 14px; z-index: 1000; opacity: 0; transition: all .3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-content { padding: 48px 20px; }
  .detail-wrap { flex-direction: column; }
  .detail-gallery, .detail-gallery .main-img { flex: auto; width: 100%; height: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
}
/* ============================================================
   通用组件样式 (交易流程页面: 顶部栏/购物车/结算/订单)
   ============================================================ */
.topbar { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 24px; }
.topbar .logo { font-size: 24px; font-weight: 700; color: var(--jbc-text); }
.topbar .logo::first-letter { color: var(--jbc-red); }
.search-box { flex: 1; max-width: 460px; display: flex; }
.search-box input { flex: 1; height: 38px; border: 2px solid var(--jbc-red); border-radius: 6px 0 0 6px; padding: 0 14px; outline: none; font-size: 14px; }
.search-box button { height: 38px; padding: 0 22px; background: var(--jbc-red); color: #fff; border: none; border-radius: 0 6px 6px 0; font-size: 14px; }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-links a:hover { color: var(--jbc-red); }
.cart-badge { position: relative; }
.cart-badge .count { position: absolute; top: -8px; right: -14px; background: var(--jbc-red); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.section-title { font-size: 20px; font-weight: 700; color: var(--jbc-dark); margin: 24px 0 16px; display: flex; align-items: center; }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--jbc-red); border-radius: 2px; margin-right: 10px; }

.list-card { background: #fff; border: 1px solid var(--jbc-border); border-radius: 8px; padding: 16px; margin-bottom: 12px; display: flex; gap: 16px; align-items: center; }
.list-card .thumb { width: 80px; height: 80px; border-radius: 6px; object-fit: cover; background: var(--jbc-light); }
.list-card .body { flex: 1; }
.list-card .title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.list-card .spec { color: var(--jbc-muted); font-size: 12px; }
.list-card .actions { display: flex; gap: 8px; align-items: center; }

.checkbox { width: 18px; height: 18px; accent-color: var(--jbc-red); }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--jbc-border); border-radius: 6px; background: #fff; }
.qty-control button { width: 32px; height: 32px; border: none; background: #fff; font-size: 16px; cursor: pointer; color: var(--jbc-text); }
.qty-control span { width: 40px; text-align: center; font-size: 14px; }

.checkout-bar { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--jbc-border); border-radius: 8px; padding: 14px 20px; display: flex; align-items: center; gap: 20px; box-shadow: 0 -2px 12px rgba(0,0,0,.06); margin-top: 16px; }
.checkout-bar .total { margin-left: auto; font-size: 14px; }
.checkout-bar .amount { color: var(--jbc-red); font-size: 24px; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 6px; padding: 10px 24px; font-size: 14px; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .9; }
.btn-primary { background: var(--jbc-red); color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--jbc-red); color: var(--jbc-red); }
.btn-lg { padding: 14px 48px; font-size: 16px; border-radius: 24px; }

.empty { text-align: center; padding: 80px 0; color: var(--jbc-muted); }
.empty .icon { font-size: 60px; margin-bottom: 16px; }

.status-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
