/* 属性对照坐标纸 · 冰青 / 淡紫 · custom-new */
:root {
  --ink: #22333b;
  --ink-soft: #4c5c66;
  --ice: #bfeef2;
  --ice-deep: #1e8f9e;
  --lavender: #e4dcfa;
  --lavender-deep: #5b3fa8;
  --paper: #f7fbfc;
  --grid-ice: rgba(30, 143, 158, 0.10);
  --grid-lav: rgba(91, 63, 168, 0.10);
  --line: rgba(34, 51, 59, 0.16);
  --radius: 10px;
  --focus: 3px solid var(--lavender-deep);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem 3rem;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
  /* 坐标纸底纹：冰青小格 + 淡紫大格 */
  background-image:
    linear-gradient(var(--grid-ice) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ice) 1px, transparent 1px),
    linear-gradient(var(--grid-lav) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-lav) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; outline: var(--focus); }

.site-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 0 1rem;
  border-bottom: 2px solid var(--ice-deep);
}
.site-head__kicker {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--ice-deep);
}
.site-head a { color: var(--lavender-deep); }

main {
  max-width: 46rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.4;
  margin: 2rem 0 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--ice), var(--lavender));
  border-radius: var(--radius);
  border-left: 6px solid var(--ice-deep);
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px dashed var(--grid-lav);
  color: var(--ink);
}

.lede { font-size: 1.0625rem; }

section p { margin: 0.6rem 0; }

a { color: var(--ice-deep); }
a:hover { color: var(--lavender-deep); }
a:focus-visible,
summary:focus-visible,
button:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* 三轴示意 */
.axes-figure { margin: 1.5rem 0; }
.axes-figure svg {
  width: 100%;
  height: auto;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.axis-line { stroke: var(--ink-soft); stroke-width: 2; }
.axis--share .axis-line { stroke: var(--ice-deep); }
.axis--static .axis-line { stroke: var(--lavender-deep); }
.axis--carrier .axis-line { stroke: var(--ink-soft); }
.axis-title { font-size: 17px; font-weight: 700; fill: var(--ink); }
.axis-label { font-size: 14px; fill: var(--ink-soft); }
.axes-figure figcaption {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
}

/* 分配方式小对照 */
.alloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.alloc-card {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.alloc-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.alloc-card p { margin: 0; font-size: 0.9375rem; overflow-wrap: break-word; }
.alloc-card--shared { border-top: 5px solid var(--ice-deep); }
.alloc-card--private { border-top: 5px solid var(--lavender-deep); background: var(--lavender); }
.alloc-card--dedicated { border-top: 5px solid var(--ink); background: var(--ice); }

.scope-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--lavender-deep);
  background: rgba(228, 220, 250, 0.45);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* 滑签 */
.slider {
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.slider summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  color: var(--ice-deep);
  list-style-position: inside;
}
.slider[open] summary { color: var(--lavender-deep); border-bottom: 1px dashed var(--line); }
.slider__body { padding: 0.4rem 1.1rem 0.9rem; min-width: 0; }

/* 待核对清单 */
.check-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  margin: 0.5rem 0;
  background: rgba(191, 238, 242, 0.35);
  border-radius: var(--radius);
  min-width: 0;
}
.check-list li::before {
  content: "？";
  position: absolute;
  left: 0.8rem;
  top: 0.55rem;
  font-weight: 700;
  color: var(--lavender-deep);
}

/* 页脚 */
.site-foot {
  max-width: 46rem;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 2px solid var(--lavender-deep);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-foot__title {
  font-size: 1rem;
  border-bottom: none;
  margin-top: 0;
}
.source-list { padding-left: 1.2rem; }
.source-list a { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  body { padding-left: 1rem; padding-right: 1rem; }
  h1 { font-size: 1.375rem; }
  .axis-label { font-size: 12px; }
  .axis-title { font-size: 14px; }
  /* 窄屏收为单列：minmax(0,1fr) 三列会把列宽压到小于卡片文字最小宽度，
     拉丁词溢出卡片造成横向滚动 */
  .alloc-grid { grid-template-columns: 1fr; }
}
