/* ===== C3T3D 浅色主题 · 共享样式（供各语言 index.html 引用） ===== */

:root {
  --theme-color: #2563eb;            /* docsify 主色 → 蓝色 */
  --t3d-primary:#2563eb; --t3d-cyan:#0891b2; --t3d-amber:#d97706;
  --t3d-red:#dc2626; --t3d-green:#16a34a; --t3d-gray:#64748b;
  --t3d-bg:#ffffff; --t3d-panel:#f8fafc; --t3d-border:#e2e8f0; --t3d-text:#334155;
}

/* 整页浅色 */
body { background-color: #ffffff; }
.markdown-section { background-color: transparent; }
.markdown-section h1, .markdown-section h2, .markdown-section h3,
.markdown-section h4, .markdown-section h5 { color: #1e293b; }
.markdown-section p, .markdown-section li { color: #334155; }
.markdown-section a { color: #2563eb; }
.markdown-section a:hover { color: #1d4ed8; }
.markdown-section strong { color: #1e293b; }

/* 侧边栏 */
.sidebar { background-color: #ffffff; border-right: 1px solid #e2e8f0; }
.sidebar .sidebar-nav a { color: #475569; }
.sidebar .sidebar-nav a.active { color: #2563eb; }
.sidebar .sidebar-nav li.active > a { border-right: 2px solid #2563eb; }
.sidebar-toggle span { background-color: #94a3b8; }
.sidebar-toggle span:hover { background-color: #2563eb; }

/* 搜索框 */
.sidebar .search input {
  background-color: #f8fafc; color: #1e293b; border-color: #e2e8f0;
}
.sidebar .search input:focus { border-color: #2563eb; }
.sidebar .search .clear-button { color: #94a3b8; }

/* 文档主色标题 */
.markdown-section h1 { border-bottom: 1px solid #e2e8f0; }
.markdown-section h2 { border-bottom: 1px solid rgba(37,99,235,.2); }

/* 语言切换 */
.lang-switch{display:flex;gap:8px;margin-bottom:8px}
.lang-switch a{display:inline-block;padding:3px 14px;border-radius:999px;border:1px solid #e2e8f0;color:#2563eb;font-weight:600;text-decoration:none;background:#f8fafc}
.lang-switch a:hover{border-color:#2563eb;color:#1d4ed8;background:#eff6ff}

/* 版本徽章 */
.ver{display:inline-block;padding:3px 14px;border-radius:999px;background:linear-gradient(135deg,#2563eb,#0891b2);color:#fff;font:700 14px/1.6 'Segoe UI',system-ui;box-shadow:0 2px 8px rgba(37,99,235,.3);vertical-align:middle}

/* 方法徽章（GitHub 文档风格） */
.m-post,.m-get,.m-put,.m-del{display:inline-block;padding:2px 10px;border-radius:6px;font:700 12px/1.6 Consolas,Monaco,monospace;color:#fff;letter-spacing:.5px;vertical-align:middle}
.m-post{background:#16a34a;box-shadow:0 1px 4px rgba(22,163,74,.3)}
.m-get{background:#0891b2;box-shadow:0 1px 4px rgba(8,145,178,.3)}
.m-put{background:#d97706;box-shadow:0 1px 4px rgba(217,119,6,.3)}
.m-del{background:#dc2626;box-shadow:0 1px 4px rgba(220,38,38,.3)}

/* 路径芯片 */
.path{display:inline-block;padding:2px 10px;border-radius:6px;font:400 13px/1.6 Consolas,Monaco,monospace;color:#0f766e;background:#f0fdfa;border:1px solid #ccfbf1;vertical-align:middle;word-break:break-all}

/* 状态胶囊（浅色填充 + 深色文字） */
.pill{display:inline-block;padding:1px 9px;border-radius:999px;font:600 11px/1.7 Consolas,Monaco,monospace;border:1px solid;vertical-align:middle}
.pill-green{color:#15803d;border-color:#86efac;background:#f0fdf4}
.pill-cyan{color:#0e7490;border-color:#67e8f9;background:#ecfeff}
.pill-red{color:#b91c1c;border-color:#fca5a5;background:#fef2f2}
.pill-amber{color:#b45309;border-color:#fcd34d;background:#fffbeb}
.pill-gray{color:#475569;border-color:#cbd5e1;background:#f8fafc}
.pill-purple{color:#7c3aed;border-color:#d8b4fe;background:#faf5ff}

/* 必填 / 选填 */
.req{color:#16a34a;font-weight:600}
.opt{color:#94a3b8}

/* 信息卡 */
.info-card{border:1px solid #e2e8f0;border-radius:12px;padding:14px 18px;background:linear-gradient(180deg,#f8fafc,#ffffff);box-shadow:0 1px 4px rgba(15,23,42,.06);margin:12px 0}
.info-card p{margin:6px 0}
.info-card .k{color:#2563eb;font-weight:600}

/* 环境地址 */
.env{display:block;font:400 13px/1.8 Consolas,Monaco,monospace;color:#0f766e;background:#f0fdfa;border:1px solid #ccfbf1;border-left:3px solid #0891b2;border-radius:6px;padding:6px 10px;margin:6px 0}
.env b{color:#b45309;font-weight:600}

/* 签名步骤 */
.t3d-steps ol{list-style:none;counter-reset:st;padding-left:0}
.t3d-steps li{counter-increment:st;position:relative;padding:10px 14px 10px 46px;margin:8px 0;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}
.t3d-steps li::before{content:counter(st);position:absolute;left:12px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#0891b2);color:#fff;font:700 13px/24px Consolas;text-align:center;box-shadow:0 1px 4px rgba(37,99,235,.3)}

/* 表格 */
.markdown-section table{border-collapse:separate;border-spacing:0;border-radius:10px;overflow:hidden;box-shadow:0 1px 4px rgba(15,23,42,.06)}
.markdown-section table th{background:#eff6ff;color:#1d4ed8;text-transform:uppercase;letter-spacing:.4px;font-size:12px;border:1px solid #e2e8f0}
.markdown-section table td{border:1px solid #eef2f7;background:#ffffff}
.markdown-section table tr:nth-child(even) td{background:#f8fafc}
.markdown-section table td:first-child{font-family:Consolas,Monaco,monospace;color:#7c3aed}
.markdown-section table th:first-child{border-radius:10px 0 0 0}
.markdown-section table th:last-child{border-radius:0 10px 0 0}

/* 引用 / 描述 */
.markdown-section blockquote{color:#334155;border-left:4px solid #2563eb;background:#eff6ff;border-radius:0 8px 8px 0;padding:10px 16px}

/* docsify callout：!> 提示 / ?> 警告 */
.markdown-section blockquote.tip{border-left:4px solid #0891b2;background:#ecfeff;color:#155e75}
.markdown-section blockquote.warn{border-left:4px solid #d97706;background:#fffbeb;color:#92400e}

/* 代码块 */
.markdown-section pre, .markdown-section code {
  background:#f8fafc !important; color:#334155;
  border:1px solid #e2e8f0; border-radius:8px;
}
.markdown-section pre{padding:14px; box-shadow:0 1px 4px rgba(15,23,42,.06)}
.markdown-section code:not(pre code){padding:2px 6px;background:#eff6ff !important;color:#1d4ed8;border:none;border-radius:4px}

/* 折叠面板 */
details{margin:10px 0;border:1px solid #e2e8f0;border-radius:10px;background:#ffffff;overflow:hidden}
details summary{cursor:pointer;padding:10px 14px;font-weight:600;color:#2563eb;background:#f8fafc;list-style:none;user-select:none}
details summary::-webkit-details-marker{display:none}
details summary::before{content:'▶';display:inline-block;margin-right:8px;color:#2563eb;transition:transform .2s}
details[open] summary::before{transform:rotate(90deg)}
details pre{margin:10px 14px;border:1px solid #eef2f7;border-radius:8px}

/* 代码复制按钮 */
.docsify-copy-code-button{color:#2563eb;background:#ffffff;border:1px solid #e2e8f0;border-radius:6px;font-size:12px}
.docsify-copy-code-button:hover{color:#1d4ed8;border-color:#2563eb;background:#eff6ff}
