:root {
  --bg: #13161b;
  --bg-soft: #191d24;
  --panel: #1e232c;
  --panel-2: #242a35;
  --line: #2e3542;
  --text: #e8e6e0;
  --muted: #9aa2af;
  --accent: #e88a2e;
  --accent-soft: rgba(232, 138, 46, 0.14);
  --ok: #7fbf7f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: 0.2px; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 22, 27, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--accent); color: #13161b;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.brand-sub { color: var(--muted); font-weight: 500; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.language-switch { font-weight: 600; font-size: 0.95rem; }

.button {
  display: inline-block; padding: 10px 22px; border-radius: 6px;
  font-weight: 600; border: 1px solid var(--line); color: var(--text);
  background: var(--panel-2); cursor: pointer;
}
.button:hover { text-decoration: none; border-color: var(--accent); }
.button.primary { background: var(--accent); color: #13161b; border-color: var(--accent); }
.button.primary:hover { background: #f0973f; }
.button.ghost { background: transparent; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(19, 22, 27, 0.82) 0%, rgba(19, 22, 27, 0.55) 45%, rgba(19, 22, 27, 0.92) 100%),
    url("/assets/img/hero-steel-yard.jpg") center 40% / cover no-repeat;
  min-height: 480px;
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 72px 20px 64px; max-width: 1120px; margin: 0 auto; width: 100%; }
.eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { max-width: 760px; margin-bottom: 14px; }
.hero p.lead { max-width: 640px; color: #cdd2da; font-size: 17px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-fact {
  background: rgba(30, 35, 44, 0.85); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 16px; font-size: 14px;
}
.hero-fact strong { color: var(--accent); display: block; font-size: 15px; margin-bottom: 2px; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { color: var(--muted); max-width: 680px; margin-top: 8px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.product-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--accent); }
.product-card img { width: 100%; height: 210px; object-fit: cover; }
.product-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 4px;
}
.product-card h3 { font-size: 19px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--accent); text-decoration: none; }
.product-card p { color: var(--muted); font-size: 14.5px; }
.product-meta { list-style: none; font-size: 13.5px; color: #c3c9d2; }
.product-meta li { padding: 3px 0 3px 18px; position: relative; }
.product-meta li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.text-link { font-weight: 600; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td {
  text-align: left; padding: 11px 14px; border: 1px solid var(--line);
}
.spec-table th { background: var(--panel-2); color: var(--accent); font-weight: 600; width: 220px; }
.spec-table td { color: #cdd2da; }
.spec-table tr:nth-child(even) td { background: var(--bg-soft); }

/* Feature list */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px;
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  border-top: 3px solid var(--accent);
}
.step span { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.step h3 { margin: 6px 0; }
.step p { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.faq-item h3 { color: var(--accent); margin-bottom: 6px; font-size: 16.5px; }
.faq-item p { color: #c3c9d2; font-size: 14.5px; }

/* Inquiry form */
.inquiry-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.inquiry-wrap .lead { color: var(--muted); margin-top: 10px; }
.form-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: #c3c9d2; }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; color: var(--text); font-size: 14.5px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.status { font-size: 14px; }
.status.error { color: #e07a6a; }
.status.ok { color: var(--ok); }

/* Footer */
.site-footer { background: #0e1116; border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; gap: 24px; }
.footer-grid h3, .footer-grid h4 { margin-bottom: 10px; }
.footer-grid h4 { color: var(--accent); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.footer-grid p, .footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); }
.footer-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: #6d7480; font-size: 12.5px; }

/* Breadcrumb */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.product-detail .gallery img { border-radius: 10px; border: 1px solid var(--line); width: 100%; height: 340px; object-fit: cover; }
.gallery-strip { display: flex; gap: 10px; margin-top: 10px; }
.gallery-strip img { width: 86px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.gallery-strip img.active { border-color: var(--accent); }
.product-detail h1 { margin: 8px 0 10px; }
.product-detail .summary { color: #c3c9d2; margin-bottom: 18px; }

/* Trade terms */
.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.term-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 18px; }
.term-card h3 { font-size: 16px; margin-bottom: 6px; }
.term-card p { color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .inquiry-wrap, .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}
