:root {
  --page: #f7fafb;
  --surface: #ffffff;
  --surface-soft: #eef7f4;
  --text: #1f2937;
  --muted: #64748b;
  --primary: #256d85;
  --primary-dark: #17485c;
  --accent: #41a67a;
  --accent-soft: #dff4eb;
  --border: #dbe7ef;
  --shadow: 0 18px 45px rgba(37, 109, 133, 0.1);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0; }

.topbar { background: var(--primary-dark); color: #eaf6f7; font-size: 13px; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-row { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--primary); color: #fff; }
.main-nav { flex: 1; display: flex; justify-content: center; gap: 2px; }
.main-nav a { padding: 9px 12px; color: var(--muted); border-radius: 8px; font-size: 14px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--surface-soft); }
.nav-cta, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--border); font-weight: 700; font-size: 14px; cursor: pointer; }
.btn.primary, .nav-cta { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn.secondary.light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn.small { min-height: 36px; padding: 0 14px; }
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 8px 12px; color: var(--primary); }

.hero-slider { position: relative; height: clamp(520px, 72vh, 760px); overflow: hidden; background: #0f2d38; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(9,31,41,.76), rgba(9,31,41,.3), rgba(9,31,41,.08)); color: #fff; }
.hero-copy { max-width: 680px; }
.hero-copy h1 { margin: 0 0 18px; font-size: clamp(38px, 6vw, 72px); line-height: 1.05; letter-spacing: 0; }
.hero-copy p { max-width: 620px; color: rgba(255,255,255,.88); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.45); border-radius: 99px; }
.hero-dots button.active { background: #fff; }

.stats-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; }
.stats-grid div { text-align: center; }
.stats-grid strong { display: block; color: var(--primary-dark); font-size: 30px; line-height: 1; }
.stats-grid span { color: var(--muted); font-size: 13px; }
.section { padding: 72px 0; }
.section.soft { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.18; letter-spacing: 0; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.text-link { color: var(--primary); font-weight: 800; white-space: nowrap; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card, .info-panel, .message-form, details, .recent-messages article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; }
.feature-card p, .info-panel p { margin: 0; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.compact { grid-template-columns: repeat(4, 1fr); }
.product-card { display: block; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8eef1; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover img { transform: scale(1.04); }
.product-image em, .badge { position: absolute; top: 12px; left: 12px; display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.product-body { display: grid; gap: 7px; padding: 16px; }
.product-meta, .spec-row { color: var(--muted); font-size: 12px; }
.product-body strong { min-height: 52px; font-size: 17px; line-height: 1.5; }
.product-body .desc { min-height: 44px; color: var(--muted); font-size: 14px; }
.price-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--primary-dark); font-weight: 800; }
.price-row b { color: var(--accent); font-size: 12px; white-space: nowrap; }

.scene-grid, .article-grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-grid.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scene-card, .article-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.scene-card img, .article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.scene-card div, .article-card { padding-bottom: 18px; }
.scene-card div { padding: 18px; }
.article-card strong, .article-card p, .article-card span, .article-card em { display: block; margin-inline: 18px; }
.article-card span { margin-top: 16px; color: var(--accent); font-size: 12px; font-weight: 800; }
.article-card strong { margin-top: 8px; color: var(--text); font-size: 18px; line-height: 1.35; }
.article-card p, .article-card em { color: var(--muted); font-size: 14px; font-style: normal; }

.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner-grid div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.partner-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.partner-grid span { font-size: 13px; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; }
.faq-list { display: grid; gap: 12px; }
details summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin-bottom: 0; }

.page-hero { position: relative; min-height: 330px; display: flex; align-items: end; padding: 72px 0 48px; background: linear-gradient(135deg, #eaf6f7, #f7fafb); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero.has-image { min-height: 410px; color: #fff; background: #102f3b; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,31,43,.75), rgba(8,31,43,.25)); }
.page-hero-content { position: relative; z-index: 1; max-width: 780px; margin-left: max(16px, calc((100vw - 1180px) / 2)); }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; letter-spacing: 0; }
.page-hero p:not(.eyebrow) { color: inherit; opacity: .86; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; color: inherit; opacity: .82; font-size: 13px; }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.list-toolbar p { color: var(--muted); margin: 0; }
.filter-panel { display: grid; gap: 12px; margin-bottom: 28px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
.filter-row strong { color: var(--primary-dark); font-size: 14px; }
.filter-row div { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row a { padding: 6px 10px; border-radius: 999px; background: var(--page); border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.filter-row a.active, .filter-row a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { padding: 42px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); }
.pager .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager .disabled { opacity: .45; }

.detail-top { padding: 34px 0 72px; background: var(--surface); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 38px; align-items: start; }
.main-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--page); }
.main-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--page); cursor: pointer; }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-summary { position: relative; background: var(--page); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.detail-summary .badge { position: static; margin-bottom: 14px; }
.detail-summary h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: 0; }
.detail-summary p { color: var(--muted); }
.detail-price { margin: 22px 0; color: var(--primary-dark); font-size: 28px; font-weight: 900; }
.spec-table { display: grid; gap: 0; border-top: 1px solid var(--border); margin: 0 0 24px; }
.spec-table div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.spec-table dt { color: var(--muted); font-size: 13px; }
.spec-table dd { margin: 0; font-weight: 700; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 13px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin-top: 0; }
.prose p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-list a { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--primary-dark); font-size: 13px; }
.prev-next { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 58px; }
.prev-next a { max-width: 46%; color: var(--primary); font-weight: 800; }
.prev-next a span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.prev-next .right { text-align: right; }

.article-list { display: grid; gap: 18px; }
.news-row { display: grid; grid-template-columns: 260px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.news-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.news-row h2 { margin: 0 0 8px; font-size: 24px; }
.news-row p { color: var(--muted); }
.article-detail { padding-top: 34px; background: var(--surface); }
.article-head { max-width: 880px; text-align: center; }
.article-head h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: 0; }
.article-head p { color: var(--muted); }
.article-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 28px 0; }

.about-grid, .contact-grid, .message-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.info-panel h2 { margin-top: 0; }
.info-panel .btn { margin-top: 18px; }
.message-form { display: grid; gap: 16px; }
.message-form label { display: grid; gap: 7px; color: var(--primary-dark); font-weight: 800; }
.message-form input, .message-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; background: var(--page); color: var(--text); outline: none; }
.message-form input:focus, .message-form textarea:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row img { height: 44px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
.recent-messages { margin-top: 44px; display: grid; gap: 12px; }
.recent-messages h2 { margin: 0; }
.recent-messages article span { margin-left: 8px; color: var(--muted); font-size: 13px; }
.not-found { min-height: 58vh; display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, #eef7f4, #fff); }
.not-found h1 { margin: 0; font-size: clamp(38px, 6vw, 72px); letter-spacing: 0; }

.site-footer { background: #173543; color: #dbeafe; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 34px; }
.footer-brand { color: #fff; margin-bottom: 12px; }
.site-footer p, .site-footer a { display: block; color: #c5d6df; margin: 7px 0; }
.site-footer h3 { margin-top: 0; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.16); color: #adc4cf; font-size: 13px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-cta { display: none; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 108px; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .product-grid, .product-grid.compact, .feature-grid, .article-grid.four { grid-template-columns: repeat(2, 1fr); }
  .scene-grid, .article-grid.three, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .about-grid, .contact-grid, .message-grid, .faq-grid { grid-template-columns: 1fr; }
  .page-hero-content { margin-inline: auto; width: min(1180px, calc(100% - 32px)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 8px 0; gap: 2px; }
  .nav-row { min-height: 64px; }
  .main-nav { top: 116px; }
  .hero-slider { height: 560px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { font-size: 16px; }
  .stats-grid, .product-grid, .product-grid.compact, .feature-grid, .scene-grid, .article-grid.three, .article-grid.four, .partner-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-head.row, .list-toolbar, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .filter-row { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .detail-summary { padding: 20px; }
  .spec-table div { grid-template-columns: 76px 1fr; }
  .thumb-list { grid-template-columns: repeat(4, 1fr); }
  .prev-next { flex-direction: column; }
  .prev-next a { max-width: none; }
  .prev-next .right { text-align: left; }
}
