/* EGGHEART 官网 */
:root {
  color-scheme: light;
  --red: #e60012;
  --red-dark: #c00010;
  --red-soft: #fdecee;
  --ink: #17191c;
  --ink-2: #3a3f45;
  --muted: #646a72;
  --line: #e7e4df;
  --soft: #f7f5f2;
  --card: #ffffff;
  --ok: #0f7b4f;
  --ok-soft: #e6f4ed;
  --warn: #9a5b00;
  --warn-soft: #fdf3e1;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(23 25 28 / .05), 0 8px 24px rgb(23 25 28 / .07);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: #fff; color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid rgb(230 0 18 / .45); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.35; letter-spacing: .03em; font-feature-settings: "palt"; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ===== header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; margin-right: auto; }
.brand img { width: 22px; height: 32px; }
.nav ul, .menu ul, .footer-links { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: 26px; }
.nav a, .lang { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; }
.nav a:hover, .lang:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu ul { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 200px; }
.menu li a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-radius: 8px; font-weight: 600; }
.menu li a:hover, .menu li a[aria-current="page"] { background: var(--soft); color: var(--red); }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: .95rem; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { background: var(--red-soft); color: var(--red-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ===== sections ===== */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--red); font-weight: 800; font-size: .82rem; letter-spacing: .16em; margin-bottom: 14px; text-transform: uppercase; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* hero */
.hero { padding: 88px 0 96px; background:
  radial-gradient(900px 420px at 92% -10%, var(--red-soft), transparent 70%),
  linear-gradient(#fff, #fff); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { max-width: 34em; }
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), #fff); }
.page-hero .lead { max-width: 44em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* product mock (CSS 画的控制台示意) */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; font-size: .86rem; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d5cf; }
.mock-bar b { margin-left: 10px; font-weight: 700; color: var(--ink-2); font-size: .82rem; }
.mock-body { padding: 18px 18px 8px; }
.mock-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.mock-title strong { font-size: .98rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-red { background: var(--red-soft); color: var(--red-dark); }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mock-row small { color: var(--muted); grid-column: 1 / -1; line-height: 1.5; }
.mock-row .chg { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.mock-row .chg s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.mock-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px 16px; }
.mock-foot span { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .8rem; }
.mock-foot .approve { background: var(--red); color: #fff; }
.mock-foot .reject { border: 1px solid var(--line); color: var(--ink-2); }

/* cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.card p { color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
.card-num { font-size: .8rem; font-weight: 800; color: var(--red); letter-spacing: .12em; margin-bottom: 8px; }
.card-featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--ink-2); margin: 0; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 76px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font-weight: 800; color: var(--red); font-size: 1.05rem; letter-spacing: .06em; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-2); }

/* split: text + aside */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 18px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e60012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { border-top: 2px solid var(--ink); padding-top: 16px; }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }
.stat span { color: var(--muted); font-size: .92rem; }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.table th { width: 30%; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tr:first-child th, .table tr:first-child td { border-top: 1px solid var(--line); }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact-card .label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.contact-card .value { font-size: 1.15rem; font-weight: 800; margin: 4px 0 6px; }
.contact-card .value a { color: var(--ink); text-decoration: none; }
.contact-card .value a:hover { color: var(--red); }

/* CTA band */
.cta { background: var(--red); color: #fff; border-radius: 24px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .92; }

/* prose (privacy policy) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 700; }
.prose td:first-child { min-width: 9em; }
.prose td:last-child, .prose th:last-child { white-space: nowrap; }
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.prose .table-scroll table { margin: 0; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); }
.updated { color: var(--muted); font-size: .9rem; }

/* footer */
.site-footer { background: var(--ink); color: #c9ccd1; margin-top: 96px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 8px; width: 72px; height: auto; }
.footer-brand p { margin-top: 14px; font-size: .92rem; }
.footer-info p { font-size: .92rem; line-height: 1.9; }
.footer-info strong { color: #fff; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #e6e7ea; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2e3237; padding-top: 18px; padding-bottom: 24px; color: #8f949b; }
main + .site-footer { margin-top: 0; }

/* ===== responsive ===== */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .contact-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav, .lang { display: none; }
  .menu { display: block; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .page-hero { padding: 48px 0 40px; }
  .grid-3, .grid-2, .contact-cards, .stats, .footer-inner { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px; border-radius: 18px; }
  .table th { width: auto; white-space: normal; display: block; border-bottom: 0; padding-bottom: 0; }
  .table td { display: block; padding-top: 4px; }
  .table tr:first-child td { border-top: 0; }
  .toc ol { columns: 1; }
  .steps li { padding: 18px 18px 18px 62px; }
  .steps li::before { left: 18px; top: 18px; }
}
