
:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --bg: #05060a;
  --surface: rgba(10, 13, 22, .72);
  --surface-strong: rgba(13, 17, 29, .9);
  --line: rgba(218, 229, 255, .25);
  --line-bright: rgba(238, 244, 255, .56);
  --text: #f6f7fb;
  --soft: #d7daea;
  --muted: #9097ad;
  --blue: #58b9ff;
  --violet: #8d72ff;
  --glow: 0 18px 70px rgba(56, 92, 255, .18);
  color: var(--text);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: var(--bg) url(/metal-aurora-bg.png) center top / 100% auto fixed no-repeat; -webkit-font-smoothing: antialiased; isolation: isolate; }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; background: #03040991; pointer-events: none; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
p { margin: 0; line-height: 1.85; }
h1, h2, h3 { margin: 0; color: var(--text); }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
code, pre { font-family: ui-monospace, Consolas, "Microsoft YaHei", monospace; }
code { overflow-wrap: anywhere; }
input, textarea { min-width: 0; }
[hidden] { display: none !important; }
.site-shell { width: min(100% - 36px, 1240px); margin: 10px auto 0; }
main { max-width: 1180px; margin: 0 auto; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 30px; align-content: center; align-items: center; min-height: 220px; padding: 30px 32px; margin-bottom: 24px; }
.hero::before { position: absolute; inset: 0; z-index: -1; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 28px; content: ""; background: linear-gradient(90deg, #030711e8, #05101ac2 46%, #07131c65), url(/assets/mcp-shanhe-codex-20261013.png) center bottom / cover no-repeat; box-shadow: inset 0 0 90px #25489e38, var(--glow); }
.hero::after { position: absolute; inset: 0; z-index: -1; border-radius: 28px; content: ""; background: linear-gradient(0deg, #0307114d, transparent 58%); opacity: 1; pointer-events: none; }
.weituo-icon { display: block; grid-column: 1; grid-row: 1 / 3; width: 140px; height: 140px; object-fit: contain; }

.weituo-icon > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.eyebrow { grid-column: 2; font-size: 13px; letter-spacing: .18em; color: var(--soft); margin-bottom: 8px; }
h1 { grid-column: 2; font-size: clamp(32px, 4.8vw, 60px); font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-shadow: 0 0 24px #95b7ff33; }
.hero-description { grid-column: 2; font-size: 14px; color: var(--soft); margin-top: 14px; }
.panel, .content-card, .usage-panel { border: 1px solid var(--line-bright); background: linear-gradient(135deg, #ffffff29, #47538614 30%, #0709119e 70%), #090c1694; box-shadow: var(--glow), inset 0 1px #ffffff47, inset 0 -1px #738be024; -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); }
.panel { padding: 28px 32px; border-radius: 22px; margin-bottom: 24px; }
.panel-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.panel-heading p { font-size: 13px; color: var(--soft); margin-top: 6px; }
.section-number { display: flex; align-items: center; justify-content: center; flex: 0 0 43px; height: 43px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #ffffff29, #47538614 30%, #0709119e 70%); color: var(--soft); font: 14px Georgia, serif; }
.mode-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.application-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 25px; }
.application-actions .mode-switch { margin-bottom: 0; }
.feedback-entry { display: inline-flex; align-items: center; padding: 10px 18px; font-size: 15px; line-height: normal; }
.mode-switch button, .text-button, .secondary-button { color: var(--soft); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #ffffff29, #47538614 30%, #0709119e 70%); box-shadow: inset 0 1px #ffffff47, inset 0 -1px #7282c624, 0 8px 24px #0003; -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); }
.mode-switch button { padding: 10px 18px; font-size: 15px; }
.mode-switch button[aria-selected=true], .primary-button { color: #fff; border: 1px solid #84b8ffb8; background: linear-gradient(135deg, #468cff4d, #9057ff2e); box-shadow: inset 0 1px #ffffff47, inset 0 -1px #7282c624, 0 8px 24px #0003; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 28px; }
label { display: block; font-size: 14px; color: var(--soft); line-height: 1.5; }
.required { font-size: 10px; color: var(--muted); margin-left: 8px; }
input, textarea { display: block; width: 100%; padding: 12px 14px; margin-top: 9px; border: 1px solid var(--line); border-radius: 12px; background: #050811a6; color: var(--text); box-shadow: inset 0 1px 4px #0004; transition: border-color .15s; }
input { height: 47px; }
input::placeholder { color: var(--muted); font-size: 13px; }
input:hover, textarea:hover { border-color: var(--line-bright); }
textarea { resize: vertical; line-height: 1.65; overflow-wrap: anywhere; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.form-bottom p { font-size: 12px; color: var(--muted); max-width: 490px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 24px; border-radius: 14px; font-size: 14px; white-space: nowrap; }
.primary-button:hover, .secondary-button:hover, .text-button:hover, .mode-switch button:hover { color: #fff; border-color: #b6d5ffff; box-shadow: inset 0 1px #ffffff60, 0 10px 30px #2a48b44d; }
.form-intro { font-size: 13px; color: var(--soft); margin-bottom: 24px; }
.result { margin-top: 25px; border-top: 1px solid var(--line); padding: 23px 0 0; color: var(--soft); font-size: 14px; }
.result-title { font-size: 17px; margin-bottom: 5px; color: var(--text); }
.result[data-state=error] .result-title, .result[data-state=rejected] .result-title { color: #ffb8a6; }
.result[data-state=approved] .result-title { color: #bce7d4; }
.result p { overflow-wrap: anywhere; }
#key-panel { margin-top: 18px; }
.copy-row { display: flex; align-items: center; gap: 12px; }
.copy-row textarea { font-size: 13px; flex: 1; }
.copy-row button { margin-top: 9px; }
.key-note { color: var(--muted); font-size: 12px; margin-top: 9px; }
.endpoint-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #05081170; }
.endpoint-row > div { min-width: 0; }
.endpoint-row code { font-size: 14px; line-height: 1.8; }
.field-caption { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.endpoint-row .text-button { flex-shrink: 0; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--soft); font-size: 12px; margin: 21px 0 8px; }
.text-button { font-size: 12px; padding: 7px 14px; white-space: nowrap; }
pre { overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #050811a6; border: 1px solid var(--line); padding: 20px; border-radius: 14px; font-size: 13px; line-height: 1.8; color: var(--soft); margin: 0 0 12px; }
.connection-note, .scope-intro { font-size: 13px; color: var(--soft); line-height: 1.9; }
.scope { padding: 22px 0 20px; }
.scope > h2 { text-align: center; margin-bottom: 20px; }
.scope-intro { max-width: 870px; margin: 0 auto 26px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.content-card { min-width: 0; border-radius: 22px; padding: 24px; }
.content-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.scope-mark { display: block; color: #bac9e8; font-size: 11px; letter-spacing: .16em; min-width: 24px; }
.content-card > p { font-size: 13px; line-height: 1.85; color: var(--soft); }
.example-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

.content-heading h3, .example-heading > span { font-family: inherit; font-size: 18px; font-weight: 600; }
.content-card .example-prompt { font-size: 12px; color: var(--soft); margin-top: 12px; }
.usage-panel { margin-top: 28px; padding: 25px 28px; border-radius: 22px; }
.usage-steps { margin: 18px 0 0; padding-left: 22px; font-size: 13px; line-height: 1.95; color: var(--soft); }
.usage-steps li + li { margin-top: 12px; }
.usage-steps strong { color: var(--text); font-weight: 600; }
.copy-feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); width: max-content; background: var(--surface-strong); color: var(--text); border: 1px solid var(--line-bright); border-radius: 14px; padding: 12px 18px; box-shadow: var(--glow); font-size: 12px; pointer-events: none; }
.copy-feedback:empty { display: none; }
/* 与观澜主页相同的版权、备案和公众号二维码。 */
.site-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 28px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); color: var(--muted); background: #030409d1; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.footer-legal { display: flex; align-items: center; gap: 32px; }
.beian-link { display: inline-block; font-size: 12px; }
.beian-link:hover { color: var(--blue); }
.footer-qrcode { display: grid; justify-items: center; gap: 7px; margin: 0; }
.footer-qrcode img { display: block; width: 82px; height: 82px; padding: 5px; border-radius: 10px; background: #fff; object-fit: contain; }
.footer-qrcode figcaption { color: var(--soft); font-size: 12px; }
@media (max-width: 820px) {
  body { background-size: auto 720px; }
  .site-shell { width: calc(100% - 20px); }
  .hero { min-height: 180px; grid-template-columns: 112px minmax(0, 1fr); gap: 0 22px; padding: 26px 24px; }
  .hero::before, .hero::after { border-radius: 20px; }
  .weituo-icon { width: 112px; height: 112px; }
}
@media (max-width: 680px) {
  .hero { grid-template-columns: 82px minmax(0, 1fr); gap: 0 16px; padding: 22px 18px; }
  .weituo-icon { width: 82px; height: 82px; }
  h1 { font-size: clamp(24px, 6vw, 36px); text-wrap: balance; }
  .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .hero-description { font-size: 12px; margin-top: 10px; }
  .panel { padding: 22px 18px; border-radius: 18px; margin-bottom: 20px; }
  .panel-heading { gap: 13px; margin-bottom: 23px; }
  h2 { font-size: 20px; }
  .section-number { flex-basis: 36px; height: 36px; font-size: 12px; }
  .panel-heading p { font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .mode-switch button { font-size: 14px; padding: 10px 14px; }
  .feedback-entry { font-size: 14px; padding: 10px 14px; }
  .form-bottom { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 23px; }
  .form-bottom p { font-size: 11px; }
  .form-bottom .primary-button { width: 100%; padding: 13px; }
  .copy-row { flex-direction: column; align-items: stretch; gap: 0; }
  .copy-row button { align-self: flex-end; padding: 9px 18px; margin-top: 10px; }
  .endpoint-row { align-items: stretch; flex-direction: column; padding: 16px; gap: 12px; }
  .endpoint-row .text-button { align-self: flex-start; }
  .endpoint-row code { font-size: 12px; }
  .code-heading { gap: 10px; }
  pre { padding: 16px; font-size: 12px; }
  .scope { padding: 22px 8px 20px; }
  .content-grid { grid-template-columns: 1fr; gap: 15px; }
  .content-card { padding: 20px; border-radius: 18px; }
  .content-heading h3, .example-heading > span { font-size: 17px; }
  .usage-panel { padding: 22px 20px; border-radius: 18px; }
  .scope-intro, .connection-note, .usage-steps { font-size: 12px; }
}
@media (max-width: 560px) {
  .site-footer { align-items: flex-start; flex-direction: column; padding: 24px 18px; }
  .footer-legal { flex-wrap: wrap; gap: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


@media (max-width: 820px) { .hero::before { background-size: auto, auto 620px; background-position: center, 65% bottom; } }


