:root {
  --color-bg: #FDFDFB;
  --color-panel: #F6F6F3;
  --color-panel-2: #EFEFEA;
  --color-border: #E3E3DD;
  --color-accent: #D1187F;
  --color-accent-dark: #A50F62;
  --color-text: #1C1B1A;
  --color-muted: #6B6A66;
  --color-success: #1E9E60;
  --color-warn: #C77E14;
  --color-error: #D2372C;
  --font-display: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --content-width: 1200px;
  --gutter: 32px;
  --header-height: 68px;
  --shadow-soft: 0 12px 34px rgba(28, 27, 26, .07);
  --shadow-cta: 0 8px 20px rgba(209, 24, 127, .22), 0 1px 2px rgba(28, 27, 26, .08);
  --shadow-cta-hover: 0 10px 24px rgba(209, 24, 127, .28), 0 1px 2px rgba(28, 27, 26, .1);
  --flag-red: #D2372C;
  --flag-blue: #1E50A0;
  --flag-navy: #27336E;
  --flag-white: #FFFFFF;
  --focus-ring: 0 0 0 3px rgba(209, 24, 127, .2);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--color-bg);
  color: var(--color-text);
  scroll-behavior: smooth;
}
html.nav-open {
  overflow: hidden;
}
body {
  min-width: 320px;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
pre {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(52px, 6vw, 72px);
  letter-spacing: -.02em;
}
h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -.015em;
}
h3 {
  font-size: clamp(21px, 2.2vw, 30px);
}
p,
li {
  overflow-wrap: anywhere;
}
code,
kbd,
samp {
  font-family: var(--font-mono);
}
code {
  overflow-wrap: anywhere;
}
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-2);
  font: 13px/1.7 var(--font-mono);
  white-space: pre;
}
.wrap {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.section-tight {
  padding-top: 48px;
  padding-bottom: 48px;
}
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-muted);
  font: 12px/1.3 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker::before,
.eyebrow::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--color-accent);
  content: "";
}
.highlight {
  color: var(--color-accent);
}
.nowrap {
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 24px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--flag-white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  border-color: var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}
.btn-secondary:hover {
  border-color: var(--color-muted);
  background: var(--color-panel);
}
.btn-small {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
}
.site-head {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.head-in {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}
.brand-logo {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}
.brand-name {
  color: var(--color-text);
  font: 700 18px/1 var(--font-display);
  letter-spacing: .02em;
}
.brand-local {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: 7px;
}
.main-nav a {
  color: var(--color-muted);
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.on {
  color: var(--color-text);
}
.main-nav a.on {
  font-weight: 650;
}
.head-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}
.lang-toggle {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
}
.lang-toggle .lang-short {
  display: none;
}
.lang-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 78px;
  display: none;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}
.lang-menu.open {
  display: block;
}
.lang-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 13px;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
  background: var(--color-panel);
  color: var(--color-text);
}
.btn-login {
  min-height: 40px;
  border-radius: var(--radius-md);
  padding: 9px 20px;
  background: var(--color-accent);
  color: var(--flag-white);
  font-size: 14px;
  font-weight: 650;
}
.btn-login:hover {
  background: var(--color-accent-dark);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: var(--color-text);
  content: "";
}
.menu-toggle span::before {
  transform: translateY(-6px);
}
.menu-toggle span::after {
  transform: translateY(4px);
}
.mobile-veil {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  background: var(--color-text);
  opacity: .35;
}
.mobile-veil.open {
  display: block;
}
.mobile-drawer {
  display: none;
}
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-brand p {
  max-width: 310px;
  color: var(--color-muted);
  font-size: 14px;
}
.footer-title {
  margin-bottom: 15px;
  color: var(--color-text);
  font: 650 14px/1.3 var(--font-display);
}
.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--color-muted);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
}
.footer-bottom a {
  margin-left: 18px;
}
.panel,
.card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.panel {
  padding: 26px;
}
.card {
  padding: 28px;
}
.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-panel);
}
.reveal {
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.pending {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.shown {
  opacity: 1;
  transform: none;
}
.tilt {
  transform: rotate(.45deg);
}
.decorative-zone {
  position: relative;
  overflow-x: clip;
}
@media (max-width: 1080px) {
  .main-nav {
    gap: 16px;
  }
  .head-in {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  :root {
    --gutter: 20px;
  }
  .main-nav {
    display: none;
  }
  .head-tools {
    margin-left: auto;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-drawer {
    overscroll-behavior: contain;
    position: fixed;
    z-index: 60;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    transform: translateY(-120%);
    transition: transform .2s ease;
  }
  .mobile-drawer.open {
    transform: translateY(0);
  }
  html.nav-open {
    overflow: hidden;
  }
  .mobile-drawer a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
  }
  .mobile-drawer a:hover,
  .mobile-drawer a[aria-current="page"] {
    background: var(--color-panel);
  }
  .mobile-drawer .mobile-language {
    color: var(--color-muted);
    font-size: 14px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.15;
  }
  h2 {
    font-size: clamp(27px, 8vw, 36px);
  }
  h3 {
    font-size: 23px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section-tight {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .head-in {
    min-height: 60px;
  }
  .mobile-drawer {
    top: 60px;
    max-height: calc(100dvh - 60px);
  }
  .brand-local {
    display: none;
  }
  .btn-login {
    padding-inline: 14px;
  }
  /* 手机上不许把「简体中文」硬裁成「简…」(原 max-width:42px + ellipsis 的产物):
     换成完整可读的短标(简/繁/EN/日/한),全称只在桌面显示 */
  .lang-toggle {
    white-space: nowrap;
  }
  .lang-toggle .lang-full {
    display: none;
  }
  .lang-toggle .lang-short {
    display: inline;
  }
  .lang-menu {
    right: 56px;
  }
  .card,
  .panel {
    padding: 20px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 42px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-bottom a {
    margin: 0 16px 0 0;
  }
  .tilt,
  .tilt-mobile-safe {
    transform: none;
  }
  .decorative-zone {
    overflow-x: clip;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .reveal.pending {
    opacity: 1;
    transform: none;
  }
}