:root {
  --primary: #e8590c;
  --primary-dark: #d9480f;
  --primary-light: #ffd8a8;
  --dark: #1a1a2e;
  --gray: #f1f3f5;
  --text: #333;
  --text-light: #868e96;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --radius: 10px;
}
* { 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; color:var(--text); background:#fff; line-height:1.6; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; }

/* Header */
.header { background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.06); position:sticky; top:0; z-index:100; }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.logo { display:flex; align-items:center; gap:8px; font-size:22px; font-weight:700; color:var(--dark); }
.logo-icon { font-size:26px; }
.logo-text span { color:var(--primary); }
.nav { display:flex; gap:24px; }
.nav-link { color:var(--text); font-weight:500; padding:6px 4px; border-bottom:2px solid transparent; }
.nav-link:hover { color:var(--primary); border-color:var(--primary); }
.header-actions { display:flex; align-items:center; gap:12px; }
.cart-btn { position:relative; cursor:pointer; background:var(--gray); border-radius:50%; width:42px; height:42px; display:flex; align-items:center; justify-content:center; font-size:20px; }
.badge { position:absolute; top:-4px; right:-4px; background:var(--primary); color:#fff; border-radius:50%; min-width:18px; height:18px; font-size:12px; display:flex; align-items:center; justify-content:center; padding:0 4px; }

/* Buttons */
.btn { display:inline-block; padding:10px 22px; border-radius:8px; font-weight:600; border:2px solid transparent; cursor:pointer; transition:.2s; font-size:15px; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-outline { background:transparent; color:var(--primary); border-color:var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }
.btn-outline-light { background:transparent; color:#fff; border-color:#fff; }
.btn-outline-light:hover { background:#fff; color:var(--dark); }
.btn-lg { padding:14px 34px; font-size:17px; }
.btn-sm { padding:7px 14px; font-size:13px; }
.btn-block { display:block; width:100%; text-align:center; }

/* Hero */
.hero { background:linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%); color:#fff; padding:80px 0; }
.hero h1 { font-size:42px; margin-bottom:16px; }
.hero p { font-size:18px; opacity:.85; max-width:680px; margin-bottom:30px; }
.hero-actions { display:flex; gap:16px; }

/* Stats */
.stats { background:var(--primary); color:#fff; padding:28px 0; }
.stats-inner { display:flex; justify-content:space-around; text-align:center; }
.stat-num { font-size:36px; font-weight:800; }
.stat-label { opacity:.9; font-size:14px; }

/* Sections */
.section { padding:60px 0; }
.section-alt { background:var(--gray); }
.section-title { font-size:28px; margin-bottom:32px; text-align:center; color:var(--dark); }
.center { text-align:center; margin-top:24px; }

/* Brand grid */
.brand-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.brand-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:24px; text-align:center; cursor:pointer; transition:.2s; box-shadow:var(--shadow); }
.brand-card:hover { transform:translateY(-4px); border-color:var(--primary); }
.brand-name { font-weight:700; font-size:17px; margin-bottom:6px; }
.brand-count { color:var(--text-light); font-size:14px; }

/* Category grid */
.cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.cat-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px; cursor:pointer; transition:.2s; }
.cat-card:hover { border-color:var(--primary); transform:translateY(-3px); }
.cat-icon { font-size:28px; margin-bottom:8px; }
.cat-name { font-weight:700; }
.cat-count { color:var(--text-light); font-size:13px; }

/* Product grid */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; }
.product-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:.2s; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.product-card:hover { transform:translateY(-4px); box-shadow:0 6px 20px rgba(0,0,0,.12); }
.product-img-wrap { aspect-ratio:1; background:var(--gray); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.product-img-wrap img { width:100%; height:100%; object-fit:cover; }
.product-info { padding:14px; flex:1; display:flex; flex-direction:column; }
.product-brand { color:var(--primary); font-size:12px; font-weight:700; text-transform:uppercase; margin-bottom:4px; }
.product-name { font-weight:600; font-size:14px; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:42px; }
.product-meta { color:var(--text-light); font-size:12px; margin-bottom:10px; }
.product-footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--gray); padding-top:10px; }
.product-price { color:var(--primary); font-weight:700; font-size:16px; }
.btn-add { background:var(--primary); color:#fff; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; font-size:13px; }
.btn-add:hover { background:var(--primary-dark); }

/* Flow */
.section-b2b { background:#fff8f0; }
.flow-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.flow-item { background:#fff; border-radius:var(--radius); padding:24px; text-align:center; border:1px solid var(--border); }
.flow-icon { font-size:32px; margin-bottom:10px; }
.flow-item h3 { margin-bottom:8px; }

/* Footer */
.footer { background:var(--dark); color:#fff; padding:40px 0; margin-top:40px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; }

/* Forms (login/register) */
.auth-wrapper { max-width:420px; margin:60px auto; padding:36px; background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); }
.auth-wrapper h2 { text-align:center; margin-bottom:24px; }
.form-group { margin-bottom:18px; }
.form-group label { display:block; margin-bottom:6px; font-weight:600; font-size:14px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:11px 14px; border:1px solid var(--border); border-radius:8px; font-size:15px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline:none; border-color:var(--primary); }
.alert { padding:12px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.alert-error { background:#ffe3e3; color:#c92a2a; }
.alert-success { background:#d3f9d8; color:#2b8a3e; }
.form-bottom { text-align:center; margin-top:16px; font-size:14px; color:var(--text-light); }

/* Product list page */
.page-header { background:var(--gray); padding:30px 0; }
.page-title { font-size:28px; color:var(--dark); }
.filter-bar { display:flex; gap:12px; flex-wrap:wrap; margin:20px 0; align-items:center; }
.filter-bar select, .filter-bar input { padding:9px 14px; border:1px solid var(--border); border-radius:8px; font-size:14px; }
.search-input { flex:1; min-width:200px; }
.pagination { display:flex; justify-content:center; gap:8px; margin:28px 0; }
.page-btn { padding:8px 16px; border:1px solid var(--border); border-radius:6px; cursor:pointer; background:#fff; }
.page-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* Product detail */
.detail-wrap { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin:30px 0; }
.detail-img { border-radius:var(--radius); overflow:hidden; background:var(--gray); }
.detail-img img { width:100%; object-fit:cover; }
.detail-brand { color:var(--primary); font-weight:700; text-transform:uppercase; font-size:14px; }
.detail-name { font-size:28px; margin:10px 0; color:var(--dark); }
.detail-price { font-size:26px; color:var(--primary); font-weight:800; margin:16px 0; }
.detail-spec { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.spec-item { background:#f8f9fa; padding:10px 14px; border-radius:8px; }
.spec-item .k { font-size:12px; color:var(--text-light); }
.spec-item .v { font-weight:600; }
.detail-desc { margin:20px 0; color:var(--text); line-height:1.8; }
.qty { display:flex; align-items:center; gap:10px; margin:16px 0; }
.qty button { width:36px; height:36px; border:1px solid var(--border); background:#fff; border-radius:6px; font-size:18px; cursor:pointer; }
.qty input { width:70px; text-align:center; padding:8px; border:1px solid var(--border); border-radius:6px; font-size:16px; }

/* Inquiry page */
.inquiry-list { margin:20px 0; }
.table { width:100%; border-collapse:collapse; background:#fff; border-radius:8px; overflow:hidden; }
.table th, .table td { padding:12px 14px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
.table th { background:var(--gray); font-weight:600; }
.table tr:last-child td { border-bottom:none; }

@media (max-width:768px) {
  .nav { display:none; }
  .hero h1 { font-size:28px; }
  .hero-actions, .flow-grid { flex-direction:column; }
  .stats-inner { flex-wrap:wrap; gap:12px; }
  .stat { flex:1 1 30%; }
  .detail-wrap { grid-template-columns:1fr; }
}
