/* 新闻、报告和联系页共用标题尺度、留白及分隔线。 */
.ysl-news-article,
.ysl-error {
  --reading-measure: 840px;
  min-height: 55vh;
  padding-bottom: clamp(58px, 8vw, 108px);
}

body:has(> .ysl-news-index, > .ysl-news-article, > main > :is(.ysl-news-article, .ysl-contact-page)) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body > .ysl-news-article,
body > main:has(> .ysl-news-article) {
  flex-grow: 1;
}

.ysl-news-index + .ysl-footer,
main:has(> .ysl-contact-page) + .ysl-footer {
  flex-grow: 1;
}

.ysl-news-index {
  --ysl-width: 920px;
  padding-block-end: var(--ysl-page-end-space);
}

.ysl-news-index .ysl-page-heading {
  padding-block: clamp(24px, 7vh, 64px) clamp(21px, 3.2vw, 38px);
}

.ysl-news-index h1 {
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.15;
}

.ysl-contact-heading {
  padding: clamp(22px, 4.4vw, 62px) 0 clamp(24px, 4vw, 52px);
}

.ysl-contact-heading h1,
.ysl-error h1 {
  color: var(--ysl-ink);
  font-size: clamp(33px, 5.1vw, 68px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.ysl-news-items {
  --news-inset: clamp(18px, 4vw, 44px);
  background: var(--ysl-paper);
  border: 1px solid var(--ysl-line);
  border-radius: 6px;
}

.ysl-news-items > p {
  padding: 24px var(--news-inset);
  color: var(--ysl-muted);
}

.ysl-news-row {
  border-radius: 6px;
  scroll-margin-block-start: 15px;
}

.ysl-news-row + .ysl-news-row {
  border-top: 1px solid var(--ysl-line);
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

.ysl-news-row-link {
  display: flex;
  align-items: start;
  gap: 12px clamp(20px, 3vw, 36px);
  min-width: 0;
  padding: clamp(23px, 4vw, 38px) var(--news-inset);
  border-radius: inherit;
  color: var(--ysl-ink);
  text-decoration: none;
}

.ysl-news-row-link > div {
  flex: 1;
  min-width: 0;
}

.ysl-news-row-link h2 {
  font-size: clamp(20px, 2.35vw, 28px);
  font-weight: 680;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.ysl-news-title-phrase {
  display: inline-block;
  max-inline-size: 100%;
}

.ysl-news-summary {
  margin-top: 14px;
  color: var(--ysl-muted);
  line-height: 1.85;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.ysl-news-row time {
  color: var(--ysl-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ysl-news-row-link:is(:hover, :focus-visible) {
  background: var(--ysl-hover);
  color: var(--ysl-action-hover);
}

.ysl-news-row-link:is(:hover, :focus-visible) h2 {
  text-decoration: underline 1px;
  text-underline-offset: 0.24em;
}

.ysl-news-row-anchor {
  display: block;
  block-size: 0;
  scroll-margin-block-start: 15px;
}

.ysl-news-row:is(:target, :has(> .ysl-news-row-anchor:target)) {
  outline: none;
}

.ysl-news-article {
  --reading-measure: 900px;
}

.ysl-news-index .ysl-breadcrumbs > * + *,
.ysl-news-article .ysl-breadcrumbs > * + * {
  margin-inline-start: 7px;
}

.ysl-news-article > :is(.ysl-breadcrumbs, article, .ysl-page-heading, .ysl-news-article-header, .ysl-news-article-body) {
  inline-size: min(100%, var(--reading-measure));
  min-inline-size: 0;
  margin-inline: auto;
}

.ysl-news-article :is(.ysl-page-heading, .ysl-news-article-header) {
  padding-block: clamp(19px, 3vw, 36px) clamp(18px, 3.5vw, 30px);
  border-bottom: 1px solid var(--ysl-line);
}

.ysl-news-article :is(.ysl-page-heading, .ysl-news-article-header) h1 {
  color: var(--ysl-ink);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 720;
  line-height: 1.26;
  letter-spacing: -0.026em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.ysl-news-article-date {
  display: block;
  margin-block-start: 12px;
  color: var(--ysl-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.ysl-news-article-body {
  min-inline-size: 0;
  padding-top: clamp(20px, 3vw, 32px);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.ysl-news-article-body > * + * {
  margin-block-start: 1.1em;
}

.ysl-news-article-body :is(h1, h2, h3, h4):not(:first-child) {
  margin-block-start: 1.55em;
}

.ysl-news-article-body :is(h1, h2, h3, h4) {
  margin-block-end: 0.5em;
  color: var(--ysl-ink);
  line-height: 1.45;
}

.ysl-news-article-body :is(h1, h2) {
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 720;
}

.ysl-news-article-body h3 {
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 680;
}

.ysl-news-article-body :where(a:not(.wp-block-file__button)) {
  color: var(--ysl-red-dark);
  text-underline-offset: 0.2em;
}

.ysl-news-article-body :where(ul, ol) {
  padding-inline-start: 1.6em;
}

.ysl-news-article-body :where(figure, .alignwide, .alignfull) {
  max-inline-size: 100%;
  margin-inline: 0;
}

.ysl-news-article-body :where(img, picture, video, iframe, embed, object) {
  max-inline-size: 100%;
}

.ysl-news-article-body :where(img, video) {
  height: auto;
}

.ysl-news-article-body :where(figcaption) {
  margin-block-start: 0.6em;
  color: var(--ysl-muted);
  font-size: 0.86em;
  line-height: 1.55;
}

.ysl-news-article-body :where(pre, .wp-block-table, .ysl-news-table-scroll) {
  max-inline-size: 100%;
  overflow-x: auto;
}

.ysl-news-article-body :where(.wp-block-table, .ysl-news-table-scroll):focus-visible {
  outline: 2px solid var(--ysl-action);
  outline-offset: 3px;
}

.ysl-news-article-body table {
  inline-size: 100%;
  max-inline-size: 100%;
  border-collapse: collapse;
  background: var(--ysl-paper);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ysl-news-article-body :is(td, th) {
  padding: clamp(8px, 1.25vw, 13px);
  border: 1px solid var(--ysl-line);
  vertical-align: top;
}

.ysl-news-article-body th,
.ysl-news-article-body tbody tr:nth-child(even) {
  background: var(--ysl-tint);
}

/* 维持正式站原附件的链接、文字与边框颜色。 */
.ysl-news-article-body :where(.wp-block-file, .ysl-report-panel) {
  --ysl-muted: #485b64;
  --ysl-ink: #192d37;
  --ysl-line: #d9e4e8;
  --ysl-paper: #fff;
  color: var(--ysl-ink);
}

.ysl-news-article-body .wp-block-file:not(.wp-element-button) {
  color: #1f2937;
  font-size: .8em;
}

.ysl-news-article-body a[href*=".pdf" i]:focus-visible {
  outline-color: var(--ysl-red);
}

.ysl-news-article-body .wp-block-file:has(> .wp-block-file__button[download]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
}

.ysl-news-article-body .wp-block-file > .wp-block-file__embed {
  grid-column: 1 / -1;
}

.ysl-news-article-body .wp-block-file__button {
  display: inline-block;
  margin-block-start: 5px;
  border-radius: 3px;
  background: var(--ysl-red);
  color: var(--ysl-paper);
}

.ysl-news-article-body .wp-block-file > .wp-block-file__button[download] {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-inline-size: 44px;
  min-block-size: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ysl-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ysl-news-article-body .wp-block-file > .wp-block-file__button[download]:hover {
  color: var(--ysl-ink);
}

@media (pointer: coarse) {
  .ysl-news-article-body .wp-block-file > .wp-block-file__button[download] {
    min-block-size: 44px;
  }
}

.ysl-report-original {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto;
  cursor: zoom-in;
}

.ysl-report-original picture,
.ysl-report-original img {
  display: block;
  max-width: 100%;
}

.ysl-report-original img {
  height: auto;
}

.ysl-report-original + br {
  display: none;
}

.ysl-report-panel {
  margin-top: clamp(27px, 5vw, 52px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--ysl-line, #ddd8ce);
}

.ysl-report-open {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--ysl-line, #ddd8ce);
  border-radius: 4px;
  background: var(--ysl-paper, #fffefa);
  color: var(--ysl-red, #a20d20);
  font-weight: 650;
  text-decoration: none;
}

.ysl-report-open:hover {
  border-color: currentColor;
}

.ysl-report-preview {
  margin-top: 14px;
}

.ysl-report-preview summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 8px;
  color: var(--ysl-red, #a20d20);
  cursor: pointer;
  font-weight: 650;
}

.ysl-report-preview summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.ysl-report-preview iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 72vh, 760px);
  border: 1px solid var(--ysl-line, #ddd8ce);
  background: white;
}

.ysl-news-return {
  display: flex;
  inline-size: fit-content;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: clamp(26px, 4vw, 40px);
  margin-inline: auto max(0px, calc((100% - var(--reading-measure)) / 2));
  padding-inline: 16px;
  border: 1px solid var(--ysl-action);
  border-radius: 3px;
  background: var(--ysl-paper);
  color: var(--ysl-action);
  font-weight: 680;
  text-decoration: none;
}

.ysl-news-return:hover {
  border-color: var(--ysl-action-hover);
  background: var(--ysl-hover);
  color: var(--ysl-action-hover);
}

.ysl-news-article-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-start: 20px;
}

.ysl-news-article-pages .post-page-numbers {
  display: inline-grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  border: 1px solid var(--ysl-line);
  border-radius: 3px;
  color: var(--ysl-action);
  text-decoration: none;
}

.ysl-news-article-pages a:hover {
  border-color: var(--ysl-action);
  background: var(--ysl-hover);
  color: var(--ysl-action-hover);
}

.ysl-news-article-pages .current {
  border-color: var(--ysl-action);
  background: var(--ysl-action);
  color: var(--ysl-on-action);
}

.admin-bar:has(.ysl-news-article) .ysl-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px) {
  .admin-bar:has(.ysl-news-article) .ysl-header {
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}

@media (max-width: 600px) {
  .admin-bar:has(.ysl-news-article) .ysl-header {
    top: 0;
  }
}

body:has(> main > .ysl-contact-page) {
  --ysl-ink: #1a1d21;
  --ysl-muted: var(--ysl-ink);
  --ysl-action: var(--ysl-ink);
  --ysl-action-hover: var(--ysl-ink);
  --ysl-contact-highlight: #b3122b;
  --ysl-contact-store-paper: color-mix(in srgb, var(--ysl-contact-highlight) 4%, #fff);
  --ysl-contact-store-line: color-mix(in srgb, var(--ysl-contact-highlight) 20%, #fff);
}

.ysl-contact-page {
  padding-block-end: var(--ysl-page-end-space);
}

body:has(> main > .ysl-contact-page) .ysl-nav a[aria-current] {
  color: var(--ysl-ink);
}

body:has(> main > .ysl-contact-page) .ysl-nav a[aria-current]::after {
  background: currentColor;
}

body:has(> main > .ysl-contact-page) .ysl-header-phone {
  color: var(--ysl-ink);
}

.ysl-contact-heading h1 {
  font-size: clamp(34px, 4.65vw, 56px);
  font-weight: 720;
}

.ysl-contact-heading p {
  max-width: 38em;
  margin-top: 16px;
  color: var(--ysl-muted);
  font-size: clamp(16px, 1.75vw, 19px);
  line-height: 1.7;
}

.ysl-contact-methods {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-block: 1px solid var(--ysl-line);
}

.ysl-contact-card {
  min-width: 0;
  padding-block: clamp(26px, 4.5vw, 57px);
}

.ysl-contact-card:first-child {
  padding-inline-end: clamp(22px, 5vw, 64px);
}

.ysl-contact-card-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 4vw, 48px);
  padding-inline-start: clamp(22px, 5vw, 64px);
  border-inline-start: 1px solid var(--ysl-line);
}

.ysl-contact-card h2 {
  color: var(--ysl-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.ysl-contact-card > a,
.ysl-contact-card-qr p {
  display: inline-block;
  margin-top: 5px;
  color: var(--ysl-contact-highlight);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-decoration: none;
  white-space: nowrap;
}

.ysl-contact-card > a {
  font-size: clamp(32px, 4.65vw, 52px);
  font-weight: 760;
}

.ysl-contact-card-qr p {
  font-size: clamp(25px, 3.35vw, 39px);
}

.ysl-contact-card > a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.ysl-contact-card dl {
  margin: 20px 0 0;
}

.ysl-contact-card dt,
.ysl-contact-card-qr span {
  display: block;
  margin-top: 3px;
  color: var(--ysl-muted);
  font-size: 15px;
}

.ysl-contact-card dt {
  font-weight: 650;
}

.ysl-contact-card dd {
  margin: 3px 0 0;
  color: var(--ysl-ink);
  font-size: 16px;
}

.ysl-contact-card-qr span {
  margin-top: 12px;
}

.ysl-contact-card-qr img {
  width: clamp(82px, 11vw, 150px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.ysl-error {
  padding-top: clamp(35px, 7vw, 92px);
}

.ysl-error .ysl-button {
  margin-block-start: 20px;
}

@media (max-width: 700px) {
  .ysl-news-row-link {
    flex-direction: column;
  }

  .ysl-news-row time {
    text-align: left;
  }

  .ysl-contact-methods {
    grid-template-columns: minmax(0, 1fr);
  }

  .ysl-contact-card:first-child,
  .ysl-contact-card-qr {
    padding-inline: 0;
  }

  .ysl-contact-card-qr {
    border-inline-start: 0;
    border-top: 1px solid var(--ysl-line);
  }
}
