/* Skolvora — base stylesheet
   One file, no framework, no build step.
   Edit the variables below to change the whole site's look. */

:root {
  --navy: #1f3864;
  --navy-soft: #2c4a7c;
  --accent: #c55a11;
  --ink: #1d232b;
  --muted: #5b6472;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 6px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

/* Chinese review build */
body[data-lang="zh"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
               "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  line-height: 1.8;
}
body[data-lang="zh"] h1,
body[data-lang="zh"] h2,
body[data-lang="zh"] h3 { letter-spacing: 0; }

.zh-banner {
  background: #fbeee5;
  border-bottom: 1px solid #f0d6c2;
  color: #8a4416;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.zh-banner strong { color: #c55a11; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }

.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .5px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 15px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand-text small {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--navy); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2f8; color: var(--navy); }

.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(1000px 420px at 85% -10%, #eaf0f9 0%, rgba(234,240,249,0) 70%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.lead {
  max-width: 640px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.stats div { margin: 0; }
.stats dt {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.section-sub { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.locker-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* equal-size gallery frames: same box, image contained, no cropping */
.gallery-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comp-item {
  margin: 0;
}
.comp-item figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.comp-item figcaption strong {
  color: var(--navy);
  font-weight: 700;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.model-media {
  aspect-ratio: 4 / 3;
  background-color: #eef1f6;
  background-image: linear-gradient(135deg, #eef1f6 0%, #e2e8f2 100%);
  background-size: cover;
  background-position: center;
}

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }

.code {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-weight: 700;
}

.card h3 { margin: 0; font-size: 16px; color: var(--navy); }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.link { font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 0;
}

.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) { background: #fafbfd; }

.note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- features ---------- */

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.feature p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- cta ---------- */

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { margin: 0 0 6px; font-size: 26px; color: #fff; }
.cta-band p { margin: 0; color: #c9d5e8; font-size: 15px; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer { background: #141d2f; color: #b8c2d4; padding: 56px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
}

.footer-brand {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1.6px;
  font-size: 15px;
}

.footer-note { margin: 0; font-size: 13.5px; max-width: 280px; color: #8e9ab0; }

.footer-head {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.site-footer a { display: block; font-size: 14px; color: #b8c2d4; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 6px; font-size: 14px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: #71809a;
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
  .nav a { white-space: nowrap; }
  .header-inner > .btn { margin-left: auto; }
  .hero { padding: 52px 0 44px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
}

@media (max-width: 620px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .cta-band .wrap { display: block; }
  .cta-actions { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Inner pages
   ============================================================ */

.page-head {
  padding: 52px 0 38px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

.crumbs {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .4px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }

.page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--navy);
}

.page-head .lead { font-size: 17px; margin-bottom: 0; }

/* placeholder media */
.ph {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #eef1f6;
  border: 1px dashed #c3cfe0;
  border-radius: var(--radius);
  color: #8291a8;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.ph::after { content: attr(data-label); }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-tall { aspect-ratio: 3 / 4; }

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(31, 56, 100, .12);
}

.card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f7fb;
}

.model-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diagram {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* visible image placeholder for review */
.imgslot {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  border: 2px dashed #e0a179;
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, #fbfcfe 0 14px, #f1f5fa 14px 28px);
  color: #8a6a52;
}
.imgslot::before {
  content: "";
  width: 38px;
  height: 38px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c55a11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M4 17l5-4.5 3.5 3.5 3-2.5 4.5 3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.imgslot-num {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 26px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}
.imgslot-title { font-size: 15px; font-weight: 700; color: #8a4416; }
.imgslot-hint { font-size: 12px; color: #a07a5e; }
.imgslot-file {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #8a4416;
  background: #fff;
  border: 1px solid #e6cdb9;
  border-radius: 4px;
  padding: 2px 8px;
}

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.panel h3 { margin: 0 0 12px; font-size: 17px; color: var(--navy); }
.panel p:last-child { margin-bottom: 0; }

/* key-value list */
.kv { margin: 0; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* badges */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: 700;
  background: #eaf0f9;
  color: var(--navy);
}
.badge-accent { background: #fbeee5; color: var(--accent); }

/* ticks */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--muted);
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.ticks strong { color: var(--ink); }

/* callout */
.callout {
  border-left: 4px solid var(--navy);
  background: #f4f7fc;
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px;
  color: var(--muted);
  margin: 24px 0;
}
.callout strong { color: var(--ink); }

/* faq */
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }

/* table tweaks */
.spec-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.spec-table-compact th, .spec-table-compact td { padding: 10px 12px; font-size: 13.5px; }
.spec-table td .muted { color: var(--muted); font-size: 12.5px; }

/* 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; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 14.5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid #c9d7ee;
  border-color: var(--navy);
}

/* article list */
.post-list { border-top: 1px solid var(--line); }
.post-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.post-item .date { font-size: 12.5px; color: var(--muted); letter-spacing: .4px; }
.post-item h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.post-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* kpi band */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.kpis div { background: #fff; padding: 22px; }
.kpis dt { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.kpis dd { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* responsive for inner pages */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-item { grid-template-columns: 1fr; gap: 6px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
