/* ============================================================
   数恒智能 Shwinsoft — 官网公共样式
   主题色：橙色 (#F97316) + 深墨灰蓝 (#1C2430) + 灰白底
   ============================================================ */

:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-deep: #C2410C;
  --orange-soft: #FFF3E8;
  --orange-line: #FDDCBF;
  --ink: #1C2430;
  --ink-2: #39424E;
  --ink-3: #5B6572;
  --gray-bg: #F5F6F8;
  --gray-bg-2: #EDEFF2;
  --line: #E4E7EB;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(28, 36, 48, .06);
  --shadow-hover: 0 10px 28px rgba(28, 36, 48, .12);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.35; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 6px; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--orange); color: var(--orange-dark); background: #fff; }
.btn-outline:hover { background: var(--orange-soft); }
.btn svg { width: 16px; height: 16px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--ink); color: #B8C0CB; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a:hover { color: var(--orange); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; fill: var(--orange); }

/* ---------- 头部导航 ---------- */
.header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 16px rgba(28,36,48,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo-text b { display: block; font-size: 20px; color: var(--ink); letter-spacing: 1px; line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 2.5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 16px; font-size: 15.5px; color: var(--ink-2);
  border-radius: 6px; position: relative;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--orange-dark); }
.nav > li.active > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--orange);
}
.nav li.has-sub > a::before {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px;
  vertical-align: 2px;
}
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; min-width: 220px; border-radius: var(--radius);
  box-shadow: var(--shadow-hover); border: 1px solid var(--line);
  padding: 8px; opacity: 0; visibility: hidden; transition: all .25s;
}
.nav li.has-sub:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-radius: 6px;
}
.dropdown a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.dropdown a svg { width: 15px; height: 15px; stroke: var(--orange); flex-shrink: 0; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero（首页） ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,20,28,.92) 0%, rgba(15,20,28,.72) 45%, rgba(15,20,28,.35) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.16); border: 1px solid rgba(249,115,22,.45);
  color: #FFB87A; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 { color: #fff; font-size: 42px; line-height: 1.3; margin-bottom: 18px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.sub { font-size: 17px; color: #C6CDD6; max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; max-width: 640px; }
.hero-stats .stat { flex: 1; }
.hero-stats b { display: block; font-size: 30px; color: #fff; font-weight: 700; }
.hero-stats b span { color: var(--orange); font-size: 20px; }
.hero-stats p { font-size: 13px; color: #9AA4B1; }

/* ---------- 子页面横幅 ---------- */
.page-banner {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border: 46px solid rgba(249,115,22,.14); border-radius: 50%;
}
.page-banner::after {
  content: ""; position: absolute; right: 120px; bottom: -110px; width: 220px; height: 220px;
  border: 30px solid rgba(255,255,255,.05); border-radius: 50%;
}
.page-banner .container { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 52px; }
.page-banner h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.page-banner p { color: #AEB7C2; font-size: 15.5px; max-width: 760px; }

/* 面包屑 */
.breadcrumb { font-size: 13.5px; color: #8B95A2; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: #59616D; }
.breadcrumb .cur { color: #D5DAE0; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-gray { background: var(--gray-bg); }
.section-dark { background: var(--ink); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head .sec-tag {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--orange-dark);
  background: var(--orange-soft); border: 1px solid var(--orange-line);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.sec-head h2 { font-size: 30px; margin-bottom: 12px; }
.sec-head p { color: var(--ink-3); font-size: 15.5px; }
.sec-head.left { text-align: left; margin: 0 0 36px; }

/* ---------- 服务卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: all .3s; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.svc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--orange-line); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 54px; height: 54px; border-radius: 10px; background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.svc-icon svg { width: 28px; height: 28px; stroke: var(--orange-dark); fill: none; stroke-width: 1.7; }
.svc-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.svc-card p { font-size: 14.5px; color: var(--ink-3); flex: 1; }
.svc-card .more {
  margin-top: 18px; font-size: 14px; color: var(--orange-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-card .more svg { width: 14px; height: 14px; stroke: currentColor; transition: transform .2s; }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ---------- 行业方案 ---------- */
.sol-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: all .3s;
}
.sol-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.sol-card .num { font-size: 15px; color: var(--orange); font-weight: 700; letter-spacing: 1px; }
.sol-card h3 { font-size: 17.5px; margin: 8px 0 10px; }
.sol-card p { font-size: 14px; color: var(--ink-3); }
.sol-card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sol-card .tags span {
  font-size: 12.5px; color: var(--ink-3); background: var(--gray-bg);
  padding: 3px 10px; border-radius: 4px;
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px; position: relative; transition: all .3s;
}
.step:hover { border-color: var(--orange-line); box-shadow: var(--shadow); }
.step .n {
  width: 38px; height: 38px; border-radius: 8px; background: var(--orange);
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 案例 ---------- */
.case-card {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: all .3s; display: flex; flex-direction: column;
}
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.case-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-bg); }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .thumb img { transform: scale(1.05); }
.case-card .info { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.case-card .cat { font-size: 12.5px; color: var(--orange-dark); background: var(--orange-soft); padding: 3px 10px; border-radius: 4px; align-self: flex-start; margin-bottom: 10px; }
.case-card h3 { font-size: 17px; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--ink-3); flex: 1; }

/* ---------- 数据带 ---------- */
.band { background: var(--ink); color: #fff; }
.band .container { display: flex; justify-content: space-between; align-items: center; padding-top: 46px; padding-bottom: 46px; flex-wrap: wrap; gap: 24px; }
.band .item { text-align: center; flex: 1; min-width: 150px; }
.band .item b { display: block; font-size: 36px; font-weight: 700; color: var(--orange); }
.band .item b small { font-size: 18px; }
.band .item p { font-size: 14px; color: #AEB7C2; margin-top: 4px; }

/* ---------- 关于我们 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.about-img img { width: 100%; }
.about-img .badge {
  position: absolute; left: 20px; bottom: 20px; background: var(--orange); color: #fff;
  padding: 12px 20px; border-radius: var(--radius); font-size: 14px; line-height: 1.45;
}
.about-img .badge b { font-size: 24px; display: block; }
.about-txt h2 { font-size: 28px; margin-bottom: 16px; }
.about-txt .lead { color: var(--ink); font-size: 16.5px; margin-bottom: 14px; }
.about-txt p { font-size: 15px; color: var(--ink-3); margin-bottom: 12px; }
.about-points { margin: 20px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-points li {
  display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2);
  background: var(--gray-bg); border-radius: 6px; padding: 9px 14px;
}
.about-points svg { width: 17px; height: 17px; stroke: var(--orange-dark); flex-shrink: 0; }

/* ---------- 新闻 ---------- */
.news-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-bottom: 34px; }
.news-feat-card {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff;
  padding: 30px; display: flex; flex-direction: column; justify-content: center;
  background-image: linear-gradient(135deg, var(--orange-soft) 0%, #fff 60%);
}
.news-feat-card .cat { color: var(--orange-dark); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.news-feat-card h3 { font-size: 22px; margin-bottom: 12px; }
.news-feat-card h3 a:hover { color: var(--orange-dark); }
.news-feat-card p { font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.news-feat-card time { font-size: 13px; color: #98A1AC; }

.news-list .news-item {
  display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.news-list .news-item:first-child { padding-top: 0; }
.news-item .date {
  flex-shrink: 0; width: 66px; text-align: center; background: var(--gray-bg);
  border-radius: 8px; padding: 8px 0; border: 1px solid var(--line);
}
.news-item .date b { display: block; font-size: 22px; color: var(--ink); line-height: 1.2; }
.news-item .date span { font-size: 12px; color: var(--ink-3); }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item h3 a:hover { color: var(--orange-dark); }
.news-item p { font-size: 14px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .tag { font-size: 12px; color: var(--orange-dark); background: var(--orange-soft); padding: 2px 8px; border-radius: 4px; margin-right: 8px; vertical-align: 2px; }

/* 新闻列表页 */
.news-page-list .news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 18px; transition: all .25s; }
.news-page-list .news-item:hover { box-shadow: var(--shadow-hover); border-color: var(--orange-line); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--ink-2); padding: 0 12px;
}
.pagination .cur { background: var(--orange); border-color: var(--orange); color: #fff; }
.pagination a:hover { border-color: var(--orange); color: var(--orange-dark); }

/* 新闻详情 */
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px 52px; }
.article h1 { font-size: 28px; margin-bottom: 14px; }
.article .meta { display: flex; gap: 20px; font-size: 13.5px; color: #98A1AC; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.article h2 { font-size: 21px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--orange); }
.article h3 { font-size: 17.5px; margin: 22px 0 10px; }
.article p { margin-bottom: 14px; font-size: 15.5px; }
.article ul { margin: 0 0 16px 0; }
.article ul li { padding-left: 22px; position: relative; margin-bottom: 8px; font-size: 15px; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 14.5px; }
.article table th, .article table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article table th { background: var(--gray-bg); color: var(--ink); }
.article .callout {
  background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: var(--radius);
  padding: 16px 20px; font-size: 14.5px; color: var(--ink-2); margin: 18px 0;
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: none; border: 0; cursor: pointer;
  font-size: 15.5px; font-weight: 700; color: var(--ink); text-align: left; font-family: var(--font);
}
.faq-q .ic { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .ic::before, .faq-q .ic::after {
  content: ""; position: absolute; background: var(--orange); border-radius: 2px; transition: transform .3s;
}
.faq-q .ic::before { width: 14px; height: 2px; left: 4px; top: 10px; }
.faq-q .ic::after { width: 2px; height: 14px; left: 10px; top: 4px; }
.faq-item.open .faq-q .ic::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 18px; font-size: 14.5px; color: var(--ink-3); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--orange-deep) 0%, var(--orange) 55%, #FB923C 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px;
}
.cta h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.88); font-size: 15px; }
.cta .btn { background: #fff; color: var(--orange-deep); font-weight: 700; }
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info .ci-item {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 16px; transition: all .25s;
}
.contact-info .ci-item:hover { border-color: var(--orange-line); box-shadow: var(--shadow); }
.ci-item .ico {
  width: 46px; height: 46px; border-radius: 10px; background: var(--orange-soft); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ci-item .ico svg { width: 22px; height: 22px; stroke: var(--orange-dark); fill: none; stroke-width: 1.7; }
.ci-item h4 { font-size: 16px; margin-bottom: 4px; }
.ci-item p { font-size: 14.5px; color: var(--ink-3); }
.ci-item p b { color: var(--ink); font-size: 17px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 36px; }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card > p { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.form-group label i { color: var(--orange-dark); font-style: normal; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px;
  font-size: 14.5px; font-family: var(--font); color: var(--ink); background: #fff; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-msg { font-size: 14px; margin-top: 10px; display: none; }
.form-msg.ok { display: block; color: #15803D; }
.form-msg.err { display: block; color: #B91C1C; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #9AA4B1; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: #77818E; }
.footer-about p { margin-top: 16px; font-size: 13.5px; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--orange); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; }
.footer-links a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 13.5px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--orange); flex-shrink: 0; margin-top: 4px; fill: none; stroke-width: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; font-size: 12.5px; color: #77818E; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- 返回顶部 ---------- */
.backtop {
  position: fixed; right: 26px; bottom: 30px; width: 44px; height: 44px;
  background: var(--orange); color: #fff; border-radius: 8px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 999;
  box-shadow: 0 6px 18px rgba(249,115,22,.4);
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* ---------- 左侧悬浮按钮 ---------- */
.side-float {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  z-index: 998; display: flex; flex-direction: column;
  filter: drop-shadow(0 6px 18px rgba(28,36,48,.14));
}
.side-float a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; padding: 13px 6px; gap: 6px;
  background: #fff; color: var(--ink-2); font-size: 12px; line-height: 1.3; text-align: center;
  border: 1px solid var(--line); border-left: 0; border-bottom: 0;
  transition: background .2s, color .2s;
}
.side-float a:last-child { border-bottom: 1px solid var(--line); }
.side-float a:first-child { border-radius: 0 8px 0 0; }
.side-float a:last-child { border-radius: 0 0 8px 0; }
.side-float a svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; transition: stroke .2s; }
.side-float a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.side-float a:hover svg { stroke: var(--orange); }
.side-float .tip {
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap;
  padding: 8px 14px; border-radius: 6px;
  opacity: 0; visibility: hidden; transition: all .2s; pointer-events: none;
}
.side-float .tip::before {
  content: ''; position: absolute; left: -4px; top: 50%;
  width: 9px; height: 9px; background: var(--ink);
  transform: translateY(-50%) rotate(45deg);
}
.side-float a:hover .tip, .side-float a.open .tip {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
}
@media (max-width: 860px) {
  .side-float a { width: 50px; padding: 10px 4px; font-size: 11px; }
  .side-float a svg { width: 17px; height: 17px; }
}

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 服务详情页 ---------- */
.svc-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.svc-hero h2 { font-size: 28px; margin-bottom: 14px; }
.svc-hero p { font-size: 15px; color: var(--ink-3); margin-bottom: 12px; }
.svc-hero .hl { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.svc-hero .hl div b { display: block; font-size: 26px; color: var(--orange-dark); }
.svc-hero .hl div p { font-size: 13px; margin: 0; }
.svc-hero .fig {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--gray-bg); aspect-ratio: 4 / 3;
}
.svc-hero .fig img { width: 100%; height: 100%; object-fit: cover; }

.feat-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; transition: all .25s; }
.feat-item:hover { border-color: var(--orange-line); box-shadow: var(--shadow); }
.feat-item .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 9px; background: var(--orange-soft); display: flex; align-items: center; justify-content: center; }
.feat-item .ico svg { width: 22px; height: 22px; stroke: var(--orange-dark); fill: none; stroke-width: 1.7; }
.feat-item h4 { font-size: 16px; margin-bottom: 5px; }
.feat-item p { font-size: 13.5px; color: var(--ink-3); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-tags span {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 18px; font-size: 14px; color: var(--ink-2); transition: all .2s;
}
.tech-tags span:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }

/* 侧边导航（服务详情） */
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.side-nav h4 { background: var(--ink); color: #fff; padding: 16px 22px; font-size: 16.5px; }
.side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; font-size: 14.5px; border-bottom: 1px solid var(--line); color: var(--ink-2);
}
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover, .side-nav a.cur { background: var(--orange-soft); color: var(--orange-deep); }
.side-nav a svg { width: 14px; height: 14px; stroke: currentColor; }

.layout-side { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.layout-side .side { position: sticky; top: 92px; }

/* 分类筛选（资讯中心侧栏） */
.side-nav a.news-cat span {
  font-size: 12px; color: var(--ink-3); background: var(--gray-bg);
  border-radius: 999px; padding: 1px 9px; line-height: 1.6;
}
.side-nav a.news-cat:hover span, .side-nav a.news-cat.cur span { background: rgba(249,115,22,.16); color: var(--orange-deep); }

/* 侧栏版块（热门资讯 / 最新资讯） */
.side-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 24px; }
.layout-side .side > :first-child { margin-top: 0; }
.side-block h4 { background: var(--ink); color: #fff; padding: 16px 22px; font-size: 16.5px; }
.side-block ul { padding: 6px 0; }
.side-block li { border-bottom: 1px dashed var(--line); }
.side-block li:last-child { border-bottom: 0; }
.side-block li a { display: flex; gap: 10px; padding: 12px 22px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; transition: all .2s; }
.side-block li a:hover { background: var(--orange-soft); color: var(--orange-deep); }
.side-block .rk {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px; margin-top: 2px;
  background: var(--gray-bg-2); color: var(--ink-3);
  font-size: 12px; font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-block li:nth-child(1) .rk, .side-block li:nth-child(2) .rk, .side-block li:nth-child(3) .rk { background: var(--orange); color: #fff; }
.side-block li a span { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-block li a time { flex-shrink: 0; font-size: 12px; color: #98A1AC; margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .about-wrap, .svc-hero, .contact-grid, .news-featured { grid-template-columns: 1fr; }
  .layout-side { grid-template-columns: 1fr; }
  .layout-side .side { position: static; }
}

@media (max-width: 860px) {
  .topbar-right { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 70px 16px 24px; box-shadow: -8px 0 24px rgba(0,0,0,.12);
    transition: right .3s; overflow-y: auto; z-index: 1001;
  }
  .nav.open { right: 0; }
  .nav > li > a { padding: 13px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > li.active > a::after { display: none; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; min-width: 0;
  }
  .nav li.has-sub.open .dropdown { display: block; }
  .nav-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000; display: none; }
  .nav-mask.show { display: block; }

  .hero h1 { font-size: 30px; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-stats .stat { flex: 0 0 40%; }
  .section { padding: 52px 0; }
  .sec-head h2 { font-size: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .article { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .page-banner h1 { font-size: 26px; }
}
