:root {
  --xp-blue: #0a5cc8;
  --xp-blue-dark: #073b91;
  --xp-blue-light: #4a9cf5;
  --xp-sky: #d9efff;
  --xp-green: #4c8e22;
  --xp-yellow: #f3bd2d;
  --xp-ink: #17335b;
  --xp-muted: #5c6d82;
  --xp-line: #7f9db9;
  --xp-paper: rgba(255, 255, 255, .94);
  --xp-shadow: 0 12px 30px rgba(11, 52, 91, .24);
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--xp-ink);
  background: #3f9ee8 url("/site-assets/xp-dreamscape.png") center / cover fixed no-repeat;
  font-family: Tahoma, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 2px solid #0a3f99;
  background: linear-gradient(180deg, #3b9bff 0%, #0b67d7 52%, #0750b5 100%);
  box-shadow: 0 2px 8px rgba(0, 42, 104, .3);
}
.header-inner { min-height: 58px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; text-shadow: 0 1px 1px #063b85; }
.brand-mark { width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: var(--xp-yellow); box-shadow: inset 0 0 0 3px #ffdc67, 0 1px 2px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid transparent; border-radius: 3px; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; text-shadow: 0 1px 1px #063b85; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.18); }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #6086ad; border-radius: 4px; background: linear-gradient(#fff, #e8f2fd); color: #173b6e; font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: inset 1px 1px 0 #fff, 0 1px 2px rgba(0,0,0,.16); }
.button:hover { background: #fff; border-color: #315f9d; }
.button-primary { border-color: #0644a6; background: linear-gradient(#3e9cff, #0965d4 55%, #084eb5); color: #fff; text-shadow: 0 1px 1px #053782; box-shadow: inset 1px 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,45,110,.28); }
.site-header .button { min-height: 34px; border-color: #f1f6ff; white-space: nowrap; }

.hero, .page-hero, .band, .docs-layout, .blog-list {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 26px auto;
  border: 1px solid #1f5aa5;
  border-radius: 7px;
  background: var(--xp-paper);
  box-shadow: var(--xp-shadow), inset 0 0 0 1px #fff;
}
.hero { min-height: min(610px, calc(100svh - 126px)); padding-top: 38px; overflow: hidden; }
.hero::before, .page-hero::before {
  content: "☀  CiYuanMax - AI API 服务平台";
  position: absolute;
  inset: 0 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(180deg, #50a8ff, #0c70df 52%, #0750b5);
  border-bottom: 1px solid #063b8d;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 1px #063476;
}
.hero::after, .page-hero::after {
  content: "—  □  ×";
  position: absolute;
  z-index: 2;
  right: 9px;
  top: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 5px;
  text-shadow: 0 1px 1px #073476;
}
.hero-inner { min-height: inherit; display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; padding: 54px 46px 38px; }
.eyebrow { display: inline-flex; margin: 0 0 14px; padding: 5px 9px; border: 1px solid #78a9d7; background: #edf7ff; color: #1a5fae; font-size: 12px; font-weight: 800; }
.hero h1 { margin: 0; color: #143c78; font-size: clamp(42px, 6vw, 70px); line-height: 1.08; font-weight: 850; }
.hero h1 span { color: var(--xp-green); }
.hero-copy { max-width: 650px; margin: 22px 0 0; color: #425b75; font-size: 17px; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: grid; gap: 12px; }
.stat-card { min-height: 112px; padding: 18px 20px; border: 1px solid var(--xp-line); border-radius: 5px; background: linear-gradient(135deg, #fff, #e9f5ff); box-shadow: inset 1px 1px 0 #fff, 0 2px 5px rgba(28,71,116,.12); }
.stat-card .k { color: #64758a; font-size: 12px; font-weight: 700; }
.stat-card .v { margin-top: 9px; color: #17467f; font-size: 27px; font-weight: 850; }
.stat-card .v em { color: var(--xp-green); font-style: normal; }
.stat-card .s { margin-top: 7px; color: #6b7c8e; font-size: 12px; }

.band { padding: 48px 42px; }
.band-soft { background: rgba(242, 249, 255, .96); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; color: #143c78; font-size: clamp(27px, 4vw, 38px); }
.section-head p { max-width: 580px; margin: 0; color: var(--xp-muted); line-height: 1.7; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card { min-height: 205px; padding: 22px; border: 1px solid var(--xp-line); border-radius: 5px; background: linear-gradient(180deg, #fff, #edf6ff); box-shadow: inset 1px 1px 0 #fff; }
.price-card.featured { border: 2px solid var(--xp-green); background: linear-gradient(180deg, #f9fff2, #eaf7df); }
.badge { display: inline-block; padding: 3px 8px; border: 1px solid #7e9dbd; background: #eaf3ff; color: #2f5f94; font-size: 11px; font-weight: 800; }
.featured .badge { border-color: #6b9d41; background: #e7f4dc; color: #3f7521; }
.price-card h3 { margin: 18px 0 8px; color: #173b6e; font-size: 18px; }
.price-card .desc { min-height: 42px; margin: 0; color: var(--xp-muted); line-height: 1.6; }
.price-card .rate { margin-top: 17px; color: #0a62c7; font-size: 31px; font-weight: 850; }
.price-card .meta { margin-top: 7px; color: #6b7b8e; font-size: 12px; }
.formula { margin-top: 18px; padding: 15px 18px; border: 1px solid #7fa4cd; border-left: 5px solid var(--xp-blue); background: #edf6ff; color: #2f4b69; line-height: 1.75; }
.formula a { color: #064eae; font-weight: 800; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card { min-height: 165px; padding: 22px; border: 1px solid var(--xp-line); border-radius: 5px; background: #fff; text-decoration: none; box-shadow: inset 1px 1px 0 #fff; }
.link-card:hover { border-color: #1d65bc; background: #f2f8ff; }
.link-card .number { color: var(--xp-green); font-size: 13px; font-weight: 850; }
.link-card h3 { margin: 22px 0 9px; color: #173b6e; font-size: 20px; }
.link-card p { margin: 0; color: var(--xp-muted); line-height: 1.65; }

.page-hero { min-height: 190px; padding: 82px 42px 36px; }
.page-hero h1 { margin: 0; color: #143c78; font-size: clamp(36px, 6vw, 56px); }
.page-hero p { max-width: 700px; margin: 14px 0 0; color: var(--xp-muted); font-size: 17px; line-height: 1.75; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding: 38px; }
.docs-nav { align-self: start; position: sticky; top: 86px; padding: 14px; border: 1px solid var(--xp-line); background: #edf6ff; }
.docs-nav strong { display: block; margin: 0 0 8px; color: #17467f; font-size: 13px; }
.docs-nav a { display: block; padding: 8px 7px; border: 1px solid transparent; color: #45627f; font-size: 14px; text-decoration: none; }
.docs-nav a:hover { border-color: #8eadd0; background: #fff; color: #064eae; }
.article { min-width: 0; padding-bottom: 24px; }
.article h1 { margin: 0; color: #143c78; font-size: clamp(34px, 5vw, 52px); }
.article h2 { margin: 40px 0 13px; padding-bottom: 8px; border-bottom: 1px solid #a8bfd8; color: #17467f; font-size: 26px; }
.article h3 { margin: 28px 0 9px; color: #315679; font-size: 19px; }
.article p, .article li { color: #405a73; line-height: 1.85; }
.article a { color: #075abb; font-weight: 700; }
.article pre { overflow: auto; padding: 16px; border: 1px solid #5d7997; border-radius: 3px; background: #0d2d57; color: #eaf6ff; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.7; }
.article code { overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; }
.table-scroll { width: 100%; overflow-x: auto; border-radius: 6px; -webkit-overflow-scrolling: touch; }
.article table { width: 100%; border-collapse: collapse; border: 1px solid var(--xp-line); background: #fff; }
.article th, .article td { padding: 14px 12px; border: 1px solid #c3d2e1; text-align: left; }
.article th { background: #e5f1ff; color: #274f7b; font-size: 13px; }
.article td strong { color: var(--xp-green); font-size: 20px; }
.compare-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.compare-item { padding: 16px 10px; border: 1px solid var(--xp-line); background: #f6fbff; text-align: center; }
.compare-item .t, .compare-item .d { color: var(--xp-muted); font-size: 12px; }
.compare-item .n { margin-top: 8px; color: #17467f; font-size: 22px; font-weight: 850; }
.compare-item .n em { color: var(--xp-green); font-style: normal; }
.poster { display: block; width: min(560px, 100%); height: auto; margin: 32px auto 0; border: 1px solid var(--xp-line); box-shadow: 0 6px 18px rgba(22,62,100,.18); }
.status-note { display: inline-block; padding: 3px 7px; border: 1px solid var(--xp-line); border-radius: 4px; background: #edf6ff; color: #315679; font-size: 12px; font-weight: 800; }
.blog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 34px; }
.text-post-list .post-card { min-height: 180px; display: flex; align-items: center; }
.post-card { overflow: hidden; border: 1px solid var(--xp-line); border-radius: 5px; background: #fff; text-decoration: none; box-shadow: inset 1px 1px 0 #fff; }
.post-card:hover { border-color: #185fb6; }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 20px; }
.post-date { color: var(--xp-green); font-size: 12px; font-weight: 850; }
.post-card h2 { margin: 10px 0; color: #173b6e; font-size: 20px; line-height: 1.4; }
.post-card p { margin: 0; color: var(--xp-muted); line-height: 1.65; }
.site-footer { margin-top: 26px; padding: 18px 0; border-top: 2px solid #174d9e; background: linear-gradient(#3d9cff, #0b62cf); color: #fff; font-size: 13px; text-shadow: 0 1px 1px #063477; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #fff; font-weight: 800; }

@media (max-width: 900px) {
  .hero-inner, .price-grid, .platform-grid, .link-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav strong { width: 100%; }
  .docs-nav a { display: inline-flex; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
}
@media (max-width: 700px) {
  body { background-attachment: scroll; }
  .header-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding-block: 8px;
  }
  .brand { min-width: 0; margin-right: 0; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }
  .nav a { min-height: 32px; justify-content: center; padding: 0 8px; font-size: 13px; }
  .site-header .button { grid-column: 2; grid-row: 1; padding: 0 12px; }
  .hero, .page-hero, .band, .docs-layout, .blog-list { width: calc(100% - 18px); margin: 12px auto; border-radius: 5px; }
  .hero-inner { padding: 48px 18px 24px; }
  .hero h1 { font-size: 37px; }
  .hero-copy { font-size: 15px; }
  .hero-stats { grid-template-columns: 1fr; }
  .band { padding: 34px 18px; }
  .page-hero { padding: 76px 20px 28px; }
  .docs-layout { padding: 20px; }
  .article pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .table-scroll table { min-width: 560px; }
  .blog-list { grid-template-columns: 1fr; padding: 18px; }
  .compare-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .brand { font-size: 14px; }
  .brand-mark { width: 20px; height: 20px; }
  .nav a { padding-inline: 6px; font-size: 13px; }
  .site-header .button { padding-inline: 9px; font-size: 12px; }
  .hero::before, .page-hero::before { font-size: 12px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 35px); line-height: 1.12; }
}
@media (max-width: 340px) {
  .brand-mark { display: none; }
}
