:root {
  --blue: #1a78c2;
  --blue-d: #155f9c;
  --ink: #3c4450;
  --muted: #8b93a0;
  --line: #e7ebf0;
  --bg: #f4f6f8;
  --card: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { height: 78px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #f5a623, #1a78c2);
  color: #fff; font-size: 22px; display: grid; place-items: center; font-weight: 700;
}
.logo-img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 20px; letter-spacing: 1px; }
.logo-text small { color: var(--muted); font-size: 12px; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; height: 34px; padding: 0 10px; }
.main-nav { display: flex; align-items: center; margin-left: auto; height: 100%; }
.main-nav > a, .nav-item > a {
  display: flex; align-items: center; height: 78px; padding: 0 16px;
  color: #4b5563; font-size: 16px; position: relative;
}
.main-nav > a.on, .nav-item.on > a, .main-nav > a:hover, .nav-item > a:hover { color: var(--blue); }
.main-nav > a.on::after, .nav-item.on > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--blue);
}
.nav-item { position: relative; }
.dropdown {
  display: none; position: absolute; top: 78px; left: 0; min-width: 220px;
  background: #fff; box-shadow: 0 12px 30px rgba(20, 50, 90, .12); padding: 8px 0; z-index: 30;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 16px; color: #555; font-size: 14px; white-space: nowrap; }
.dropdown a:hover { background: #f4f8fc; color: var(--blue); }
.nav-item.mega .dropdown { width: 640px; left: auto; right: 0; padding: 12px; columns: 2; }
.nav-item.mega .dropdown a { break-inside: avoid; }

.hero { position: relative; height: 380px; background: #1a78c2; overflow: hidden; }
.is-home .hero { height: 490px; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  background:
    radial-gradient(circle at 16% 42%, rgba(255,255,255,.2), transparent 34%),
    linear-gradient(115deg, rgba(255,255,255,.12) 0 22%, transparent 22%),
    linear-gradient(180deg, #3aa0ea, #1669b8);
  color: inherit;
}
.slide::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 62%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 420' fill='none'><path d='M0 64h110v40h70' stroke='white' stroke-opacity='.5' stroke-width='1.4'/><path d='M0 150h150v30h90v46h70' stroke='white' stroke-opacity='.38' stroke-width='1.2'/><path d='M24 250h120v36h80' stroke='white' stroke-opacity='.42' stroke-width='1.2'/><path d='M300 40v70h80v28' stroke='white' stroke-opacity='.32' stroke-width='1.2'/><circle cx='110' cy='104' r='3' fill='white' fill-opacity='.7'/><circle cx='240' cy='180' r='3' fill='white' fill-opacity='.55'/><circle cx='224' cy='286' r='2.4' fill='%237ee0c0' fill-opacity='.8'/><rect x='150' y='86' width='52' height='34' rx='2' stroke='white' stroke-opacity='.55'/><path d='M142 96h8M142 104h8M142 112h8M202 96h8M202 104h8M202 112h8' stroke='white' stroke-opacity='.55'/><rect x='250' y='250' width='26' height='16' rx='1' stroke='white' stroke-opacity='.4'/><rect x='40' y='320' width='16' height='7' fill='white' fill-opacity='.28'/><rect x='62' y='320' width='16' height='7' fill='white' fill-opacity='.16'/></svg>");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 640px auto;
}
.slide.on { opacity: 1; z-index: 1; }
.slide.tone-2 { background: radial-gradient(circle at 18% 30%, rgba(255,255,255,.22), transparent 32%), linear-gradient(160deg, #57b4f3, #0e62ad 70%); }
.slide.tone-3 { background: radial-gradient(circle at 12% 60%, rgba(255,255,255,.16), transparent 30%), linear-gradient(200deg, #7ec8f8 0%, #1a78c2 48%, #0d4f8f 100%); }
.slide-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.slide-copy {
  background: rgba(255,255,255,.46);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 14px 36px rgba(8, 40, 80, .14), inset 0 1px 0 rgba(255,255,255,.75);
  padding: 28px 32px; max-width: 460px; margin-left: auto;
}
.slide-copy h2 { margin: 0 0 10px; font-size: 34px; font-weight: 500; color: #1a3f68; letter-spacing: 1px; }
.slide-copy p { margin: 0; color: #3e5164; font-size: 16px; line-height: 1.7; }
.slide-art {
  width: 340px; height: 210px; flex: none; position: relative;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.34), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 16px 40px rgba(6, 30, 60, .16);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  padding: 12px 14px;
}
.slide-art svg { width: 100%; height: 100%; display: block; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 64px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.2); color: #fff; font-size: 32px; cursor: pointer;
  backdrop-filter: blur(8px);
}
.hero-prev { left: 12px; } .hero-next { right: 12px; }
.hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
body:not(.is-home) .hero-dots { bottom: 52px; }
.layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; margin-top: 0; position: relative; z-index: 2; padding-bottom: 40px; }
.side { margin-top: -42px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); padding: 0; cursor: pointer; }
.dot.on { background: #f5c518; }
.hero-tools {
  display: none;
  position: absolute; z-index: 4; top: 16px; left: max(16px, calc(50% - 590px));
  align-items: center; gap: 14px; color: #fff;
}
.search-box { display: flex; background: rgba(255,255,255,.72); height: 36px; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.search-box input { border: 0; width: 190px; padding: 0 10px; outline: none; color: #333; }
.search-box button { width: 40px; border: 0; background: var(--blue); color: #fff; cursor: pointer; }

.sec-title { text-align: center; font-size: 28px; font-weight: 400; color: #555; margin: 54px 0 28px; letter-spacing: 2px; }
.sec-title::before {
  content: "";
  display: block; width: 72px; height: 10px; margin: 0 auto 12px;
  background:
    linear-gradient(#8eb8d8, #8eb8d8) left 4px / 22px 1.5px no-repeat,
    linear-gradient(#1a78c2, #1a78c2) 26px 0 / 18px 10px no-repeat,
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) 29px 3px / 12px 4px no-repeat,
    linear-gradient(#8eb8d8, #8eb8d8) right 4px / 22px 1.5px no-repeat;
  opacity: .8;
}
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.products.in-page { grid-template-columns: repeat(3, 1fr); }
.p-card { text-align: center; }
.p-card h3 { margin: 10px 0 6px; font-size: 15px; font-weight: 500; color: #444; line-height: 1.5; }
.p-card p { margin: 0; color: #9aa3ad; font-size: 13px; line-height: 1.7; min-height: 44px; }
.p-card:hover h3 { color: var(--blue); }
.p-cover {
  height: 196px; display: grid; place-items: center; position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(232, 242, 250, .72));
  border: 1px solid rgba(176, 206, 228, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.p-cover::before {
  content: "";
  position: absolute; inset: 7px; pointer-events: none; opacity: .7;
  background:
    linear-gradient(#8eb6d6, #8eb6d6) left top / 16px 1px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) left top / 1px 16px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) right top / 16px 1px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) right top / 1px 16px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) left bottom / 16px 1px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) left bottom / 1px 16px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) right bottom / 16px 1px no-repeat,
    linear-gradient(#8eb6d6, #8eb6d6) right bottom / 1px 16px no-repeat;
}
.p-cover img { max-height: 176px; max-width: 88%; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.p-cover.lg { height: 360px; }
.p-cover.lg img { max-height: 328px; max-width: 100%; }
.p-cover.sm { height: 96px; }
.p-cover.sm img { max-height: 84px; max-width: 92%; }
.more-line { text-align: center; margin: 28px 0 10px; }
.more-line a { color: var(--blue); }

.device { width: 132px; height: 96px; position: relative; display: block; }
.device::before, .device::after { content: ""; position: absolute; }
.d-0::before { left: 28px; right: 28px; top: 8px; bottom: 18px; border: 3px solid #607086; border-radius: 8px; background: #f4f7fb; }
.d-0::after { left: 18px; right: 18px; bottom: 8px; height: 16px; background: #1a78c2; border-radius: 8px; }
.d-1::before { inset: 16px 18px; background: #eef3f8; border: 3px solid #607086; }
.d-1::after { width: 22px; height: 18px; left: 36px; top: 38px; background: #f5c518; }
.d-2::before { left: 16px; right: 16px; top: 18px; height: 58px; background: #243140; border-radius: 4px; }
.d-2::after { width: 8px; height: 8px; border-radius: 50%; background: #3dca7a; left: 28px; top: 40px; box-shadow: 16px 0 0 #e35d5d, 32px 0 0 #f0c14a; }
.d-3::before { width: 70px; height: 48px; border: 8px solid #1a78c2; border-radius: 30px; left: 18px; top: 18px; border-right-color: transparent; }
.d-3::after { width: 18px; height: 28px; background: #607086; right: 28px; top: 34px; border-radius: 6px; }

.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.a-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(190, 214, 232, .8);
  min-height: 210px; display: flex; flex-direction: column;
  backdrop-filter: blur(8px);
}
.a-card span, .a-card img { height: 140px; display: grid; place-items: center; color: #fff; font-size: 22px; letter-spacing: 2px; }
.a-card.tone-0 span { background: linear-gradient(135deg, #1a78c2, #49b0f0); }
.a-card.tone-1 span { background: linear-gradient(135deg, #0e5fa8, #3d8fd0); }
.a-card.tone-2 span { background: linear-gradient(135deg, #155f9c, #7ec8f8); }
.a-card.tone-3 span { background: linear-gradient(135deg, #123e68, #1a78c2); }
.a-card img { width: 100%; object-fit: cover; }
.a-card h3 { margin: 12px 14px 4px; font-size: 16px; font-weight: 500; }
.a-card p { margin: 0 14px 14px; color: var(--muted); line-height: 1.6; }

.customers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 48px; }
.customers a {
  border: 1px solid rgba(190, 214, 232, .85); min-height: 72px; display: grid; place-items: center; color: #667;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(8px);
}
.customers a:hover { border-color: var(--blue); color: var(--blue); }

.band {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.band-call {
  padding-bottom: 28px;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(226,238,248,.74) 42%, rgba(255,255,255,.88)),
    url("/static/img/products/scene-desk.jpg");
  background-position: center 20%;
}
.band-net {
  padding-bottom: 36px;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(244,248,252,.86)),
    url("/static/img/products/scene-cable.jpg");
}
.band .sec-title { margin-top: 40px; }
.home-main { position: relative; overflow: hidden; }
.tech-float {
  position: absolute; right: -30px; top: 120px; width: 240px;
  opacity: .16; pointer-events: none; z-index: 0;
}
.home-main .container { position: relative; z-index: 1; }
.site-footer {
  color: #667; padding: 28px 0 36px; margin-top: 0; line-height: 1.9; font-size: 13px;
  border-top: 1px solid rgba(180, 206, 226, .45);
  background:
    linear-gradient(180deg, rgba(247,248,250,.94), rgba(247,248,250,.9)),
    url("/static/img/products/scene-cable.jpg") center / cover no-repeat;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--blue); margin-right: 12px; }

.side-title { background: #1f6fb5; color: #fff; text-align: center; padding: 14px 10px; font-size: 16px; }
.side-menu { list-style: none; margin: 0; padding: 0; background: #fff; }
.side-menu a { display: block; padding: 12px 16px; border-bottom: 1px solid #f0f2f5; color: #555; background: #fff; }
.side-menu a.on, .side-menu a:hover { color: var(--blue); background: #f5f9fd; }
.side-hot { margin-top: 16px; background: #fff; border: 1px solid var(--line); padding: 14px 16px; color: #888; }
.side-hot strong { display: block; color: var(--blue); font-size: 18px; margin: 2px 0 10px; }
.main-panel { min-width: 0; }
.crumb { background: #fff; color: #99a; padding: 12px 16px; margin-bottom: 12px; }
.crumb a { color: #778; }
.news-item { display: grid; grid-template-columns: 168px 1fr; gap: 16px; background: #fff; padding: 16px; margin-bottom: 12px; }
.news-item.plain { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.news-item h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.news-item h2 a:hover { color: var(--blue); }
.news-item p { margin: 0 0 8px; color: #777; line-height: 1.7; }
.meta { color: #a0a6b0; font-size: 12px; }
.thumb { height: 112px; background: #e8eef5; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { color: var(--blue); font-size: 28px; }
.empty { background: #fff; padding: 28px; color: #99a; }
.detail { background: #fff; padding: 28px 32px 40px; }
.detail h1 { margin: 0 0 8px; font-size: 24px; font-weight: 500; text-align: center; }
.detail .meta { text-align: center; margin-bottom: 18px; }
.lead { color: #667; line-height: 1.8; }
.body { line-height: 1.9; color: #444; }
.body img { margin: 12px auto; }
.detail-cover img { margin: 0 auto 16px; max-height: 360px; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--blue); }
.subhead { font-size: 18px; font-weight: 500; margin: 28px 0 12px; }
.product-top { display: grid; grid-template-columns: 280px 1fr; gap: 24px; text-align: left; margin-bottom: 18px; }
.product-detail h1 { text-align: left; }
.model { color: var(--blue); }
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.specs th, .specs td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.specs th { width: 180px; background: #f7f9fb; font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; border: 0; height: 36px; padding: 0 16px; cursor: pointer; }
.btn.disabled { background: #c5c9d0; }
.file-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; padding: 16px; margin-bottom: 10px; }
.file-row h2 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.file-row p { margin: 0 0 6px; color: #778; }
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.branch { border: 1px solid var(--line); padding: 14px 16px; }
.branch h3 { margin: 0 0 6px; font-size: 16px; }
.branch p { margin: 0; color: #667; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; }
.contact-grid h1, .detail .meta { text-align: left; }
.form label, .contact-card { display: block; margin-bottom: 12px; color: #667; }
.form input, .form textarea, .form select { width: 100%; margin-top: 6px; border: 1px solid #dce2e8; padding: 8px 10px; color: #333; }
.contact-card { background: #f7f9fb; padding: 16px; }
.contact-card p { margin: 0 0 8px; }
.page-single { padding: 24px 0 48px; }
.result-list { list-style: none; padding: 0; margin: 0 0 12px; }
.result-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.result-list a { color: var(--blue); margin-right: 10px; }
.result-list span { color: #889; }
.alert { padding: 10px 12px; margin-bottom: 12px; }
.alert.ok { background: #eef8f0; color: #217a3a; }
.alert.err { background: #fdecec; color: #a12626; }
.pager { margin: 16px 0; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; }
.pagination li a, .pagination li span { display: block; min-width: 32px; text-align: center; padding: 6px 8px; background: #fff; border: 1px solid var(--line); color: #567; }
.pagination li.active span { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); height: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-item > a { height: 44px; }
  .dropdown, .nav-item.mega .dropdown { position: static; width: auto; columns: 1; box-shadow: none; display: block; }
  .hero, .is-home .hero { height: 320px; }
  .slide-copy h2 { font-size: 24px; }
  .slide-art, .hero-arrow { display: none; }
  .products, .products.in-page, .albums, .customers, .branches, .contact-grid, .layout, .product-top, .news-item { grid-template-columns: 1fr; }
  .customers { grid-template-columns: 1fr 1fr; }
  .layout, .side { margin-top: 0; }
  .hero-tools { left: 16px; right: 16px; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
}
