:root {
  --primary: #0d4f9f;
  --primary-dark: #0a3d7c;
  --primary-deep: #092e5e;
  --accent: #f18d37;
  --accent-dark: #d9741d;
  --dark: #1c2b3a;
  --text: #3c4650;
  --muted: #7a8590;
  --light: #f4f7fb;
  --border: #e3e8ef;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 39, 63, 0.08);
  --font: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei",
    sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4, h5, h6 { color: var(--dark); line-height: 1.3; }
p { margin-bottom: 1em; }

/* ---------- top bar ---------- */
.topbar { background: var(--primary-deep); color: #cfe0f5; font-size: 13px; }
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 38px;
}
.topbar a { color: #fff; }
.topbar .lang-switch a + a::before { content: "|"; margin: 0 8px; color: #6f8ab0; }
.topbar .hotline { font-weight: 600; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 10px rgba(20, 39, 63, 0.08);
}
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 98px; padding: 12px 20px; }
.logo { display: flex; align-items: center; }
.logo img { max-width: 400px; max-height: 88px; width: auto; height: auto; }
.nav { display: flex; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 14px; font-weight: 600; font-size: 14px;
  color: var(--dark); letter-spacing: 0.5px;
}
.nav > li > a:hover, .nav > li.active > a, .nav > li > a.active { color: var(--primary); }
.nav > li.active > a::after, .nav > li > a.active::after {
  content: ""; display: block; height: 3px; width: 100%;
  background: var(--accent); border-radius: 2px; margin-top: 4px;
}
.nav .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a {
  display: block; padding: 8px 18px; font-size: 14px; color: var(--text);
}
.nav .dropdown a:hover, .nav .dropdown a.active { color: var(--primary); background: var(--light); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--dark); }

/* ---------- hero ---------- */
.hero { position: relative; height: 540px; overflow: hidden; background: var(--primary-deep); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero .slide.active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 46, 94, 0.18) 0%, rgba(9, 46, 94, 0.08) 55%, rgba(9, 46, 94, 0.42) 100%);
}
.hero .dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.hero .dots button {
  width: 34px; height: 4px; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255, 255, 255, 0.4); transition: background 0.2s;
}
.hero .dots button.active { background: var(--accent); }

/* ---------- video band ---------- */
.video-band { position: relative; height: 480px; overflow: hidden; background: var(--primary-deep); }
.video-band .video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band .video-overlay {
  position: absolute; inset: 0; background: rgba(9, 46, 94, 0.55);
  display: flex; align-items: center;
}
.video-band .video-overlay .container { width: 100%; text-align: center; }
.video-band h2 { color: #fff; font-size: 38px; margin-bottom: 28px; letter-spacing: 1px; }
.video-band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-band .num { font-size: 42px; font-weight: 700; color: #fff; }
.video-band .label { color: #d4e2f5; margin-top: 4px; }

/* ---------- image strip ---------- */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 40px;
  font-weight: 600; font-size: 14px; cursor: pointer; border: 0; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.light { background: var(--light); }
.section-title { text-align: center; margin-bottom: 46px; }
.section-title h2 { font-size: 40px; margin-bottom: 6px; }
.section-title .sub { color: var(--muted); }
.section-title .line {
  width: 52px; height: 4px; background: var(--accent); border-radius: 2px; margin: 14px auto 0;
}

/* stats */
.stats { background: linear-gradient(100deg, var(--primary) 0%, var(--primary-deep) 100%); color: #fff; padding: 52px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats .num { font-size: 42px; font-weight: 700; color: #fff; }
.stats .label { color: #bcd3f2; margin-top: 4px; }

/* service grid */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(20, 39, 63, 0.16); }
.card .thumb { height: 170px; overflow: hidden; background: var(--light); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 18px 20px 22px; }
.card .body h3 { font-size: 17px; margin-bottom: 8px; }
.card .body p { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.card .more { color: var(--primary); font-weight: 600; font-size: 13px; }

/* about split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-split img { border-radius: var(--radius); width: 100%; height: 420px; object-fit: cover; box-shadow: var(--shadow); }
.about-split h2 { font-size: 28px; margin-bottom: 16px; }
.about-split .why { margin-top: 18px; }
.about-split .why li { padding: 7px 0 7px 26px; position: relative; }
.about-split .why li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
}

/* news home */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-card .thumb { height: 180px; overflow: hidden; background: var(--light); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { color: var(--accent); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-size: 16px; margin-bottom: 10px; line-height: 1.45; }
.news-card .body p { color: var(--muted); font-size: 13.5px; flex: 1; }

/* partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.partners img {
  height: 108px; width: auto; cursor: zoom-in; transition: transform 0.25s;
}
.partners img:hover { transform: scale(1.08); }

/* ---------- sub pages ---------- */
.page-banner {
  background: linear-gradient(100deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff; padding: 52px 0 48px; text-align: center;
}
.page-banner h1 { color: #fff; font-size: 84px; }
.page-banner .crumb { color: #bcd3f2; font-size: 13.5px; margin-top: 8px; }
.page-banner .crumb a { color: #fff; }

.main-wrap { padding: 52px 0 80px; }
.main-m { display: flex; gap: 40px; align-items: flex-start; }
.sidebar { width: 270px; flex-shrink: 0; }
.sidebar .box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 26px;
}
.sidebar .box .title {
  background: var(--primary); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 18px;
}
.sidebar .box ul li a { display: block; padding: 12px 18px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.sidebar .box ul li a:hover, .sidebar .box ul li a.active { color: var(--primary); background: var(--light); border-left: 3px solid var(--accent); padding-left: 15px; }
.sidebar .latest li a { display: block; padding: 12px 18px; font-size: 13.5px; border-bottom: 1px solid var(--border); line-height: 1.5; }
.sidebar .latest li a:hover { color: var(--primary); }
.sidebar .latest .time { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.main-content { flex: 1; min-width: 0; }
.main-content .content-title { font-size: 36px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.main-content .content-image img { margin: 12px 0; border-radius: 8px; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table-wrap td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; }
.table-wrap tr:nth-child(even) { background: var(--light); }
.main-content ul { margin: 0 0 1em 22px; list-style: disc; }
.main-content ul li { margin-bottom: 4px; }

/* product list */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.prod-card .thumb { height: 200px; overflow: hidden; background: var(--light); }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 16px 18px; text-align: center; font-weight: 600; font-size: 15px; color: var(--dark); }

/* product detail */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.prod-detail .gallery img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prod-detail .info h1 { font-size: 36px; margin-bottom: 18px; }
.prod-detail .info .meta { display: grid; gap: 10px; margin-bottom: 20px; }
.prod-detail .info .meta div { display: flex; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.prod-detail .info .meta dt { width: 110px; color: var(--muted); font-weight: 600; }
.prod-detail .info .meta dd { flex: 1; }

/* news list */
.news-list .item {
  display: flex; gap: 22px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px; transition: all 0.25s;
}
.news-list .item:hover { box-shadow: var(--shadow); }
.news-list .item .thumb { width: 220px; height: 140px; overflow: hidden; border-radius: 8px; flex-shrink: 0; background: var(--light); }
.news-list .item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list .item h3 { font-size: 17px; margin-bottom: 8px; }
.news-list .item h3 a:hover { color: var(--primary); }
.news-list .item .time { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.news-list .item p { color: var(--muted); font-size: 14px; }

/* news detail */
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: 36px; margin-bottom: 10px; }
.article-head .time { color: var(--muted); font-size: 13.5px; }
.article-body { font-size: 15px; }
.content-video video { width: 100%; max-height: 480px; background: #000; border-radius: 10px; }

/* pagination */
.pagination { display: flex; gap: 10px; margin-top: 26px; }
.pagination a {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff;
}
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .item {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--border);
}
.contact-info .icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-info .item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-info .item p { color: var(--muted); font-size: 14px; margin: 0; }
.contact-qr { text-align: center; margin-top: 24px; }
.contact-qr img { width: 150px; border-radius: 10px; margin: 0 auto 8px; }

.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-box h3 { margin-bottom: 8px; }
.form-box .note { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.form-box label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-box input, .form-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; margin-bottom: 16px; transition: border 0.2s;
}
.form-box input:focus, .form-box textarea:focus { outline: none; border-color: var(--primary); }
.form-box textarea { min-height: 120px; resize: vertical; }

/* ---------- footer ---------- */
.footer { background: var(--primary-deep); color: #bcd3f2; padding: 60px 0 0; font-size: 14px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer .brand p { margin-top: 14px; color: #9db7d9; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: #fff; }
.footer .contact li { display: flex; gap: 10px; margin-bottom: 12px; color: #c9dcf4; }
.footer .qr { text-align: center; }
.footer .qr img { width: 110px; border-radius: 8px; margin: 0 auto 8px; }
.footer .qr span { font-size: 12.5px; color: #9db7d9; }
.footer .copyright { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; text-align: center; color: #8fa9cb; font-size: 13px; }

/* ---------- floating ---------- */
.float-tools { position: fixed; right: 18px; bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-tools a, .float-tools button {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 19px; box-shadow: var(--shadow); border: 0; cursor: pointer;
}
.float-tools a:hover, .float-tools button:hover { background: var(--primary-dark); }
.float-tools .msg-btn {
  width: auto; height: auto; border-radius: 22px; padding: 11px 16px;
  font-size: 13px; font-weight: 600; background: var(--accent); white-space: nowrap;
}
.float-tools .msg-btn:hover { background: var(--accent-dark); }
.float-tools .qr-pop {
  position: absolute; right: 58px; bottom: 0; background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); padding: 12px; display: none; text-align: center;
}
.float-tools .qr-pop.show { display: block; }
.float-tools .qr-pop img { width: 140px; border-radius: 6px; }
.float-tools .qr-pop span { font-size: 12px; color: var(--muted); display: block; margin-top: 6px; }
#toTop { background: var(--accent); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.86);
  display: none; align-items: center; justify-content: center; z-index: 300;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0;
  color: #fff; font-size: 40px; cursor: pointer; line-height: 1;
}

/* ---------- message modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 400; padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px; padding: 30px; width: 100%; max-width: 440px;
  position: relative; max-height: 92vh; overflow-y: auto;
}
.modal-box h3 { font-size: 20px; margin-bottom: 6px; }
.modal-box .note { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.modal-box input, .modal-box textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; margin-bottom: 14px;
}
.modal-box textarea { min-height: 90px; resize: vertical; }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 28px; color: var(--muted); cursor: pointer; line-height: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header .container { min-height: 84px; }
  .logo img { max-width: 280px; max-height: 68px; }
  .page-banner h1 { font-size: 52px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: #fff; flex-direction: column; padding: 70px 20px 30px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15); transition: right 0.3s ease; overflow-y: auto;
  }
  .nav.open { right: 0; }
  .nav .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; display: none; }
  .nav li.open .dropdown { display: block; }
  .hero { height: 420px; }
  .video-band { height: 380px; }
  .video-band h2 { font-size: 28px; }
  .video-band .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split, .prod-detail, .contact-grid { grid-template-columns: 1fr; }
  .about-split img { height: 300px; }
  .main-m { flex-direction: column; }
  .sidebar { width: 100%; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .header .container { min-height: 72px; }
  .logo img { max-width: 220px; max-height: 56px; }
  .page-banner h1 { font-size: 40px; }
  .cards, .news-grid, .prod-grid { grid-template-columns: 1fr; }
  .topbar .welcome { display: none; }
  .topbar .container { justify-content: center; }
  .news-list .item { flex-direction: column; }
  .news-list .item .thumb { width: 100%; height: 170px; }
  .section { padding: 52px 0; }
}
