* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; color: #111827; background: #fff; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: #2563eb; text-decoration: none; }
svg { vertical-align: -3px; flex-shrink: 0; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; background: #2563eb; color: #fff; border: 1px solid #2563eb; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.4; white-space: nowrap; }
.btn:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; text-decoration: none; }
.btn:disabled { background: #93c5fd; border-color: #93c5fd; cursor: not-allowed; }
.btn-outline { background: #fff; color: #111827; border-color: #d9dee6; }
.btn-outline:hover { background: #f9fafb; border-color: #d9dee6; color: #111827; }
.btn-ghost { background: transparent; color: #374151; border-color: transparent; }
.btn-ghost:hover { background: #f3f4f6; color: #111827; }
.btn-danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-solid-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-solid-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.site-header { background: #fff; border-bottom: 1px solid #eceef1; position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-cloud { height: 34px; width: auto; display: block; }
.brand-word { height: 30px; width: auto; display: block; }
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark .brand-cloud { height: 30px; }
.brand-name { font-size: 17px; font-weight: 700; color: #111827; letter-spacing: -0.01em; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: #4b5563; font-size: 15px; }
.main-nav a:hover { color: #111827; background: #f3f4f6; text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-user { display: flex; align-items: center; gap: 8px; color: #374151; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.header-user:hover { background: #f3f4f6; text-decoration: none; color: #111827; }
.site-footer { border-top: 1px solid #eceef1; padding: 26px 0; color: #9ca3af; font-size: 13px; background: #fff; }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner .foot-links { margin-left: auto; display: flex; gap: 20px; }
.footer-inner .foot-links a { color: #6b7280; }
.footer-inner .foot-links a:hover { color: #111827; text-decoration: none; }
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 5px 12px; margin-bottom: 20px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #2563eb; }
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: -0.02em; color: #111827; font-weight: 800; }
.hero h1 .hl { color: #2563eb; }
.hero .lead { margin: 18px 0 0; font-size: 17px; color: #6b7280; line-height: 1.75; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #f0f1f3; }
.hero-meta .mi b { display: block; font-size: 20px; color: #111827; letter-spacing: -0.01em; }
.hero-meta .mi span { font-size: 13px; color: #9ca3af; }
.hero-visual { position: relative; }
.consent-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.05); padding: 26px 26px 22px; max-width: 440px; margin-left: auto; position: relative; z-index: 2; }
.consent-card .cc-app { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #f0f1f3; margin-bottom: 18px; }
.consent-card .cc-ava { width: 44px; height: 44px; border-radius: 12px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.consent-card .cc-app b { display: block; font-size: 16px; color: #111827; }
.consent-card .cc-app span { font-size: 13px; color: #9ca3af; }
.consent-card h3 { font-size: 17px; color: #111827; margin-bottom: 6px; }
.consent-card p { font-size: 14px; color: #6b7280; margin-bottom: 16px; }
.consent-card .cc-scope { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.consent-card .cc-scope div { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #374151; }
.consent-card .cc-scope svg { color: #2563eb; }
.consent-card .cc-actions { display: flex; gap: 10px; }
.consent-card .cc-actions .btn { flex: 1; }
.consent-back { position: absolute; right: 26px; bottom: -18px; width: 210px; background: #111827; color: #e5e7eb; border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.8; z-index: 1; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18); }
.consent-back .tok { color: #93c5fd; }
.section { padding: 56px 0; border-top: 1px solid #f0f1f3; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; letter-spacing: -0.015em; color: #111827; line-height: 1.3; }
.section-head p { margin-top: 10px; color: #6b7280; font-size: 16px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow-step { padding: 0 22px 0 0; position: relative; }
.flow-step + .flow-step { padding-left: 22px; }
.flow-step + .flow-step:before { content: ""; position: absolute; left: -11px; top: 19px; width: 22px; height: 1px; background: #d9dee6; }
.flow-step .num { width: 38px; height: 38px; border-radius: 50%; background: #eff6ff; color: #2563eb; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.flow-step h3 { font-size: 16px; color: #111827; margin-bottom: 6px; }
.flow-step p { font-size: 14px; color: #6b7280; line-height: 1.7; }
.flow-step code { background: #f3f4f6; padding: 1px 6px; border-radius: 5px; font-size: 12px; color: #1d4ed8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.way-card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; background: #fff; }
.way-card .wc-icon { width: 46px; height: 46px; border-radius: 12px; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.way-card h3 { font-size: 18px; color: #111827; margin-bottom: 8px; }
.way-card p { font-size: 14px; color: #6b7280; line-height: 1.75; margin-bottom: 18px; }
.way-card .btn { padding: 9px 16px; font-size: 14px; }
.cta-band { background: #111827; border-radius: 20px; padding: 44px 40px; display: flex; align-items: center; gap: 32px; }
.cta-band h2 { color: #fff; font-size: 24px; letter-spacing: -0.01em; line-height: 1.35; }
.cta-band p { color: #9ca3af; font-size: 15px; margin-top: 8px; }
.cta-band .cta-actions { margin-left: auto; display: flex; gap: 12px; flex-shrink: 0; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.auth-page { background: #f6f8fb; min-height: calc(100vh - 68px); display: flex; flex-direction: column; }
.auth-page .site-footer { margin-top: auto; background: transparent; border-top: none; }
.form-wrap { max-width: 440px; width: 100%; margin: 0 auto; padding: 56px 20px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-brand .brand-cloud { height: 52px; margin: 0 auto 12px; }
.auth-brand .brand-word { height: 34px; margin: 0 auto; }
.auth-brand h1 { font-size: 22px; color: #111827; margin-top: 16px; letter-spacing: -0.01em; }
.auth-brand p { font-size: 14px; color: #6b7280; margin-top: 5px; }
.form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 30px 30px 26px; box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: #374151; }
.field .hint { font-weight: 400; color: #9ca3af; font-size: 13px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.input-wrap .input { padding-left: 38px; }
.input, select.input, textarea.input { width: 100%; padding: 11px 12px; border: 1px solid #d9dee6; border-radius: 10px; font-size: 15px; background: #fff; color: #111827; line-height: 1.5; }
.input:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
.input:read-only { background: #f9fafb; color: #6b7280; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.7; }
.code-row { display: flex; gap: 10px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { white-space: nowrap; }
.form-foot { text-align: center; margin-top: 20px; color: #6b7280; font-size: 14px; }
.form-foot .btn { margin-top: 12px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; border: 1px solid transparent; line-height: 1.6; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert-info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; }
.card h2 { font-size: 18px; color: #111827; margin-bottom: 6px; }
.card .card-sub { font-size: 14px; color: #6b7280; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: 140px 1fr; row-gap: 12px; font-size: 15px; }
.kv dt { color: #6b7280; }
.kv dd { color: #111827; font-weight: 500; word-break: break-all; }
.topbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: #fff; border-bottom: 1px solid #eceef1; align-items: center; gap: 12px; padding: 0 14px; z-index: 40; }
.burger { width: 40px; height: 40px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5px; cursor: pointer; padding: 0; flex-shrink: 0; }
.burger span { display: block; width: 18px; height: 2px; background: #111827; border-radius: 2px; }
.topbar-title { font-size: 16px; font-weight: 700; color: #111827; }
.scrim { display: none; }
.shell { display: flex; min-height: 100vh; background: #fff; }
.rail { width: 264px; flex-shrink: 0; background: #fafafa; border-right: 1px solid #eceef1; padding: 22px 16px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.rail-logo { display: flex; align-items: center; gap: 12px; padding: 2px 8px 18px; }
.rail-logo .brand-cloud { height: 36px; }
.rail-logo b { font-size: 16px; color: #111827; display: block; line-height: 1.25; }
.rail-logo small { font-size: 12px; color: #9ca3af; }
.rail-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #9ca3af; text-transform: uppercase; padding: 16px 12px 8px; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: #374151; font-size: 14px; }
.rail-item svg { color: #6b7280; }
.rail-item:hover { background: #f0f1f3; color: #111827; text-decoration: none; }
.rail-item.on { background: #fff; color: #2563eb; font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 0 0 1px #e5e7eb; }
.rail-item.on svg { color: #2563eb; }
.rail-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #eceef1; display: flex; flex-direction: column; gap: 2px; }
.rail-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.rail-user .ava { width: 34px; height: 34px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.rail-user b { display: block; font-size: 14px; color: #111827; line-height: 1.3; }
.rail-user span { font-size: 12px; color: #9ca3af; }
.content { flex: 1; min-width: 0; padding: 32px 36px 40px; max-width: 1060px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 24px; margin: 0; color: #111827; line-height: 1.3; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; font-size: 14px; color: #6b7280; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.kpi-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon.violet { background: #f5f3ff; color: #7c3aed; }
.kpi-icon.amber { background: #fffbeb; color: #d97706; }
.kpi-icon.green { background: #f0fdf4; color: #15803d; }
.kpi b { font-size: 28px; line-height: 1.15; display: block; color: #111827; }
.kpi span { font-size: 13px; color: #6b7280; }
.kpi a { font-size: 13px; color: #2563eb; }
.grid-2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #f0f1f3; }
.panel-head h3 { margin: 0; font-size: 16px; color: #111827; }
.panel-head a { margin-left: auto; font-size: 13px; color: #2563eb; white-space: nowrap; }
.panel-body { padding: 8px 20px 12px; }
.panel-body.pad { padding: 22px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f3f4f6; }
.list-row:last-child { border-bottom: 0; }
.list-row .tt { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.4; }
.list-row .mt { font-size: 12px; color: #9ca3af; margin-top: 3px; }
.list-row .acts { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.list-row .acts form { display: inline; }
.pill { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-weight: 600; }
.pill.gray { background: #f3f4f6; color: #6b7280; }
.pill.green { background: #f0fdf4; color: #15803d; }
.pill.red { background: #fef2f2; color: #b91c1c; }
.empty { padding: 28px 0; text-align: center; color: #9ca3af; font-size: 14px; }
.table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid #f3f4f6; text-align: left; vertical-align: middle; }
.table th { background: #f9fafb; color: #6b7280; font-size: 13px; font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.table .actions { white-space: nowrap; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini-input { width: 130px; padding: 6px 9px; border: 1px solid #d9dee6; border-radius: 8px; font-size: 13px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-green { background: #f0fdf4; color: #15803d; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.secret-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; margin-bottom: 20px; }
.secret-box h3 { font-size: 15px; color: #111827; margin-bottom: 10px; }
.secret-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.secret-line span { color: #6b7280; width: 92px; flex-shrink: 0; }
.secret-line code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 8px; word-break: break-all; flex: 1; }
.copy-btn { padding: 5px 10px; font-size: 12px; }
.docs { max-width: 860px; margin: 40px auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 36px 40px; }
.docs h1 { font-size: 28px; color: #111827; margin-bottom: 8px; letter-spacing: -0.01em; }
.docs h2 { font-size: 21px; color: #111827; margin: 32px 0 12px; padding-top: 24px; border-top: 1px solid #f3f4f6; }
.docs h3 { font-size: 17px; color: #111827; margin: 22px 0 10px; }
.docs p { color: #4b5563; margin-bottom: 12px; }
.docs ul, .docs ol { margin: 0 0 14px 22px; color: #4b5563; }
.docs li { margin-bottom: 6px; }
.docs code { background: #f3f4f6; padding: 2px 7px; border-radius: 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #1d4ed8; }
.docs pre { background: #111827; color: #e5e7eb; padding: 18px; border-radius: 10px; overflow-x: auto; margin-bottom: 16px; font-size: 13px; line-height: 1.7; }
.docs pre code { background: none; padding: 0; color: inherit; }
.docs table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.docs th, .docs td { padding: 10px 12px; border: 1px solid #e5e7eb; text-align: left; }
.docs th { background: #f9fafb; color: #374151; }
.docs .flow-diagram { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; font-size: 14px; color: #374151; line-height: 2; }
.docs .flow-diagram b { color: #111827; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero { padding: 52px 0 48px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .flow-step + .flow-step { padding-left: 0; }
  .flow-step + .flow-step:before { display: none; }
  .split-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 26px; }
  .cta-band .cta-actions { margin-left: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar { display: flex; }
  .shell { flex-direction: column; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 84vw; height: 100vh; height: 100dvh; z-index: 60; transform: translateX(-105%); transition: transform 0.28s ease; box-shadow: 0 0 40px rgba(16, 24, 40, 0.18); }
  body.nav-open .rail { transform: translateX(0); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .content { padding: 76px 16px 32px; }
  .page-head { flex-direction: column; }
  .page-head .actions { margin-left: 0; }
  .list-row { flex-wrap: wrap; }
  .list-row .acts { margin-left: 0; }
  .main-nav { display: none; }
  .header-inner { gap: 12px; }
  .brand-word { display: none; }
  .hero-meta { flex-wrap: wrap; gap: 18px; }
  .flow { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
  .docs { padding: 24px 20px; margin: 24px auto; }
  .kv { grid-template-columns: 110px 1fr; }
  .consent-back { display: none; }
  .form-wrap { padding-top: 40px; }
}
