:root {
  --text: #202420;
  --muted: #667068;
  --accent: #245842;
  --line: #dedfdc;
  --background: #f8f8f6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font-family: Arial, "Microsoft YaHei", sans-serif; }
a { color: inherit; }

header {
  max-width: 1320px;
  min-height: 60px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.logo { flex: none; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; text-decoration: none; }
.logo span { font-size: 17px; font-weight: bold; line-height: 1.2; }
.logo small { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; }
.home-header { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-name { justify-self: start; font-size: 18px; font-weight: 700; text-decoration: none; }
.header-slogan { display: flex; align-items: center; justify-self: center; flex-direction: column; gap: 3px; text-align: center; text-decoration: none; }
.header-slogan span { font-size: 17px; font-weight: 700; line-height: 1.2; }
.header-slogan small { color: var(--accent); font-size: 13px; font-weight: 600; line-height: 1.3; }
.inline-slogan { align-items: baseline; flex-flow: row wrap; justify-content: center; gap: 10px; }
.inline-slogan span, .inline-slogan small { font-size: 17px; line-height: 1.2; }
.home-header nav { justify-self: end; }
.home-header .language-switch { padding-left: 0; border-left: 0; }
nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 22px; }
nav a { min-height: 20px; display: inline-flex; align-items: center; color: #404740; font-size: 14px; line-height: 1.4; text-decoration: none; }
nav a:hover { color: var(--accent); }
.language-switch { padding-left: 14px; border-left: 1px solid var(--line); color: var(--accent); font-weight: 700; }

main { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
h1 { max-width: 760px; margin: 14px 0 20px; font-size: clamp(44px, 7vw, 76px); line-height: 1.1; }
h2 { margin: 10px 0 18px; font-size: clamp(28px, 4vw, 42px); }
p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.label { margin: 0; color: var(--accent); font-size: 12px; font-weight: bold; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-block; margin-top: 34px; padding: 14px 26px; color: #fff; background: var(--accent); border-radius: 3px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { background: #173e2d; transform: translateY(-2px); }
.channel-section { padding: 21px 0 54px; }
.channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.channel-card { padding: 8px 12px 6px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.channel-card:hover, .channel-card:focus-visible { border-color: #aebbb3; box-shadow: 0 4px 14px rgba(35, 55, 43, .07); outline: none; }
.channel-card h3 { margin: 0 0 8px; font-size: 16px; }
.channel-card h3 a, .channel-card li a { text-decoration: none; }
.channel-card ul { margin: 0; padding: 0; list-style: none; }
.channel-card li { padding: 6px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; border-top: 1px solid #eceeeb; }
.channel-card li a { font-size: 13px; line-height: 1.55; }
.channel-card time { padding-top: 2px; color: #929892; font-size: 10px; line-height: 1.55; white-space: nowrap; }
.channel-card a:hover { color: var(--accent); }
.channel-dialog { width: min(680px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 48px)); padding: 0; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 55px rgba(20, 32, 25, .2); }
.channel-dialog[open] { display: flex; flex-direction: column; }
.channel-dialog::backdrop { background: rgba(24, 31, 27, .42); }
.channel-dialog-head { padding: 16px 18px 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.channel-dialog-head h2 { margin: 0; font-size: 20px; }
.channel-dialog-close { width: 30px; height: 30px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 3px; cursor: pointer; font-size: 24px; line-height: 1; }
.channel-dialog-close:hover, .channel-dialog-close:focus-visible { color: var(--text); background: var(--background); outline: none; }
.channel-dialog-list { min-height: 0; margin: 0; padding: 0 18px; overflow-y: auto; list-style: none; }
.channel-dialog-list li { padding: 9px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; border-bottom: 1px solid #eceeeb; }
.channel-dialog-list a { font-size: 14px; line-height: 1.5; text-decoration: none; }
.channel-dialog-list a:hover { color: var(--accent); }
.channel-dialog-list time { padding-top: 2px; color: #929892; font-size: 11px; white-space: nowrap; }
.channel-dialog-more { display: block; margin: 12px 18px 16px auto; width: fit-content; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
body:has(.channel-dialog[open]) { overflow: hidden; }
.contact-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 55px rgba(20, 32, 25, .2); }
.contact-dialog[open] { display: flex; flex-direction: column; }
.contact-dialog::backdrop { background: rgba(24, 31, 27, .42); }
.contact-dialog-close { width: 30px; height: 30px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 3px; cursor: pointer; font-size: 24px; line-height: 1; }
.contact-dialog-close:hover, .contact-dialog-close:focus-visible { color: var(--text); background: var(--background); outline: none; }
.contact-form { min-height: 0; padding: 16px 18px 18px; display: flex; overflow-y: auto; flex-direction: column; }
.contact-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.contact-form label { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.contact-form label:not(:first-of-type) { margin-top: 14px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 11px; color: var(--text); background: #fff; border: 1px solid #cfd3cf; border-radius: 4px; font: inherit; line-height: 1.5; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: 2px solid rgba(36, 88, 66, .13); }
.contact-privacy { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
.contact-status { min-height: 21px; margin: 8px 0 0; color: #9a372d; font-size: 13px; line-height: 1.5; }
.contact-status.is-success { color: var(--accent); }
.contact-submit { align-self: flex-end; min-width: 88px; padding: 9px 18px; color: #fff; background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; }
.contact-submit:hover { background: #173e2d; }
.contact-submit:disabled { cursor: wait; opacity: .65; }
body:has(.contact-dialog[open]) { overflow: hidden; }
.success-dialog { width: min(390px, calc(100% - 40px)); padding: 24px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 55px rgba(20, 32, 25, .24); text-align: center; }
.success-dialog::backdrop { background: rgba(24, 31, 27, .2); }
.success-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.success-dialog p { margin: 0 0 20px; font-size: 14px; line-height: 1.7; }
.success-dialog-close { min-width: 88px; padding: 9px 18px; color: #fff; background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; }
.success-dialog-close:hover { background: #173e2d; }
.content-section { padding: 82px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.content-section > p:last-child { max-width: 680px; }
details { max-width: 680px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: bold; }
.faq-page { max-width: 900px; padding-top: 54px; }
.faq-list { max-width: 760px; border-top: 1px solid var(--line); }
.faq-list details { max-width: none; padding: 17px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.faq-list summary { font-size: 17px; line-height: 1.55; }
.faq-list p { margin: 10px 0 0; font-size: 15px; line-height: 1.8; }

.contact, .simple-page { min-height: calc(100vh - 190px); padding: 120px 24px; }
.email { display: inline-block; margin-top: 24px; color: var(--accent); font-size: 24px; }

.listing-page, .article-page { width: 100%; min-height: calc(100vh - 190px); padding: 42px 24px 64px; }
.listing-page { max-width: 968px; }
.breadcrumbs { margin: 0 0 24px; }
.breadcrumbs ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 6px; color: #a3a8a3; content: "/"; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.listing-page h1, .article-page h1 { max-width: 900px; margin: 10px 0 24px; font-size: clamp(30px, 4vw, 46px); line-height: 1.25; }
.article-list { width: 100%; border-top: 1px solid var(--line); }
.article-list article { padding: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; border-bottom: 1px solid var(--line); }
.article-list h2 { margin: 0 0 7px; font-size: 20px; line-height: 1.45; }
.article-list h2 a { text-decoration: none; }
.article-list h2 a:hover { color: var(--accent); }
.article-list p { margin: 0; font-size: 14px; line-height: 1.7; }
.article-list time, .article-meta { color: #818881; font-size: 12px; white-space: nowrap; }
.media-page-intro { max-width: 760px; margin: -8px 0 24px; font-size: 14px; line-height: 1.7; }
.article-list .media-source { margin: 0 0 5px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.media-list article { scroll-margin-top: 20px; }
.media-summary-page { max-width: 860px; }
.media-featured-image { width: 100%; max-width: 760px; margin: 4px 0 24px; }
.media-featured-image--portrait { max-width: 460px; }
.media-featured-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: left center; background: #f1f3f0; border-radius: 8px; }
.media-featured-image figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.media-summary-body .media-source-note { margin-top: 14px; padding: 0; color: #929892; background: none; border: 0; font-size: 12px; line-height: 1.6; }
.media-summary-body .media-source-note strong { font-weight: 500; }
.media-original-link { display: inline-block; margin-top: 14px; padding: 0 0 2px; color: var(--accent); background: none; border-bottom: 1px solid currentColor; border-radius: 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.media-original-link:hover { color: #173e2d; border-bottom-width: 2px; }
.media-secondary-link { margin-left: 18px; }
.article-page { max-width: 860px; }
.article-page .article-meta { margin: -12px 0 30px; }
.article-body { max-width: 760px; }
.article-body section { padding: 22px 0; border-top: 1px solid var(--line); }
.article-body h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.45; }
.article-body p { margin: 8px 0 0; font-size: 16px; line-height: 1.85; }
.about-page .article-body ul { margin: 10px 0 0; padding-left: 1.35em; }
.about-page .article-body li { margin: 7px 0; padding-left: .2em; font-size: 16px; line-height: 1.8; }
.article-body .video-link { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.video-link a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.video-link a:hover { text-decoration-thickness: 2px; }
.article-back { display: inline-block; margin-top: 28px; color: var(--accent); font-size: 14px; text-decoration: none; }

.product-page { max-width: 1120px; }
.product-page-intro { max-width: 720px; margin: -8px 0 28px; font-size: 15px; line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.product-card { scroll-margin-top: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.product-main-image { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.product-main-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-thumbnails { padding: 10px 12px 0; display: flex; gap: 8px; }
.product-thumbnails button { width: 62px; height: 62px; padding: 2px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.product-thumbnails button:hover, .product-thumbnails button:focus-visible, .product-thumbnails button.is-active { border-color: var(--accent); outline: none; }
.product-thumbnails img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-info { padding: 18px; }
.product-info h2 { margin: 0 0 9px; font-size: 22px; line-height: 1.4; }
.product-info h2 a { text-decoration: none; }
.product-info h2 a:hover { color: var(--accent); }
.product-info > p { margin: 0 0 16px; font-size: 14px; line-height: 1.75; }
.product-specs { margin: 0; border-top: 1px solid #eceeeb; }
.product-specs div { padding: 9px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #eceeeb; font-size: 13px; line-height: 1.55; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; color: var(--text); }
.product-buy { margin-top: 17px; padding: 10px 17px; color: #fff; background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; }
.product-buy:hover, .product-buy:focus-visible { background: #173e2d; outline: none; }
.store-dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100dvh - 36px); padding: 0; overflow: hidden; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 55px rgba(20, 32, 25, .24); }
.store-dialog[open] { display: flex; flex-direction: column; }
.store-dialog::backdrop { background: rgba(24, 31, 27, .42); }
.store-dialog-close { width: 30px; height: 30px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 3px; cursor: pointer; font-size: 24px; line-height: 1; }
.store-dialog-close:hover, .store-dialog-close:focus-visible { color: var(--text); background: var(--background); outline: none; }
.store-dialog-body { min-height: 0; padding: 16px 20px 20px; overflow-y: auto; text-align: center; }
.store-dialog-body img { width: min(250px, 78%); height: auto; display: block; margin: 0 auto; }
.store-dialog-body p { margin: 12px 0 0; font-size: 13px; line-height: 1.65; }
.store-dialog-body .store-product-name { margin: 0 0 10px; color: var(--text); font-size: 16px; font-weight: 700; }
body:has(.store-dialog[open]) { overflow: hidden; }
.product-detail-page { max-width: 760px; }
.product-detail-page .product-card { max-width: 680px; }

footer {
  max-width: 1320px;
  min-height: 72px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 800px) {
  header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-header { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 16px; }
  .home-header .site-name { grid-column: 1; grid-row: 1; }
  .home-header .header-slogan { grid-column: 1 / -1; grid-row: 2; }
  .home-header nav { grid-column: 2; grid-row: 1; justify-self: end; }
  nav { justify-content: flex-start; }
  .contact, .simple-page { padding-top: 80px; }
  .faq-page { padding-top: 38px; }
  .listing-page, .article-page { padding: 30px 18px 48px; }
  .product-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-section { padding: 64px 0; }
}

@media (max-width: 600px) {
  nav { gap: 6px 18px; }
  nav a { font-size: 13px; }
  .article-list article { grid-template-columns: 1fr; gap: 8px; }
  .channel-section { padding-bottom: 48px; }
  .channel-dialog-head { padding: 14px 14px 10px; }
  .channel-dialog-list { padding: 0 14px; }
  .channel-dialog-list li { padding: 8px 0; gap: 10px; }
  .channel-dialog-more { margin-right: 14px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  main { padding: 0 16px; }
}

@media (min-width: 721px) and (max-height: 700px) {
  header { min-height: 54px; padding-top: 7px; padding-bottom: 7px; }
  .channel-section { padding-top: 12px; padding-bottom: 24px; }
  .channel-grid { gap: 8px; }
  .channel-card { padding: 6px 10px 4px; }
  .channel-card h3 { margin-bottom: 6px; font-size: 15px; }
  .channel-card li { padding: 4px 0; }
  footer { min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
}

@media (min-width: 721px) and (max-height: 560px) {
  .channel-section { padding-top: 8px; padding-bottom: 16px; }
  .channel-grid { gap: 6px; }
  .channel-card li { padding: 3px 0; }
  .channel-card li a { line-height: 1.4; }
  footer { min-height: 46px; padding-top: 6px; padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
