.hero-preview {
  position: relative;
  padding-top: 30px;
  padding-bottom: 58px;
  overflow-x: clip;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-description {
  max-width: 940px;
  margin: 0 auto 14px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--color-text);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.trust-check {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.dictionary-wrap {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  text-align: left;
}

.dictionary-book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3px minmax(0, 1fr);
  align-items: stretch;
}

.dictionary-page {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 20px 26px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
}

.dictionary-page-left {
  padding-right: 46px;
  border-right: 0;
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) var(--radius-lg);
}

.dictionary-page-right {
  padding-left: 46px;
  border-left: 0;
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}

.dictionary-spine {
  position: relative;
  z-index: 2;
  margin-block: 14px;
  border-radius: 2px;
  background: var(--color-accent);
}

.dictionary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dictionary-head-accent {
  color: var(--color-accent-dark);
}

.dictionary-entries {
  flex: 1 1 auto;
}

.dictionary-entry {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 0 12px;
}

.dictionary-entry + .dictionary-entry {
  border-top: 1px solid var(--color-border);
}

.dictionary-page-right .dictionary-entry::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -46px;
  width: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  content: "";
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.dictionary-page-right .dictionary-entry:hover::before {
  opacity: 1;
}

.entry-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-bg);
}

.entry-dot-muted {
  border-color: var(--color-border);
  background: var(--color-panel-strong);
}

.entry-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.entry-name {
  color: var(--color-text);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.entry-phonetic {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.entry-definition {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.redaction {
  display: inline-block;
  height: 10px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-panel-strong);
  vertical-align: baseline;
}

.redaction-xs {
  width: 34px;
}

.redaction-sm {
  width: 58px;
}

.redaction-md {
  width: 92px;
}

.redaction-line {
  height: 11px;
  margin-top: 7px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-panel-strong);
}

.redaction-92 {
  width: 92%;
}

.redaction-78 {
  width: 78%;
}

.redaction-55 {
  width: 55%;
}

.dictionary-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
}

.dictionary-arcs {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.book-index {
  display: flex;
  max-width: 1120px;
  flex-direction: column;
  gap: 12px;
  margin: 20px auto 0;
}

.book-index-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.book-index-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-index-label::after {
  width: 22px;
  height: 1px;
  background: var(--color-border);
  content: "";
}

.flag-item,
.platform-index-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

.flag-item:hover,
.platform-index-item:hover {
  color: var(--color-text);
}

.flag-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

.platform-symbol {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.platform-index-item:hover .platform-symbol {
  color: var(--color-accent-dark);
}

.tabs-shell {
  min-width: 0;
}

.tab-list,
[role="tablist"] {
  display: flex;
  max-width: 100%;
  gap: 6px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab-list [role="tab"],
[role="tablist"] [role="tab"] {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 17px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.tab-list [role="tab"]:hover,
[role="tablist"] [role="tab"]:hover {
  color: var(--color-text);
}

.tab-list [role="tab"][aria-selected="true"],
[role="tablist"] [role="tab"][aria-selected="true"] {
  background: var(--color-bg);
  color: var(--color-accent-dark);
  box-shadow: 0 0 0 1px var(--color-border);
  font-weight: 650;
}

.tab-panel {
  padding-top: 24px;
}

.tab-panel[hidden] {
  display: none;
}

.toc-tabs {
  position: sticky;
  top: 12px;
  z-index: 55;
  display: flex;
  max-width: 100%;
  gap: 5px;
  margin-block: 18px 32px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  box-shadow: 0 5px 16px var(--color-shadow);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toc-tabs a {
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.toc-tabs a:hover,
.toc-tabs a.is-current,
.toc-tabs a[aria-current="location"] {
  background: var(--color-panel-strong);
  color: var(--color-accent-dark);
  font-weight: 650;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 16px 50px 16px 18px;
  cursor: pointer;
  color: var(--color-text);
  font-weight: 620;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 19px;
  color: var(--color-accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--color-text-muted);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

.plan-card.is-featured,
.plan-card[aria-current="true"] {
  border-color: var(--color-accent);
  background: var(--color-panel);
  box-shadow: inset 0 4px 0 var(--color-accent);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: calc(100% - 32px);
  padding: 5px 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 11px;
  font-weight: 700;
}

.plan-period {
  margin-bottom: 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.plan-name {
  margin-bottom: 18px;
  font-size: 24px;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 18px;
}

.plan-price strong {
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
}

.plan-price span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.plan-features {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--color-text-muted);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 18px;
}

.plan-features li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
}

.plan-card .btn,
.plan-card .btn-main,
.plan-card .btn-sub {
  width: 100%;
  margin-top: auto;
}

.table-scroll,
.location-table-wrap,
.comparison-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.location-table,
.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--color-bg);
  color: var(--color-text);
}

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

.data-table thead th,
.location-table thead th,
.comparison-table thead th {
  background: var(--color-panel-strong);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody th,
.location-table tbody th,
.comparison-table tbody th {
  color: var(--color-text);
  font-weight: 650;
}

.data-table tbody tr:last-child > *,
.location-table tbody tr:last-child > *,
.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover,
.location-table tbody tr:hover,
.comparison-table tbody tr:hover {
  background: var(--color-panel);
}

.region-row th {
  background: var(--color-panel);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.platform-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-accent-dark);
}

.platform-card-icon svg {
  width: 24px;
  height: 24px;
}

.platform-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.platform-card p {
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.platform-card .btn,
.platform-card .btn-sub,
.platform-card .btn-quiet {
  width: 100%;
  margin-top: auto;
  padding-inline: 12px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition:
    border-color var(--duration-fast),
    transform var(--duration-fast);
}

.article-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.article-card h3 {
  font-size: 21px;
  line-height: 1.35;
}

.article-card p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.article-card-link {
  margin-top: auto;
  color: var(--color-accent-dark);
  font-weight: 650;
}

.callout {
  position: relative;
  margin-block: 26px;
  padding: 20px 22px 20px 27px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text-muted);
}

.callout::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 4px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-accent);
  content: "";
}

.callout-title {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text);
}

.article-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--color-text);
  color: var(--color-bg);
}

.article-promo h2,
.article-promo h3 {
  margin-bottom: 8px;
  color: var(--color-bg);
}

.article-promo p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--color-border);
}

.article-promo .btn-main {
  border-color: var(--color-bg);
  background: var(--color-bg);
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.float-cta {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 21px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-float);
  font-size: 13.5px;
  font-weight: 650;
  transition:
    background-color var(--duration-fast),
    transform var(--duration-fast);
}

.float-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.float-cta-icon {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg);
}

.preview-page {
  overflow-x: clip;
}

.preview-section {
  padding-top: 86px;
  padding-bottom: 86px;
  border-top: 1px solid var(--color-border);
}

.preview-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.preview-section-head p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.preview-static-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.preview-static-header .header-row {
  max-width: var(--content-wide);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.palette-swatch {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.palette-color {
  height: 82px;
  border-bottom: 1px solid var(--color-border);
}

.palette-color-bg {
  background: var(--color-bg);
}

.palette-color-panel {
  background: var(--color-panel);
}

.palette-color-panel-strong {
  background: var(--color-panel-strong);
}

.palette-color-border {
  background: var(--color-border);
}

.palette-color-accent {
  background: var(--color-accent);
}

.palette-color-accent-dark {
  background: var(--color-accent-dark);
}

.palette-color-text {
  background: var(--color-text);
}

.palette-color-muted {
  background: var(--color-text-muted);
}

.palette-color-success {
  background: var(--color-success);
}

.palette-color-warning {
  background: var(--color-warning);
}

.palette-color-error {
  background: var(--color-error);
}

.palette-meta {
  padding: 12px;
}

.palette-meta strong,
.palette-meta code {
  display: block;
  overflow-wrap: anywhere;
}

.palette-meta code {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 10px;
}

.type-specimens {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.type-card {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.type-display-sample {
  margin-bottom: 15px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 420;
  line-height: 1.08;
}

.type-body-sample {
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: 17px;
}

.type-mono-sample {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.button-showcase,
.badge-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.preview-footer {
  margin-top: 0;
}

.feature-dictionary {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.feature-entry {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.feature-entry:nth-child(even) {
  background: var(--color-panel);
}

.feature-entry:last-child {
  border-bottom: 0;
}

.feature-term {
  position: relative;
}

.feature-entry:hover .feature-term::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -28px;
  width: 4px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-accent);
  content: "";
}

.feature-index {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.feature-term h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.feature-definition {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

@media (max-width: 980px) {
  .pricing-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .palette-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-static-header .desktop-nav {
    display: none;
  }

  .preview-static-header .header-tools {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .hero-preview {
    padding-top: 26px;
  }

  .dictionary-arcs {
    display: none;
  }

  .dictionary-book {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .dictionary-spine {
    width: 100%;
    height: 3px;
    margin: 0;
  }

  .dictionary-page {
    min-height: 0;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }

  .dictionary-page-left,
  .dictionary-page-right {
    padding-inline: 18px;
  }

  .dictionary-page-right .dictionary-entry::before {
    left: -18px;
  }

  .book-index-row {
    gap: 12px 18px;
  }

  .article-promo {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-promo .btn-main {
    width: 100%;
  }

  .type-specimens,
  .preview-grid-two {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero-cta-row .btn-main,
  .hero-cta-row .btn-sub {
    flex: 1 1 140px;
  }

  .trust-row {
    justify-content: flex-start;
  }

  .dictionary-head {
    letter-spacing: 0.08em;
  }

  .pricing-grid,
  .article-grid,
  .platform-grid,
  .palette-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-card {
    min-height: 190px;
  }

  .tab-list,
  [role="tablist"],
  .toc-tabs {
    border-radius: var(--radius-md);
  }

  .float-cta {
    right: 16px;
    bottom: 16px;
  }

  .prose > .data-table {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .preview-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* 2026-08-20 小学生走查:悬浮 CTA 压字(压正文段尾/博客卡标题/页脚法律链,JVVPN/HBVPN/VPNFF 最狠)。
   页尾追加与浮标等高的垫块:滚到底时浮标落在空白带上,不再永久遮挡内容 */
body:has(.float-cta)::after {
  content: '';
  display: block;
  height: calc(88px + env(safe-area-inset-bottom, 0px));
}
