/* ============================================================
   鲸准 MCP 承接页  /data-service/mcp/
   视觉规范对齐 dataService / knowledge：
   主色 #3853f4，浅底 #f4f6ff，文字 #1d2633/#5c6777，
   卡片圆角 8px，阴影 0 12px 32px rgba(29,38,51,.05)
   ============================================================ */

.mcp-page {
  background: #fff;
  color: #253044;
}

/* MCP 首屏背景很浅，公共菜单的 .88 白色遮罩会让 blur 几乎不可见。
   仅在落地页降低遮罩不透明度，并用冰蓝色差、内高光和阴影强化玻璃层次。 */
.mcp-landing-page .new-navbar .dropdown-menu {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(242, 246, 255, 0.68));
  border-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 16px 40px rgba(37, 55, 100, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.mcp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.mcp-container-narrow {
  max-width: 860px;
}

/* ---------- 通用 section / 标题 ---------- */
.mcp-section {
  padding: 45px 0;
}

.mcp-section-tint {
  background: #f7f9ff;
}

.mcp-section-head {
  margin-bottom: 18px;
  text-align: center;
}

.mcp-section-kicker {
  display: block;
  margin-bottom: 14px;
  color: #3853f4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
}

.mcp-section-title {
  margin: 0;
  color: #1d2633;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.mcp-section-sub {
  max-width: 760px;
  margin: 16px auto 0;
  color: #5c6777;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}

/* ---------- 滚动进入动画（无 JS 时内容默认可见） ---------- */
.mcp-anim .mcp-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.mcp-anim .mcp-reveal.in-view {
  opacity: 1;
  transform: none;
}

.mcp-anim .mcp-reveal:nth-child(2) { transition-delay: 0.08s; }
.mcp-anim .mcp-reveal:nth-child(3) { transition-delay: 0.16s; }
.mcp-anim .mcp-reveal:nth-child(4) { transition-delay: 0.24s; }
.mcp-anim .mcp-reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- 按钮 ---------- */
.mcp-btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mcp-btn-primary {
  color: #fff;
  background: #3853f4;
  border: 1px solid #3853f4;
  box-shadow: 0 8px 20px rgba(56, 83, 244, 0.22);
}

.mcp-btn-primary:hover {
  color: #fff;
  background: #2c46d8;
  border-color: #2c46d8;
  text-decoration: none;
}

.mcp-btn-ghost {
  color: #3853f4;
  background: #fff;
  border: 1px solid #3853f4;
}

.mcp-btn-ghost:hover {
  color: #2c46d8;
  background: #f4f6ff;
  text-decoration: none;
}

.mcp-btn-ghost-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
}

.mcp-btn-ghost-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* 蓝色 CTA 块上的主按钮：白底蓝字 */
.mcp-btn-onblue {
  color: #3853f4;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 22px rgba(18, 28, 84, 0.2);
}

.mcp-btn-onblue:hover {
  color: #2c46d8;
  background: #f2f4ff;
  border-color: #f2f4ff;
}

/* ---------- 首屏 ---------- */
.mcp-hero {
  padding: 148px 20px 30px;
  background: linear-gradient(180deg, #eef1ff 0, #f7f9ff 55%, #fff 100%);
  text-align: center;
}

.mcp-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 22px;
  color: #3853f4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: rgba(56, 83, 244, 0.08);
  border-radius: 20px;
}

.mcp-hero-title {
  max-width: 880px;
  margin: 0 auto;
  color: #1d2633;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
}

.mcp-hero-sub {
  max-width: 780px;
  margin: 22px auto 0;
  color: #5c6777;
  font-size: 17px;
  line-height: 1.9;
  text-wrap: pretty;
}

.mcp-hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mcp-hero-tags {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.mcp-hero-tags li {
  padding: 7px 16px;
  color: #4a5568;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(29, 38, 51, 0.04);
}

/* ---------- 它是什么 ---------- */
.mcp-what-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mcp-what-item {
  padding: 32px 26px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(29, 38, 51, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mcp-what-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(29, 38, 51, 0.09);
}

.mcp-what-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 10px;
  background-color: #3853f4;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}

.mcp-icon-protocol {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='6' r='2.4'/%3E%3Ccircle cx='19' cy='6' r='2.4'/%3E%3Ccircle cx='12' cy='18' r='2.4'/%3E%3Cpath d='M7.1 7.4l3 8.4M16.9 7.4l-3 8.4M7.4 6h9.2'/%3E%3C/svg%3E");
}

.mcp-icon-chat {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-8.5 8.5 8.5 8.5 0 0 1-3.8-.9L3 21l1.9-5.7a8.5 8.5 0 1 1 16.1-3.8z'/%3E%3Cpath d='M8.5 10.5h.01M12 10.5h.01M15.5 10.5h.01'/%3E%3C/svg%3E");
}

.mcp-icon-secure {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 11.5l2 2 4-4.5'/%3E%3C/svg%3E");
}

.mcp-icon-data {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v6c0 1.66 3.58 3 8 3s8-1.34 8-3V5'/%3E%3Cpath d='M4 11v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6'/%3E%3C/svg%3E");
}

.mcp-what-item h3 {
  margin: 0 0 10px;
  color: #253044;
  font-size: 18px;
  font-weight: 600;
}

.mcp-what-item p {
  margin: 0;
  color: #657083;
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- 八类数据 ---------- */
.mcp-types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mcp-type-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mcp-type-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 83, 244, 0.35);
  box-shadow: 0 16px 36px rgba(56, 83, 244, 0.1);
}

.mcp-type-name {
  margin: 0 0 8px;
  color: #253044;
  font-size: 17px;
  font-weight: 600;
}

.mcp-type-name::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 3px;
  background: #3853f4;
  border-radius: 50%;
}

.mcp-type-desc {
  margin: 0 0 14px;
  color: #8a93a5;
  font-size: 13px;
  line-height: 1.7;
}

.mcp-type-q {
  margin: 0;
  padding: 10px 12px;
  color: #4a5578;
  font-size: 13px;
  line-height: 1.7;
  background: #f4f6ff;
  border-radius: 6px;
}

/* ---------- 适合谁 ---------- */
.mcp-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mcp-audience-card {
  padding: 32px 30px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(29, 38, 51, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mcp-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(29, 38, 51, 0.09);
}

.mcp-audience-head {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.mcp-audience-icon {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  object-fit: contain;
}

.mcp-audience-head h3 {
  margin: 0;
  color: #253044;
  font-size: 19px;
  font-weight: 600;
}

.mcp-audience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mcp-audience-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: #657083;
  font-size: 14px;
  line-height: 1.6;
}

.mcp-audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: #3853f4;
  border-radius: 50%;
}

/* ---------- 三步开始 ---------- */

/* 配置代码已抽至下方折叠块，三卡均为文字说明，采用等宽三栏（贴近参考稿） */
.mcp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.mcp-step {
  position: relative;
  display: flex;
  flex-direction: column;

  /* 允许 grid 子项收缩，窄屏不撑破布局 */
  min-width: 0;
  padding: 34px 28px 26px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(29, 38, 51, 0.05);
}

.mcp-step-no {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
  background: linear-gradient(135deg, #4a64ff, #3853f4);
  border-radius: 50%;
}

.mcp-step-title {
  margin: 0 0 10px;
  color: #253044;
  font-size: 18px;
  font-weight: 600;
}

.mcp-step-text {
  margin: 0;
  color: #657083;
  font-size: 14px;
  line-height: 1.9;
}

.mcp-step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: #3853f4;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mcp-step-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.mcp-step-link:hover {
  color: #2c46d8;
  text-decoration: none;
}

.mcp-step-link:hover svg {
  transform: translateX(3px);
}

/* 第 2 步的折叠/展开触发按钮（button 元素，重置默认样式，视觉与其他卡片链接一致） */
.mcp-step-toggle {
  width: 100%;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
}

.mcp-step-toggle:hover svg {
  transform: none;
}

.mcp-step-toggle:hover .mcp-toggle-arrow-down {
  transform: translateY(3px);
}

.mcp-step-toggle:hover .mcp-toggle-arrow-up {
  transform: translateY(-3px);
}

/* 箭头显隐完全由 aria-expanded 控制（SVG 元素上的 hidden 属性兼容性不一，不依赖它） */
.mcp-step-toggle[aria-expanded="false"] .mcp-toggle-arrow-up,
.mcp-step-toggle[aria-expanded="true"] .mcp-toggle-arrow-down {
  display: none;
}

.mcp-step-toggle[aria-expanded="false"] .mcp-toggle-arrow-down,
.mcp-step-toggle[aria-expanded="true"] .mcp-toggle-arrow-up {
  display: block;
}

/* ---------- 配置示例：折叠/展开块 ---------- */

/* 折叠态：全宽扁横条（左右与三卡对齐）、高度由 JS 对齐卡1 标题文字高、内容横排靠左 */
.mcp-config {
  position: relative;
  width: 100%;
  margin-top: 22px;
  background: linear-gradient(90deg, #1e2536 0%, #2a3554 52%, #3d4d82 100%);
  border-radius: 16px;
  overflow: hidden;
  transition: height 0.46s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
}

.mcp-config.is-expanded {
  width: 100%;
}

/* 折叠态内容：FOR DEVELOPERS + 配置示例，横排靠左、垂直居中（高度由 JS 固定） */
.mcp-config-collapsed {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  transition: opacity 0.2s ease;
}

.mcp-config-kicker {
  display: block;
  color: #98a2d6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.mcp-config-collapsed-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* 展开态双栏：绝对定位（不占折叠高度），高度由内容决定，供 JS 测量 */
.mcp-config-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.42s;
}

.mcp-config.is-expanded .mcp-config-body {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.32s ease 0.16s;
}

.mcp-config.is-expanded .mcp-config-collapsed {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* 展开动画结束后的稳定态：折叠内容移除布局，展开双栏回到普通流（高度 auto 不塌陷） */
.mcp-config.is-settled .mcp-config-collapsed {
  display: none;
}

.mcp-config.is-settled .mcp-config-body {
  position: relative;
  visibility: visible;
  opacity: 1;
  transition: none;
}

/* 左栏：说明 + 文档按钮 */
.mcp-config-info {
  flex: 0 0 43%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 40px 40px 44px;
}

.mcp-config-title {
  margin: 14px 0 0;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
}

.mcp-config-desc {
  margin: 18px 0 0;
  color: #a8b1c8;
  font-size: 14.5px;
  line-height: 1.8;
}

.mcp-config-docbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 11px 22px;
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mcp-config-docbtn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.mcp-config-docbtn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.52);
  text-decoration: none;
}

.mcp-config-docbtn:hover svg {
  transform: translateX(3px);
}

/* 右栏：JSON 代码，叠一层近黑保持层次 */
.mcp-config-code {
  position: relative;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 36px 42px;
  background: rgba(0, 0, 0, 0.38);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mcp-config-pre {
  margin: 0;
  color: #aeb8d4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.95;
  white-space: pre;
  overflow-x: auto;
}

/* JSON 语法高亮 */
.mcp-config-pre .tk-key { color: #7dd3fc; }
.mcp-config-pre .tk-str { color: #86efac; }

/* 复制按钮 */
.mcp-copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #cfd7ec;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.mcp-copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.mcp-copy-btn.is-copied {
  color: #7ee2a8;
  border-color: rgba(126, 226, 168, 0.5);
}

/* ---------- 进阶：技能包 ---------- */
.mcp-skill {
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 50px 54px;
  background: linear-gradient(120deg, #eef1ff 0, #f6f8ff 58%, #fff 100%);
  border: 1px solid #e4e9ff;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(56, 83, 244, 0.08);
}

.mcp-skill-left {
  flex: 1.15;
}

.mcp-skill-badge {
  display: inline-block;
  padding: 5px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: #3853f4;
  border-radius: 6px;
}

.mcp-skill-title {
  margin: 16px 0 12px;
  color: #1d2633;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
}

.mcp-skill-desc {
  margin: 0 0 24px;
  color: #5c6777;
  font-size: 14.5px;
  line-height: 1.95;
}

.mcp-skill-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mcp-skill-points {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mcp-skill-points li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed #dbe1f5;
}

.mcp-skill-points li:first-child {
  padding-top: 4px;
}

.mcp-skill-points li:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.mcp-skill-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: #3853f4;
  background: rgba(56, 83, 244, 0.1);
  border-radius: 50%;
}

.mcp-skill-check svg {
  width: 14px;
  height: 14px;
}

.mcp-skill-points h4 {
  margin: 0 0 4px;
  color: #253044;
  font-size: 15px;
  font-weight: 600;
}

.mcp-skill-points p {
  margin: 0;
  color: #657083;
  font-size: 13px;
  line-height: 1.75;
}

/* ---------- 示例问法（Tab + 聊天气泡） ---------- */
.mcp-examples {
  max-width: 880px;
  margin: 0 auto;
}

.mcp-example-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.mcp-example-tab {
  padding: 9px 22px;
  color: #5c6777;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e3e8f4;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mcp-example-tab:hover {
  color: #3853f4;
  border-color: rgba(56, 83, 244, 0.4);
}

.mcp-example-tab.is-active {
  color: #fff;
  background: #3853f4;
  border-color: #3853f4;
  box-shadow: 0 8px 18px rgba(56, 83, 244, 0.25);
}

.mcp-example-panel {
  display: none;
}

.mcp-example-panel.is-active {
  display: block;
  animation: mcp-panel-in 0.45s ease;
}

@keyframes mcp-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.mcp-chat {
  max-width: 700px;
  margin: 0 auto;
}

.mcp-chat-item {
  position: relative;
  margin: 0 0 14px;
  padding: 15px 20px 15px 52px;
  color: #3d4a63;
  font-size: 14.5px;
  line-height: 1.7;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 22px rgba(29, 38, 51, 0.05);
  animation: mcp-chat-in 0.5s ease both;
}

.mcp-chat-item:last-child {
  margin-bottom: 0;
}

.mcp-chat-item::before {
  content: '?';
  position: absolute;
  left: 17px;
  top: 15px;
  width: 22px;
  height: 22px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  background: #3853f4;
  border-radius: 50%;
}

.mcp-chat-item:nth-child(1) { animation-delay: 0.05s; }
.mcp-chat-item:nth-child(2) { animation-delay: 0.12s; }
.mcp-chat-item:nth-child(3) { animation-delay: 0.19s; }
.mcp-chat-item:nth-child(4) { animation-delay: 0.26s; }

@keyframes mcp-chat-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 使用须知 ---------- */
.mcp-notice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mcp-notice-item {
  padding: 30px 24px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mcp-notice-item:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 83, 244, 0.3);
  box-shadow: 0 16px 36px rgba(29, 38, 51, 0.08);
}

.mcp-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: #3853f4;
  background: #eef1ff;
  border-radius: 10px;
}

.mcp-notice-icon svg {
  width: 22px;
  height: 22px;
}

.mcp-notice-item h3 {
  margin: 0 0 10px;
  color: #253044;
  font-size: 16px;
  font-weight: 600;
}

.mcp-notice-item p {
  margin: 0;
  color: #657083;
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- FAQ ---------- */
.mcp-faq-list {
  margin-top: 4px;
}

.mcp-faq-item {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e9edf5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29, 38, 51, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mcp-faq-item[open] {
  border-color: rgba(56, 83, 244, 0.3);
  box-shadow: 0 12px 30px rgba(56, 83, 244, 0.08);
}

.mcp-faq-item summary {
  position: relative;
  padding: 20px 52px 20px 24px;
  color: #253044;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.mcp-faq-item summary::-webkit-details-marker {
  display: none;
}

.mcp-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  color: #3853f4;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.mcp-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.mcp-faq-answer {
  padding: 0 24px 20px;
}

.mcp-faq-answer p {
  margin: 0;
  color: #657083;
  font-size: 14.5px;
  line-height: 1.95;
}

/* ---------- 底部 CTA ---------- */
.mcp-cta-section {
  padding: 20px 20px 64px;
  background: #fff;
}

.mcp-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 48px 52px;
  background: linear-gradient(135deg, #3f5bf6 0, #3349d6 100%);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(56, 83, 244, 0.25);
}

.mcp-cta-text {
  flex: 1;
}

.mcp-cta-text h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.45;
}

.mcp-cta-text p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.9;
}

.mcp-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.mcp-cta-qr {
  flex-shrink: 0;
  width: 196px;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcp-cta-qr:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(18, 28, 84, 0.28);
}

.mcp-cta-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.mcp-cta-qr p {
  margin: 0;
  padding: 10px 10px 12px;
  color: #5c6777;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.mcp-page-meta {
  margin: 28px 0 0;
  color: #9aa2b1;
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}

.mcp-page-meta a {
  color: #8a97d8;
  text-decoration: underline;
}

/* ---------- 客服二维码弹层 ---------- */
.mcp-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mcp-modal.is-open {
  display: flex;
}

.mcp-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 40, 0.55);
  animation: mcp-fade 0.25s ease;
}

.mcp-modal-dialog {
  position: relative;
  width: 320px;
  max-width: 100%;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(20, 26, 40, 0.3);
  animation: mcp-pop 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mcp-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #8a93a5;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.mcp-modal-close svg {
  width: 18px;
  height: 18px;
}

.mcp-modal-close:hover {
  color: #4a5568;
  background: #f4f6ff;
}

.mcp-modal-title {
  margin: 0 0 16px;
  color: #1d2633;
  font-size: 17px;
  font-weight: 600;
}

.mcp-modal-qr {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eef1f7;
  border-radius: 8px;
}

.mcp-modal-text {
  margin: 14px 0 0;
  color: #657083;
  font-size: 13px;
  line-height: 1.8;
}

@keyframes mcp-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mcp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
  .mcp-what-grid,
  .mcp-types-grid,
  .mcp-notice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mcp-audience-grid,
  .mcp-steps {
    grid-template-columns: 1fr;
  }

  /* 窄屏折叠块不再收窄；展开态双栏改为上下堆叠 */
  .mcp-config {
    width: 100%;
  }

  .mcp-config-body {
    flex-direction: column;
  }

  .mcp-config-info {
    flex: none;
    padding: 32px 28px 26px;
  }

  .mcp-config-code {
    padding: 26px 28px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mcp-skill {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 38px 32px;
  }
}

@media (max-width: 767.98px) {
  .mcp-hero {
    padding: 116px 20px 10px;
  }

  .mcp-hero-title {
    font-size: 28px;
  }

  .mcp-hero-sub {
    font-size: 15px;
  }

  .mcp-section {
    padding: 20px 0;
  }

  .mcp-section-head {
    margin-bottom: 5px;
  }

  .mcp-section-title {
    font-size: 25px;
  }

  .mcp-section-sub {
    font-size: 14.5px;
  }

  .mcp-what-grid,
  .mcp-types-grid,
  .mcp-notice-grid {
    grid-template-columns: 1fr;
  }

  .mcp-example-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: -20px;
    padding: 2px 20px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mcp-example-tab {
    flex-shrink: 0;
  }

  .mcp-skill {
    padding: 30px 24px;
  }

  .mcp-skill-title {
    font-size: 20px;
  }

  .mcp-skill-actions {
    flex-direction: column;
  }

  .mcp-skill-actions .mcp-btn {
    width: 100%;
  }

  .mcp-cta {
    flex-direction: column;
    padding: 38px 26px;
    text-align: center;
  }

  .mcp-cta-actions {
    flex-direction: column;
  }

  .mcp-cta-actions .mcp-btn {
    width: 100%;
  }

  .mcp-cta-qr {
    width: 220px;
  }

  .mcp-faq-item summary {
    padding: 16px 46px 16px 18px;
    font-size: 15px;
  }

  .mcp-faq-answer {
    padding: 0 18px 16px;
  }

  /* 配置块展开标题字号微调，文档按钮在窄屏改为全宽 */
  .mcp-config-title {
    font-size: 23px;
  }

  .mcp-config-docbtn {
    align-self: stretch;
    justify-content: center;
  }
}
