/* KINDO STEEL CONSTRUCTION — corporate site stylesheet */
:root {
  --red: #e2231a;
  --red-dark: #b81811;
  --blue: #1b3a8c;
  --blue-dark: #132a66;
  --ink: #0f172a;
  --gray: #5b6675;
  --gray-light: #8a94a6;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-hover: 0 14px 36px rgba(15, 23, 42, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--ink); color: #cbd3e1; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--red); }
.topbar .dot { margin: 0 8px; opacity: .5; }
.topbar-right { display: flex; align-items: center; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 40px; }
.brand-logo-img { width: auto; height: 42px; max-width: 160px; object-fit: contain; }
.brand-divider { width: 2px; height: 38px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 22px; letter-spacing: .04em; color: var(--ink); }
.brand-text em {
  font-style: normal; font-size: 10px; letter-spacing: .18em;
  color: var(--red); font-weight: 700; text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--red);
  transition: width .25s ease;
}
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { width: 100%; }
.main-nav > a.active { color: var(--red); }
.nav-cta { color: #fff !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0f172a 0%, #1b3a8c 55%, #26489e 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px;
  background: rgba(226, 35, 26, .18); transform: rotate(35deg);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 90px 0 80px; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,.14); border-left: 4px solid var(--red); padding: 6px 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: 46px; margin-bottom: 18px; }
.hero h1 span { color: #ffd2ce; }
.hero p.lead { font-size: 18px; color: #dbe3f2; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 28px; color: #fff; }
.hero-stats div span { font-size: 13px; color: #b9c4da; letter-spacing: .06em; text-transform: uppercase; }
.hero-media {
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 6px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: 34px; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin: 16px auto 0;
}
.section-head p { color: var(--gray); margin-top: 14px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: all .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.feature .num { font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: .12em; }
.feature h3 { font-size: 19px; margin-top: 10px; }
.feature p { color: var(--gray); font-size: 15px; margin: 0; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: all .25s ease; position: relative; overflow: hidden;
}
.cat-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--blue); }
.cat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-card h3 { font-size: 17px; margin: 0 0 6px; }
.cat-card span { font-size: 13px; color: var(--gray-light); }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.product-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-tag { position: absolute; left: 12px; top: 12px; background: var(--blue); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 20px; letter-spacing: .04em; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 17px; margin-bottom: 8px; }
.product-desc { color: var(--gray); font-size: 14px; flex: 1; }
.product-more { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--red); }
.product-more:hover { text-decoration: underline; }

/* ---------- about strip ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--gray); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--red);
  width: 20px; height: 20px; border-radius: 50%; font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { background: #fff; border-radius: var(--radius); padding: 28px 22px; border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.process-step strong { display: block; font-size: 14px; color: var(--blue); letter-spacing: .1em; }
.process-step h3 { font-size: 18px; margin: 8px 0; }
.process-step p { font-size: 14px; color: var(--gray); margin: 0; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: 32px; }
.cta-band p { color: #ccd6ee; max-width: 640px; margin: 0 auto 26px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120deg, #0f172a, #1b3a8c); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 36px; margin-bottom: 8px; }
.page-hero p { color: #cfd9ef; margin: 0; }
.breadcrumb { font-size: 13px; color: #9fb0d4; margin-bottom: 12px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 22px 0 30px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border-radius: 30px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--gray); transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 220px; font-size: 14px; }
.search-form button { padding: 10px 18px; border: 0; border-radius: var(--radius); background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.search-form button:hover { background: var(--blue-dark); }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 600; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- product detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; align-items: start; }
.detail-media { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.detail-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.detail-info h1 { font-size: 32px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.detail-meta span { background: var(--bg-soft); border: 1px solid var(--line); font-size: 13px; padding: 5px 12px; border-radius: 20px; color: var(--gray); }
.detail-desc { color: var(--gray); white-space: pre-line; }

/* ---------- 富文本描述（marketing_sku_specification） ---------- */
.rich-text { color: var(--gray); font-size: 15px; line-height: 1.75; }
.rich-text p { margin: 0 0 1em; }
.rich-text br { line-height: 1.6; }
.rich-text img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin: 0 0 1em; list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin-bottom: 6px; }
.rich-text a { color: var(--blue); text-decoration: underline; }

.rich-text table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14px;
  background: #fff;
}
.rich-text table td,
.rich-text table th {
  border: 1px solid #cccccc !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  color: var(--ink);
  word-break: break-word;
}
.rich-text table tr:first-child td,
.rich-text table thead th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
}
.rich-text table tr:nth-child(even) td { background: #fafbfd; }
.rich-text strong, .rich-text b { color: var(--ink); }

@media (max-width: 720px) {
  .rich-text table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rich-text table td { min-width: 120px; }
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 56px 0; align-items: start; }
.contact-card { background: var(--bg-soft); border-radius: 12px; padding: 32px; }
.contact-card h3 { font-size: 20px; }
.contact-card li { margin-bottom: 14px; color: var(--gray); }
.contact-card li strong { display: block; color: var(--ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; font-family: inherit; background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid rgba(27,58,140,.35); border-color: var(--blue); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 15px; }
.alert-success { background: #eaf7ee; border: 1px solid #b7e2c3; color: #1a7a3c; }
.alert-error { background: #fdeceb; border: 1px solid #f6c3bf; color: #b81811; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--gray); }
.empty h3 { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner, .split, .detail, .contact-wrap { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .features, .cat-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  .topbar-inner { justify-content: center; font-size: 12px; }
  .topbar-right { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
  .features, .cat-grid, .process, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 56px 0; }
  .hero h1 { font-size: 30px; }
  .section { padding: 56px 0; }
  .section-head h2, .cta-band h2 { font-size: 26px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-form input { min-width: 0; flex: 1; }
}
