:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #202124;
  background: #f4f4f4;
  letter-spacing: 0;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 94px; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: #f4f4f4; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 20; height: 64px; background: #fff; border-bottom: 1px solid #ededed; }
.header-inner { width: min(1210px, calc(100% - 48px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; min-width: 240px; }
.brand-word { color: #17191d; font-family: Arial, sans-serif; font-size: 26px; font-style: italic; font-weight: 900; white-space: nowrap; }
.brand-word b { font-weight: 900; }
.header-actions { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 12px; }
.publish-link, .lab-link { width: 90px; height: 44px; flex: 0 0 90px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 24px; white-space: nowrap; font-size: 16px; font-weight: 400; }
.publish-link { background: #f5f5f5; color: #26282b; }
.lab-link { background: #222; color: #fff; }

.page-shell { width: min(1210px, calc(100% - 48px)); margin: 24px auto 72px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; }
.article-card, .side-card { background: #fff; border-radius: 8px; }
.article-card { min-width: 0; overflow: visible; }
.article-heading { padding: 48px 48px 18px; }
h1 { margin: 0; color: #222326; font-size: 34px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.article-meta { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #9a9a9a; font-size: 14px; }
.article-meta strong { margin-right: 6px; color: #2b2d30; font-size: 15px; font-weight: 700; }
.article-meta > span:not(.author-avatar) { display: inline-flex; align-items: center; gap: 5px; }
.article-meta svg { width: 17px; height: 17px; stroke-width: 1.7; }
.author-avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; background: #222; color: #fff; font-size: 13px; font-weight: 800; }

.article-body { padding: 8px 48px 64px; }
.article-body p, .article-body li { color: #34373b; font-size: 16px; line-height: 1.9; }
.article-body p { margin: 0 0 20px; text-align: justify; }
.notice-points { margin: 0 0 20px; padding: 0; color: #34373b; list-style: none; }
.notice-points li { margin: 0 0 18px; padding: 0; text-align: justify; }
.notice-points li:last-child { margin-bottom: 0; }
.notice-points li > strong { display: block; margin-bottom: 5px; color: #25272a; font-size: 20px; line-height: 1.55; font-weight: 800; }
.notice-points li > span { display: block; }
.notice-lead { margin-top: 4px !important; font-weight: 700; }
.article-body section { margin-top: 34px; border-radius: 4px; }
.article-body > p + section { margin-top: 12px; }
.article-body h2 { margin: 0 0 12px; color: #25272a; font-size: 30px; line-height: 1.45; font-weight: 800; }
.notice-subpoints { margin-top: 4px; }
.notice-subpoints h3 { margin: 22px 0 6px; color: #25272a; font-size: 18px; line-height: 1.55; font-weight: 800; }
.notice-subpoints h3:first-child { margin-top: 0; }
.notice-subpoints p { margin-bottom: 18px; }
.article-figure { width: 100%; margin: 18px 0 38px; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 2px; }
.article-figure figcaption { margin-top: 10px; color: #999; font-size: 13px; text-align: center; }
.car-figure { margin-bottom: 20px; }
.source-image-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; margin: 16px 0 10px; }
.source-image-row a { display: block; min-width: 0; }
.source-image-row img { width: 100%; aspect-ratio: 777 / 1718; display: block; object-fit: cover; object-position: center; }
.source-attribution { margin: 0 !important; color: #34373b !important; font-size: 16px !important; line-height: 1.9 !important; text-align: left !important; }
.source-attribution a { color: #34373b; text-decoration: underline; text-underline-offset: 2px; }
.important-note { padding-left: 16px; border-left: 3px solid #e63f3f; }
.important-note strong { color: #e23d3d; }
.primary-action, .secondary-action { min-height: 44px; margin-top: 3px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 3px; font-size: 14px; font-weight: 700; }
.primary-action { background: #2262e8; color: #fff; }
.secondary-action { border: 1px solid #d4d7db; background: #f6f7f8; color: #272a2e; }
.primary-action svg, .secondary-action svg { width: 18px; height: 18px; }
.closing { margin-top: 44px !important; }
.signature { margin-top: 38px; text-align: right; }
.signature p { margin: 0; text-align: right; }

.article-footer { position: sticky; bottom: 0; z-index: 4; min-height: 58px; padding: 10px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #ececec; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); color: #26282b; font-size: 14px; font-weight: 700; }
.article-footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; line-height: 1.35; }
.article-footer > div { display: flex; gap: 5px; }
.article-footer button, .article-footer a { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 3px; background: transparent; color: #555a5f; cursor: pointer; }
.article-footer button:hover, .article-footer a:hover { background: #f3f3f3; color: #111; }
.article-footer svg { width: 19px; height: 19px; }

.sidebar { display: grid; grid-template-rows: auto auto 1fr; align-self: stretch; gap: 20px; }
.side-card { padding: 24px; border: 1px solid #e6eaf0; border-radius: 14px; box-shadow: 0 8px 24px rgba(22, 34, 51, .04); }
.side-card h2 { margin: 0 0 16px; color: #242629; font-size: 16px; line-height: 1.4; font-weight: 800; }
.side-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-card-heading { display: inline-flex; align-items: center; gap: 9px; }
.side-card-heading svg { width: 19px; height: 19px; stroke-width: 1.8; }
.side-more { display: inline-flex; align-items: center; gap: 4px; color: #666d76; font-size: 14px; font-weight: 400; white-space: nowrap; }
.side-more svg { width: 15px; height: 15px; }
.notice-list { --notice-row-height: 48px; min-height: calc(4 * var(--notice-row-height)); }
.notice-item { min-height: var(--notice-row-height); margin: 0 -12px; padding: 0 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-radius: 6px; color: #3f4246; font-size: 14px; }
.notice-item:hover { background: #f5f5f5; color: #242629; }
.notice-item.current { color: #242629; }
.notice-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-item time { color: #999; font-size: 14px; }
.browse-item { min-height: 86px; padding: 16px 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-bottom: 1px solid #eee; color: #35383c; font-size: 15px; }
.browse-item:last-child { border-bottom: 0; }
.browse-item:hover > span { color: #e43d3d; }
.browse-item small { display: flex; align-items: center; color: #999; font-size: 12px; }
.browse-item svg { width: 14px; height: 14px; margin-right: 4px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span { padding: 8px 11px; border-radius: 3px; background: #f4f4f4; color: #5a5d61; font-size: 13px; }
.article-outline { position: sticky; top: 84px; align-self: start; margin: 0 0 4px 12px; padding: 2px 0 2px 16px; display: grid; gap: 16px; border-left: 1px solid #dedede; }
.outline-group, .outline-subpoints { display: grid; gap: 12px; }
.article-outline a { position: relative; color: #70757c; font-size: 15px; line-height: 1.55; }
.article-outline .outline-section { color: #565b62; }
.article-outline .outline-subpoints { margin-left: 12px; gap: 10px; }
.article-outline .outline-subpoints a { font-size: 14px; }
.article-outline a:hover { color: #242629; }
.article-outline a[aria-current="location"]::before { position: absolute; top: 50%; left: -17px; width: 2px; height: 24px; transform: translateY(-50%); background: #292c30; content: ""; }
.article-outline .outline-subpoints a[aria-current="location"]::before { left: -29px; }

@media (min-width: 1181px) {
  .site-header { height: 64px; }
  .header-inner, .page-shell { width: min(1210px, calc(100% - 48px)); }
  .site-brand { min-width: 240px; }
  .brand-word { font-size: 26px; }
  .header-actions { gap: 10px; }
  .publish-link, .lab-link { width: 90px; height: 44px; flex-basis: 90px; padding: 0 8px; font-size: 16px; font-weight: 400; }
  .page-shell { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
  .article-heading { padding: 48px 48px 18px; }
  .article-body { padding-right: 48px; padding-left: 48px; }
  h1 { font-size: 34px; }
  .side-card { padding: 24px; }
}

@media (min-width: 1181px) and (max-width: 1700px) {
  .header-inner { gap: 20px; }
}

@media (max-width: 1180px) {
  .site-brand { min-width: auto; }
  .brand-word { font-size: 23px; }
  .page-shell { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 860px) {
  .site-header { height: 66px; }
  .header-inner, .page-shell { width: min(calc(100% - 24px), 760px); }
  .publish-link { display: none; }
  .lab-link { width: 86px; height: 40px; flex-basis: 86px; padding: 0 8px; font-size: 16px; font-weight: 400; }
  .page-shell { margin-top: 14px; grid-template-columns: 1fr; }
  .article-heading { padding: 38px 28px 20px; }
  .article-body { padding: 12px 28px 54px; }
  .article-footer { padding: 10px 28px; }
  .sidebar { align-self: start; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tag-card { display: none; }
  .article-outline { display: none; }
}

@media (max-width: 580px) {
  .header-inner { gap: 12px; }
  .brand-word { font-size: 18px; }
  .lab-link { margin-left: auto; }
  .article-heading { padding: 31px 21px 16px; }
  h1 { font-size: 27px; line-height: 1.35; }
  .article-meta { margin-top: 20px; gap: 9px 12px; font-size: 13px; }
  .article-meta strong { font-size: 14px; }
  .article-meta > span:nth-last-child(2), .article-meta > span:nth-last-child(3) { display: none; }
  .article-body { padding: 10px 21px 44px; }
  .article-body p, .article-body li { font-size: 16px; line-height: 1.85; }
  .article-body h2 { font-size: 24px; }
  .article-figure { margin-bottom: 28px; }
  .source-image-row { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .article-footer { padding: 9px 17px; }
  .article-footer > span { display: none; }
  .article-footer { justify-content: flex-end; }
  .sidebar { grid-template-columns: 1fr; }
  .side-card { padding: 25px 23px; }
}

@media print {
  .site-header, .sidebar, .article-footer, .primary-action, .secondary-action { display: none !important; }
  body { background: #fff; }
  .page-shell { width: 100%; margin: 0; display: block; }
  .article-card { border: 0; }
}
