/* ==========================================================================
   16win.cn design system
   Loaded after the legacy WordPress CSS, so plain selectors win by order.
   ========================================================================== */

:root {
  --paper: #f7f6f3;
  --paper-2: #ecebe6;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #5f6360;
  --muted-2: #81857f;
  --line: #dedcd5;
  --line-strong: #b9b6ae;
  --accent: #d61518;
  --accent-2: #ef4444;
  --accent-3: #ff8a8d;
  --accent-soft: #fdecec;
  --accent-ink: #8f0d10;
  --dark: #111111;
  --dark-2: #1c1c1c;
  --on-dark: #f7f7f5;
  --on-dark-muted: #b8b8b2;
  --danger: #b42318;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 23, .05), 0 10px 28px rgba(14, 26, 23, .05);
  --shadow: 0 2px 6px rgba(14, 26, 23, .06), 0 26px 64px rgba(14, 26, 23, .09);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */

body.site-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.site-page :is(h1, h2, h3, h4, h5, h6) {
  color: var(--ink);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: balance;
}

body.site-page p,
body.site-page li {
  text-wrap: pretty;
}

body.site-page ::selection {
  background: var(--accent);
  color: #fff;
}

body.site-page :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.sc-skip {
  position: fixed;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  z-index: 1000;
  translate: 0 -160%;
  padding: .65rem 1rem;
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  text-decoration: none;
  transition: translate .18s ease;
}

.sc-skip:focus-visible {
  translate: 0 0;
}

.sc-kicker {
  display: block;
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sc-visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ---------- Buttons ---------- */

.sc-button,
body.site-legacy .btn,
body.site-legacy .vc_btn3,
body.site-legacy .read-more-btn,
body.site-legacy input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-block-size: 2.75rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, translate .18s ease;
}

.sc-button:hover,
body.site-legacy .btn:hover,
body.site-legacy .vc_btn3:hover,
body.site-legacy .read-more-btn:hover,
body.site-legacy input[type="submit"]:hover {
  background: var(--accent);
  color: #fff;
  translate: 0 -1px;
}

.sc-button--primary {
  background: var(--accent);
  color: #fff;
}

.sc-button--primary:hover {
  background: var(--accent-ink);
}

.sc-button--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.sc-button--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

body.site-legacy .btn-line,
body.site-legacy .btn-light {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

body.site-legacy .btn-line:hover,
body.site-legacy .btn-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

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

.sc-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 200;
  background: rgba(246, 246, 241, .9);
  border-block-end: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sc-header *,
.sc-footer *,
.sc-nav__menu * {
  box-sizing: border-box;
}

.sc-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-inline-size: var(--max);
  min-block-size: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sc-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}

.sc-brand__logo {
  display: block;
  block-size: 34px;
  inline-size: auto;
  flex: none;
}

.sc-brand__flame {
  display: block;
  inline-size: 34px;
  block-size: 34px;
  flex: none;
}

.sc-brand__name {
  display: flex;
  flex-direction: column;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.sc-brand__name small {
  margin-block-start: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .16em;
}

.sc-nav {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.sc-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-block-size: 2.75rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.sc-nav__toggle-icon {
  display: grid;
  gap: 3px;
  inline-size: 16px;
}

.sc-nav__toggle-icon span {
  display: block;
  block-size: 2px;
  background: currentColor;
  border-radius: 2px;
}

.sc-nav__menu {
  display: flex;
  align-items: center;
  gap: .125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-nav__link,
.sc-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-block-size: 2.75rem;
  padding: .5rem .7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.sc-nav__link:hover,
.sc-nav__trigger:hover,
.sc-nav__group.is-active > .sc-nav__trigger,
.sc-nav__group.is-open > .sc-nav__trigger {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.sc-nav__link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.sc-nav__group.is-active > .sc-nav__trigger {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.sc-nav__trigger svg {
  transition: rotate .18s ease;
}

.sc-nav__group.is-open > .sc-nav__trigger svg {
  rotate: 180deg;
}

.sc-nav__group {
  position: relative;
}

.sc-nav__sublist {
  position: absolute;
  inset-block-start: calc(100% + .45rem);
  inset-inline-start: 0;
  z-index: 10;
  display: none;
  min-inline-size: 15rem;
  margin: 0;
  padding: .45rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.sc-nav__group.is-open > .sc-nav__sublist {
  display: grid;
  gap: 2px;
}

.sc-nav__sublist[hidden] {
  display: none;
}

.sc-nav__sublist a {
  display: block;
  padding: .55rem .7rem;
  border-radius: var(--radius-xs);
  color: var(--ink-2);
  font-size: .88rem;
  line-height: 1.35;
  text-decoration: none;
}

.sc-nav__sublist a:hover,
.sc-nav__sublist a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.sc-nav__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-inline-start: .4rem;
}

.sc-nav__actions .sc-button {
  min-block-size: 2.45rem;
  padding: .5rem .9rem;
  font-size: .86rem;
  white-space: nowrap;
}

/* Collapsed / popover menu */
.sc-nav__menu[popover] {
  position: fixed;
  inset-block-start: calc(var(--header-h) + .5rem);
  inset-inline-end: 1rem;
  inset-inline-start: auto;
  display: grid;
  gap: 2px;
  align-content: start;
  inline-size: min(92vw, 24rem);
  max-block-size: calc(100dvh - var(--header-h) - 1.5rem);
  margin: 0;
  padding: .55rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@supports not selector(:popover-open) {
  .sc-nav__menu[popover] {
    display: none;
  }

  .sc-nav__menu[popover].is-open-menu {
    display: grid;
  }
}

.sc-nav__menu[popover]::backdrop {
  background: rgba(11, 31, 26, .2);
  backdrop-filter: blur(2px);
}

@supports selector(:popover-open) {
  .sc-nav__menu[popover]:not(:popover-open) {
    display: none;
  }
}

@supports (anchor-name: --sc-anchor) {
  .sc-nav__toggle {
    anchor-name: --sc-menu-anchor;
  }

  .sc-nav__menu[popover] {
    inset-block-start: anchor(--sc-menu-anchor bottom);
    inset-inline-end: anchor(--sc-menu-anchor right);
  }
}

.sc-nav__menu[popover] :is(.sc-nav__link, .sc-nav__trigger) {
  inline-size: 100%;
  justify-content: space-between;
  border-radius: var(--radius-xs);
  padding: .7rem .8rem;
}

.sc-nav__menu[popover] .sc-nav__sublist {
  position: static;
  inset: auto;
  min-inline-size: 0;
  margin: .15rem 0 .4rem;
  padding: 0 0 0 .6rem;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.sc-nav__menu[popover] .sc-nav__actions {
  display: grid;
  gap: .5rem;
  margin: .5rem 0 0;
  padding: .55rem 0 0;
  border-block-start: 1px solid var(--line);
}

/* Wide layout */
.sc-header.is-wide .sc-nav__toggle {
  display: none;
}

.sc-header.is-wide .sc-nav__menu {
  position: static;
  display: flex;
  inline-size: auto;
  max-block-size: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sc-header.is-wide .sc-nav__menu::backdrop {
  display: none;
}

.sc-header.is-measuring,
.sc-header.is-measuring * {
  transition: none !important;
}

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

.sc-footer {
  margin-block-start: clamp(4rem, 8vw, 7rem);
  background: var(--dark);
  color: var(--on-dark);
}

.sc-footer a {
  color: inherit;
  text-decoration: none;
}

.sc-footer a:hover {
  color: var(--accent-3);
}

.sc-footer__inner {
  max-inline-size: var(--max);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem;
}

.sc-footer__top {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.sc-brand--footer .sc-brand__name {
  color: var(--on-dark);
}

.sc-brand--footer .sc-brand__name small {
  color: var(--on-dark-muted);
}

.sc-footer__brand p {
  max-inline-size: 30ch;
  margin: 1.1rem 0 1rem;
  color: var(--on-dark-muted);
  font-size: .9rem;
  line-height: 1.8;
}

.sc-footer__brand address {
  color: var(--on-dark-muted);
  font-size: .86rem;
  font-style: normal;
  line-height: 1.8;
}

.sc-footer__brand address a {
  color: var(--accent-3);
}

.sc-footer__column {
  min-inline-size: 0;
}

.sc-footer__title {
  margin: 0 0 .9rem;
  color: var(--on-dark-muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sc-footer__links {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}

.sc-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: 1.2rem;
  border-block-start: 1px solid rgba(255, 255, 255, .14);
  color: var(--on-dark-muted);
  font-size: .8rem;
}

.sc-footer__legal {
  display: inline-flex;
  gap: 1.2rem;
}

/* ==========================================================================
   Legacy WordPress pages
   ========================================================================== */

body.site-legacy {
  background: var(--paper);
}

body.site-legacy .default-layout {
  overflow: visible;
}

body.site-legacy #content.site-content {
  padding: 0;
}

body.site-legacy .container {
  width: 100%;
  max-inline-size: var(--max);
  padding-inline: var(--gutter);
}

/* Page hero */
body.site-legacy .page-title-area {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(60% 130% at 86% 0%, var(--accent-soft) 0%, rgba(230, 242, 238, 0) 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface-2) 100%);
  border-block-end: 1px solid var(--line);
}

body.site-legacy .page-title-area::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 92, 80, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 80, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

body.site-legacy .page-title-area::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2));
  inline-size: 64px;
  block-size: 3px;
  background: var(--accent);
}

body.site-legacy .page-title-area .d-table,
body.site-legacy .page-title-area .d-table-cell {
  display: block;
  block-size: auto;
  inline-size: auto;
}

body.site-legacy .page-title-area .container {
  position: relative;
  z-index: 1;
}

body.site-legacy .page-title-area .shape1,
body.site-legacy .page-title-area .shape2,
body.site-legacy .page-title-area .shape3,
body.site-legacy .page-title-area .shape4,
body.site-legacy .page-title-area .shape5,
body.site-legacy .page-title-area .shape6,
body.site-legacy .page-title-area .shape7,
body.site-legacy .page-title-area .shape8 {
  display: none;
}

body.site-legacy .page-title-area .page-title {
  max-inline-size: 28ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.85rem, 1.2rem + 2.35vw, 2.9rem);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* Content shells */
body.site-legacy .blog-area,
body.site-legacy .blog-details-area {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

body.site-legacy #primary.container {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

body.site-legacy #primary > [id^="post-"] {
  padding: clamp(1.25rem, 3vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body.site-legacy .blog-details {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Article / page typography */
body.site-legacy :is(.article-content, .entry-content) {
  color: var(--ink-2);
  font-size: 1.035rem;
  line-height: 1.85;
}

body.site-legacy :is(.article-content, .entry-content) > :first-child {
  margin-block-start: 0;
}

body.site-legacy :is(.article-content, .entry-content) :is(h1, h2, h3, h4) {
  scroll-margin-block-start: calc(var(--header-h) + 1rem);
}

body.site-legacy :is(.article-content, .entry-content) h2 {
  margin-block: 2.4em .7em;
  padding-block-start: .65em;
  border-block-start: 1px solid var(--line);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.3;
}

body.site-legacy :is(.article-content, .entry-content) h3 {
  margin-block: 1.9em .5em;
  font-size: clamp(1.12rem, 1rem + .55vw, 1.35rem);
  line-height: 1.4;
}

body.site-legacy :is(.article-content, .entry-content) h4 {
  margin-block: 1.6em .4em;
  font-size: 1.05rem;
}

body.site-legacy :is(.article-content, .entry-content) p {
  margin-block: 0 1.15em;
  max-inline-size: 72ch;
  color: var(--ink-2);
  font-size: inherit;
  line-height: inherit;
}

body.site-legacy :is(.article-content, .entry-content) li {
  margin-block: .35em;
  color: var(--ink-2);
  font-size: inherit;
  line-height: inherit;
}

body.site-legacy :is(.article-content, .entry-content) a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

body.site-legacy :is(.article-content, .entry-content) a:hover {
  color: var(--accent-ink);
}

body.site-legacy :is(.article-content, .entry-content) :is(ul, ol) {
  margin-block: 0 1.25em;
  padding-inline-start: 1.35em;
}

body.site-legacy :is(.article-content, .entry-content) li {
  margin-block: .35em;
}

body.site-legacy :is(.article-content, .entry-content) img {
  max-inline-size: 100%;
  block-size: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

body.site-legacy :is(.article-content, .entry-content) figure {
  margin: 1.8em 0;
}

body.site-legacy :is(.article-content, .entry-content) figcaption {
  margin-block-start: .6em;
  color: var(--muted);
  font-size: .82rem;
}

body.site-legacy :is(.article-content, .entry-content) blockquote {
  margin: 2em 0;
  padding: 1.1rem 1.3rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}

body.site-legacy :is(.article-content, .entry-content) blockquote p:last-child {
  margin-block-end: 0;
}

body.site-legacy :is(.article-content, .entry-content) code {
  padding: .12em .35em;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: .9em;
}

body.site-legacy :is(.article-content, .entry-content) pre {
  margin: 1.8em 0;
  padding: 1.1rem 1.2rem;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.7;
}

body.site-legacy :is(.article-content, .entry-content) pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

body.site-legacy :is(.article-content, .entry-content) table {
  inline-size: 100%;
  margin-block: 1.7em;
  border-collapse: collapse;
  font-size: .93rem;
}

body.site-legacy :is(.article-content, .entry-content) :is(th, td) {
  padding: .6em .75em;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

body.site-legacy :is(.article-content, .entry-content) th {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}

body.site-legacy :is(.article-content, .entry-content) hr {
  margin-block: 2.6em;
  border: 0;
  border-block-start: 1px solid var(--line);
}

body.site-legacy .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

body.site-legacy .entry-meta li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .78rem;
}

body.site-legacy .entry-meta i {
  color: var(--accent);
}

/* Hide the dated author box, keep related posts */
body.site-legacy .abh_box {
  display: none;
}

body.site-legacy .yarpp-related {
  margin-block-start: 2.2rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

body.site-legacy .yarpp-related h3 {
  margin: 0 0 .6rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.site-legacy .yarpp-related ol {
  margin: 0;
  padding-inline-start: 1.2em;
}

body.site-legacy .yarpp-related li {
  margin-block: .3rem;
}

/* Archive cards */
body.site-legacy .blog-area .row.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  block-size: auto !important;
}

body.site-legacy .blog-area .grid-sizer {
  display: none !important;
}

body.site-legacy .blog-area .grid-item {
  width: auto !important;
  max-inline-size: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  position: static !important;
  inset: auto !important;
  block-size: auto !important;
}

body.site-legacy .single-blog-post {
  block-size: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  container-type: inline-size;
  transition: translate .2s ease, box-shadow .2s ease, border-color .2s ease;
}

@container (max-width: 22rem) {
  body.site-legacy .blog-post-content {
    padding: 1rem;
  }

  body.site-legacy .blog-post-content h3 {
    font-size: 1.02rem;
  }
}

body.site-legacy .single-blog-post:hover {
  translate: 0 -3px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

body.site-legacy .blog-post-content {
  display: flex;
  flex-direction: column;
  block-size: 100%;
  padding: 1.35rem;
}

body.site-legacy .post_type {
  align-self: flex-start;
  margin-block-end: .8rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
}

body.site-legacy .blog-post-content h3 {
  margin: 0 0 .65rem;
  font-size: 1.1rem;
  line-height: 1.45;
}

body.site-legacy .blog-post-content h3 a {
  color: var(--ink);
  text-decoration: none;
}

body.site-legacy .blog-post-content h3 a:hover {
  color: var(--accent);
}

body.site-legacy .blog-post-content > ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin: 0 0 .7rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .78rem;
}

body.site-legacy .blog-post-content > ul li {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
}

body.site-legacy .blog-post-content > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.site-legacy .blog-post-content .read-more-btn {
  align-self: flex-start;
  margin-block-start: auto;
  min-block-size: 2.25rem;
  padding: .35rem .7rem;
  background: transparent;
  border-color: var(--line);
  color: var(--accent);
  font-size: .82rem;
}

body.site-legacy .blog-post-content .read-more-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Sidebar */
body.site-legacy .widget-area {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  inset-block-start: calc(var(--header-h) + 1rem);
}

body.site-legacy .widget {
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

body.site-legacy .widget-area .widget .widget-title {
  margin: 0 0 .85rem;
  padding-block-end: .6rem;
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.site-legacy .widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-legacy .widget li {
  margin: 0;
  padding: .42rem 0;
  border-block-end: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.55;
}

body.site-legacy .widget li:last-child {
  border-block-end: 0;
}

body.site-legacy .widget a {
  color: var(--ink-2);
  text-decoration: none;
}

body.site-legacy .widget a:hover {
  color: var(--accent);
}

body.site-legacy .widget .current-cat > a {
  color: var(--accent);
  font-weight: 600;
}

body.site-legacy .search-form {
  display: flex;
  gap: .4rem;
}

body.site-legacy .search-form label {
  flex: 1;
  margin: 0;
}

body.site-legacy .search-form :is(input[type="search"], input[type="text"]) {
  inline-size: 100%;
  min-block-size: 2.5rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}

body.site-legacy .search-form input[type="submit"] {
  min-block-size: 2.5rem;
  padding: .4rem .8rem;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
}

body.site-legacy .search-form input[type="submit"]:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: #fff;
}

body.site-legacy .blog-post-content .fa,
body.site-legacy .entry-meta .fa {
  color: var(--accent);
}

/* FAQ accordion */
body.site-legacy .faq-accordion .accordion {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-legacy .faq-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

body.site-legacy .faq-accordion .accordion .accordion-item .accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

body.site-legacy .faq-accordion .accordion .accordion-item .accordion-title::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
}

body.site-legacy .faq-accordion .accordion .accordion-item .accordion-title:hover,
body.site-legacy .faq-accordion .accordion .accordion-item .accordion-title.active {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

body.site-legacy .faq-accordion .accordion .accordion-item .accordion-title.active::after {
  content: "−";
}

body.site-legacy .faq-accordion .accordion .accordion-item .accordion-content {
  display: none;
  inline-size: 100%;
  margin: 0;
  padding: 0 1.15rem;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.85;
}

body.site-legacy .faq-accordion .accordion .accordion-item .accordion-content.show {
  display: block;
  padding-block-end: 1.15rem;
}

body.site-legacy #secondary:empty {
  display: none;
}

/* Pagination */
body.site-legacy .pagination-area {
  margin-block-start: 1.75rem;
}

body.site-legacy .pagination-area nav,
body.site-legacy .pagination-area ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.site-legacy .pagination-area :is(a, span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.5rem;
  min-block-size: 2.5rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .85rem;
  text-decoration: none;
}

body.site-legacy .pagination-area :is(a:hover, .current) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Legacy forms */
body.site-legacy .wpcf7-form :is(input:not([type="submit"]):not([type="hidden"]), textarea, select) {
  inline-size: 100%;
  min-block-size: 2.75rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
}

body.site-legacy .wpcf7-form textarea {
  min-block-size: 8rem;
  resize: vertical;
}

body.site-legacy .wpcf7-form input[type="submit"] {
  inline-size: auto;
}

body.site-legacy form button[type="submit"],
body.site-legacy .inputbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: .65rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}

body.site-legacy form button[type="submit"]:hover,
body.site-legacy .inputbtn:hover {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: #fff;
}

/* Visual Composer sections should not fight the new surfaces */
body.site-legacy .vc_section {
  background: transparent;
}

body.site-legacy :is(.ptb-80, .ptb-100) {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

body.site-legacy :is(.about-area, .funfacts-area, .team-area, .bg-f9f6f6) {
  background: transparent;
}

body.site-legacy .section-title h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}

body.site-legacy .funfacts-area .single-funfacts {
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Utility floaters */
body.site-legacy .go-top {
  position: fixed;
  inset-block-end: 1.1rem;
  inset-inline-end: 1.1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

#yseo-float {
  background: var(--accent) !important;
  box-shadow: 0 10px 28px rgba(11, 92, 80, .32) !important;
}

#yseo-float-close {
  background: var(--dark) !important;
}

/* ==========================================================================
   Self-contained landing pages: shared tokens, type and header rhythm
   ========================================================================== */

body.site-custom {
  background: var(--paper);
}

/* Shared chrome replaces the page's own header/footer */
body.has-site-chrome > header:not(.sc-header),
body.has-site-chrome > footer:not(.sc-footer),
body.has-site-chrome > .site-header,
body.has-site-chrome > .site-footer,
body.has-site-chrome > .site-nav {
  display: none !important;
}

/* VI: use the company red for product-page accents */
body.site-custom--foreign-trade {
  --salmon: #d61518;
  --salmon-d: #8f0d10;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --body: #4b4b4b;
  --muted: #6b6b6b;
  --steel: #4b4b4b;
  --steel-d: #2b2b2b;
  --soft: #f7f6f3;
  --soft-2: #efeee8;
  --line: #dedcd5;
  --line-2: #e9e7e0;
}

body.site-custom--foreign-trade .hero h1 em {
  color: var(--accent);
}

body.site-custom--tusheng {
  --coral: #d61518;
  --coral-d: #8f0d10;
  --coral-l: #fdecec;
  --navy: #111111;
  --navy-2: #2b2b2b;
  --ink: #111111;
  --muted: #6b6b6b;
  --soft: #f7f6f3;
  --line: #dedcd5;
  --line2: #e9e7e0;
}

body.site-custom--aiops,
body.site-custom--odoo {
  --accent: #d61518;
  --ink: #111111;
  --muted: #5f6360;
  --line: #dedcd5;
  --bg: #f7f6f3;
}

body.site-custom--saishi {
  --cinnabar: #d61518;
  --cinnabar-hover: #8f0d10;
  --cinnabar-container: #fdecec;
}

body.site-custom :is(header.site-header, header.site, header.site-nav) {
  position: sticky;
  inset-block-start: 0;
  z-index: 90;
  background: rgba(246, 246, 241, .92);
  border-block-end: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.site-custom :is(header.site-header .header-inner, header.site-header .nav, header.site .wrap, header.site-nav .site-nav__inner) {
  max-inline-size: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body.site-custom :is(header.site-header, header.site, header.site-nav) :is(.logo, .brand) {
  color: var(--ink);
}

body.site-custom header.site-header .logo:not(:has(.mark))::before,
body.site-custom header.site .brand::before {
  content: "";
  display: inline-block;
  flex: none;
  inline-size: 28px;
  block-size: 28px;
  margin-inline-end: .55rem;
  background: url("/assets/brand/mark.svg") center / contain no-repeat;
  vertical-align: -7px;
}

body.site-custom header.site-header .logo:not(:has(.mark)) {
  display: inline-flex;
  align-items: center;
}

body.site-custom header.site .brand {
  display: inline-flex;
  align-items: center;
}

body.site-custom :is(header.site-header, header.site, header.site-nav) :is(a, button, summary) {
  color: var(--ink-2);
}

body.site-custom :is(header.site-header, header.site, header.site-nav) :is(a:hover, button:hover, summary:hover) {
  color: var(--accent);
}

body.site-custom :is(header.site-header .main-nav a, header.site-header .menu a, header.site .wrap nav a, header.site-nav .nav-links a) {
  min-block-size: 2.75rem;
  display: inline-flex;
  align-items: center;
}

body.site-custom .subnav {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
}

body.site-custom :is(header.site-header .main-nav a, header.site-header .menu a, header.site-nav .nav-links a, header.site nav a) {
  color: var(--ink-2);
}

body.site-custom :is(header.site-header .main-nav a, header.site-header .menu a, header.site-nav .nav-links a, header.site nav a):hover,
body.site-custom :is(header.site-header .main-nav a.active, header.site-header .menu a.active, header.site-nav .nav-links a.active) {
  color: var(--accent);
}

body.site-custom header.site-header .main-nav > ul > li.active > a::before {
  background: var(--accent);
}

body.site-custom .subnav {
  border-block-end-color: var(--line);
}

body.site-custom .subnav .sn-label {
  color: var(--accent);
}

body.site-custom .subnav a:hover,
body.site-custom .subnav a.active {
  color: var(--accent-ink);
}

body.site-custom .subnav a.active {
  border-color: var(--accent);
}

body.site-custom .subnav a:hover {
  color: var(--accent);
}

body.site-custom .btn,
body.site-custom .button,
body.site-custom .card,
body.site-custom .chip,
body.site-custom .report,
body.site-custom .panel {
  border-radius: var(--radius-sm);
}

body.site-custom .card {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Home page refinements (its own CSS defines the layout)
   ========================================================================== */

body.home-page {
  background: var(--paper);
}

body.home-page .wrap {
  max-inline-size: var(--max);
  padding-inline: var(--gutter);
}

body.home-page .btn {
  border-radius: var(--radius-sm);
}

body.home-page .cta .btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

body.home-page .cta .btn-light:hover {
  background: var(--accent-3);
  border-color: var(--accent-3);
  color: var(--dark);
}

body.home-page :is(.bento, .cell, .cap, .facts, .cta) {
  border-radius: var(--radius-sm);
}

body.home-page .bento {
  overflow: hidden;
}

body.home-page .sec {
  padding-block-start: clamp(3.5rem, 7vw, 6rem);
}

body.home-page .hero {
  padding-block-start: clamp(3rem, 6vw, 5rem);
}

body.home-page .hero h1 {
  text-wrap: balance;
}

/* ---------- 404 ---------- */

.not-found {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: 60vh;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter);
  overflow: hidden;
}

.not-found::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 92, 80, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 80, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 80% at 50% 40%, #000 0%, transparent 78%);
}

.not-found__inner {
  position: relative;
  z-index: 1;
  max-inline-size: 52rem;
  text-align: center;
}

.not-found h1 {
  margin: .15em 0 .35em;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
}

.not-found p {
  max-inline-size: 44ch;
  margin-inline: auto;
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: center;
  margin-block-start: 1.8rem;
}

/* ==========================================================================
   Tool & content hub (/tools/)
   ========================================================================== */

.hub {
  background: var(--paper);
}

.hub-wrap {
  max-inline-size: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hub-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(55% 130% at 88% 0%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--surface-2));
  border-block-end: 1px solid var(--line);
}

.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(214, 21, 24, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 21, 24, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.hub-hero .hub-wrap {
  position: relative;
  z-index: 1;
}

.hub-hero h1 {
  max-inline-size: 22ch;
  margin: .2em 0 .35em;
  font-size: clamp(2.1rem, 1.25rem + 3.4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hub-hero h1 span {
  color: var(--accent);
}

.hub-lead {
  max-inline-size: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hub-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block-start: 2rem;
}

.hub-jump a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.4rem;
  padding: .35rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .84rem;
  text-decoration: none;
}

.hub-jump a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.hub-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-block-end: 1px solid var(--line);
}

.hub-section__head {
  max-inline-size: 70ch;
  margin-block-end: 1.6rem;
}

.hub-section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem);
}

.hub-section__head > p:last-child {
  margin-block-start: .6rem;
  color: var(--muted);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 1rem;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-block-size: 11rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: translate .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hub-card:hover {
  translate: 0 -2px;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.hub-card__tag {
  align-self: flex-start;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hub-card strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.hub-card__desc {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.hub-card__arrow {
  margin-block-start: auto;
  padding-block-start: .6rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .9rem;
}

.hub-section--contact {
  border-block-end: 0;
}

.hub-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hub-contact h2 {
  margin: .2em 0 .3em;
}

.hub-contact p:last-child {
  color: var(--muted);
  max-inline-size: 56ch;
}

@media (max-width: 760px) {
  .hub-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .sc-footer__top {
    grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr));
  }

  .sc-footer__brand {
    grid-column: 1 / -1;
  }

  body.site-legacy .widget-area {
    position: static;
  }
}

@media (max-width: 900px) {
  body.site-legacy .blog-area .row.grid {
    grid-template-columns: 1fr;
  }

  body.site-legacy #primary > [id^="post-"] {
    padding: 1.15rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .sc-header__inner {
    gap: .75rem;
  }

  .sc-brand__logo {
    block-size: 30px;
  }

  .sc-brand__flame {
    inline-size: 30px;
    block-size: 30px;
  }

  .sc-brand__name {
    font-size: 1rem;
  }

  .sc-brand__name small {
    display: none;
  }

  .sc-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .sc-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  body.site-legacy .page-title-area .page-title {
    max-inline-size: none;
  }

  body.site-legacy :is(.article-content, .entry-content) {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .sc-footer__top {
    grid-template-columns: 1fr;
  }

  .sc-footer__legal {
    flex-direction: column;
    gap: .35rem;
  }

  .sc-nav__menu[popover] {
    inset-inline: .75rem;
    inline-size: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.site-page *,
  body.site-page *::before,
  body.site-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @view-transition {
    navigation: auto;
  }
}

@media (forced-colors: active) {
  .sc-nav__link[aria-current="page"],
  .sc-nav__sublist a[aria-current="page"] {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}

/* page-builder blocks whose reveal animation no longer runs */
body.site-legacy .wpb_animate_when_almost_visible{opacity:1!important}
