﻿/* ok8ka.com — blocks · nx- 正文架构 */

.site-main {
  --nx-gap: var(--space-md);
  --nx-radius: var(--radius-md);
}

/* ── 区块带 ── */
.nx-band {
  width: 100%;
  max-width: 100%;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-mint-soft);
  overflow-x: hidden;
}

.nx-band--tint {
  background: linear-gradient(180deg, var(--surface-soft) 0%, transparent 100%);
}

.nx-band--ink {
  background: linear-gradient(135deg, rgba(21, 107, 74, 0.07) 0%, rgba(200, 135, 10, 0.05) 100%);
}

.nx-head {
  margin-bottom: var(--space-md);
}

.nx-head h2 {
  margin: 0 0 6px;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.35;
}

.nx-head__desc {
  margin: 0;
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
  line-height: var(--body-line-height);
}

/* ── 英雄区 ── */
.nx-hero {
  padding: var(--header-gap) 0 var(--space-lg);
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-mint-soft);
}

.nx-hero__frame {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nx-hero__visual {
  order: -1;
  width: min(512px, 100%);
  margin: 0 auto;
  padding: var(--space-sm);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
}

.nx-hero__visual img {
  width: 100%;
  max-width: 512px;
  max-height: 512px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin: 0 auto;
}

.nx-hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: var(--body-font-size);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-heading);
}

.nx-hero__lead {
  margin: 0 0 var(--space-sm);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--color-text-muted);
}

.nx-hero__lead:last-of-type {
  margin-bottom: var(--space-md);
}

.nx-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ── Bento ── */
.nx-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nx-gap);
}

.nx-bento__cell {
  padding: var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.nx-bento__cell--wide {
  grid-column: 1 / -1;
}

.nx-bento__cell--accent {
  background: linear-gradient(145deg, rgba(21, 107, 74, 0.09) 0%, var(--surface-raised) 60%);
  border-color: rgba(21, 107, 74, 0.22);
}

.nx-bento__glyph {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.nx-bento__cell h3 {
  margin: 0 0 4px;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading-accent);
}

.nx-bento__cell p {
  margin: 0;
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--color-text-muted);
}

.nx-bento__cell h3 a {
  color: inherit;
  text-decoration: none;
}

.nx-bento__cell h3 a:hover {
  color: var(--color-heading-accent);
}

/* ── 分栏 ── */
.nx-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}

.nx-split__media {
  order: -1;
}

.nx-split__media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nx-split__body {
  padding: var(--space-md);
  border-bottom: 4px solid var(--color-blue);
}

.nx-split__body h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading);
}

.nx-split__body p {
  margin: 0 0 var(--space-sm);
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

.nx-split__body ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.1rem;
}

.nx-split__body li {
  margin-bottom: 4px;
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

/* ── 聚光灯 ── */
.nx-spotlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--gradient-promo);
  color: var(--color-text-light);
  box-shadow: var(--shadow-blue);
}

.nx-spotlight h2,
.nx-spotlight p {
  margin: 0;
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--color-text-light);
}

.nx-spotlight__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-sm);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: var(--body-font-size);
  font-weight: 700;
}

.nx-spotlight__tag strong {
  color: var(--color-gold);
}

.nx-spotlight img {
  order: -1;
  width: 100%;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* ── 马赛克 ── */
.nx-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nx-gap);
}

.nx-mosaic__tile {
  padding: var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.nx-mosaic__tile--hero {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nx-mosaic__tile img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.nx-mosaic__tile--hero img {
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.nx-mosaic__tile h3 {
  margin: 0 0 4px;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading-accent);
}

.nx-mosaic__tile p {
  margin: 0;
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

.nx-mosaic__tile h3 a {
  color: inherit;
  text-decoration: none;
}

.nx-mosaic__tile h3 a:hover {
  color: var(--color-heading-accent);
}

/* ── 指标胶囊 ── */
.nx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.nx-pill {
  flex: 1 1 calc(50% - var(--space-xs));
  min-width: 0;
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.nx-pill strong {
  display: block;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading-accent);
}

.nx-pill span {
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

/* ── 步骤导轨 ── */
.nx-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  counter-reset: nxstep;
  padding-bottom: var(--space-xs);
}

.nx-rail__node {
  position: relative;
  padding: 0 var(--space-xs) calc(var(--space-md) + 16px);
  text-align: center;
  min-width: 0;
}

.nx-rail__node::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  height: 2px;
  background: var(--color-blue);
  z-index: 0;
}

.nx-rail__node:first-child::after {
  left: 50%;
}

.nx-rail__node:last-child::after {
  right: 50%;
}

.nx-rail__node::before {
  counter-increment: nxstep;
  content: counter(nxstep);
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-text-light);
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
}

.nx-rail__node h3 {
  margin: 0 0 4px;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading);
}

.nx-rail__node p {
  margin: 0;
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

/* ── 码头列表 ── */
.nx-dock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
}

.nx-dock__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-soft);
}

.nx-dock__row:last-child {
  border-bottom: none;
}

.nx-dock__row > div {
  min-width: 0;
}

.nx-dock__glyph {
  font-size: 1.25rem;
  text-align: center;
}

.nx-dock__row h3 {
  margin: 0 0 2px;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading-accent);
}

.nx-dock__row p {
  margin: 0;
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}

.nx-dock__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 88px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-size: var(--body-font-size);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
}

/* ── 数据表 ── */
.nx-sheet {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-card-border);
}

.nx-sheet__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.8fr 0.7fr auto;
  gap: 6px;
  align-items: center;
  min-width: 520px;
  padding: 10px var(--space-sm);
  font-size: var(--body-font-size);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-soft);
}

.nx-sheet__row--head {
  background: var(--color-card-inner);
  font-weight: 700;
  color: var(--color-heading);
}

.nx-sheet__row:last-child {
  border-bottom: none;
}

.nx-sheet__rtp {
  font-weight: 700;
  color: var(--color-heading-accent);
}

.nx-sheet__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 72px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-btn);
  color: var(--color-btn-text);
  font-size: var(--body-font-size);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
}

/* ── 折叠栈 ── */
.nx-fold {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-fold__item {
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
  background: var(--surface-raised);
  overflow: hidden;
}

.nx-fold__item summary {
  padding: var(--space-md);
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
}

.nx-fold__item summary::-webkit-details-marker {
  display: none;
}

.nx-fold__item summary::after {
  content: "+";
  float: right;
  color: var(--color-blue);
  font-weight: 700;
}

.nx-fold__item[open] summary::after {
  content: "−";
}

.nx-fold__body {
  padding: 0 var(--space-md) var(--space-md);
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

.nx-fold__body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.nx-fold__body li {
  margin-bottom: 4px;
}

.nx-fold__body p {
  margin: 0;
}

/* ── 问答栈 ── */
.nx-queries {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-query {
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
  background: var(--surface-raised);
  overflow: hidden;
}

.nx-query summary {
  padding: var(--space-md);
  font-size: var(--body-font-size);
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
}

.nx-query summary::-webkit-details-marker {
  display: none;
}

.nx-query__ans {
  padding: 0 var(--space-md) var(--space-md);
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--color-text-muted);
}

.nx-query__ans p {
  margin: 0;
}

/* ── 口碑 ── */
.nx-voices {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nx-voice {
  position: relative;
  padding: var(--space-md);
  padding-bottom: calc(var(--space-md) + 6px);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--shadow-sm);
}

.nx-voice::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 0 var(--nx-radius) var(--nx-radius);
  background: var(--gradient-promo);
}

.nx-voice__stars {
  margin-bottom: 4px;
  color: var(--color-gold);
  font-size: var(--body-font-size);
}

.nx-voice blockquote {
  margin: 0 0 6px;
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  color: var(--color-text-muted);
}

.nx-voice cite {
  font-size: var(--body-font-size);
  font-style: normal;
  color: var(--color-text-muted);
  opacity: 0.85;
}

/* ── 标签云 ── */
.nx-tags {
  display: flex;
  flex-direction: column;
  gap: var(--nx-gap);
}

.nx-tags__block {
  padding: var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
}

.nx-tags__block h3 {
  margin: 0 0 var(--space-xs);
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading);
}

.nx-tags__block p {
  margin: 0 0 var(--space-sm);
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

.nx-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nx-tags__list span {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-card-inner);
  border: 1px solid var(--border-soft);
  font-size: var(--body-font-size);
  font-weight: 600;
  color: var(--color-heading-accent);
}

/* ── CTA ── */
.nx-cta {
  padding: var(--space-lg);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--color-card-inner);
  border: 1px dashed rgba(21, 107, 74, 0.38);
}

.nx-cta h2 {
  margin: 0 0 var(--space-xs);
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-heading);
}

.nx-cta p {
  margin: 0 0 var(--space-md);
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

/* ── 面包屑（与顶栏同宽） ── */
.nx-crumb {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding-block: var(--space-sm);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-mint-soft);
}

.nx-crumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.nx-crumb__list a {
  color: var(--color-heading-accent);
  font-weight: 600;
}

.nx-crumb__list a:hover {
  text-decoration: underline;
}

.nx-crumb__list li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--color-text-muted);
}

/* ── 高亮条（与顶栏同宽） ── */
.nx-flash {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  padding: var(--space-sm) var(--nav-pad-x);
  text-align: center;
  font-size: var(--body-font-size);
  font-weight: 600;
  color: var(--color-heading-accent);
  background: linear-gradient(90deg, rgba(200, 135, 10, 0.14), rgba(21, 107, 74, 0.12));
  border-bottom: 1px solid var(--border-mint-soft);
  box-sizing: border-box;
}

/* ── 内页指标条 ── */
.nx-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: var(--space-md);
}

.nx-strip__item {
  padding: var(--space-sm);
  text-align: center;
  font-size: var(--body-font-size);
  font-weight: 700;
  color: var(--color-text-light);
  background: var(--gradient-promo);
  border-radius: var(--radius-sm);
}

/* ── 引语块 ── */
.nx-quote {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--nx-radius);
  background: rgba(21, 107, 74, 0.08);
  border-bottom: 4px solid var(--color-blue);
  font-size: var(--body-font-size);
  color: var(--color-text-muted);
}

/* ── 站点地图 / 交叉链接 ── */
.nx-sitemap {
  margin: 0 0 var(--space-md);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-mint-soft);
  border-bottom: 1px solid var(--border-mint-soft);
}

.nx-sitemap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  text-align: left;
}

.nx-sitemap__col h3 {
  margin: 0 0 var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nx-sitemap__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nx-sitemap__col li {
  margin: 0 0 4px;
}

.nx-sitemap__col a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.nx-sitemap__col a:hover,
.nx-sitemap__col a.is-active {
  color: var(--color-heading-accent);
  font-weight: 600;
}

.nx-cross {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.nx-cross a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nx-cross a:hover {
  background: var(--color-green-soft);
  border-color: var(--color-heading-accent);
  color: var(--color-heading-accent);
}

/* ── 联系信息 #contato ── */
.nx-contato {
  padding: var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--color-card-border);
  border-radius: var(--nx-radius);
}

.nx-contato__intro {
  margin: 0 0 var(--space-md);
  font-size: var(--body-font-size);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.nx-contato__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.nx-contato__list li {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 2px var(--space-sm);
  align-items: baseline;
  font-size: var(--body-font-size);
}

.nx-contato__label {
  font-weight: 700;
  color: var(--color-heading);
}

.nx-contato__text {
  color: var(--color-text-muted);
}

.nx-contato__link {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-contato__link:hover {
  color: var(--color-heading-accent);
}

/* ── 响应式 ── */
@media (max-width: 479px) {
  .nx-dock__row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .nx-dock__action {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .nx-contato__list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .nx-sheet__row {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .nx-sheet__row--head {
    display: none;
  }

  .nx-sheet__row span:nth-child(n+4):not(:last-child) {
    display: none;
  }
}

@media (min-width: 520px) {
  .nx-voices--cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }

  .nx-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
