* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --page: linear-gradient(115deg, #e9fff9 0%, #ffffff 36%, #e2fbff 72%, #ecfff7 100%);
  --ink: #10192b;
  --muted: #536179;
  --line: #dce6f2;
  --card: rgba(255,255,255,.92);
  --row: rgba(255,255,255,.82);
  --tag: #f2f6ff;
  --tag-text: #41526c;
  --green: #00b779;
  --publisher: #00c9bd;
  --analytics: #2e7cff;
  --qa: #8b5cff;
  --design: #ffbf00;
  --drafts: #ff4f7a;
  --archive: #15c76f;
  --shadow: 0 10px 24px rgba(24, 45, 72, .07);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.shell,
.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 46px;
}
.page.narrow { width: min(920px, calc(100% - 36px)); }
.brandline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(14, 157, 149, .18);
}
.brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: 0;
}
.brand h1 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #17233a;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 15px 0 10px;
}
.section-title h2,
h2.section-title {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}
.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 136px;
  padding: 17px 18px 15px;
  overflow: hidden;
}
.area-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
}
.area-card:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 88px;
  height: 62px;
  background: linear-gradient(135deg, transparent 0 42%, color-mix(in srgb, var(--accent) 18%, transparent) 43% 100%);
  pointer-events: none;
}
.area-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.area-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}
.area-card h3 span,
.en {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.area-label {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 8px;
  color: color-mix(in srgb, var(--accent) 72%, black);
  background: color-mix(in srgb, var(--accent) 12%, white);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.area-card p {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 13px;
}
.area-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: color-mix(in srgb, var(--accent) 78%, black);
  font-size: 13px;
  font-weight: 850;
}
.publisher { --accent: var(--publisher); }
.analytics { --accent: var(--analytics); }
.qa { --accent: var(--qa); }
.design { --accent: var(--design); }
.drafts { --accent: var(--drafts); }
.archive { --accent: var(--archive); }
.lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}
.panel {
  padding: 15px 16px;
}
.panel h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.panel h2 span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.doc-list,
.quick-list {
  display: grid;
  gap: 9px;
}
.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.doc-link,
.quick-card,
.nav-item,
.list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--row);
}
.doc-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 11px 13px;
}
.doc-link strong,
.quick-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
}
.quick-card strong span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.doc-link span span,
.quick-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.doc-tag {
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--tag);
  color: var(--tag-text);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
.quick-card {
  min-height: 68px;
  padding: 12px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}
.breadcrumb a {
  color: #007f76;
  border-bottom: 1px solid rgba(0,127,118,.28);
}
.breadcrumb span {
  color: #8aa0a8;
}
.breadcrumb strong {
  color: var(--muted);
}
h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}
h1 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}
p {
  max-width: 820px;
  margin: 0 0 22px;
  color: var(--muted);
}
.page-card {
  padding: 22px;
}
.nav-item,
.list a {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.nav-item.entry {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  padding: 19px 82px 14px 16px;
  border-color: color-mix(in srgb, var(--entry-accent) 34%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--entry-accent) 8%, #fff) 0%, rgba(255,255,255,.94) 54%);
  --entry-accent: var(--publisher);
}
.nav-item.entry.draft { --entry-accent: var(--drafts); }
.nav-item.entry.archive { --entry-accent: var(--archive); }
.nav-item.entry:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--entry-accent);
}
.nav-item.entry:after {
  content: "›";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--entry-accent) 32%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--entry-accent) 9%, #fff);
  color: color-mix(in srgb, var(--entry-accent) 72%, black);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}
.nav-item.entry .item-label {
  border: 1px solid color-mix(in srgb, var(--entry-accent) 22%, transparent);
  background: color-mix(in srgb, var(--entry-accent) 12%, #fff);
  color: color-mix(in srgb, var(--entry-accent) 70%, black);
}
.nav-item.entry .item-title {
  font-size: 17px;
  font-weight: 850;
}
.item-count {
  position: absolute;
  top: 50%;
  right: 52px;
  min-width: 18px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--entry-accent) 62%, #425266);
  font-size: 13px;
  line-height: 20px;
  font-weight: 850;
  text-align: center;
}
.nav-item.entry .item-meta {
  color: #43536a;
}
.nav-item.document,
.nav-item.archive:not(.entry) {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 45px;
  gap: 12px;
  border-left: 3px solid #cfd9e5;
  background: rgba(255,255,255,.72);
  box-shadow: none;
  padding: 9px 12px;
}
.nav-item.document .item-label,
.nav-item.archive:not(.entry) .item-label {
  display: none;
}
.nav-item.document .item-title,
.nav-item.archive:not(.entry) .item-title {
  min-width: 0;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 760;
}
.nav-item.document .item-meta,
.nav-item.archive:not(.entry) .item-meta {
  justify-self: end;
  max-width: 260px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #5c6c82;
  font-size: 12px;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 18px 16px;
  border: 1px dashed #b9d8e4;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  color: var(--muted);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 3px;
}
.empty-state span {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.nav-item:hover,
.list a:hover,
.doc-link:hover,
.quick-card:hover,
.area-card:hover {
  transform: translateY(-1px);
  transition: transform .12s ease, border-color .12s ease;
  border-color: #b8d7ea;
}
.item-label {
  width: fit-content;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #eaf8ff;
  color: #09607c;
  font-size: 12px;
  line-height: 18px;
  font-weight: 850;
}
.entry .item-label { background: #dcfff8; color: #007f76; }
.archive .item-label { background: #e8fff1; color: #087246; }
.draft .item-label { background: #fff0f5; color: #bf2453; }
.item-title {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
.title-en {
  display: block;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
}
.title-zh {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 680;
}
.nav-item.entry .title-zh {
  color: #43536a;
  font-size: 13px;
}
.item-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
th {
  background: #f4fbff;
  color: #334155;
  font-weight: 760;
}
tr:last-child td { border-bottom: 0; }
td a {
  color: #007f76;
  font-weight: 780;
  text-decoration: none;
}
.table-zh {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #eaf8ff;
  color: #09607c;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.tag.internal {
  background: #fff4d8;
  color: #805000;
}
.tag.external {
  background: #dcfff8;
  color: #007f76;
}
.note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #bfeee7;
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: #31545b;
  font-size: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #00a89e;
  border-radius: 8px;
  color: #fff;
  background: #00a89e;
  font-weight: 800;
}
@media (max-width: 980px) {
  .brandline,
  .lower { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .list { grid-template-columns: 1fr; }
  .status-pill { width: fit-content; }
  h1 { font-size: 28px; }
  .nav-item.entry { padding-right: 82px; }
  .nav-item.document,
  .nav-item.archive:not(.entry) {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .nav-item.document .item-meta,
  .nav-item.archive:not(.entry) .item-meta {
    justify-self: start;
    max-width: 100%;
    text-align: left;
    white-space: normal;
  }
}
