/**
 * [INPUT]: 官网各页的语义 HTML 和本地图片。
 * [OUTPUT]: 首页、英文页与政策页共用的排版、布局和交互样式。
 * [POS]: 官网唯一样式入口，适配桌面和窄屏。
 * [PROTOCOL]: Update this header on change, then check AGENTS.md
 */
:root {
  color-scheme: light;
  --paper: #f6f7f1;
  --ink: #161b17;
  --muted: #535d52;
  --line: #cdd3c6;
  --accent: #d0f45a;
  --accent-hover: #bdea3f;
  --night: #1a221c;
  --night-text: #edf1e8;
  --night-muted: #c5cec0;
  --shell: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4rem, 9vw, 8rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
section[id] { scroll-margin-top: 1rem; }
a:focus-visible { outline: 2px solid #526d12; outline-offset: 5px; }
.system a:focus-visible { outline-color: var(--accent); }

.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; inset-block-start: 1rem; inset-inline-start: var(--gutter); transform: translateY(-200%); background: var(--accent); padding: .5rem 1rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3.5rem); min-height: 5.2rem; }
.brand { display: inline-flex; align-items: center; flex: none; gap: .65rem; text-decoration: none; line-height: 1.2; }
.brand img { border: 1px solid var(--line); border-radius: .4rem; }
.brand strong { display: block; font-size: 1rem; font-weight: 760; }
.brand small { display: block; margin-top: .27rem; color: var(--muted); font-size: .78rem; }
.header-inner nav { display: flex; align-items: center; gap: clamp(1rem, 3.3vw, 2.4rem); margin-inline-start: auto; }
.header-inner nav a, .language { text-decoration: none; font-size: .875rem; font-weight: 620; }
.header-inner nav a { padding-block: .3rem; }
.header-inner nav a:hover, .language:hover { text-decoration: underline; text-underline-offset: .25em; }
.language { flex: none; min-width: 2.5rem; padding: .33rem .6rem; border: 1px solid var(--line); text-align: center; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5.25rem); padding-block: clamp(3.5rem, 7.4vw, 6.8rem); }
.hero-copy, .hero-media { min-width: 0; }
.kicker { display: flex; align-items: center; gap: .6rem; font-size: .875rem; font-weight: 720; letter-spacing: .085em; }
.kicker::before { content: ""; width: 1.25rem; height: .2rem; flex: none; background: #6d8830; }
.hero h1 { margin-top: 1.45rem; font-size: clamp(2.5rem, 5.25vw, 4.75rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.13; }
html[lang="en"] .hero h1 { font-size: clamp(2.5rem, 5.25vw, 4.6rem); line-height: 1.04; letter-spacing: -.06em; }
.hero-description { max-width: 34ch; margin-top: 1.55rem; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.125rem); line-height: 1.8; }
html[lang="en"] .hero-description { max-width: 44ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.55rem; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .65rem 1.15rem; text-decoration: none; font-weight: 720; line-height: 1.35; }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: var(--accent-hover); }
.text-link, .mail-link { font-weight: 690; text-underline-offset: .24em; }
.text-link:hover, .mail-link:hover { text-decoration-thickness: .14em; }
.hero-media { position: relative; isolation: isolate; aspect-ratio: 6 / 5; background: #2b372e; }
.hero-media::after { position: absolute; z-index: -1; inset: .75rem -.75rem -.75rem .75rem; content: ""; background: var(--accent); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: #2b372e; color: var(--night-text); }

.about { background: #e7ebdf; border-block: 1px solid var(--line); }
.section-grid, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6.5rem); align-items: end; padding-block: var(--section); }
h2 { margin-top: .9rem; font-size: clamp(2rem, 4.15vw, 3.8rem); letter-spacing: -.045em; font-weight: 780; line-height: 1.16; }
.about-copy { max-width: 40ch; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.85; }
.location { margin-top: 1.45rem; font-weight: 650; font-size: .9rem; color: var(--muted); }

.services { display: grid; grid-template-columns: .9fr 1.45fr; gap: clamp(2rem, 6vw, 5.5rem); padding-block: var(--section); }
.section-intro { align-self: start; }
.service-list { border-top: 1px solid var(--line); }
.service-row { padding: 1.3rem 0 1.45rem; border-bottom: 1px solid var(--line); }
.service-row h3 { line-height: 1.38; font-size: clamp(1.2rem, 2vw, 1.58rem); letter-spacing: -.02em; }
.service-row p { max-width: 42ch; margin-top: .53rem; color: var(--muted); line-height: 1.75; }

.system { background: var(--night); color: var(--night-text); }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6.5rem); align-items: center; padding-block: var(--section); }
.system .kicker { color: var(--accent); }
.system .kicker::before { background: var(--accent); }
.system-copy > p:not(.kicker) { max-width: 43ch; margin-top: 1.1rem; color: var(--night-muted); }
.button-light { margin-top: 1.55rem; color: var(--ink); background: var(--night-text); }
.button-light:hover { background: var(--accent); }
.authorization { border-top: 1px solid #71806e; border-bottom: 1px solid #71806e; padding: 1.35rem 0 1.5rem; }
.authorization h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); line-height: 1.3; }
.authorization p { margin-top: .6rem; color: var(--night-muted); }
.authorization ol { display: grid; gap: .6rem; padding-inline-start: 1.35rem; margin: 1.2rem 0 0; }
.authorization li { padding-inline-start: .35rem; }
.authorization li::marker { color: var(--accent); font-weight: 720; }

.contact-copy { display: grid; align-content: end; gap: 1rem; }
.contact-copy > p:first-child { max-width: 36ch; color: var(--muted); }
.mail-link { color: var(--ink); font-size: clamp(1.125rem, 2.1vw, 1.75rem); overflow-wrap: anywhere; }
.company-name { font-size: .9rem; font-weight: 630; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .9rem 2rem; padding-block: 1.5rem; color: var(--muted); font-size: .875rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1.35rem; }
.footer-inner a { text-decoration-thickness: .06em; text-underline-offset: .25em; }
.footer-inner a:hover { color: var(--ink); }

.policy { width: min(46rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.policy > .language-link { display: inline-block; margin-top: .9rem; text-underline-offset: .25em; }
.policy h1 { margin-top: .55rem; font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.15; letter-spacing: -.05em; }
.policy .summary { margin-top: 1rem; color: var(--muted); }
.policy section { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.policy section h2 { margin: 0 0 .65rem; font-size: 1.22rem; line-height: 1.35; letter-spacing: -.01em; }
.policy section h3 { margin: 1.2rem 0 .35rem; font-size: 1rem; }
.policy section p + p { margin-top: .7rem; }
.policy a { overflow-wrap: anywhere; }
.policy section#english { margin-top: 4.5rem; }
.policy section#english h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

@media (max-width: 54rem) {
  .hero { gap: 2.2rem; }
  .hero h1 { font-size: clamp(2.15rem, 5.3vw, 3.4rem); }
  html[lang="en"] .hero h1 { font-size: clamp(2.15rem, 5.3vw, 3.4rem); }
  .hero-description { margin-top: 1.05rem; }
  .hero-actions { margin-top: 1.35rem; }
}

@media (max-width: 42rem) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .85rem 1rem; padding: .9rem 0 .8rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; margin-inline: 0; justify-content: space-between; gap: .45rem; }
  .language { grid-column: 2; grid-row: 1; }
  .policy-header .header-inner { display: flex; justify-content: space-between; min-height: 4.35rem; }
  .hero, .section-grid, .services, .system-grid, .contact { grid-template-columns: 1fr; align-items: start; gap: 1.8rem; }
  .hero { padding-top: 2.7rem; padding-bottom: 3.65rem; }
  .hero h1, html[lang="en"] .hero h1 { margin-top: .85rem; font-size: clamp(2.35rem, 7.6vw, 3.35rem); }
  .hero-media { margin-inline-end: .5rem; aspect-ratio: 7 / 5; }
  .hero-media::after { inset: .5rem -.5rem -.5rem .5rem; }
  .about-copy { max-width: none; }
  .location { margin-top: 1rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
