@charset "UTF-8";
@import url("palette.css");

:root {
  --ysl-width: 1232px;
  --ysl-anchor-offset: 91px;
  --ysl-page-end-space: clamp(22px, 2.5vw, 36px);
  color: var(--ysl-ink);
  background: var(--ysl-background);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
  scroll-behavior: smooth;
  scroll-padding-top: var(--ysl-anchor-offset);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background-color: var(--ysl-background); color: var(--ysl-ink); accent-color: var(--ysl-action); }
[hidden] { display: none !important; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ysl-action); outline-offset: 4px; }
svg { width: 19px; height: 19px; flex: 0 0 19px; }

.ysl-content-width, .ysl-catalog {
  width: min(var(--ysl-width), calc(100% - 88px));
  margin-inline: auto;
}

.ysl-skip { position: fixed; top: -70px; left: 20px; z-index: 55; background: var(--ysl-paper); padding: 8px 13px; }
.ysl-skip:focus { top: 14px; }
.ysl-header { position: sticky; top: 0; z-index: 40; background: var(--ysl-paper); border-bottom: 1px solid var(--ysl-line); }
.ysl-header-inner { display: grid; grid-template-columns: auto 1fr auto; min-height: 75px; align-items: center; gap: 20px 52px; }
.ysl-brand { justify-self: start; }
.ysl-brand img, .ysl-footer-logo img { width: 134px; height: auto; }
.ysl-nav { justify-self: end; display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); }
.ysl-nav a { position: relative; padding-block: 24px; font-size: 15px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.ysl-nav a:hover { color: var(--ysl-action); }
.ysl-nav a[aria-current] { color: var(--ysl-red); }
.ysl-nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 13px; height: 2px; background: var(--ysl-red); }
.ysl-header-phone { justify-self: end; padding-left: 21px; border-left: 1px solid var(--ysl-line); color: var(--ysl-red-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }

.ysl-hero { position: relative; background: var(--ysl-tint); }
.ysl-hero-scene { position: absolute; inset: 0; pointer-events: none; }
.ysl-hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.ysl-hero-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1f7fda8, #f1f7fd52 45%, #f1f7fd00 74%);
  content: '';
}
.ysl-hero-copy { position: relative; padding-block: clamp(27px, 4vw, 52px); }
.ysl-hero h1 { color: var(--ysl-ink); font-size: clamp(36px, 4vw, 57px); line-height: 1.12; font-weight: 730; letter-spacing: -.04em; }
.ysl-hero p { margin-top: 12px; color: var(--ysl-muted); font-size: 16px; }
.ysl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 16px; border: 1px solid var(--ysl-action); border-radius: 3px; background: var(--ysl-action); color: var(--ysl-on-action); font-size: 15px; font-weight: 690; text-decoration: none; }
.ysl-button:hover { background: var(--ysl-action-hover); border-color: var(--ysl-action-hover); }

.ysl-legacy-catalog { display: none; }
.ysl-legacy-catalog:target { display: block; padding-block: 13px; color: var(--ysl-action); }

.ysl-image-window { position: relative; display: block; overflow: hidden; clip-path: var(--pack-silhouette, none); aspect-ratio: var(--crop-aspect); width: auto; height: 100%; max-width: 100%; flex-shrink: 0; }
.ysl-image-window img { position: absolute; top: calc(-1 * var(--crop-top)); left: calc(-1 * var(--crop-left)); width: var(--crop-width); height: auto; max-width: none; }

.ysl-catalog { padding-block: 41px var(--ysl-page-end-space); }
.ysl-catalog-heading, .ysl-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ysl-line); }
.ysl-catalog h2, .ysl-section-title h2, .ysl-contact-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 750; letter-spacing: -.035em; }
.ysl-catalog-heading p { color: var(--ysl-muted); font-size: 14px; white-space: nowrap; }
.ysl-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
.ysl-product-card { min-width: 0; padding-block: 14px; border-bottom: 1px solid var(--ysl-line); }
.ysl-product-card-target { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); gap: 22px; align-items: stretch; height: 100%; color: var(--ysl-ink); text-decoration: none; }
.ysl-product-card-target:not(:has(.ysl-product-card-media)) { grid-template-columns: minmax(0, 1fr); }
.ysl-product-card-media { display: grid; place-items: center; height: clamp(150px, 14.5vw, 208px); min-width: 0; overflow: hidden; padding: 14px 10px; background: var(--ysl-tint); }
.ysl-product-card-media > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.ysl-product-card-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 7px; min-width: 0; padding: 6px 9px 6px 0; }
.ysl-product-card-copy h3 { font-size: clamp(17px, 1.8vw, 26px); font-weight: 740; overflow-wrap: anywhere; letter-spacing: -.025em; }
.ysl-product-card-type { color: var(--ysl-action); font-size: 13px; }
.ysl-product-card-quantity { color: var(--ysl-muted); font-size: 14px; overflow-wrap: anywhere; }
.ysl-product-card-link { margin-top: 9px; color: var(--ysl-action); font-size: 14px; font-weight: 690; }
.ysl-product-card-target:hover h3 { color: var(--ysl-action); }
.ysl-product-card-target:hover .ysl-product-card-link { text-decoration: underline; }

.ysl-section-title a { color: var(--ysl-action); font-size: 15px; white-space: nowrap; text-underline-offset: 4px; }

.ysl-contact-band { background: var(--ysl-action-hover); color: var(--ysl-on-action); }
.ysl-contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px 35px; padding-block: 34px; }
.ysl-contact-row p { margin-top: 5px; color: var(--ysl-tint); }
.ysl-contact-number { font-size: clamp(22px, 3vw, 34px); font-weight: 760; text-decoration: none; white-space: nowrap; }
.ysl-contact-link { text-underline-offset: 4px; }
.ysl-contact-band a:focus-visible { outline-color: var(--ysl-on-action); }

.ysl-breadcrumbs { padding-block: 17px 15px; color: var(--ysl-muted); font-size: 14px; overflow-wrap: anywhere; }
.ysl-breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.ysl-breadcrumbs li + li::before { content: '/'; margin-inline: 8px; color: var(--ysl-muted); }
.ysl-breadcrumbs a, .ysl-news-return { color: var(--ysl-action); text-underline-offset: 4px; }
.ysl-error { min-height: 49vh; padding-block: 35px 55px; }
.ysl-error .ysl-button { margin-top: 18px; }

.ysl-footer { background: var(--ysl-tint) var(--ysl-footer-wash); padding-block: 28px 15px; }
main.ysl-news-index + .ysl-footer,
main:has(> :is(.ysl-catalog, .ysl-contact-page)) + .ysl-footer {
  --ysl-footer-wash: linear-gradient(var(--ysl-background), var(--ysl-tint) 24px);
  padding-block-start: 22px;
}
.ysl-footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px 28px; }
.ysl-footer-logo { justify-self: start; }
.ysl-footer-brand .ysl-footer-logo { display: inline-block; }
.ysl-footer-main:has(.ysl-footer-about) { align-items: start; }
.ysl-footer-about { max-width: 410px; margin-top: 10px; color: var(--ysl-muted); font-size: 14px; }
.ysl-footer-about h2 { margin-bottom: 6px; color: var(--ysl-ink); font-size: 16px; }
.ysl-footer-about p + p { margin-top: 4px; }
.ysl-footer-main a { font-weight: 640; text-decoration: none; }
.ysl-footer-contact { justify-self: end; display: grid; text-align: right; font-size: 14px; }
.ysl-footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--ysl-line); color: var(--ysl-muted); font-size: 13px; }
.ysl-footer-legal a { text-decoration: none; }
.ysl-back-top { position: fixed; bottom: 21px; right: 21px; z-index: 41; width: 43px; height: 43px; display: grid; place-items: center; background: var(--ysl-paper); color: var(--ysl-action); border: 1px solid var(--ysl-line); border-radius: 50%; }
.ysl-back-top:hover { background: var(--ysl-hover); color: var(--ysl-action-hover); }
.ysl-back-top svg { transform: rotate(180deg); }
.ysl-image-dialog { position: fixed; inset: 0; width: min(94vw, 1040px); max-height: 90vh; margin: auto; padding: 12px; border: 0; border-radius: 6px; color: var(--ysl-ink); background: var(--ysl-paper); }
.ysl-image-dialog::backdrop { background: rgb(22 48 68 / 85%); }
.ysl-image-dialog button { display: block; margin-left: auto; padding: 5px 15px; min-height: 42px; border: 1px solid var(--ysl-line); border-radius: 3px; background: var(--ysl-paper); color: var(--ysl-action); cursor: pointer; }
.ysl-image-dialog button:hover { background: var(--ysl-hover); color: var(--ysl-action-hover); }
.ysl-image-dialog img { display: block; width: 100%; height: auto; max-height: 77vh; object-fit: contain; }

@media (min-width: 1001px) {
  .ysl-footer-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }
  .ysl-footer-about { margin-top: 0; }
}

@media (max-width: 840px) {
  .ysl-content-width, .ysl-catalog { width: calc(100% - 40px); }
  .ysl-header-inner { grid-template-columns: auto 1fr; min-height: 63px; gap: 10px 19px; }
  .ysl-nav { justify-self: end; gap: 15px; }
  .ysl-nav a { padding-block: 13px; }
  .ysl-nav a[aria-current]::after { bottom: 7px; }
  .ysl-header-phone { display: none; }
  .ysl-hero h1 { font-size: clamp(32px, 6vw, 52px); }
  .ysl-catalog-grid { gap: 0 15px; }
  .ysl-product-card-target { gap: 13px; }
  .ysl-product-card-media { height: 153px; padding: 9px 7px; }
  .ysl-contact-row { grid-template-columns: 1fr auto; }
  .ysl-contact-link { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 560px) {
  :root { --ysl-anchor-offset: 90px; }
  .ysl-content-width, .ysl-catalog { width: calc(100% - 30px); }
  .ysl-header-inner { grid-template-columns: 1fr; padding-top: 5px; gap: 0; }
  .ysl-brand img { width: 110px; }
  .ysl-nav { width: 100%; justify-content: space-between; gap: 6px; }
  .ysl-nav a { padding-block: 6px 9px; font-size: 13px; }
  .ysl-nav a[aria-current]::after { bottom: 3px; }
  .ysl-hero-scene img { object-position: 66% 68%; }
  .ysl-hero-scene::after { background: linear-gradient(90deg, #f4f9fdf2, #f4f9fddf 52%, #f4f9fdbd 65%, #f4f9fd12 95%); }
  .ysl-hero p { margin-top: 9px; font-size: 14px; }
  .ysl-catalog { padding-block: 30px var(--ysl-page-end-space); }
  .ysl-catalog-grid { grid-template-columns: 1fr; }
  .ysl-catalog-heading, .ysl-section-title { padding-bottom: 12px; }
  .ysl-product-card { padding-block: 11px; }
  .ysl-product-card-target { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 13px; }
  .ysl-product-card-media { height: 127px; }
  .ysl-product-card-copy { gap: 4px; padding-right: 0; }
  .ysl-product-card-copy h3 { font-size: 18px; }
  .ysl-product-card-type, .ysl-product-card-quantity, .ysl-product-card-link { font-size: 12px; }
  .ysl-product-card-link { margin-top: 3px; }
  .ysl-contact-row, .ysl-footer-main { grid-template-columns: 1fr; }
  .ysl-contact-row { padding-block: 21px; gap: 8px; }
  .ysl-contact-link { grid-column: auto; }
  .ysl-footer-contact { justify-self: start; text-align: left; }
  .ysl-footer-logo img { width: 110px; }
  .ysl-back-top { bottom: 13px; right: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
