/* =============================================================
   N-Type Blade page — extensions on top of the shared style.css.
   Only page-specific pieces live here; design tokens, header,
   footer and buttons come from the reference site's design system.
   ============================================================= */

/* ---------- Hero (full-bleed photo, dark overlay) ---------- */
.hero-photo {
  position: relative; min-height: 92vh; display: grid; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%; z-index: -2;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9,14,20,.88) 0%, rgba(9,14,20,.62) 42%, rgba(9,14,20,.18) 100%),
              linear-gradient(0deg, rgba(9,14,20,.55), transparent 45%);
}
.hero-photo .eyebrow { color: var(--gold-light); }
.hero-photo .eyebrow::before { background: var(--gold-light); }
.hero-photo h1 { font-size: clamp(38px, 5.4vw, 74px); line-height: 1.08; max-width: 900px; margin: 22px 0 0; }
.hero-photo h1 em { font-style: normal; display: block; color: var(--gold-light); }
.hero-photo .hp-spec {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: clamp(18px, 2vw, 26px); font-weight: 600; color: #fff;
}
.hero-photo .hp-spec b { color: var(--gold-light); font-weight: 800; }
.hero-photo .hp-spec .sep { width: 1px; height: 22px; background: rgba(255,255,255,.4); }
.hero-photo .page-lead { margin-top: 18px; max-width: 660px; color: rgba(255,255,255,.92); }
.hero-photo .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo .scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.hero-photo .scroll-hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold-light), transparent); }

/* ---------- Generic two-column media/split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); }
.split-media.plain img { border-radius: 0; }
.split-body .section-title { margin: 16px 0 18px; }
.split-body p { color: var(--slate); line-height: 1.9; font-size: 15.5px; }
.on-dark .split-body p { color: rgba(255,255,255,.9); }

/* ---------- Figure with caption chip ---------- */
.figure { margin: 0; }
.figure img { width: 100%; display: block; }
.figure figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.on-dark .figure figcaption { color: rgba(255,255,255,.7); }

/* ---------- Bullet feature list ---------- */
.tick-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.tick-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.7; color: var(--slate); }
.on-dark .tick-list li { color: rgba(255,255,255,.9); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  background: var(--gold); -webkit-clip-path: polygon(14% 48%, 0 62%, 43% 100%, 100% 22%, 86% 9%, 41% 71%);
  clip-path: polygon(14% 48%, 0 62%, 43% 100%, 100% 22%, 86% 9%, 41% 71%);
}

/* ---------- Metric highlight card ---------- */
.metric-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.metric {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.metric b { display: block; font-size: clamp(28px, 3vw, 40px); color: var(--gold-deep); letter-spacing: -.03em; line-height: 1; }
.metric span { display: block; margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.on-dark .metric { background: rgba(255,255,255,.05); border-color: var(--line-dark); }
.on-dark .metric b { color: var(--gold-light); }
.on-dark .metric span { color: rgba(255,255,255,.82); }

/* ---------- Layer-stack callouts (materials) ---------- */
.layers { display: grid; gap: 10px; margin-top: 8px; }
.layer-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--graphite);
}
.layer-row .n { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-wash); color: var(--gold-deep); font-weight: 700; font-size: 12px; }
.layer-row b { color: var(--ink); }

/* ---------- Spec chips row ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip-row span {
  font-size: 12.5px; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 100px; color: var(--slate); background: var(--white);
}
.on-dark .chip-row span { border-color: var(--line-dark); color: rgba(255,255,255,.9); background: rgba(255,255,255,.05); }

/* ---------- Cards grid (brackets / accessories / scenes) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid.four .info-card { padding: 18px; }
.card-grid.four .ic-thumb { height: 130px; }
.card-grid.four .ic-thumb img { max-height: 130px; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.info-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.info-card .ic-thumb { height: 150px; display: grid; place-items: center; margin-bottom: 18px; }
.info-card .ic-thumb img { max-height: 150px; max-width: 100%; object-fit: contain; }
.info-card h3 { font-size: 17px; }
.info-card p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.info-card .ic-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--graphite); }
.info-card .ic-meta b { color: var(--gold-deep); }
.on-dark .info-card { background: rgba(255,255,255,.06); border-color: var(--line-dark); }
.on-dark .info-card h3 { color: #fff; }
.on-dark .info-card p { color: rgba(255,255,255,.82); }
.on-dark .info-card .ic-meta { border-color: var(--line-dark); color: rgba(255,255,255,.9); }
.on-dark .info-card .ic-meta b { color: var(--gold-light); }

/* ---------- Color swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.swatch-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.swatch-card img { width: 100%; height: 210px; object-fit: contain; background: #f4f2ec; padding: 12px; }
.swatch-card .sc-body { padding: 20px 22px; }
.swatch-card h4 { font-size: 16px; }
.swatch-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.dots { display: flex; gap: 8px; margin-top: 14px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.dots i.silver { background: linear-gradient(135deg,#e8ebee,#b9c0c7); }
.dots i.black { background: #17191c; }
.dots i.white { background: #fff; }
.dots i.clear { background: rgba(255,255,255,.55); }
.dots i.orange { background: #e8a91c; }

/* ---------- Full-width diagram plate ---------- */
.plate { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 46px); box-shadow: var(--shadow-sm); }
.plate img { width: 100%; display: block; }
.plate.on-dark-plate { background: #0f1924; border-color: var(--line-dark); }
.plate-caption { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.on-dark .plate-caption { color: rgba(255,255,255,.75); }

/* ---------- Spec table ---------- */
.spec-wrap { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--ink); color: var(--gold-light); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.spec-table tbody tr:nth-child(even) { background: var(--paper); }
.spec-table tbody th { font-weight: 600; color: var(--graphite); width: 52%; }
.spec-table tbody td { color: var(--ink); font-weight: 600; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
/* Dark sections: give the table a light surface so all rows stay legible */
.on-dark .spec-wrap { border-color: rgba(255,255,255,.14); }
.on-dark .spec-table tbody tr:nth-child(even) { background: rgba(255,255,255,.94); }
.on-dark .spec-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.86); }
.on-dark .spec-table tbody th { color: var(--graphite); }
.on-dark .spec-table tbody td { color: var(--ink); }
.on-dark .spec-note { color: rgba(255,255,255,.66); }

/* ---------- Dimension cards ---------- */
.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.dim {
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.dim h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dim .big { margin-top: 10px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.dim .sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.on-dark .dim { background: rgba(255,255,255,.06); border-color: var(--line-dark); border-top-color: var(--gold); }
.on-dark .dim h4, .on-dark .dim .sub { color: rgba(255,255,255,.72); }
.on-dark .dim .big { color: #fff; }

/* ---------- Packing list (standard / optional) ---------- */
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.pack-col { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.pack-col.opt { border-style: dashed; }
.pack-col h4 { padding: 16px 22px; background: var(--ink); color: var(--gold-light); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.pack-col.opt h4 { background: var(--graphite); }
.pack-item { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pack-item:last-child { border-bottom: 0; }
.pack-item img { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.pack-item span { font-size: 14px; color: var(--graphite); }

/* ---------- Packing visuals & work flow ---------- */
.pack-visual, .work-visual {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 26px; padding: clamp(18px, 3vw, 34px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pack-visual img, .work-visual img { width: 100%; object-fit: contain; max-height: 340px; display: block; }
.pack-visual .plate-caption { grid-column: 1 / -1; margin-top: 0; }
.sub-title { margin: 40px 0 0; font-size: 20px; color: var(--gold-light); letter-spacing: .01em; }
.sub-title + .card-grid { margin-top: 20px; }
.on-dark .sub-title { color: var(--gold-light); }
.work-visual { background: var(--white); }
.work-visual img { max-height: 300px; }

/* ---------- Scenario tiles ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.scenario { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 210px; }
.scenario img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.scenario:hover img { transform: scale(1.06); }
.scenario::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,14,20,.9), rgba(9,14,20,.1) 65%); }
.scenario .sc-body { position: relative; z-index: 1; padding: 22px; color: #fff; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.scenario h4 { font-size: 16px; }
.scenario p { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.88); }

/* ---------- Closing statement ---------- */
.closing {
  position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(9,14,20,.72); }
.closing .cl-inner { max-width: 820px; padding: 40px 20px; }
.closing .eyebrow { color: var(--gold-light); }
.closing .eyebrow::before { background: var(--gold-light); }
.closing h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.2; margin: 22px 0 18px; }
.closing h2 em { font-style: normal; color: var(--gold-light); display: block; }
.closing p { color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.8; }
.closing .hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section number marker ---------- */
.sec-no { display: inline-block; font-size: 12px; letter-spacing: .18em; color: var(--gold-deep); font-weight: 700; margin-bottom: 14px; }
.on-dark .sec-no { color: var(--gold-light); }

/* ---------- 中文标题尽量单行：覆盖基础样式中 `zh-CN .section-title em { display:block }` 的强制换行 ---------- */
/* 金色 em 改为行内显示；标题不强制断行，仅在容器确实不足时自然换行 */
html[lang="zh-CN"] .section-title em { display: inline; }
.section-title { text-wrap: balance; }
/* Hero / 结尾大标题保持品牌化的两行断句，不做改动 */
.hero-photo h1 em, .closing h2 em { display: block; }

/* ---------- Reveal (progressive enhancement) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .card-grid, .card-grid.two, .card-grid.four, .metric-band, .dim-grid, .scenario-grid, .swatches, .pack-grid, .pack-visual, .work-visual { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 12px 14px; }
  .hero-photo { min-height: 84vh; }
}
@media (max-width: 620px) {
  .card-grid.two, .card-grid.four, .swatches { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scenario img { transition: none; }
}

/* ---------- v113: every section head stays left-aligned ---------- */
#main .section-head, #main .split-body { text-align: left; }
#main .section-head .eyebrow { justify-content: flex-start; }
#main .section-head .section-lead { margin-left: 0; margin-right: 0; }

/* ---------- v113b: colour swatch cards sit on a white card inside an
   .on-dark section - force dark, readable text; dot rows removed ---------- */
.swatch-card, .swatch-card h4 { color: var(--ink, #14171c); }
.swatch-card p { color: var(--slate, #565d66); }

/* ---------- v114 refinements ---------- */
.hero-photo .breadcrumb { color: rgba(255,255,255,.65); font-size: 13px; letter-spacing: .06em; margin-bottom: 16px; }
.hero-photo .breadcrumb a { color: rgba(255,255,255,.92); }
.hero-photo .breadcrumb a:hover { color: var(--gold-light); }
#main .section-lead { max-width: none; }
@media (min-width: 901px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario { min-height: 340px; }
}
.install-section .info-card { padding: 0; background: #0b1119; overflow: hidden; }
.install-section .ic-thumb { height: 340px; display: block; margin-bottom: 0; border-radius: 0; }
.install-section .ic-thumb img { max-height: none; max-width: none; width: 100%; height: 100%; object-fit: cover; display: block; }
.install-section .info-card h3 { margin: 0; padding: 16px 22px 2px; background: #0b1119; color: #fff; text-shadow: none; }
.install-section .info-card p { margin: 0; padding: 0 22px 18px; background: #0b1119; color: rgba(255,255,255,.85); text-shadow: none; }
.swatch-card img { height: auto; padding: 0; background: none; }
.closing .cl-inner { max-width: 1080px; }

/* ---------- Ship compatibility list (balcony kit 07) ---------- */
.ship-list { margin-top: 18px; display: grid; gap: 10px; }
.ship { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; line-height: 1.7; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: rgba(255,255,255,.88); }
.ship.yes { border-color: rgba(120,200,120,.45); }
.ship.warn { border-color: rgba(230,180,80,.5); }
.ship.no { border-color: rgba(220,110,110,.45); }
