:root {
  --brand: #1a6ee6;
  --brand-dark: #0f4fb0;
  --brand-light: #eaf2ff;
  --ink: #1c2a3a;
  --muted: #6b7a90;
  --bg: #f5f8fd;
  --line: #e3ebf7;
  --white: #fff;
  --shadow: 0 10px 30px rgba(21, 60, 120, .08);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 76px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > li { position: relative; }
.main-nav > li > a { display: block; padding: 10px 16px; font-size: 16px; font-weight: 500; border-radius: 8px; transition: .2s; }
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--brand); background: var(--brand-light); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub-menu { position: absolute; top: 100%; left: 0; min-width: 168px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--muted); }
.sub-menu a:hover { color: var(--brand); background: var(--brand-light); }
.mega { min-width: 640px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; left: 50%; transform: translate(-50%, 6px); }
.has-sub:hover .mega { transform: translate(-50%, 0); }
.mega .mega-col { padding: 6px; }
.mega .mega-title { display: block; font-weight: 600; color: var(--ink); padding: 6px 8px; font-size: 15px; }
.mega .mega-col a { display: block; padding: 5px 8px; font-size: 13px; color: var(--muted); border-radius: 6px; }
.mega .mega-col a:hover { color: var(--brand); background: var(--brand-light); }
.header-phone { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 20px; white-space: nowrap; }
.header-phone small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: .2s; }

/* banner */
.banner { position: relative; height: 520px; overflow: hidden; background: #0b1b33; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.banner-slide.on { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 26, 54, .72) 0%, rgba(8, 26, 54, .35) 45%, rgba(8, 26, 54, 0) 100%); }
.banner-caption { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); left: 0; right: 0; }
.banner-caption .container { color: #fff; }
.banner-caption h2 { font-size: 46px; line-height: 1.25; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px; }
.banner-caption p { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 560px; }
.banner-caption .btn { margin-top: 28px; }
.banner-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.banner-dots span { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); cursor: pointer; }
.banner-dots span.on { background: #fff; }

.btn { display: inline-block; padding: 12px 28px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 500; transition: .2s; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: #fff; color: var(--brand); }

/* section */
.section { padding: 72px 0; }
.section.soft { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .en { font-size: 13px; letter-spacing: 3px; color: var(--brand); text-transform: uppercase; }
.section-head h2 { font-size: 34px; font-weight: 700; margin: 6px 0 12px; }
.section-head p { color: var(--muted); }
.section-head .line { width: 46px; height: 3px; background: var(--brand); border-radius: 2px; margin: 16px auto 0; }

/* product tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tabs button { padding: 10px 26px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: .2s; }
.tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(26, 110, 230, .25); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.product-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: .25s; }
.product-card:hover { transform: translateY(-4px); border-color: #bcd4fb; box-shadow: var(--shadow); }
.product-card .p-icon { width: 46px; height: 46px; object-fit: contain; margin-bottom: 14px; }
.product-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 13px; height: 44px; overflow: hidden; }
.product-card .more { margin-top: 14px; color: var(--brand); font-size: 13px; }
.center-more { text-align: center; margin-top: 38px; }
.link-more { color: var(--brand); font-weight: 500; }
.link-more::after { content: " →"; }

/* about */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-img img { border-radius: 16px; box-shadow: var(--shadow); }
.about-text .en { color: var(--brand); letter-spacing: 3px; font-size: 13px; }
.about-text h2 { font-size: 32px; margin: 8px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-stats { display: flex; gap: 34px; margin: 26px 0 28px; }
.about-stats b { display: block; font-size: 30px; color: var(--brand); line-height: 1.2; }
.about-stats span { font-size: 13px; color: var(--muted); }

/* article cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card .thumb { display: block; height: 178px; background: var(--brand-light); overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card .card-body { padding: 20px; }
.article-card .cat { font-size: 12px; color: var(--brand); background: var(--brand-light); padding: 3px 10px; border-radius: 999px; }
.article-card h3 { font-size: 16px; margin: 12px 0 8px; line-height: 1.5; height: 48px; overflow: hidden; }
.article-card h3 a:hover { color: var(--brand); }
.article-card p { font-size: 13px; color: var(--muted); height: 44px; overflow: hidden; }
.article-card .meta { margin-top: 12px; font-size: 12px; color: #97a3b6; display: flex; justify-content: space-between; }

/* news rows */
.news-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; }
.news-row { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-row .tag { flex: none; font-size: 12px; color: var(--brand); border: 1px solid #c9dcfb; border-radius: 4px; padding: 2px 8px; }
.news-row .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-row .t a:hover { color: var(--brand); }
.news-row time { flex: none; color: #97a3b6; font-size: 13px; }

/* footer */
.site-footer { background: #16233a; color: #a8b6c9; padding: 56px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { margin-bottom: 12px; }
.footer-contact b { color: #fff; font-size: 22px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; text-align: center; color: #7d8da4; font-size: 13px; }

/* page hero + list */
.page-hero { position: relative; padding: 74px 0; background: linear-gradient(120deg, #0f4fb0, #1a6ee6 60%, #4f9bff); color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.page-hero h1 { font-size: 36px; margin-bottom: 10px; }
.crumb { font-size: 14px; color: rgba(255, 255, 255, .82); }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb i { margin: 0 8px; font-style: normal; opacity: .6; }

.layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.side-box h3 { font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); margin-bottom: 8px; }
.side-cats li { border-bottom: 1px dashed var(--line); }
.side-cats li:last-child { border-bottom: 0; }
.side-cats a { display: block; padding: 11px 0; color: var(--muted); }
.side-cats a:hover, .side-cats a.on { color: var(--brand); }
.side-cats .sub a { padding-left: 16px; font-size: 13px; }
.rank-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list .no { flex: none; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; background: var(--brand-light); color: var(--brand); font-size: 12px; margin-top: 3px; }
.rank-list a { color: var(--muted); }
.rank-list a:hover { color: var(--brand); }

.list-card { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; transition: .2s; }
.list-card:hover { border-color: #bcd4fb; box-shadow: var(--shadow); }
.list-card .pic { flex: none; width: 200px; height: 132px; border-radius: 10px; overflow: hidden; background: var(--brand-light); }
.list-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.list-card:hover .pic img { transform: scale(1.04); }
.list-card .info { display: flex; flex-direction: column; }
.list-card h3 { font-size: 18px; margin-bottom: 8px; }
.list-card h3 a:hover { color: var(--brand); }
.list-card p { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.list-card .bottom { margin-top: auto; display: flex; justify-content: space-between; color: #97a3b6; font-size: 12px; padding-top: 12px; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 34px 0 10px; flex-wrap: wrap; }
.pager a { min-width: 38px; height: 38px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 14px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* article detail */
.detail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.detail-head h1 { font-size: 30px; line-height: 1.4; margin-bottom: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #97a3b6; font-size: 13px; }
.article-body { font-size: 16px; line-height: 1.9; color: #2c3a4d; }
.article-body p { margin: 0 0 16px; }
.article-body img { margin: 18px auto; border-radius: 8px; }
.article-body h2, .article-body h3 { margin: 24px 0 12px; }
.article-body a { color: var(--brand); }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 10px; }
.detail-foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.detail-foot a:hover { color: var(--brand); }

.single-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.product-detail .cover { border-radius: var(--radius); overflow: hidden; background: var(--brand-light); }
.product-detail .cover img { width: 100%; }
.product-detail h1 { font-size: 30px; margin-bottom: 16px; }
.product-detail .summary { color: var(--muted); margin-bottom: 24px; }
.feature-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.feature-list li::before { content: "✓"; color: var(--brand); margin-right: 8px; }

/* responsive */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-caption h2 { font-size: 36px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); display: none; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 12px 8px; }
  .sub-menu, .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding-left: 18px; min-width: 0; }
  .main-nav > li.open .sub-menu, .main-nav > li.open .mega { display: block; }
  .mega { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
  .banner { height: 400px; }
  .banner-caption h2 { font-size: 28px; }
  .banner-caption p { font-size: 15px; }
  .about-wrap, .layout, .product-detail { grid-template-columns: 1fr; }
  .list-card .pic { width: 132px; height: 92px; }
  .detail, .single-page { padding: 24px 20px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 26px; }
}
@media (max-width: 620px) {
  .product-grid, .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .list-card .pic { width: 104px; height: 78px; }
  .news-row .tag { display: none; }
  .page-hero h1 { font-size: 28px; }
}
