:root {
  --ink: #11283d;
  --ink-soft: #29465d;
  --muted: #657b8e;
  --line: #d8e4ec;
  --line-strong: #bed0dd;
  --paper: #ffffff;
  --wash: #f2f7fb;
  --blue: #1167e8;
  --blue-dark: #094baf;
  --aqua: #099a87;
  --aqua-wash: #e8f7f4;
  --sun: #f0c444;
  --shadow: 0 18px 48px rgba(17, 40, 61, .09);
  --display: "Songti SC", "STSong", "SimSun", serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(17,103,232,.055) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(180deg, #fff 0, var(--wash) 42rem);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(17, 103, 232, .28); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 34%, var(--sun) 34% 66%, var(--aqua) 66%);
}
.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .82rem; text-decoration: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-content: center;
  grid-template-columns: repeat(3, 6px);
  gap: 3px;
  box-shadow: inset 0 0 0 6px #e8f1ff;
}
.brand-mark i { display: block; width: 6px; border-radius: 6px; background: white; }
.brand-mark i:nth-child(1) { height: 12px; margin-top: 8px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; margin-top: 5px; }
.brand b, .brand small { display: block; }
.brand b { font-family: var(--display); font-size: 1.38rem; line-height: 1.15; letter-spacing: .08em; }
.brand small { margin-top: .22rem; color: var(--muted); font-size: .68rem; letter-spacing: .18em; }
.top-nav, .footer-nav { display: flex; align-items: center; gap: 1.7rem; font-size: .9rem; font-weight: 650; }
.top-nav a, .footer-nav a { position: relative; text-decoration: none; }
.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.42rem;
  height: 2px;
  background: var(--blue);
  transition: right .18s ease;
}
.top-nav a:hover::after, .top-nav a:focus-visible::after { right: 0; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; flex: 1; }
.breadcrumbs { padding: 1.35rem 0 1rem; display: flex; gap: .58rem; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; color: var(--blue-dark); }

.article-hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding: 2.8rem 0 4rem;
}
.kicker { margin: 0 0 .85rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.24; overflow-wrap: anywhere; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.55rem, 4.7vw, 4.15rem); letter-spacing: -.03em; text-wrap: balance; }
.lead { max-width: 700px; margin: 1.3rem 0 1rem; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.86; }
.article-meta { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .78rem; }
.article-meta span { padding: .28rem .6rem; border: 1px solid var(--line); background: rgba(255,255,255,.72); }

.version-board {
  position: relative;
  padding: 1.55rem 1.7rem;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.version-board::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -50px;
  width: 118px;
  height: 118px;
  border: 16px solid var(--aqua);
  border-radius: 50%;
  opacity: .65;
}
.version-board > p { margin: 0 0 1rem; color: #a9c8dc; font-size: .74rem; font-weight: 700; letter-spacing: .18em; }
.version-board ol { list-style: none; margin: 0; padding: 0; }
.version-board li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: .8rem;
  align-items: center;
  padding: .85rem 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.version-board b { color: var(--sun); font-family: var(--display); font-size: 1.08rem; }
.version-board span { color: #d9e6ef; font-size: .9rem; line-height: 1.5; }

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
  padding: 1rem 0 6.5rem;
}
.toc {
  position: sticky;
  top: 1.5rem;
  padding: 1.15rem 1.1rem;
  border-top: 3px solid var(--blue);
  background: white;
  box-shadow: 0 10px 30px rgba(17,40,61,.055);
}
.toc p { margin: 0 0 .55rem; font-size: .9rem; font-weight: 800; }
.toc a { display: block; padding: .42rem 0; color: var(--muted); text-decoration: none; font-size: .8rem; line-height: 1.5; border-bottom: 1px solid #edf3f7; }
.toc a:last-child { border-bottom: 0; }
.toc a:hover, .toc a:focus { color: var(--blue); }
.article-body { min-width: 0; }
.quick-answer { margin-bottom: 3.6rem; padding: 1.35rem 1.55rem; border-left: 4px solid var(--aqua); background: var(--aqua-wash); }
.quick-answer p { margin: 0 0 .3rem; color: #057b6c; font-size: .84rem; font-weight: 800; }
.quick-answer div { color: #24475a; line-height: 1.78; }
.article-visual { margin: -1.8rem 0 4rem; }
.article-visual img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--wash); }
.article-visual figcaption { padding: .55rem .1rem 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.content-section { margin: 0 0 4.2rem; scroll-margin-top: 2rem; }
.content-section h2, .faq-section h2, .related-section h2 { margin: 0 0 1.15rem; font-size: clamp(1.85rem, 3.25vw, 2.55rem); text-wrap: balance; }
.content-section > p:first-of-type { margin: 0 0 2rem; color: var(--muted); font-size: 1rem; }
.content-section h3 { position: relative; margin: 2.25rem 0 .72rem; padding-left: 1rem; font-size: 1.28rem; }
.content-section h3::before { content: ""; position: absolute; left: 0; top: .34em; width: 4px; height: .9em; background: var(--sun); }
.content-section p { margin: .7rem 0; color: var(--ink-soft); }

.faq-section { padding-top: .5rem; scroll-margin-top: 2rem; }
.faq-section details { border-top: 1px solid var(--line); background: rgba(255,255,255,.88); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; padding: .95rem 3rem .95rem 1rem; cursor: pointer; font-size: 1rem; font-weight: 700; line-height: 1.55; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: 1rem; top: .68rem; color: var(--blue); font-size: 1.4rem; font-weight: 400; }
.faq-section details[open] summary { color: var(--blue-dark); }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0; padding: .05rem 3.4rem 1.05rem 1rem; color: var(--muted); line-height: 1.72; }

.related-section { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--line-strong); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.related-grid a { padding: 1rem 1.1rem; border: 1px solid var(--line); background: white; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.related-grid a:hover { transform: translateY(-2px); border-color: var(--blue); }
.related-grid b, .related-grid span { display: block; }
.related-grid b { font-family: var(--display); font-size: 1.05rem; line-height: 1.45; }
.related-grid span { margin-top: .45rem; color: var(--muted); font-size: .8rem; line-height: 1.65; }

.index-hero { max-width: 860px; padding: 7rem 0 4.5rem; }
.index-hero > p:last-child { max-width: 680px; margin: 1.25rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.topic-list { padding: 0 0 7rem; }
.section-heading { display: grid; grid-template-columns: 170px 1fr; align-items: end; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-strong); }
.section-heading h2 { margin: 0 0 1rem; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.topic-card { min-height: 210px; padding: 1.35rem; border: 1px solid var(--line); background: white; text-decoration: none; box-shadow: 0 8px 24px rgba(17,40,61,.035); transition: transform .18s ease, border-color .18s ease; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.topic-card > span { color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .08em; }
.topic-card h3 { margin: .75rem 0 .6rem; font-size: 1.24rem; }
.topic-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.72; }
.empty-note { grid-column: 1 / -1; margin: 0; padding: 1.3rem; border: 1px solid var(--line); background: white; color: var(--muted); }
.latest-list { padding: 0 0 7rem; }
.latest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.latest-grid a { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 1rem .8rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.latest-grid a:nth-child(odd) { border-right: 1px solid var(--line); }
.latest-grid span { color: var(--blue); font-size: .75rem; font-weight: 800; }
.latest-grid b { font-family: var(--display); line-height: 1.45; }

.hub-hero { max-width: 800px; padding: 4.5rem 0 3.5rem; }
.hub-hero > p:last-child { max-width: 650px; margin: 1rem 0 0; color: var(--ink-soft); }
.hub-list { padding: 0 0 7rem; }
.hub-grid { border-top: 1px solid var(--line-strong); }
.hub-grid > a { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.2rem .8rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.68); text-decoration: none; }
.hub-grid > a:hover { background: white; }
.hub-grid > a > span { color: var(--blue); font-family: var(--display); font-size: 1.2rem; }
.hub-grid b { font-family: var(--display); font-size: 1.12rem; }
.hub-grid p { margin: .35rem 0 0; color: var(--muted); font-size: .84rem; }
.pagination { display: flex; gap: .5rem; margin-top: 1.5rem; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: white; text-decoration: none; }
.pagination a[aria-current="page"] { border-color: var(--blue); color: white; background: var(--blue); }

.root-directory, .not-found { max-width: 800px; min-height: 80vh; display: grid; align-content: center; padding: 5rem 0; }
.root-hero { max-width: 860px; padding: 7rem 0 5rem; }
.root-hero > p:last-child { max-width: 720px; margin: 1.25rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.root-products { padding: 0 0 6rem; }
.product-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.root-product-card { min-width: 0; border-top: 4px solid var(--blue); background: white; box-shadow: var(--shadow); }
.root-product-card:nth-child(2) { border-top-color: var(--sun); }
.root-product-card:nth-child(3) { border-top-color: var(--aqua); }
.root-product-title { display: block; padding: 1.35rem; text-decoration: none; }
.root-product-title span { color: var(--blue); font-size: .74rem; font-weight: 800; }
.root-product-title h3 { margin: .55rem 0 .8rem; font-size: 1.45rem; }
.root-product-title b { color: var(--muted); font-size: .78rem; }
.root-product-card nav { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.35rem 1.1rem; }
.root-product-card nav a { padding: .25rem .52rem; border: 1px solid var(--line); color: var(--blue-dark); text-decoration: none; font-size: .73rem; }
.root-product-card ul { margin: 0; padding: 0 1.35rem 1.35rem; list-style: none; }
.root-product-card li { border-top: 1px solid var(--line); }
.root-product-card li a { display: block; padding: .62rem 0; color: var(--ink-soft); text-decoration: none; font-size: .78rem; line-height: 1.5; }
.root-latest { padding: 0 0 7rem; }
.not-found > a { width: fit-content; margin-top: 1rem; color: var(--blue); font-weight: 700; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem max(24px, calc((100% - 1180px)/2));
  color: #b9ccda;
  background: var(--ink);
  font-size: .8rem;
}
footer b, footer span { display: block; }
footer b { color: white; font-size: .95rem; }
.footer-nav a { color: white; }

.customer-float {
  position: fixed;
  right: clamp(14px, 2.2vw, 30px);
  bottom: clamp(14px, 2.2vw, 30px);
  z-index: 60;
  width: min(310px, calc(100vw - 28px));
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px 18px 4px 18px;
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(17,103,232,.58), transparent 44%),
    linear-gradient(145deg, #173b57, #0c2235 72%);
  box-shadow: 0 22px 54px rgba(5,25,40,.28), 0 4px 14px rgba(5,25,40,.18);
  backdrop-filter: blur(12px);
}
.customer-float-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .7rem; }
.customer-float-head > i { position: relative; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #4ee1ac; box-shadow: 0 0 0 5px rgba(78,225,172,.13); }
.customer-float-head > i::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(78,225,172,.45); border-radius: 50%; animation: customer-signal 2.2s ease-out infinite; }
.customer-float-head strong, .customer-float-head span { display: block; }
.customer-float-head strong { font-size: .86rem; letter-spacing: .04em; }
.customer-float-head span { margin-top: .08rem; color: #aac0d1; font-size: .66rem; }
.customer-float-actions { display: grid; gap: .5rem; }
.customer-float-actions a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label arrow" "action arrow"; align-items: center; column-gap: .75rem; padding: .68rem .78rem; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: white; background: rgba(255,255,255,.09); text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.customer-float-actions a:hover, .customer-float-actions a:focus-visible { transform: translateY(-2px); border-color: rgba(133,184,255,.7); background: rgba(17,103,232,.46); }
.customer-float-actions span { grid-area: label; color: #d9e7f1; font-size: .72rem; }
.customer-float-actions b { grid-area: action; margin-top: .08rem; font-size: .83rem; }
.customer-float-actions i { grid-area: arrow; color: #76e9bf; font-style: normal; font-size: 1.1rem; }
@keyframes customer-signal { from { opacity: .9; transform: scale(.72); } to { opacity: 0; transform: scale(1.65); } }

@media (max-width: 900px) {
  .top-nav a:nth-child(n+4) { display: none; }
  .article-hero { min-height: auto; grid-template-columns: minmax(0, 1fr) 280px; gap: 2.5rem; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 2.5rem; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-inner, main { width: min(100% - 32px, 1180px); }
  .top-nav { gap: 1rem; }
  .top-nav a:nth-child(n+3) { display: none; }
  .article-hero { grid-template-columns: 1fr; gap: 2rem; padding: 2.2rem 0 3.2rem; }
  h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .version-board { padding: 1.3rem 1.45rem; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 4.5rem; }
  .toc { position: static; }
  .quick-answer { margin-bottom: 3rem; }
  .content-section { margin-bottom: 3.5rem; }
  .index-hero { padding: 4.5rem 0 3.5rem; }
  .section-heading { grid-template-columns: 1fr; }
  .topic-grid, .product-links { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-grid a:nth-child(odd) { border-right: 0; }
  footer { align-items: flex-start; flex-direction: column; }
  .customer-float { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); padding: .68rem; border-radius: 14px 14px 4px 14px; }
  .customer-float-head { margin-bottom: .52rem; }
  .customer-float-head span { display: none; }
  .customer-float-actions { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
  .customer-float-actions a { min-width: 0; padding: .58rem .64rem; }
  .customer-float-actions span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 72px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand small { display: none; }
  .breadcrumbs { padding-top: 1rem; }
  h1 { font-size: clamp(2.05rem, 10.5vw, 2.8rem); }
  .lead { font-size: .96rem; }
  .article-meta { display: none; }
  .article-hero { padding-top: 1.6rem; }
  .content-section h2, .faq-section h2, .related-section h2 { font-size: 1.78rem; }
  .content-section h3 { font-size: 1.18rem; }
  .quick-answer { padding: 1.15rem 1.2rem; }
  .faq-section summary { padding-left: .8rem; }
  .faq-section details p { padding-left: .8rem; padding-right: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .customer-float-head > i::after { animation: none; }
}
