:root {
  --red: #e10600;
  --ink: #1c2430;
  --muted: #5c6770;
  --line: #e6e8ec;
  --bg: #f4f5f7;
  --navy: #0d2744;
  --header: 74px;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 19;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 68px; height: 68px; padding: 8px; border: 0; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 12px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .2);
}
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { background: var(--navy); }
.back-to-top:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 860px) {
  .back-to-top { right: 16px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand-logo { width: auto; height: auto; max-width: 100%; }
.site-nav { flex: 1 0 auto; }
.menu, .submenu, .lang-menu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; justify-content: center; gap: 6px; }
.menu-item { position: relative; }
.menu-item > a { display: inline-flex; align-items: center; min-height: 74px; padding: 0 12px; white-space: nowrap; }
.menu-item.is-on > a, .menu-item > a:hover { color: var(--red); }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(16, 24, 40, .08); padding: 8px 0;
}
.menu-item:hover > .submenu, .menu-item:focus-within > .submenu { display: block; }
.submenu a { display: block; padding: 8px 16px; }
.submenu a:hover { background: #f7f8fa; color: var(--red); }
.sub-toggle { display: none; }
.header-tools { display: flex; align-items: center; align-self: stretch; gap: 8px; flex: none; margin-left: auto; }
.icon-btn, .text-link {
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn { width: 36px; height: 36px; padding: 6px; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.text-link { color: var(--red); font-weight: 700; padding: 8px; white-space: nowrap; }
.lang { position: relative; display: flex; align-items: center; align-self: stretch; }
.lang-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 1; width: 170px;
  max-height: min(400px, calc(100dvh - var(--header) - 16px)); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); padding: 4px 0;
}
.lang:hover .lang-menu, .lang:focus-within .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 20px; min-height: 30px; padding: 4px 10px; font-size: 14px; white-space: nowrap; }
.lang-menu .lang-image { flex: none; width: 18px; height: 14px; object-fit: contain; }
.lang-menu a:hover, .lang-menu .is-on a { color: var(--red); }
.search-panel { display: none; border-top: 1px solid var(--line); background: #fff; padding: 16px 0 20px; }
body.search-open .search-panel { display: block; }
.search-panel .wrap, .search-inline { display: flex; gap: 8px; }
.search-panel input, .search-inline input, .inquiry-form input, .inquiry-form textarea {
  width: 100%; border: 1px solid #d5d8de; border-radius: 4px; padding: 10px 12px; background: #fff;
}
.search-panel button, .btn {
  border: 0; background: var(--red); color: #fff; border-radius: 4px; padding: 10px 18px; cursor: pointer;
}
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #d5d8de; }
.btn.light { background: #fff; color: var(--red); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; margin: 6px 8px; background: var(--ink); }

.hero { position: relative; background: #123; }
.hero-slide {
  display: none; position: relative; min-height: 420px; background: #1d4a3a center/cover no-repeat; color: #fff;
  align-items: flex-end;
}
.hero-slide.is-on { display: flex; }
.hero:not(.page-hero) .hero-track { display: grid; }
.hero:not(.page-hero) .hero-slide {
  display: flex;
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .8s ease-in-out, visibility 0s linear .8s;
}
.hero:not(.page-hero) .hero-slide.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .hero:not(.page-hero) .hero-slide { transition: none; }
}
.hero.page-hero .hero-slide { min-height: 0; background-image: none !important; }
.hero.page-hero .hero-slide.is-on { display: grid; }
.page-hero .hero-image { grid-area: 1 / 1; width: 100%; height: auto; }
.page-hero .hero-copy { grid-area: 1 / 1; align-self: end; min-width: 0; padding: clamp(16px, 4vw, 64px) 0; }
.hero-hit { position: absolute; inset: 0; z-index: 1; }
.hero-copy { position: relative; z-index: 2; padding: 64px 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-copy h1, .hero-copy p { margin: 0; }
.hero-copy h1 { font-size: 40px; }
.hero-copy .hero-sub, .hero-copy .hero-desc { margin-top: 8px; }
.hero-copy .hero-desc { max-width: 640px; white-space: pre-wrap; }
.hero-copy .btn { margin-top: 16px; }
.hero-crumbs { position: absolute; z-index: 3; top: 20px; right: 0; left: 0; }
.hero-arrow {
  position: absolute; z-index: 4; top: 50%; width: 42px; height: 64px; border: 0; color: #fff;
  background: rgba(0,0,0,.28); cursor: pointer; transform: translateY(-50%);
}
.hero-arrow.prev { left: 0; }
.hero-arrow.next { right: 0; }
.hero-arrow::before { content: ""; display: block; width: 10px; height: 10px; margin: 0 auto; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.hero-arrow.prev::before { transform: rotate(-135deg); }
.hero-arrow.next::before { transform: rotate(45deg); }

.band { background: #fff; }
.section { padding: 48px 0; }
.section.dark { background: #111; color: #fff; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2, .block-title { margin: 0 0 6px; letter-spacing: .04em; }
.search-page .block-title { margin-top: 40px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head.light p { color: #c9cdd3; }
.scroller-box { position: relative; }
.scroller { display: flex; gap: 18px; overflow: auto; scroll-behavior: smooth; padding: 18px 42px; }
.scroller.cats { background: #fff; }
.cats-plain { padding: 0 0 24px; }
.cat { flex: 0 0 120px; text-align: center; color: var(--muted); font-size: 14px; }
.cat img { width: 84px; height: 84px; margin: 0 auto 8px; object-fit: contain; }
.cat-bar {
  display: flex; align-items: center; gap: 12px;
  width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; padding: 16px 0;
}
.cat-bar .scroller {
  flex: 1; min-width: 0; padding: 8px 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.cat-bar .scroller::-webkit-scrollbar { display: none; height: 0; }
.cat-bar .cat span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.35; max-height: 2.7em; word-break: break-word;
}
.cat-bar .scroller-btn {
  position: static; transform: none; flex: none;
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: none; background: #fff;
}
.cat-bar.is-scrollable .scroller-btn { display: inline-flex; }
.cat-bar .scroller-btn::before { margin: 0; }
.cat-bar .scroller-btn.prev::before { transform: rotate(-135deg); }
.cat-bar .scroller-btn.next::before { transform: rotate(45deg); }
.scroller-btn {
  position: absolute; top: 50%; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); cursor: pointer; transform: translateY(-50%);
}
.scroller-btn.prev { left: 0; }
.scroller-btn.next { right: 0; }
.scroller-btn::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto; border-top: 2px solid #333; border-right: 2px solid #333; }
.scroller-btn.prev::before { transform: rotate(-135deg); margin-left: 12px; }
.scroller-btn.next::before { transform: rotate(45deg); margin-right: 12px; }
.hot-panel { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }
.hot-bar { display: flex; align-items: center; gap: 12px; }
.hot-bar .scroller {
  flex: 1; min-width: 0; padding: 8px 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.hot-bar .scroller::-webkit-scrollbar { display: none; height: 0; }
.hot-bar .scroller-btn {
  position: static; transform: none; flex: none;
  display: none; align-items: center; justify-content: center;
}
.hot-bar.is-scrollable .scroller-btn { display: inline-flex; }
.hot-bar .scroller-btn::before,
.hot-bar .scroller-btn.prev::before,
.hot-bar .scroller-btn.next::before { margin: 0; }
.hot-bar .scroller-btn.prev::before { transform: rotate(-135deg); }
.hot-bar .scroller-btn.next::before { transform: rotate(45deg); }
.product-tile, .product-tile a, .product-tile h2 { color: var(--ink); }

.wide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-wide, .product-tile, .news-card {
  background: #fff; border-radius: 8px;
}
.product-wide { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 16px; padding: 16px; }
.product-wide .photo { background: transparent; }
.product-wide img, .product-tile img, .news-card img { width: 100%; height: 160px; object-fit: cover; background: #f3f5f7; }
.product-wide .photo img { height: 240px; object-fit: contain; background: transparent; }
.product-wide .product-copy { min-width: 0; display: flex; flex-direction: column; }
.product-wide .product-copy > .btn { display: block; width: 50%; align-self: center; margin-top: auto; background: #1677ff; }
.product-wide .product-copy > .btn:hover { background: #0958d9; }
.product-copy h2, .product-tile h2, .news-card h3 { margin: 8px 0; font-size: 16px; line-height: 1.4; }
.product-copy .summary {
  margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0 0 12px; }
.specs div { display: flex; gap: 8px; font-size: 13px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.tile-grid, .news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-tile { position: relative; padding: 12px; }
.product-tile h2 { min-height: 44px; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 12px; padding: 2px 8px; }
.tiles .product-tile { flex: 0 0 240px; }
.contact-band { background: var(--navy) center/cover; color: #fff; text-align: center; padding: 64px 0; }
.contact-band h2 { margin: 0 0 8px; font-size: 32px; }
.about-band { background: linear-gradient(rgba(10, 25, 45, .65), rgba(10, 25, 45, .65)), url("/static/img/aboutus_bg_power.jpg") center/cover no-repeat; color: #fff; text-align: center; padding: 72px 0; }
.about-band h2 { margin: 0 0 16px; font-size: 32px; }
.about-band p { max-width: 760px; margin: 0 auto 28px; line-height: 1.9; }
.news-card { display: block; overflow: hidden; }
.news-card { padding-bottom: 12px; }
.news-card img { height: 180px; }
.news-card time, .news-card p, .news-date { color: var(--muted); font-size: 13px; }
.news-card h3, .news-card time, .news-card p { padding: 0 12px; }
.page-head { background: var(--navy) url("/static/img/hero.svg") center/cover; color: #fff; padding: 28px 0 32px; }
.page-head.compact { padding: 14px 0; background: #fff; color: var(--muted); }
.page-head h1 { margin: 8px 0 0; font-size: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.8); }
.page-head.compact .crumbs { color: var(--muted); }
.crumbs .sep { opacity: .7; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.detail-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 34px); overflow-wrap: anywhere; }
.detail-heading .summary { margin: 12px 0 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.product-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.product-gallery-image { display: grid; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: zoom-in; }
.product-gallery-image img { width: 100%; height: 300px; object-fit: contain; }
.product-gallery-image:hover { border-color: var(--muted); }
.product-gallery-image:focus-visible { outline: 2px solid #1677ff; outline-offset: 3px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-specs { margin: 0; }
.detail-body { margin-top: 32px; margin-bottom: 32px; }
.detail-body .prose { max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; }
.detail-specs div { min-width: 0; overflow-wrap: anywhere; }
body.product-preview-open { overflow: hidden; }
.product-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.product-lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.product-lightbox-content { position: relative; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; width: 100%; height: 100%; padding: 64px 72px; }
.product-lightbox-image { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; user-select: none; touch-action: pan-y; }
.product-lightbox-close, .product-lightbox-arrow { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }
.product-lightbox-close { top: 12px; right: 16px; }
.product-lightbox-arrow { top: calc(50% - 24px); }
.product-lightbox-arrow.prev { left: 12px; }
.product-lightbox-arrow.next { right: 12px; }
.product-lightbox-arrow[hidden] { display: none; }
.product-lightbox-close:hover, .product-lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.product-lightbox-close:focus-visible, .product-lightbox-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.product-lightbox-counter { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; }
@media (max-width: 600px) {
  .detail-specs { grid-template-columns: minmax(0, 1fr); }
  .product-gallery-image img { height: 240px; }
  .product-lightbox-content { padding: 64px 48px; }
  .product-lightbox-arrow { width: 36px; height: 44px; font-size: 30px; }
  .product-lightbox-arrow.prev { left: 6px; }
  .product-lightbox-arrow.next { right: 6px; }
}
.prose p, .lead { font-size: 16px; }
.article-title { margin-top: 0; }
.prev-next { display: grid; gap: 8px; margin-top: 28px; }
.contact-grid, .sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.inquiry-visual { position: relative; min-width: 0; align-self: stretch; max-height: 280px; overflow: hidden; border-radius: 8px; }
.inquiry-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.inquiry-content { min-width: 0; align-self: start; }
.inquiry-content > h2 { margin-top: 0; }
.sitemap { grid-template-columns: repeat(3, 1fr); }
.sitemap ul, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.news-list { display: grid; gap: 10px; }
.news-list time { color: var(--muted); margin-right: 10px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 10px; background: #fff; border-radius: 4px; }
.pager .is-on { background: var(--red); color: #fff; }
.empty, .empty-page { text-align: center; color: var(--muted); padding: 24px 0; }
.notice { background: #e8f6ee; padding: 10px 12px; border-radius: 4px; }
.notice.warn { background: #fff1f0; }
.site-footer { background: var(--navy); color: #d5dbe3; padding-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.2fr; gap: 24px; }
.site-footer h2 { color: #fff; font-size: 16px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding: 16px 0 24px; font-size: 13px; }
.footer-bottom nav { display: flex; gap: 16px; }
.inquiry-form { display: grid; gap: 8px; }
.inquiry-form input:not([type="hidden"]), .inquiry-form button[type="submit"] { box-sizing: border-box; height: 44px; }
.inquiry-modal[hidden] { display: none; }
.inquiry-modal { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.inquiry-dialog { width: min(440px, 100%); background: #fff; border-radius: 8px; padding: 24px; position: relative; }
.inquiry-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.inquiry-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.inquiry-close:hover { background: #f3f5f7; }
.inquiry-close:focus-visible { outline: 2px solid #1677ff; outline-offset: 2px; }
.inquiry-dialog > h2 { padding-right: 32px; }
.dock { display: none; }

@media (max-width: 1100px) {
  .tile-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .brand { flex: 1 1 auto; min-width: 0; max-width: calc(100% - 52px); }
  .brand-logo { max-width: 100%; height: auto; }
  .nav-toggle { display: block; }
  .site-nav, .header-tools .text-link { display: none; }
  body.nav-open .site-nav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header)); overflow: auto;
  }
  .menu { flex-direction: column; padding: 8px 0 16px; }
  .menu-item > a { min-height: 44px; }
  .menu-item { display: grid; grid-template-columns: 1fr auto; }
  .sub-toggle { display: block; width: 44px; height: 44px; border: 0; background: transparent; }
  .sub-toggle::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto; border-right: 2px solid #333; border-bottom: 2px solid #333; transform: rotate(45deg); }
  .submenu { display: none; position: static; box-shadow: none; border: 0; grid-column: 1 / -1; }
  .menu-item.is-open > .submenu { display: block; }
  .wide-list, .detail, .contact-grid, .sitemap, .footer-grid { grid-template-columns: 1fr; }
  .inquiry-visual { height: 200px; }
  .product-wide { grid-template-columns: 1fr; }
  .hero-slide { min-height: 220px; }
  .hero-copy h1 { font-size: 28px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: #fff; border-top: 1px solid var(--line);
  }
  .dock a, .dock button { text-align: center; padding: 12px; border: 0; background: #fff; color: var(--red); font-weight: 700; }
  body { padding-bottom: 52px; }
  .tile-grid, .news-grid { grid-template-columns: 1fr 1fr; }
}
