:root {
  --ink: #18252d;
  --muted: #59666e;
  --paper: #f7f8f5;
  --line: #eaeaea;
  --blue: #0076bd;
  --pale-blue: #e1f3fe;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
::selection { background: var(--pale-blue); }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px 16px; background: var(--ink); color: white; z-index: 20; }
.skip:focus { top: 10px; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand strong { display: block; font-size: 17px; line-height: 1.35; }
.brand small { font-size: 11px; letter-spacing: .07em; color: var(--muted); }
.header nav { display: flex; align-items: center; gap: 26px; }
.header nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
.header nav a[aria-current="page"] { color: var(--blue); font-weight: 650; }
.header nav a:hover { color: var(--blue); }
.hero { padding: 76px 0 58px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .14em; }
h1 { margin: 0 0 24px; font-size: clamp(36px, 5vw, 62px); font-weight: 600; letter-spacing: -.04em; line-height: 1.23; }
.lead { max-width: 660px; margin: 0; color: var(--muted); font-size: 17px; }
.meta { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 21px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: var(--white); font-size: 14px; text-decoration: none; }
.button:hover { background: #333; text-decoration: none; }
.button.secondary { background: transparent; color: var(--ink); border-color: #c7ccd0; }
.button.secondary:hover { background: var(--white); }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.quick-links a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); text-decoration: none; }
.quick-links a:hover { border-color: var(--blue); }
.quick-links span { display: block; font-size: 12px; color: var(--blue); margin-bottom: 7px; }
.quick-links strong { font-size: 18px; font-weight: 600; }
.quick-links p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.content-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding: 56px 0 80px; }
.toc { align-self: start; position: sticky; top: 32px; }
.toc p { margin: 0 0 14px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.toc a { display: block; padding: 10px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.article { min-width: 0; }
.article section { margin-bottom: 58px; animation: enter .5s ease both; }
.article section:last-child { margin-bottom: 0; }
h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; font-size: 25px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.number { flex-shrink: 0; color: var(--blue); font-size: 12px; font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; }
h3 { margin: 24px 0 8px; font-size: 17px; }
.article p, .article li { font-size: 16px; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 12px 0 20px; padding-left: 22px; }
.article li { margin: 8px 0; padding-left: 3px; }
.notice { margin: 22px 0; padding: 20px 24px; background: var(--pale-blue); border-radius: 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: #205c80; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; padding: 20px 36px 20px 0; font-size: 16px; font-weight: 550; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 3px; top: 17px; color: var(--blue); font-size: 23px; font-weight: 400; }
details[open] summary::after { content: "−"; }
.answer { padding: 0 30px 14px 0; color: var(--muted); }
.answer strong { color: var(--ink); }
.permission-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.permission-table th, .permission-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.permission-table thead { background: var(--white); }
.permission-table th { font-weight: 600; }
.permission-table td:first-child { width: 22%; font-weight: 550; white-space: nowrap; }
.contact-box { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.contact-email { display: inline-block; font-size: clamp(18px, 3vw, 26px); font-weight: 550; overflow-wrap: anywhere; margin: 4px 0 18px; }
.fine { font-size: 13px !important; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--blue); }
@keyframes enter { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; }
  .header nav { gap: 20px; }
  .header nav a { font-size: 13px; }
  .brand img { width: 36px; height: 36px; }
  .hero { padding: 46px 0 36px; }
  .lead { font-size: 16px; }
  .quick-links { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
  .quick-links a { padding: 18px 20px; }
  .quick-links p { margin-top: 4px; }
  .content-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .toc p { flex-basis: 100%; margin-bottom: 4px; }
  .toc a { font-size: 13px; }
  h2 { font-size: 23px; }
  .article section { margin-bottom: 42px; }
  .permission-table thead { display: none; }
  .permission-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .permission-table td { display: block; padding: 3px 0; border: 0; }
  .permission-table td:first-child { width: auto; }
  .permission-table td:last-child { color: var(--muted); font-size: 14px; }
  .contact-box, .notice { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article section { animation: none; }
}
