:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --text: #17202a;
  --muted: #637083;
  --line: #dce4ec;
  --brand: #19b9b4;
  --brand-strong: #07847f;
  --accent: #12b8b4;
  --shadow: 0 18px 50px rgba(25, 42, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body[data-page="home"] {
  background:
    linear-gradient(rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(25, 185, 180, 0.16), transparent 34%),
    #f7f9fb;
  background-size: 36px 36px, 36px 36px, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 14px clamp(18px, 4vw, 56px) 0;
  padding: 14px clamp(20px, 4vw, 48px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  border: 1px solid rgba(216, 226, 235, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 46px rgba(33, 46, 62, 0.08);
}

.brand,
.nav,
.hero-actions,
.card-topline,
.tags,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.home-brand {
  gap: 8px;
}

.brand-word {
  color: #080b10;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.brand-slash {
  color: var(--brand-strong);
  font-size: 24px;
  font-weight: 900;
}

.home-brand [data-i18n="brand"] {
  color: #202936;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  color: #111821;
  font-size: 16px;
  font-weight: 800;
}

.language-menu {
  position: relative;
  justify-self: end;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mobile-menu-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.mobile-menu-icon i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-menu-icon i:first-child {
  transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-menu-icon i:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-menu-icon i:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.language-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.language-toggle[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-2px);
}

.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.language-options.is-open {
  display: grid;
}

.language-options button {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.language-options button:hover {
  background: var(--surface-strong);
}

.nav a:hover,
.nav a.is-active,
.text-link:hover,
.gateway-card:hover h3 {
  color: var(--brand);
}

.nav a.is-active {
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: center;
  min-height: 72vh;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(23, 107, 135, 0.14), rgba(217, 101, 59, 0.08)),
    var(--surface);
}

body[data-page="home"] .hero {
  position: relative;
  overflow: hidden;
  margin-top: -86px;
  padding-top: clamp(140px, 16vw, 190px);
  padding-bottom: 132px;
  border-bottom: 1px solid rgba(216, 226, 235, 0.65);
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.96), rgba(247, 249, 251, 0.78) 45%, rgba(247, 249, 251, 0.5)),
    radial-gradient(circle at 78% 34%, rgba(25, 185, 180, 0.16), transparent 32%),
    transparent;
}

.main-hero {
  min-height: 640px;
}

body[data-page="home"] .hero-copy {
  position: relative;
  z-index: 2;
}

body[data-page="home"] .hero h1 {
  max-width: 720px;
  margin-bottom: 10px;
  color: #05070a;
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-underline {
  display: block;
  width: 58px;
  height: 5px;
  margin: 10px 0 22px;
  border-radius: 999px;
  background: var(--brand);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 360px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30px -10px 0;
  border: 1px solid rgba(25, 185, 180, 0.16);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 22px, rgba(25, 185, 180, 0.08) 23px 24px),
    linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  transform: rotate(-12deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 2%;
  width: min(440px, 80%);
  height: min(440px, 80%);
  border-radius: 44% 56% 48% 52%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6), rgba(25,185,180,0.08)),
    repeating-linear-gradient(120deg, rgba(18,184,180,0.14) 0 2px, transparent 2px 17px);
  filter: blur(0.2px);
  opacity: 0.85;
}

.visual-signature,
.visual-year,
.visual-line,
.visual-dot {
  position: absolute;
  z-index: 2;
}

.visual-signature {
  left: 6%;
  top: 22%;
  color: rgba(25, 185, 180, 0.15);
  font-size: clamp(68px, 8vw, 140px);
  font-weight: 300;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
}

.visual-year {
  right: 5%;
  top: 12%;
  color: #728093;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.visual-line {
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: rgba(25, 185, 180, 0.56);
}

.visual-line.one {
  right: 4%;
  top: 28%;
}

.visual-line.two {
  left: 14%;
  bottom: 18%;
}

.visual-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.dot-one {
  left: 18%;
  top: 30%;
}

.dot-two {
  right: 12%;
  bottom: 28%;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-text,
.section-heading p,
.business p,
.card p,
.timeline-item p {
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  font-size: 19px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

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

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-panel > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.metric {
  display: block;
  color: var(--brand);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.section {
  padding: clamp(52px, 8vw, 88px) clamp(20px, 5vw, 72px);
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(23, 107, 135, 0.12), rgba(217, 101, 59, 0.06)),
    var(--surface);
}

.section.alt {
  background: var(--surface-strong);
}

.search-bar {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 720px);
  margin: 0 0 24px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 46, 62, 0.06);
}

.search-bar svg {
  width: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.search-bar input {
  min-width: 0;
  min-height: 50px;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  background: transparent;
}

.search-empty {
  padding: 28px 0;
  color: var(--muted);
  font-weight: 700;
}

.about-hero {
  padding-bottom: clamp(38px, 6vw, 62px);
}

.about-section {
  padding-top: 24px;
}

.about-article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(25, 42, 62, 0.1);
}

.about-mark {
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 1;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(25, 185, 180, 0.94), rgba(7, 132, 127, 0.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 12px);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.about-body {
  display: grid;
  gap: 18px;
  color: #26313d;
  font-size: 18px;
}

.about-body p {
  margin-bottom: 0;
}

.support-section {
  padding-top: 0;
}

.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(20px, 5vw, 42px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(25, 185, 180, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(25, 185, 180, 0.12), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 54px rgba(25, 42, 62, 0.08);
}

.support-card h2 {
  margin-bottom: 8px;
}

.support-qr-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-qr,
.business-qr,
.contact-qr {
  width: 168px;
  max-width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.card-description {
  display: grid;
  gap: 10px;
}

.card-description p {
  margin: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.gateway-section {
  margin-top: -86px;
  background: transparent;
}

.dashboard-section {
  position: relative;
  z-index: 3;
  padding-top: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.dashboard-card {
  display: grid;
  gap: 20px;
  min-height: 270px;
  padding: 24px;
  border: 1px solid rgba(220, 228, 236, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 60px rgba(24, 36, 52, 0.1);
  backdrop-filter: blur(12px);
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(24, 36, 52, 0.15);
}

.dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #111821;
  font-weight: 900;
}

.dashboard-card-head strong {
  color: var(--brand-strong);
  margin-right: 6px;
}

.dashboard-card-head > span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.showcase-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 38px;
  font-weight: 950;
  letter-spacing: 0.06em;
  background:
    linear-gradient(145deg, rgba(24, 33, 43, 0.88), rgba(98, 116, 132, 0.62)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 2px, transparent 2px 12px);
}

.showcase-body p {
  color: var(--muted);
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mini-tags span {
  padding: 6px 12px;
  border: 1px solid rgba(25, 185, 180, 0.25);
  border-radius: 999px;
  color: var(--brand-strong);
  background: rgba(25, 185, 180, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.resource-list,
.download-summary {
  display: grid;
  gap: 14px;
}

.resource-row,
.download-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
}

.resource-icon,
.download-app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #20c7bf, #0da49d);
  color: #fff;
  font-weight: 950;
}

.resource-icon.dark {
  background: #202833;
}

.resource-row h3,
.download-row h3 {
  margin-bottom: 2px;
  font-size: 17px;
}

.resource-row p,
.download-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.row-arrow {
  color: #8995a4;
  font-size: 28px;
}

.download-pill {
  padding: 7px 14px;
  border: 1px solid rgba(25, 185, 180, 0.45);
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat-row span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
}

.mini-stat-row strong {
  display: block;
  color: var(--text);
  font-size: 24px;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gateway-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 42, 62, 0.08);
}

.gateway-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gateway-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.gateway-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gateway-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.official-section {
  padding-top: 18px;
  background: transparent;
}

.platform-strip {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(25, 42, 62, 0.09);
}

.platform-strip {
  display: grid;
  grid-template-columns: minmax(170px, 0.24fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.platform-heading h3 {
  margin-bottom: 4px;
}

.platform-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  font-weight: 900;
}

.social-button:last-child {
  border-right: 0;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(25, 42, 62, 0.12);
}

.social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
}

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-text-icon {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.social-bilibili .social-icon {
  background: #00a1d6;
}

.social-douyin .social-icon {
  background: #111111;
}

.social-xhs .social-icon {
  background: #ff2442;
}

.social-coolapk .social-icon {
  background: #11aa44;
  font-size: 18px;
}

.social-weibo .social-icon {
  background: #e6162d;
}

.social-x .social-icon {
  background: #000;
  font-size: 20px;
}

.social-youtube .social-icon {
  background: #ff0033;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-topline {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.app-title h3 {
  margin-bottom: 0;
}

.app-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-strong);
}

.app-icon.placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  font-weight: 900;
}

.status {
  color: var(--brand-strong);
  font-weight: 800;
}

.tags {
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 18px;
  padding-top: 14px;
}

.tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--brand-strong);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
}

.timeline-item.has-cover {
  grid-template-columns: 90px minmax(180px, 240px) minmax(0, 1fr);
}

.timeline-year {
  color: var(--brand-strong);
  font-weight: 900;
}

.work-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-strong);
}

.timeline-content p {
  margin-bottom: 14px;
}

.timeline-content .text-link {
  display: inline-flex;
}

.business {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: start;
  background: #102533;
  color: #fff;
}

.business-page {
  min-height: 64vh;
}

.business p,
.business .eyebrow {
  color: #d3e3ec;
}

.partners-section {
  background: #fff;
}

.partners-section .section-heading {
  margin-bottom: 28px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.partner-item {
  display: grid;
  grid-template-rows: 56px auto;
  place-items: center;
  gap: 10px;
  min-width: 0;
  padding: 20px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.partner-item:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 185, 180, 0.55);
  box-shadow: 0 12px 28px rgba(33, 46, 62, 0.08);
}

.partner-item img {
  width: min(100%, 132px);
  height: 52px;
  object-fit: contain;
}

.partner-wordmark {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.contact-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.contact-card li + li {
  margin-top: 8px;
}

.business-contact-info {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.business-contact-row {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.business-contact-row span {
  color: #d3e3ec;
  font-size: 13px;
  font-weight: 800;
}

.business-contact-row strong {
  color: #fff;
  word-break: break-all;
}

.business-qr {
  justify-self: start;
}

.contact-trigger {
  gap: 8px;
  cursor: pointer;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .button:not(.primary) {
  color: var(--text);
}

.contact-trigger-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font-weight: 950;
}

.contact-trigger-icon.wechat {
  color: #168f52;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 39, 0.52);
  backdrop-filter: blur(8px);
}

.contact-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid rgba(216, 226, 235, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 37, 51, 0.26);
}

.contact-modal-card p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-method {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.contact-method span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-method strong {
  color: var(--text);
  font-size: 18px;
}

body.modal-open {
  overflow: hidden;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

.error {
  padding: 12px 20px;
  background: #ffe6df;
  color: #8f2d12;
  font-weight: 700;
}

.verification-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(25, 185, 180, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 185, 180, 0.06) 1px, transparent 1px),
    #f7fafc;
  background-size: 36px 36px;
}

.verification-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.verification-card {
  display: grid;
  gap: 24px;
  width: min(100%, 520px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 64px rgba(33, 46, 62, 0.12);
}

.verification-card h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 7vw, 48px);
}

.verification-card p {
  color: var(--muted);
}

.verification-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.verification-form {
  display: grid;
  gap: 16px;
}

.verification-form .button,
.verification-card > .button {
  width: 100%;
}

.verification-notice {
  min-height: 24px;
  margin: 0;
}

.verification-notice[data-type="error"] {
  color: #8f2d12;
}

.is-hidden {
  display: none !important;
}

.admin-body {
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(14px);
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-shell {
  padding: clamp(24px, 4vw, 48px);
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
  max-width: 980px;
  margin: 40px auto;
}

.login-panel h1,
.admin-toolbar h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.admin-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-tabs {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
}

.tab-button {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tab-button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.admin-editor,
.login-panel,
.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-editor {
  padding: clamp(18px, 4vw, 30px);
}

.login-panel {
  padding: clamp(22px, 4vw, 36px);
}

.admin-toolbar,
.panel-heading,
.item-heading,
.localized-editor-heading,
.item-actions,
.quick-import-heading,
.quick-import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notice {
  min-height: 46px;
  margin: 18px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-strong);
}

.notice:empty {
  display: none;
}

.notice[data-type="success"] {
  border-color: #95c9a8;
  color: #196239;
  background: #e8f7ed;
}

.notice[data-type="error"] {
  border-color: #f2b29c;
  color: #8f2d12;
  background: #ffe6df;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form.compact {
  align-self: start;
}

.admin-form.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-form .wide {
  grid-column: 1 / -1;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  background: #fff;
}

.icon-field {
  grid-column: 1 / -1;
}

.icon-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.localized-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.localized-editor h3 {
  margin-bottom: 0;
}

.item-actions {
  justify-content: flex-end;
  gap: 8px;
}

.language-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.language-fields fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-fields legend {
  padding: 0 6px;
  color: var(--brand-strong);
  font-weight: 900;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-form textarea {
  resize: vertical;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-item {
  padding: 18px;
  box-shadow: none;
}

.quick-import-dialog {
  width: min(92vw, 620px);
  max-height: 88vh;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 24px 80px rgba(16, 37, 51, 0.26);
}

.quick-import-dialog::backdrop {
  background: rgba(15, 29, 39, 0.52);
  backdrop-filter: blur(8px);
}

.quick-import-dialog .modal-close {
  position: static;
  flex: 0 0 auto;
}

.quick-import-help {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-strong);
  line-height: 1.8;
}

.quick-import-actions {
  justify-content: flex-end;
}

.danger {
  color: #8f2d12;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--surface-strong);
}

html[data-device="mobile"] .site-header {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 12px 14px;
}

html[data-device="mobile"] .mobile-nav-toggle {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
}

html[data-device="mobile"] .language-menu {
  grid-column: 3;
  grid-row: 1;
}

html[data-device="mobile"] .language-toggle [data-i18n="languageLabel"] {
  display: none;
}

html[data-device="mobile"] .nav {
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  padding-top: 8px;
}

html[data-device="mobile"] .nav.is-open {
  display: grid;
}

html[data-device="mobile"] .nav a {
  padding: 12px 4px;
  border-top: 1px solid var(--line);
}

html[data-device="mobile"] .hero,
html[data-device="mobile"] .business,
html[data-device="mobile"] .dashboard-grid,
html[data-device="mobile"] .platform-strip,
html[data-device="mobile"] .about-article,
html[data-device="mobile"] .support-card {
  grid-template-columns: 1fr;
}

html[data-device="mobile"] .contact-actions .button {
  flex: 1 1 100%;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

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

  .nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding-top: 8px;
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 12px 4px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .language-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .language-toggle [data-i18n="languageLabel"] {
    display: none;
  }

  .hero,
  .business,
  .dashboard-grid,
  .platform-strip,
  .about-article,
  .support-card,
  .login-panel,
  .admin-panel {
    grid-template-columns: 1fr;
  }

  .grid,
  .gateway-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 12px;
  }

  .social-button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-page="home"] .hero {
    margin-top: -120px;
    padding-top: 168px;
    padding-bottom: 96px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .showcase-body {
    grid-template-columns: 1fr;
  }

  .gateway-section {
    margin-top: -58px;
  }

  .platform-strip {
    align-items: stretch;
  }

  .about-mark {
    width: 128px;
  }

  h1 {
    font-size: 40px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-tabs {
    position: static;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab-button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .admin-toolbar,
  .panel-heading,
  .item-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form.two-columns {
    grid-template-columns: 1fr;
  }

  .icon-upload-row {
    grid-template-columns: 1fr;
  }

  .language-fields {
    grid-template-columns: 1fr;
  }

  .localized-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 38px 16px;
  }

  .page-hero {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .timeline-item,
  .timeline-item.has-cover {
    grid-template-columns: 1fr;
  }

  .work-cover {
    max-height: 220px;
  }

  .hero-actions .button,
  .admin-header-actions .button,
  .admin-toolbar .button,
  .panel-heading .button,
  .login-panel .button {
    width: 100%;
  }

  .site-header {
    margin-inline: 12px;
    border-radius: 14px;
  }

  .brand {
    gap: 7px;
    min-width: 0;
    font-size: 14px;
  }

  .brand-mark {
    min-width: 46px;
    height: 36px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .mobile-nav-toggle {
    min-width: 42px;
    padding-inline: 10px;
  }

  .mobile-nav-toggle [data-mobile-menu-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .language-toggle {
    min-height: 42px;
    max-width: 96px;
    padding-inline: 10px;
  }

  #current-language {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-word {
    font-size: 26px;
  }

  .home-brand [data-i18n="brand"] {
    font-size: 16px;
  }

  body[data-page="home"] .hero h1 {
    font-size: 46px;
  }

  .hero-text {
    font-size: 16px;
  }

  .dashboard-card {
    padding: 18px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    display: grid;
  }

  .contact-actions .button {
    width: 100%;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .resource-row,
  .download-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .row-arrow,
  .download-pill {
    grid-column: 2;
  }
}

/* 隐藏首页软件下载卡片下方的作品/开源统计 */
.app-download-card .mini-stat-row {
  display: none !important;
}
