/* -------------------- MCP 介绍与授权，只影响局部页面 -------------------- */
.mcp-surface { max-width: 1160px; margin: 0 auto; padding: 56px 24px 88px; color: #f4f4f5; }
.mcp-surface [hidden] { display: none !important; }
.mcp-surface h1, .mcp-surface h2, .mcp-surface h3, .mcp-surface p { margin: 0; }
.mcp-hero { max-width: 800px; margin: 0 auto 48px; padding-top: 16px; text-align: center; }
.mcp-hero-copy { min-width: 0; }
.mcp-badge { display: inline-block; padding: 7px 12px; border: 1px solid #3f3f46; border-radius: 99px; color: var(--theme-color); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.mcp-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 4.5vw, 54px); font-weight: 750; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.mcp-hero-description { max-width: 520px; margin: 0 auto 24px !important; color: #a1a1aa; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.mcp-hero-copy .mcp-client-hint { max-width: 600px; margin: 28px auto 0; color: #a1a1aa; font-size: 12px; line-height: 1.6; text-wrap: pretty; }
.mcp-clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 28px; max-width: 560px; list-style: none; padding: 0; margin: 18px auto 0; }
.mcp-clients li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 76px; }
.mcp-clients li span { color: #d4d4d8; font-size: 13px; line-height: 1.5; }
.mcp-client-icon { width: 44px; height: 44px; object-fit: contain; }
.mcp-client-icon--white { filter: invert(1); }
.mcp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 600; font-size: 14px; line-height: 1.5; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.mcp-primary { color: var(--theme-color-text); background: var(--theme-color); }
.mcp-secondary { color: #e4e4e7; background: #27272a; border-color: #3f3f46; }
.mcp-button:hover { opacity: .85; }
.mcp-button:disabled { opacity: .45; cursor: default; }
.mcp-surface :focus-visible { outline: 2px solid var(--theme-color); outline-offset: 4px; }
.mcp-card { padding: 28px; border: 1px solid #27272a; border-radius: 18px; background: #111113; }
.mcp-surface h2 { font-size: 24px; font-weight: 650; line-height: 1.4; }
.mcp-surface h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.mcp-muted, .mcp-card > p, .mcp-card article p { color: #a1a1aa; line-height: 1.7; font-size: 14px; }
.mcp-card > .mcp-muted { margin-top: 8px; }
.mcp-connect { scroll-margin-top: 100px; }
.mcp-connect-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.mcp-connect-heading .mcp-button { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.mcp-mode-tabs { display: inline-flex; max-width: 100%; box-sizing: border-box; gap: 4px; margin-bottom: 16px; padding: 4px; overflow-x: auto; border: 1px solid #3f3f46; border-radius: 999px; background: #18181b; }
.mcp-mode-tabs button { flex: 0 0 auto; min-height: 34px; padding: 6px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #a1a1aa; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.mcp-mode-tabs button:focus-visible { outline-offset: 1px; }
.mcp-mode-tabs button[aria-selected="true"] { border-color: var(--theme-color); background: #27272a; color: #f4f4f5; }
.mcp-mode-tabs button[aria-selected="false"]:hover { background: #27272a; color: #e4e4e7; }
.mcp-mode-tabs button:disabled { opacity: .45; cursor: default; }
.mcp-copy-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: start; gap: 16px; height: 104px; box-sizing: border-box; padding: 16px 12px 16px 20px; border: 1px solid #3f3f46; border-radius: 12px; background: #09090b; }
.mcp-copy-content { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; box-sizing: border-box; resize: none; overflow: auto; border: 0; border-radius: 0; background: transparent; padding: 0; color: #e4e4e7; font: 13px/1.6 ui-monospace, monospace; }
.mcp-copy-button { gap: 6px; min-height: 34px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.mcp-copy-button svg { flex-shrink: 0; }
.mcp-connect .mcp-prompt-hint { margin-top: 12px; color: #a1a1aa; font-size: 12px; line-height: 1.6; }
.mcp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid #27272a; }
.mcp-steps li { display: flex; align-items: center; gap: 10px; color: #d4d4d8; font-size: 13px; line-height: 1.5; }
.mcp-step-number { display: inline-flex; flex-shrink: 0; width: 24px; height: 24px; justify-content: center; align-items: center; border: 1px solid #52525b; border-radius: 50%; font-size: 11px; }
.mcp-section { margin-top: 56px; }
.mcp-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mcp-example { margin: 0; overflow: hidden; border: 1px solid #27272a; border-radius: 16px; background: #111113; }
.mcp-example > img, .mcp-example > video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #09090b; }
.mcp-models { margin-top: 24px; }
.mcp-models h3 { color: #a1a1aa; font-size: 13px; font-weight: 400; }
.mcp-model-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mcp-model { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid #27272a; border-radius: 8px; padding: 9px 13px; font-size: 13px; }
.mcp-model small { color: #a1a1aa; font-size: 12px; }
.mcp-model img { width: 20px; height: 20px; object-fit: contain; }
/* -------------------- 与首页及 AI 工具页一致的 FAQ 卡片 -------------------- */
.mcp-faq { max-width: 896px; margin-inline: auto; }
.mcp-faq h2 { margin-bottom: 32px; text-align: center; color: #fff; font-weight: 700; }
.mcp-faq-list { display: grid; gap: 16px; }
.mcp-faq article { padding: 16px 24px; background: #18181b; border: 1px solid #27272a; border-radius: 8px; }
.mcp-faq article h3 { margin-bottom: 12px; color: #fff; font-size: 16px; font-weight: 500; }
.mcp-faq article p { color: #d4d4d8; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.mcp-return { color: var(--theme-color); font-size: 13px; }
.mcp-connection { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #27272a; }
.mcp-connection strong { overflow-wrap: anywhere; }
.mcp-connection p { margin-top: 5px; color: #a1a1aa; font-size: 12px; }
#mcp-connections { margin: 16px 0; }
/* -------------------- 连接管理弹窗，与站内深色卡片保持一致 -------------------- */
.mcp-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; margin: auto; padding: 28px; border: 1px solid #3f3f46; border-radius: 18px; background: #111113; color: #f4f4f5; overflow: auto; }
.mcp-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.mcp-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.mcp-dialog h2 { font-size: 22px; }
.mcp-dialog-close { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #a1a1aa; cursor: pointer; }
.mcp-dialog-close:hover { background: #27272a; color: #f4f4f5; }
body:has(#mcp-connections-dialog[open]) { overflow: hidden; }
.mcp-authorize { max-width: 600px; padding-top: 48px; }
.mcp-authorize h1 { margin: 22px 0 12px; font-size: 28px; font-weight: 650; line-height: 1.3; }
.mcp-client-info { padding: 18px; margin: 24px 0; background: #09090b; border: 1px solid #27272a; border-radius: 10px; font-size: 13px; }
.mcp-client-info > div { display: flex; gap: 16px; justify-content: space-between; padding: 5px 0; }
.mcp-client-info dt { color: #a1a1aa; flex-shrink: 0; }
.mcp-client-info dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.mcp-permissions { margin: 0; padding-inline-start: 22px; line-height: 1.8; font-size: 14px; }
.mcp-permissions li { margin: 10px 0; }
.mcp-card > .mcp-notice { margin-top: 20px; padding: 14px; border-radius: 10px; background: #27272a; color: #d4d4d8; font-size: 13px; }
.mcp-card > .mcp-user { margin-top: 24px; overflow-wrap: anywhere; }
.mcp-authorization-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mcp-return { display: inline-block; margin-top: 22px; }
@media (max-width: 700px) {
    .mcp-surface { padding: 36px 16px 56px; }
    .mcp-hero { margin-bottom: 32px; }
    .mcp-hero-description { font-size: 15px; }
    .mcp-clients { max-width: 360px; gap: 24px; }
    .mcp-client-icon { width: 36px; height: 36px; }
    .mcp-card { padding: 22px; }
    .mcp-examples { grid-template-columns: 1fr; }
    .mcp-steps { grid-template-columns: 1fr; gap: 14px; }
    .mcp-section { margin-top: 36px; }
    .mcp-mode-tabs button { padding-inline: 12px; }
    .mcp-copy-panel { height: 144px; padding: 14px; gap: 10px; }
    .mcp-dialog { padding: 22px; }
    .mcp-connection { align-items: flex-start; }
}
@media (min-width: 1024px) {
    .mcp-faq h2 { margin-bottom: 48px; font-size: 30px; }
}
