/* 米果官网 · 对齐「米果 · 交互原型」视觉令牌（2026-11-12） */
:root {
  --ink: #16332f;
  --mint: #2daf9b;
  --mint-soft: #d8f0e4;
  --mint-wash: #e4f3ec;
  --paper: #ffffff;
  --sheet: #fafcfb;
  --text: #1a1a1a;
  --text-sec: #6b7774;
  --text-muted: #9aa3a0;
  --div: #e6eae8;
  --back: #f0f2f1;
  --otp: #f7f8f7;
  --tab-bar: #f4f6f8;
  --shadow: 0 10px 32px rgba(22, 51, 47, 0.08);
  --shadow-soft: 0 4px 16px rgba(22, 51, 47, 0.05);
  --radius: 16px;
  --radius-sm: 12px;
  --pill: 999px;
  --focus: #2daf9b;
  --header: rgba(255, 255, 255, 0.92);
  --hit: 48px;
  --header-offset: 5.75rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#main,
h1,
h2,
h3,
.legal-section {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    radial-gradient(920px 520px at 92% -8%, rgba(216, 240, 228, 0.95) 0%, transparent 58%),
    radial-gradient(720px 420px at -8% 12%, rgba(228, 243, 236, 0.9) 0%, transparent 52%),
    var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--mint);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 30;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  min-height: var(--hit);
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--div);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-height: 72px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-height: var(--hit);
}

.brand img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-en {
  display: block;
  color: var(--text-sec);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.menu {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  min-width: var(--hit);
  padding: 0 16px;
  border-radius: var(--pill);
  border: 1.5px solid var(--div);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.menu.is-open .menu-toggle,
.menu-toggle[aria-expanded="true"] {
  background: var(--mint-soft);
  border-color: var(--mint);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--pill);
  font-weight: 560;
}

.nav a:hover {
  background: var(--mint-soft);
  text-decoration: none;
}

.nav a:active,
.menu-toggle:active,
.button:active,
.copy:active,
.back-to-top:active,
a.feature:active,
.links a:active,
.toc a:active {
  transform: translateY(1px);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--mint-soft);
  font-weight: 700;
}

.menu-toggle,
.nav a,
.button,
.copy,
.back-to-top,
a.feature,
.links a,
.toc a {
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

main {
  flex: 1;
  padding: 28px 0 72px;
}

main:focus-visible {
  outline-offset: 6px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.15rem, 7vw, 3.6rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--ink);
}

h2 {
  margin: 1.7em 0 0.45em;
  font-size: 1.28rem;
  line-height: 1.35;
  color: var(--ink);
}

h3 {
  margin: 1.2em 0 0.3em;
  font-size: 1.08rem;
}

p {
  margin: 0 0 0.9em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 14px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: var(--mint-soft);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.lede {
  max-width: 40rem;
  font-size: 1.12rem;
  color: var(--text-sec);
  line-height: 1.75;
}

.tagline {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 650;
  color: var(--mint);
  letter-spacing: 0.04em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 28px 40px;
  align-items: center;
  padding: 12px 0 8px;
}

.hero-copy,
.card,
.prose,
.actions,
.links,
.table-wrap,
.meta dd,
.feature-grid,
.legal-section {
  min-width: 0;
  max-width: 100%;
}

.hero-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, var(--mint-soft) 62%, var(--mint-wash) 100%);
  border: 1px solid rgba(45, 175, 155, 0.18);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-mascot img {
  width: min(260px, 72%);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(22, 51, 47, 0.12));
}

.card,
.notice,
.callout,
.legal-section {
  background: var(--sheet);
  border: 1px solid var(--div);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
}

.notice,
.callout {
  background: var(--mint-soft);
  border-color: rgba(45, 175, 155, 0.45);
  margin: 16px 0;
}

.card h2,
.notice h2,
.callout h2,
.legal-section h2 {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
  width: 100%;
}

.button,
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  padding: 0 22px;
  border-radius: var(--pill);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button {
  background: var(--ink);
  color: #fff;
  border: 0;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.button.mint {
  background: var(--mint);
  color: #fff;
}

.copy {
  background: var(--mint);
  color: #fff;
  border: 0;
  margin-top: 8px;
}

.meta {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}

.meta dt {
  font-weight: 650;
  color: var(--ink);
}

.meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.sha {
  display: block;
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--otp);
  border: 1px solid var(--div);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.feature-grid,
.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feature-grid {
  margin-top: 40px;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--div);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-soft);
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--text-sec);
  font-size: 0.98rem;
}

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

a.feature:hover {
  border-color: var(--mint);
  background: var(--sheet);
  text-decoration: none;
}

.copy-inline {
  margin: 0 0 0 8px;
  padding: 0 14px;
  min-height: var(--hit);
  vertical-align: middle;
}

.copy-status {
  margin: 6px 0 0;
  min-height: 1.4em;
  color: var(--text-sec);
  font-size: 0.92rem;
}

.toc {
  background: var(--sheet);
  border: 1px solid var(--div);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  margin: 8px 0 20px;
  max-width: 46rem;
  box-shadow: var(--shadow-soft);
}

.toc-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding: 0 14px;
  border-radius: var(--pill);
  background: var(--paper);
  border: 1px solid var(--div);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
}

.toc a:hover {
  background: var(--mint-soft);
  border-color: var(--mint);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit);
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.back-to-top:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
}

.back-to-top[hidden] {
  display: none;
}

.links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--div);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.links a:hover {
  border-color: var(--mint);
  background: var(--sheet);
  text-decoration: none;
}

.links strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.links span {
  color: var(--text-sec);
  font-size: 0.92rem;
  font-weight: 400;
}

.section-title {
  margin: 48px 0 0;
  font-size: 1.35rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 1.9em;
  font-size: 1.18rem;
  font-weight: 700;
}

.prose p,
.prose li {
  line-height: 1.8;
}

.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  max-width: 46rem;
}

.legal-section {
  padding: 20px 22px 16px;
  border-left: 4px solid var(--mint);
  background: var(--paper);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border: 1px solid var(--div);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--div);
}

th {
  font-weight: 650;
  background: var(--mint-wash);
  color: var(--ink);
}

.site-footer {
  margin-top: auto;
  background: var(--back);
  border-top: 1px solid var(--div);
  padding: 32px 0 44px;
  color: var(--text-sec);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  gap: 4px;
}

.site-footer .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-footer .foot-brand img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.site-footer p {
  margin: 0 0 0.35em;
}

.site-footer a {
  overflow-wrap: anywhere;
}

.site-footer .legal-links {
  margin: 12px 0 8px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

ul {
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.35em;
}

/* Mobile-first menu: collapsed unless open; desktop shows inline nav */
@media (max-width: 860px) {
  .hero,
  .feature-grid,
  .links {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-mascot {
    min-height: 220px;
    order: -1;
    padding: 20px;
  }

  .hero-mascot img {
    width: min(180px, 46%);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(280px, calc(100vw - 32px));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--div);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .menu.is-open .nav {
    display: flex;
  }

  .nav a {
    justify-content: flex-start;
    width: 100%;
    padding: 0 16px;
  }
}

@media (min-width: 861px) {
  .menu-toggle {
    display: none;
  }

  .nav,
  .menu.is-open .nav {
    display: flex;
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1080px, calc(100% - 24px));
  }

  .meta {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .meta dt {
    margin-top: 12px;
  }

  .card,
  .notice,
  .callout,
  .legal-section {
    padding: 18px 16px 14px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }
}

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

  .menu-toggle,
  .nav a,
  .button,
  .copy,
  .back-to-top,
  a.feature,
  .links a,
  .toc a {
    transition: none;
  }

  .nav a:active,
  .menu-toggle:active,
  .button:active,
  .copy:active,
  .back-to-top:active,
  a.feature:active,
  .links a:active,
  .toc a:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .button,
  .copy,
  .links a,
  .card,
  .notice,
  .feature,
  .legal-section,
  .menu-toggle,
  .toc,
  .toc a,
  .back-to-top,
  a.feature {
    border: 1px solid ButtonText;
  }
}
