@charset "UTF-8";

:root { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #263431; background: #f5f7f6; font-synthesis: none; --accent: #18766a; --muted: #75817d; --border: #e2e8e4; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; padding: 0 24px 48px; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
#wecom-login-button:disabled { cursor: not-allowed; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #68b7aa; outline-offset: 3px; }
.admin-shell { width: 1040px; max-width: 100%; margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 38px; }
.brand { color: #43574c; font-size: 15px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.text-button { background: transparent; border: 0; color: var(--accent); padding: 5px 0; font-size: 13px; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.5; }
h2 { margin: 0 0 22px; font-size: 17px; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.login-panel { max-width: 390px; margin: 80px auto 0; padding: 32px; }
.login-panel h1 { margin-bottom: 27px; font-size: 22px; }
.login-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 25px 0; color: var(--muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
input:not([type="checkbox"]), textarea { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #d8e1db; background: #fff; color: #263431; border-radius: 6px; font-size: 14px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #a2aca6; }
textarea { resize: vertical; }
input:read-only:not(#client-secret) { background: #f4f6f5; color: #7b8780; }
.login-panel input { margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 17px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.button:hover { background: #126356; }
.button.secondary { background: #fff; color: #50665b; border-color: #d8e1db; }
.button.secondary:hover { background: #f5f8f6; }
.full-width { width: 100%; }
.toolbar, .title-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar { margin-bottom: 24px; }
.title-row { justify-content: flex-start; gap: 12px; }
.count { min-width: 26px; padding: 3px 7px; background: #e8ede9; border-radius: 5px; color: #66786e; font-size: 12px; text-align: center; }
.message { padding: 12px 16px; border: 1px solid #dae5de; border-radius: 6px; margin: 0 0 24px; background: #edf4ef; color: #3f6650; line-height: 1.6; font-size: 13px; overflow-wrap: anywhere; }
.message.error { background: #fff5f2; border-color: #f0d8d1; color: #a4513d; }
.message:empty, .form-error:empty { display: none; }
.form-error { color: #a4513d; font-size: 13px; line-height: 1.6; margin: 18px 0 0; overflow-wrap: anywhere; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; font-size: 14px; }
.editor { padding: 26px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { min-width: 0; }
.wide { grid-column: 1 / -1; }
.optional { color: #87948c; font-size: 12px; font-weight: 400; margin-left: 6px; }
.checkbox-label { display: flex; align-items: center; gap: 9px; margin: 20px 0 0; width: fit-content; font-size: 14px; }
.checkbox-label input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; margin-top: 24px; }
.secret-panel { margin-bottom: 24px; padding: 22px 26px; background: #f3faf6; border-color: #c9dfd0; }
.section-heading h2 { margin: 0; font-size: 16px; }
.hint { margin: 12px 0; color: #657b6c; font-size: 13px; line-height: 1.7; }
.secret-row { display: flex; align-items: center; gap: 12px; }
#client-secret { font-family: Consolas, monospace; }
.table-scroll { overflow-x: auto; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { background: #fafbf9; color: #7b8980; font-weight: 400; padding: 14px 22px; font-size: 12px; }
td { padding: 20px 22px; border-top: 1px solid #ecf0ed; vertical-align: top; }
th:nth-child(1) { width: 25%; }
th:nth-child(2) { width: 43%; }
th:nth-child(3) { width: 12%; }
th:nth-child(4) { width: 20%; }
.app-name { font-weight: 500; margin: 0 0 5px; overflow-wrap: anywhere; }
.app-id, .app-description { margin: 0; color: #87948c; font-size: 12px; overflow-wrap: anywhere; }
.app-description { margin-top: 8px; line-height: 1.6; }
.callback-list { display: grid; gap: 6px; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12px; line-height: 1.7; color: #687b6d; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 12px; white-space: nowrap; color: #347953; background: #edf5ef; }
.status.disabled { color: #87918b; background: #f0f2f0; }
.row-actions { display: flex; gap: 17px; justify-content: flex-end; }
.actions-heading { text-align: right; }
.empty-state { margin: 0; padding: 66px 24px; text-align: center; color: #87948c; font-size: 14px; }
noscript { display: block; padding: 20px; text-align: center; color: #a4513d; }
@media (max-width: 700px) { body { padding: 0 16px 32px; } .site-header { min-height: 72px; margin-bottom: 28px; } h1 { font-size: 22px; } .login-panel { margin-top: 45px; padding: 26px; } .editor { padding: 20px; } .form-grid { grid-template-columns: 1fr; } .secret-panel { padding: 20px; } table { min-width: 640px; } th, td { padding-left: 18px; padding-right: 18px; } }
