:root {
  --bg: #f4f6f7; --surface: #fff; --subtle: #edf1f1; --field: #fff;
  --ink: #202d31; --muted: #607076; --line: #dce3e5; --field-line: #cbd5d8;
  --accent: #176c54; --accent-hover: #10553f; --accent-soft: #eaf4ef;
  --amber: #805715; --amber-soft: #fff4dc; --red: #ae3737; --red-soft: #fff0ef; --blue: #315f8e; --blue-soft: #edf3fa;
  --radius: 4px; --shadow: 0 14px 48px rgba(14, 37, 31, .16);
  --shadow-navigation: 0 2px 5px rgb(14 37 31 / 5%);
  --shadow-action: 0 2px 4px rgb(14 37 31 / 10%), 0 5px 10px rgb(14 37 31 / 7%);
  --shadow-secondary: 0 2px 5px rgb(14 37 31 / 6%);
  font-family: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink); font-size: 14px; line-height: 1.6; background: var(--bg);
  font-synthesis: none; font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
input, textarea { caret-color: var(--accent); }
::selection { background: #c5e3d5; color: #163d35; }
:focus-visible { outline: 3px solid #55a889; outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: 3px; }
button { color: inherit; }
svg.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--line); border: 2px solid var(--bg); }
.skip-link { position: fixed; top: -100px; left: 16px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
.app-shell { min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-symbol { width: 29px; height: 29px; display: grid; place-items: center; background: var(--accent); color: var(--surface); border-radius: var(--radius); }
.brand-mark { width: 22px; height: 24px; }
.brand-name { font-size: 17px; font-weight: 400; line-height: 1.5; }
.brand-name strong { font-weight: 650; }
.primary-nav { display: flex; align-self: stretch; gap: 30px; margin-left: 54px; }
.nav-link { display: flex; gap: 8px; align-items: center; padding: 0 2px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; min-height: 48px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--accent); }
.nav-link.active { border-color: var(--accent); color: var(--accent); }
.nav-count { font-size: 11px; color: var(--amber); background: var(--amber-soft); padding: 0 6px; border-radius: var(--radius); }
.channel-mark { display: flex; gap: 8px; align-items: center; }
.workspace-footer { max-width: 1288px; margin: 0 auto; padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.workspace-footer .icon { width: 16px; height: 16px; }
.workspace { min-width: 0; }
.topbar { min-height: 76px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-navigation); display: flex; align-items: center; padding: 0 32px; gap: 10px; }
.user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { height: 32px; width: 32px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.user-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.user-role { color: var(--muted); font-size: 11px; }
.auth-label { font-size: 11px; color: var(--muted); border-right: 1px solid var(--line); padding-right: 14px; margin-right: 4px; }
.prototype-note { min-height: 36px; background: var(--subtle); padding: 7px 32px; color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.prototype-tag { font-weight: 600; }
.prototype-note .text-button { margin-left: auto; font-size: 11px; padding: 0; }
main { max-width: 1360px; min-height: calc(100vh - 172px); margin: 0 auto; padding: 36px 36px 56px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: normal; margin-bottom: 8px; line-height: 1.35; }
h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
h3 { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
p { margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-head p { color: var(--muted); margin: 0; font-size: 14px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 9px 16px; min-height: 44px; text-decoration: none; line-height: 1.5; color: var(--ink); white-space: nowrap; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-secondary); }
.button:hover { background: var(--bg); border-color: var(--muted); }
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-action); }
.button.primary:hover { background: var(--accent-hover); }
.button.danger { color: var(--red); border-color: #e6baba; }
.button.tiny { padding: 7px 12px; min-height: 38px; font-size: 13px; }
.button.icon-only { width: 44px; height: 44px; padding: 10px; box-shadow: none; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 4px 0; font-size: 13px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.register, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.toolbar { display: flex; padding: 19px 22px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.search { position: relative; max-width: 310px; width: 100%; }
.search .icon { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.search input { padding-left: 38px; margin: 0; }
input, select, textarea { width: 100%; border: 1px solid var(--field-line); border-radius: var(--radius); color: var(--ink); background: var(--field); padding: 10px 12px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid #d9eee3; outline-offset: 0; }
textarea { resize: vertical; }
.toolbar select { width: 150px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 500; padding: 12px 22px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 24px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--field); }
.app-cell { display: flex; gap: 12px; align-items: center; min-width: 185px; }
.app-symbol { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); flex-shrink: 0; }
.app-symbol.external { color: var(--accent); background: var(--accent-soft); }
.app-title { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 14px; }
.app-title:hover { color: var(--accent); }
.app-id { color: var(--muted); font-size: 11px; margin-top: 3px; }
.badge { display: inline-flex; gap: 5px; align-items: center; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 500; white-space: nowrap; color: #54666d; background: #edf1f2; }
.badge.good { background: var(--accent-soft); color: #176244; }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.info { background: var(--blue-soft); color: var(--blue); }
.table-foot { padding: 13px 22px; color: var(--muted); font-size: 12px; background: var(--bg); border-top: 1px solid var(--line); }
.list-note { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 12px; color: var(--muted); gap: 10px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.detail-head { display: flex; gap: 15px; align-items: center; }
.detail-head .app-symbol { width: 48px; height: 48px; }
.detail-head h1 { margin-bottom: 4px; }
.env-select { width: 128px; padding: 9px 12px; font-size: 13px; }
.tabs { display: flex; gap: 29px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { display: inline-flex; padding: 0 0 13px; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; font-size: 13px; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab:hover { color: var(--accent); }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 21px 23px 18px; }
.section-head p { color: var(--muted); font-size: 12px; margin: 0; }
.panel-body { padding: 23px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 13px; align-items: flex-start; padding: 20px 23px; border-top: 1px solid var(--line); }
.step-state { width: 25px; height: 25px; border-radius: 50%; border: 1px solid #cbd8d2; color: var(--muted); display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.step-state.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.step-state .icon { width: 15px; height: 15px; }
.step-main { flex: 1; min-width: 0; }
.step-main p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.step-main strong { font-size: 13px; font-weight: 600; }
.info-row { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted); }
.info-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
dl { margin: 0; }
.subsection { margin-top: 24px; }
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; color: #38584b; margin-bottom: 24px; }
.notice.warn { color: var(--amber); background: var(--amber-soft); }
.notice.error { color: var(--red); background: var(--red-soft); }
.empty { padding: 55px 22px; text-align: center; color: var(--muted); }
.empty .empty-icon { color: #7b938c; margin-bottom: 15px; }
.empty .icon { width: 29px; height: 29px; }
.empty h3 { color: var(--ink); font-size: 16px; }
.empty p { font-size: 12px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 24px; }
.field { margin-bottom: 19px; }
.field label, .field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field .hint { margin-top: 6px; font-size: 11px; color: var(--muted); }
.required { color: var(--red); margin-left: 3px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-actions { padding-top: 19px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.error-text { color: var(--red); font-size: 12px; margin: 10px 0; }
.policy-list { margin: 10px 0 0; padding-left: 17px; font-size: 12px; color: var(--muted); }
.policy-list li { margin: 10px 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 9px 0; }
.check-row input { width: 16px; min-height: 16px; accent-color: var(--accent); margin: 0; }
.check-row small { margin-left: auto; color: var(--muted); }
.template-row { display: flex; justify-content: space-between; padding: 22px 23px; border-top: 1px solid var(--line); gap: 16px; }
.template-row p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.template-row code { font-size: 11px; }
code, pre, .code-input { font-family: Consolas, 'SFMono-Regular', monospace; font-size: 12px; }
code { overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.code-block { background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 18px; position: relative; }
.code-input { min-height: 245px; line-height: 1.8; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
.doc-section { padding-bottom: 23px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-section h2 { margin-bottom: 11px; }
.doc-section p { font-size: 14px; color: var(--muted); max-width: 75ch; }
.doc-nav { align-self: start; position: sticky; top: 20px; }
.doc-nav a { display: block; text-decoration: none; font-size: 13px; padding: 9px 0; }
.doc-nav h3 { margin-bottom: 10px; }
.endpoint { display: flex; gap: 10px; align-items: center; margin: 14px 0; font-size: 12px; }
.http-method { background: #e1efe8; color: var(--accent); border-radius: 4px; padding: 2px 6px; font-weight: 600; font-family: Consolas, monospace; font-size: 11px; }
.preview-surface { background: var(--bg); padding: 23px; border-radius: var(--radius); }
.feishu-caption { font-size: 11px; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.message-preview { background: white; border: 1px solid #d8e2df; border-radius: 10px; overflow: hidden; }
.message-header { padding: 14px 17px; background: #e6f2ec; color: #254c3c; font-size: 14px; font-weight: 600; }
.message-content { padding: 17px; font-size: 12px; }
.message-content p { margin-bottom: 8px; }
.message-content .message-ref { color: var(--muted); font-size: 11px; }
.message-footer { padding: 0 17px 17px; }
.message-footer span { display: block; border: 1px solid #c5d8cf; color: var(--accent); text-align: center; border-radius: 6px; padding: 7px; font-size: 12px; }
.preview-caption { color: var(--muted); font-size: 11px; margin-top: 13px; }
dialog { border: 0; padding: 0; color: var(--ink); width: min(610px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(20, 41, 36, .32); }
dialog[open] { display: flex; flex-direction: column; animation: drawer-in .2s cubic-bezier(.16, 1, .3, 1); }
@keyframes drawer-in { from { transform: translateX(35px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; }
.drawer-body { overflow-y: auto; padding: 26px 28px; flex: 1; }
.drawer-body form { height: auto; }
.drawer-body .form-actions { margin-top: 24px; }
.drawer-sub { color: var(--muted); font-size: 12px; margin-bottom: 25px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none; background: #203d34; color: white; padding: 11px 20px; border-radius: var(--radius); max-width: calc(100% - 32px); width: max-content; font-size: 12px; z-index: 100; box-shadow: 0 7px 20px rgba(10, 30, 20, .13); transition: opacity .18s, transform .18s; }
.toast.show { transform: translateX(-50%); opacity: 1; }
.key-id { font-size: 12px; font-family: Consolas, monospace; }
.timeline { margin: 18px 0; padding: 0; list-style: none; }
.timeline li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.timeline time { color: var(--muted); font-size: 11px; margin-right: 12px; }
.detail-pair { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 15px; font-size: 12px; margin-bottom: 11px; }
.detail-pair span:first-child { color: var(--muted); }
.link-arrow { color: var(--muted); }
.filter-count { font-size: 12px; color: var(--muted); }
.doc-app-select { width: 180px; font-size: 12px; }
@media (max-width: 1360px) { .workspace-footer { margin-left: 36px; margin-right: 36px; } }
@media (max-width: 1080px) { .primary-nav { margin-left: 24px; } .auth-label { display: none; } main { padding: 32px 24px 48px; } .topbar, .prototype-note { padding-left: 24px; padding-right: 24px; } .workspace-footer { margin-left: 24px; margin-right: 24px; } .overview-grid, .form-grid { grid-template-columns: 1fr; } .doc-layout { grid-template-columns: 1fr; } .doc-nav { display: none; } td, th { padding-left: 17px; padding-right: 17px; } }
@media (max-width: 720px) {
  .topbar { padding: 14px 16px 0; flex-wrap: wrap; gap: 10px 20px; }
  .primary-nav { order: 3; width: 100%; margin-left: 0; min-height: 48px; justify-content: space-between; gap: 12px; }
  .nav-link { font-size: 13px; }
  .auth-label, .user-role { display: none; }
  .prototype-note { padding: 8px 16px; font-size: 11px; gap: 7px; }
  main { padding: 28px 16px 40px; min-height: calc(100vh - 224px); }
  .workspace-footer { margin: 0 16px; padding: 18px 0; flex-direction: column; gap: 7px; font-size: 11px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .page-head { gap: 12px; margin-bottom: 22px; }
  .page-head > .actions { justify-content: flex-end; }
  .page-head p { font-size: 12px; }
  .page-head .button { padding: 8px 10px; font-size: 12px; }
  .toolbar { padding: 15px; gap: 10px; flex-wrap: wrap; }
  .toolbar select { width: 138px; font-size: 12px; }
  .toolbar .search { min-width: 0; max-width: none; flex-basis: 100%; }
  .toolbar > .actions { width: 100%; justify-content: space-between; }
  .toolbar input { font-size: 12px; }
  .app-table .optional-column { display: none; }
  td, th { padding-left: 15px; padding-right: 15px; }
  td { padding-top: 18px; padding-bottom: 18px; }
  .app-table td:last-child, .app-table th:last-child { display: none; }
  .app-cell { min-width: 155px; gap: 9px; }
  .app-symbol { width: 32px; height: 32px; }
  .app-title { font-size: 13px; }
  .list-note { align-items: flex-start; }
  .list-note span:first-child { max-width: 240px; }
  .detail-head .app-symbol { display: none; }
  .detail-page-head { flex-direction: column; }
  .tabs { gap: 22px; margin-bottom: 19px; }
  .section-head, .panel-body { padding: 18px; }
  .steps li, .template-row { padding: 18px; }
  .step-main p { max-width: 220px; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .drawer-head { padding: 21px; }
  .drawer-body { padding: 22px; }
  .template-row { flex-direction: column; }
  .template-row > .actions { justify-content: flex-start; }
  .doc-app-select { width: 140px; }
  .code-block { padding: 13px; }
  .endpoint { align-items: flex-start; }
  .section-head > .actions { justify-content: flex-end; }
  .doc-layout, .doc-layout .panel, .code-block { min-width: 0; }
  .page-head > div:first-child { min-width: 0; }
  .page-head .actions { gap: 8px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
