:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --brand: #0ea5e9;
  --brand-2: #a855f7;
  --accent: #22d3ee;
  --dark: #0b1120;
  --dark-2: #111a2e;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand .cn { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.brand .en {
  color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: #cbd5e1; font-size: 14px; font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.btn {
  display: inline-block; cursor: pointer; border: 0; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; font-size: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 6px 18px rgba(14, 165, 233, .35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(168,85,247,.25), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(34,211,238,.18), transparent 55%),
              var(--dark);
  color: #fff; padding: 90px 0 80px;
}
.hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 18px; font-weight: 800; }
.hero h1 .hl {
  background: linear-gradient(135deg, var(--accent), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #cbd5e1; font-size: 18px; max-width: 620px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.seo-tag { margin-top: 18px; font-size: 14px; color: #e2e8f0; }
.seo-tag { background: rgba(56,189,248,0.12); display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(56,189,248,0.3); }
.hero-meta { margin-top: 40px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-meta div { color: #94a3b8; font-size: 13px; }
.hero-meta strong { display: block; color: #fff; font-size: 22px; font-weight: 700; }
.faq { display: grid; gap: 14px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 22px; }
.faq-item h4 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }


.crumb { padding: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb span { margin: 0 6px; color: #94a3b8; }
/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section h1 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.section h2 { font-size: 30px; margin: 0 0 8px; font-weight: 800; }
.section .lead { color: var(--ink-soft); margin: 0 0 36px; max-width: 680px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 240px;
  display: flex; align-items: flex-end; padding: 28px; color: #fff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,.06);
}
.cat-card.tables { background: linear-gradient(135deg, #0c4a6e, #082f49); }
.cat-card.chairs { background: linear-gradient(135deg, #4c1d95, #2e1065); }
.cat-card h3 { font-size: 24px; margin: 0 0 6px; }
.cat-card p { margin: 0; color: #e2e8f0; font-size: 14px; }
.cat-card .go { margin-top: 14px; display: inline-block; color: var(--accent); font-weight: 600; }

/* ---------- Product grid ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card .thumb {
  background: var(--bg-soft); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .sku { font-weight: 700; font-size: 15px; }
.card .sub { color: var(--ink-soft); font-size: 13px; }
.card .spec { font-size: 12px; color: #64748b; margin-top: 2px; }
.card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.tag {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(14,165,233,.12); color: var(--brand);
}
.tag.led { background: rgba(168,85,247,.14); color: var(--brand-2); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(8,12,24,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-back.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 880px; width: 100%; max-height: 90vh;
  overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr;
}
.modal .gallery { background: var(--bg-soft); padding: 20px; }
.modal .gallery .main { aspect-ratio: 1/1; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.modal .gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.modal .gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.modal .gallery .thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.modal .gallery .thumbs img.active { border-color: var(--brand); }
.modal .info { padding: 28px; }
.modal .info h3 { margin: 0 0 4px; font-size: 24px; }
.modal .info .sku { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.modal .info ul { padding-left: 18px; margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.modal .close {
  position: absolute; top: 14px; right: 18px; font-size: 26px; cursor: pointer; color: #fff;
  background: rgba(0,0,0,.35); width: 38px; height: 38px; border-radius: 50%; text-align: center; line-height: 36px;
}
.modal-wrap { position: relative; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.feat h4 { margin: 0 0 8px; font-size: 17px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.feat .ic { font-size: 26px; margin-bottom: 10px; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form-note { color: var(--ink-soft); font-size: 13px; margin-top: 14px; }
.direct-contact { margin-top: 14px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.direct-contact .dc-title { font-weight: 600; color: var(--ink); margin: 0 0 8px; font-size: 14px; }
.direct-contact .dc-line { margin: 0 0 4px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 48px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h5 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-footer a { color: #94a3b8; font-size: 14px; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .co-info { font-size: 14px; line-height: 1.9; color: #94a3b8; margin: 0 0 8px; }
.site-footer .co-info a { display: inline; padding: 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 18px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
