:root {
  --ink-950: #101216;
  --ink-900: #17191e;
  --ink-800: #24272d;
  --paper: #f5f2ec;
  --white: #fff;
  --brand-red: #c62026;
  --brand-red-dark: #9f171d;
  --light-amber: #ffb000;
  --text: #1b1d22;
  --muted: #666a73;
  --line: #d9d6cf;
  --shadow: 0 22px 60px rgba(20, 20, 20, .1);
  --radius: 18px;
  --shell: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--light-amber); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.25rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { margin: 0; }

.shell { width: min(calc(100% - clamp(2rem, 8vw, 6rem)), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; left: 1rem; top: 1rem; transform: translateY(-180%); padding: .7rem 1rem; background: var(--white); color: var(--ink-950); border-radius: .5rem; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 .85rem; color: var(--brand-red); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow--light { color: var(--light-amber); }
.meta { color: #c9cbd0; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(16, 18, 22, .96); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { min-width: 0; display: flex; align-items: center; gap: 1rem; color: var(--white); }
.brand img { width: 82px; height: 46px; object-fit: contain; border-radius: .35rem; }
.brand__name { max-width: 16rem; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav__link { padding: .65rem .8rem; color: #d7d9de; border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.primary-nav__link:hover, .primary-nav__link.is-current { color: var(--white); background: rgba(255,255,255,.1); }
.nav-toggle { display: none; align-items: center; gap: .65rem; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .55rem .85rem; cursor: pointer; }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { width: 18px; height: 2px; display: block; background: currentColor; transition: transform .2s ease; }
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.home-hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink-950); }
.home-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.home-hero::after { content: ""; position: absolute; width: 45vw; height: 45vw; right: -22vw; top: -25vw; border: 1px solid rgba(255,176,0,.35); border-radius: 50%; box-shadow: 0 0 100px rgba(198,32,38,.15); }
.home-hero__grid { position: relative; z-index: 1; min-height: min(780px, calc(100vh - 82px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); padding-block: clamp(5rem, 10vw, 9rem); }
.home-hero h1 { max-width: 9em; }
.home-hero__lead { max-width: 38rem; margin-top: 1.5rem; color: #d1d3d8; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.home-hero__note { margin-top: 1.1rem; color: #aeb1b8; font-size: .9rem; }
.home-hero__visual { min-width: 0; position: relative; display: grid; grid-template-columns: minmax(8rem, .4fr) minmax(0, 1fr); align-items: end; gap: 1rem; }
.home-hero__brand-card { position: relative; z-index: 2; margin-right: -2.5rem; margin-bottom: 2.5rem; padding: 1rem; color: var(--text); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-3deg); }
.home-hero__brand-card img { width: 100%; height: auto; object-fit: contain; }
.home-hero__brand-card span { display: block; margin-top: .5rem; color: var(--muted); font-size: .72rem; text-align: center; }
.home-hero__image { margin: 0; padding: .75rem; background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(2deg); }
.home-hero__image img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); }
.home-hero__image figcaption { padding: .75rem .25rem .1rem; color: var(--muted); font-size: .78rem; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.button--primary { color: var(--white); background: var(--brand-red); }
.button--primary:hover { background: var(--brand-red-dark); }
.button--ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.button--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.button--ghost-dark { color: var(--ink-950); border-color: #aaa; }
.button--ghost-dark:hover { border-color: var(--ink-950); }
.button--dark { color: var(--white); background: var(--ink-950); }
.button--dark:hover { background: var(--brand-red); }
.button--light { color: var(--ink-950); background: var(--white); }
.button--light:hover { color: var(--white); background: var(--brand-red); }
.button--block { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand-red); font-weight: 700; }
.text-link:hover { color: var(--brand-red-dark); }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--first { padding-top: clamp(2.5rem, 6vw, 5rem); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--dark { color: var(--white); background: var(--ink-950); }
.section-heading { margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(16rem, .8fr); align-items: end; gap: 2rem; }
.section-heading--split > p { max-width: 34rem; color: var(--muted); }
.section-heading--light { color: var(--white); }
.section-action { margin-top: 2.5rem; text-align: center; }

.application-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.application-grid--featured .application-card:first-child { grid-column: span 2; }
.application-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(30,30,30,.06); }
.application-card__media { display: grid; place-items: center; min-height: 17rem; padding: 1.5rem; background: #efede8; }
.application-card__media img { width: 100%; height: 16rem; object-fit: contain; }
.application-card__media img[src="/static/images/nopic.png"] { display: none; }
.application-card__body { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; }
.application-card__body h2, .application-card__body h3 { margin-bottom: .85rem; }
.application-card__body h2 a, .application-card__body h3 a { overflow-wrap: break-word; }
.application-card__body > p:not(.eyebrow) { margin-bottom: 1.25rem; color: var(--muted); }
.application-card__body .text-link { margin-top: auto; }

.project-stack { display: grid; gap: 1.5rem; }
.project-feature { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: calc(var(--radius) + 6px); }
.project-feature__graphic { min-height: 25rem; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; color: var(--white); background: radial-gradient(circle at 78% 20%, rgba(255,176,0,.27), transparent 19%), linear-gradient(135deg, #2a1c1e, #111318 68%); }
.project-feature__graphic::before, .project-feature__graphic::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); }
.project-feature__graphic::before { width: 24rem; height: 24rem; right: -7rem; top: -8rem; }
.project-feature__graphic::after { width: 14rem; height: 14rem; right: -2rem; top: -3rem; }
.project-feature__graphic span { font-size: clamp(4rem, 11vw, 9rem); font-weight: 800; line-height: .8; letter-spacing: -.07em; }
.project-feature__graphic i { width: 7rem; height: 3px; margin: 2rem 0 1rem; background: var(--brand-red); }
.project-feature__graphic strong { font-size: .8rem; letter-spacing: .28em; }
.project-feature__content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4rem); background: var(--ink-800); }
.project-feature__content h2, .project-feature__content h3 { margin: .75rem 0 1rem; }
.project-feature__content > p:not(.meta) { margin-bottom: 1.5rem; color: #c9cbd0; }

.knowledge-list { border-top: 1px solid var(--line); }
.knowledge-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.knowledge-row__date { color: var(--brand-red); font-weight: 800; font-variant-numeric: tabular-nums; }
.knowledge-row__content { min-width: 0; }
.knowledge-row__content h2, .knowledge-row__content h3 { font-size: clamp(1.08rem, 2vw, 1.4rem); letter-spacing: -.02em; }
.knowledge-row__content p { margin-top: .55rem; color: var(--muted); }
.knowledge-row__action { white-space: nowrap; font-weight: 700; }

.consult-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(22rem, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.consult-panel > div > p:last-child { max-width: 31rem; margin-top: 1rem; color: var(--muted); }
.consult-steps { grid-row: span 2; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.consult-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.consult-steps span { color: var(--brand-red); font-size: .8rem; font-weight: 800; }

.page-hero { color: var(--white); background: var(--ink-950); }
.page-hero__inner { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.page-hero__inner::after { content: ""; position: absolute; right: 0; top: 50%; width: min(32vw, 25rem); height: 1px; background: linear-gradient(90deg, var(--brand-red), var(--light-amber)); }
.page-hero h1 { max-width: 13em; font-size: clamp(2.3rem, 6vw, 4.8rem); }
.page-hero__summary { max-width: 48rem; margin-top: 1.2rem; color: #c9cbd0; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.breadcrumb { min-width: 0; display: flex; flex-wrap: wrap; gap: .45rem; padding-block: 1rem; color: var(--muted); font-size: .85rem; }
.breadcrumb a:hover { color: var(--brand-red); }

.detail-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.detail-main, .article-shell { min-width: 0; }
.detail-media, .article-image { margin: 0 0 2.5rem; padding: 1rem; background: var(--paper); border-radius: var(--radius); }
.detail-media img { width: 100%; max-height: 42rem; object-fit: contain; }
.detail-media figcaption { padding: .75rem .25rem 0; color: var(--muted); font-size: .8rem; }
.article-image img { width: 100%; max-height: 38rem; object-fit: contain; }
.detail-aside { position: sticky; top: 7rem; padding: 1.5rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.detail-aside h2 { margin: 1.35rem 0 .55rem; font-size: 1.05rem; letter-spacing: -.015em; }
.detail-aside p { color: var(--muted); white-space: pre-line; }
.detail-aside .button { margin-top: 1.5rem; }
.status-chip { display: inline-flex; width: auto; padding: .35rem .65rem; color: var(--brand-red) !important; background: #fff; border: 1px solid #e1b9bb; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.article-shell { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 2rem; color: var(--muted); font-size: .88rem; }
.rich-content { min-width: 0; color: #2a2c31; font-size: clamp(1rem, 1.3vw, 1.1rem); }
.rich-content > *:first-child { margin-top: 0; }
.rich-content h2 { margin: 2.6rem 0 1rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.rich-content h3 { margin: 2rem 0 .8rem; font-size: 1.25rem; }
.rich-content p, .rich-content ul, .rich-content ol, .rich-content table, .rich-content blockquote { margin: 0 0 1.2rem; }
.rich-content ul, .rich-content ol { padding-left: 1.4rem; }
.rich-content li + li { margin-top: .45rem; }
.rich-content img { width: auto; height: auto; max-height: 42rem; margin: 1.5rem auto; object-fit: contain; }
.rich-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.rich-content th, .rich-content td { min-width: 8rem; padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich-content a { color: var(--brand-red); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.boundary-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--brand-red); }
.boundary-note h2 { margin-bottom: .65rem; font-size: 1.2rem; }
.review-date { margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.article-action { margin-top: 2rem; }
.content-nav { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-block: 2rem 4rem; color: var(--muted); font-size: .9rem; }
.content-nav span { min-width: 0; overflow-wrap: break-word; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; }
.area-card { min-width: 0; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.area-card h2 { margin-bottom: 1rem; }
.area-card > p:not(.eyebrow) { margin-bottom: 1.5rem; color: var(--muted); }
.empty-state { padding: clamp(2rem, 5vw, 4rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.empty-state p { margin: 1rem auto 1.5rem; max-width: 38rem; color: var(--muted); }
.empty-state--dark { background: var(--ink-800); border-color: rgba(255,255,255,.15); }
.empty-state--dark p { color: #c9cbd0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(22rem, 1.2fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.contact-copy h2 { margin: 2.4rem 0 1rem; font-size: 1.5rem; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .5rem; height: .5rem; background: var(--brand-red); border-radius: 50%; }
.contact-form-wrap { padding: clamp(1.5rem, 5vw, 3rem); background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); }
.contact-form-wrap > h2 { margin-bottom: 1.75rem; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .45rem; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; min-height: 48px; padding: .75rem .85rem; color: var(--text); background: var(--white); border: 1px solid #aaa69e; border-radius: .7rem; }
.form-field textarea { resize: vertical; }
.field-help, .privacy-note { margin-top: .4rem; color: var(--muted); font-size: .78rem; }
.privacy-note { margin-bottom: 1rem; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.captcha-button { padding: .2rem; background: var(--white); border: 1px solid #aaa69e; border-radius: .5rem; cursor: pointer; }
.captcha-button img { width: 120px; height: 40px; object-fit: contain; }
.form-status { min-height: 1.75rem; margin-top: .7rem; font-weight: 700; }
.search-shell { max-width: 960px; }
.search-form { margin-bottom: 3rem; }
.search-form label { display: block; margin-bottom: .5rem; font-weight: 700; }
.search-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.search-form input { min-width: 0; min-height: 48px; padding: .75rem .9rem; border: 1px solid #aaa69e; border-radius: 999px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .45rem .7rem; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; }
.pagination a:hover, .pagination .page-num-current { color: var(--white); background: var(--brand-red); border-color: var(--brand-red); }
.pagination__numbers { display: contents; }

.site-footer { color: #d1d3d8; background: var(--ink-950); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); gap: 3rem; padding-block: clamp(3.5rem, 8vw, 6rem); }
.site-footer__brand { color: var(--white); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; }
.site-footer__text { max-width: 42rem; margin-top: 1rem; color: #aeb1b8; }
.site-footer__nav { display: grid; align-content: start; gap: .8rem; }
.site-footer__nav a { padding-bottom: .65rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__nav a:hover { color: var(--light-amber); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; color: #92959d; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

.error-page { min-height: 70vh; display: grid; place-items: center; background: var(--paper); }
.error-panel { padding-block: 5rem; text-align: center; }
.error-code { color: var(--brand-red); font-size: clamp(5rem, 18vw, 12rem); font-weight: 900; line-height: .8; letter-spacing: -.08em; }
.error-panel h1 { margin-top: 1.5rem; font-size: clamp(2rem, 5vw, 4rem); }
.error-panel > p:not(.error-code) { max-width: 38rem; margin: 1rem auto; color: var(--muted); }
.error-panel .button-row { justify-content: center; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 1rem clamp(1rem, 4vw, 3rem) 1.5rem; background: var(--ink-950); border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-nav.is-open { display: grid; }
  .primary-nav__link { padding: .8rem 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .home-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .home-hero__visual { max-width: 42rem; }
  .project-feature { grid-template-columns: minmax(0, 1fr); }
  .project-feature__graphic { min-height: 19rem; }
}

@media (max-width: 760px) {
  .site-header__inner { min-height: 70px; }
  .brand img { width: 64px; height: 36px; }
  .brand__name { max-width: 10rem; font-size: .78rem; }
  .nav-toggle__label { display: none; }
  .home-hero__grid { padding-block: 4rem; }
  .home-hero__visual { grid-template-columns: minmax(5.5rem, .32fr) minmax(0, 1fr); }
  .home-hero__brand-card { margin-right: -1.5rem; padding: .55rem; }
  .section-heading--split, .consult-panel, .detail-layout, .contact-grid, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .application-grid--featured .application-card:first-child { grid-column: auto; }
  .knowledge-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .knowledge-row__date { grid-column: 1 / -1; }
  .knowledge-row__action { align-self: center; }
  .consult-steps { grid-row: auto; }
  .detail-aside { position: static; }
  .content-nav { grid-template-columns: minmax(0, 1fr); }
  .page-hero__inner::after { display: none; }
  .site-footer__bottom { display: grid; }
}

@media (max-width: 440px) {
  .shell { width: min(calc(100% - 2rem), var(--shell)); }
  .brand__name { display: none; }
  .button-row { display: grid; }
  .button-row .button { width: 100%; }
  .home-hero__visual { grid-template-columns: minmax(0, 1fr); }
  .home-hero__brand-card { width: 8rem; margin: 0 0 -2rem .8rem; transform: rotate(-2deg); }
  .application-card__media { min-height: 14rem; }
  .application-card__media img { height: 13rem; }
  .knowledge-row { grid-template-columns: minmax(0, 1fr); }
  .knowledge-row__action { justify-self: start; }
  .search-form > div { grid-template-columns: minmax(0, 1fr); }
  .captcha-row { grid-template-columns: minmax(0, 1fr); }
  .captcha-button { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.application-card__body > p:empty,
.knowledge-row__content > p:empty {
  display: none;
}
