:root {
  color-scheme: light dark;
  --page-bg: #f7f7f7;
  --surface: #fcfbfc;
  --surface-strong: #ffffff;
  --text: #242124;
  --muted: #6f686b;
  --soft: #f8f8f8;
  --border: #eee;
  --accent: #960630;
  --accent-hover: #740424;
  --button-bg: #960630;
  --button-hover: #740424;
  --accent-soft: #f5e7ec;
  --notice: #fff7e7;
  --notice-border: #e4c885;
  --focus: #1769aa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #171416;
    --surface: #211c1f;
    --surface-strong: #272125;
    --text: #f2edef;
    --muted: #c3b8bc;
    --soft: #2a2226;
    --border: #493b41;
    --accent: #dc5c82;
    --accent-hover: #ef89a8;
    --button-bg: #9b1d46;
    --button-hover: #7f1538;
    --accent-soft: #3b2029;
    --notice: #342b1e;
    --notice-border: #806d3c;
    --focus: #69b7f1;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: "Montserrat", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: var(--page-bg);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-underline-offset: .2em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 9px 13px;
  color: #fff;
  background: var(--accent-hover);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  min-height: 40px;
  border-bottom: 1px solid var(--border);
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.utility-bar__inner,
.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.utility-bar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-bar a {
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
  background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 136px;
}

.brand img {
  display: block;
  width: 136px;
}

.info-nav {
  min-width: 0;
}

.info-nav__list {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.info-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

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

.page-shell {
  padding: 44px 0 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin-bottom: 28px;
  padding: 34px clamp(26px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: var(--accent);
}

.page-hero__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.page-hero__summary {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.page-hero__meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--notice-border);
  border-radius: 12px;
  background: var(--notice);
  color: var(--text);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.toc__title {
  margin: 0 0 12px;
  font-size: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
}

.toc li + li {
  margin-top: 7px;
}

.toc a {
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.article,
.contact-panel,
.cooperation-panel {
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
}

.article section + section {
  margin-top: 46px;
}

.article h2,
.contact-panel h2,
.cooperation-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.3;
}

.article h3,
.cooperation-panel h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.article p,
.article ul,
.article ol {
  margin-top: 0;
  margin-bottom: 16px;
}

.article ul,
.article ol {
  padding-left: 1.4em;
}

.article li + li {
  margin-top: 9px;
}

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

.principles {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin: 28px 0 0;
}

.principle {
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.principle:nth-child(3) {
  grid-column: 1 / -1;
}

.principle h3,
.principle p {
  margin: 0;
}

.principle p {
  margin-top: 8px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.contact-methods {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-methods li {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.contact-methods li:first-child {
  padding-top: 0;
}

.contact-methods h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.contact-methods p {
  margin: 0;
  color: var(--muted);
}

.qr-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
  text-align: center;
}

.qr-card img {
  display: block;
  width: 240px;
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: #fff;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid var(--button-bg);
  border-radius: 8px;
  color: #fff;
  background: var(--button-bg);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, background-color .16s ease;
}

.button-link:hover {
  color: #fff;
  background: var(--button-hover);
  transform: translateY(-1px);
}

.button-link:active {
  transform: translateY(1px);
}

.cooperation-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 34px;
  align-items: center;
  margin-bottom: 46px;
}

.channel-stat {
  padding: 28px;
  border-radius: 12px;
  color: #fff;
  background: var(--button-bg);
}

.channel-stat strong,
.channel-stat span {
  display: block;
}

.channel-stat strong {
  font-size: 42px;
  line-height: 1;
}

.channel-stat span {
  margin-top: 10px;
  font-size: 14px;
}

.cooperation-types {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.cooperation-type {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
}

.cooperation-type:last-child {
  grid-column: 1 / -1;
}

.cooperation-type h3 {
  margin-top: 0;
}

.cooperation-type p,
.cooperation-type ul {
  color: var(--muted);
}

.cooperation-type ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.cooperation-process {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid #e6dfe2;
  background: #fff;
  color: #6f686b;
}

.site-footer__inner {
  padding: 42px 0 30px;
  text-align: center;
}

.site-footer__warning {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: #6f686b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #960630;
}

.site-footer__meta a {
  color: #6f686b;
}

.site-footer__meta a:hover {
  color: #960630;
}

.site-footer__meta {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 820px) {
  .utility-bar__inner,
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    position: static;
  }

  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0 10px;
  }

  .brand {
    width: 122px;
  }

  .brand img {
    width: 122px;
  }

  .info-nav__list {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .page-shell {
    padding: 24px 0 52px;
  }

  .page-hero {
    min-height: 0;
    margin-bottom: 24px;
    padding: 26px 22px 28px;
    border-radius: 10px;
  }

  .content-layout,
  .contact-grid,
  .cooperation-intro,
  .principles,
  .cooperation-types {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .principle:nth-child(3),
  .cooperation-type:last-child {
    grid-column: auto;
  }

  .article,
  .contact-panel,
  .cooperation-panel {
    padding: 28px 24px;
    border-radius: 12px;
  }

  .qr-card {
    width: min(100%, 320px);
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .utility-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    line-height: 1.6;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .info-nav__list {
    gap: 2px;
  }

  .info-nav a {
    padding: 9px 7px;
    font-size: 13px;
  }

  .page-hero__summary {
    font-size: 16px;
  }

  .contact-panel,
  .cooperation-panel,
  .article {
    padding: 25px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
