/* ============================================================
   科讯科技 · 下载中心 —— 样式（沿用主程序「信任蓝 + 洁净白底」品牌）
   ============================================================ */
:root {
  --bg: #f3f6f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #eef4f6;
  --border: #d6dfe5;
  --border-soft: #e7edf1;
  --text: #1c2b36;
  --text-dim: #586a77;
  --text-faint: #8595a2;
  --accent: #2d6cdb;
  --accent-2: #2356b5;
  --accent-grad: linear-gradient(135deg, #3f86e6, #2d6cdb);
  --accent-soft: rgba(45, 108, 219, 0.12);
  --accent-line: rgba(45, 108, 219, 0.42);
  --danger: #dc5b5b;
  --success: #0ea371;
  --warn: #c98318;
  --warn-soft: #fbf2e0;
  --warn-line: #ecd3a3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px rgba(28, 43, 54, 0.14);
  --shadow-sm: 0 4px 14px rgba(28, 43, 54, 0.08);
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(rgba(28, 43, 54, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 43, 54, 0.028) 1px, transparent 1px),
    radial-gradient(1200px 680px at 50% -16%, rgba(45, 108, 219, 0.1), transparent 60%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: 0.2px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  user-select: none;
}

/* ───────── 顶栏 ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border-soft);
  overflow: hidden;
  flex-shrink: 0;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__logo--sm {
  width: 38px;
  height: 38px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 17px;
  font-weight: 800;
}

.brand__sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__contact {
  color: var(--accent) !important;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ───────── 英雄区 ───────── */
.hero {
  text-align: center;
  padding: 64px 22px 14px;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
}

.hero__slogan {
  margin: 14px 0 6px;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
}

.hero__desc {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 15px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 4px;
}

.chip {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.chip::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
  margin-right: 5px;
}

/* ───────── 通用区块标题 ───────── */
.section-head {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.section-sub {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ───────── 下载区 ───────── */
.downloads {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px 10px;
  scroll-margin-top: 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}

.dlcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, box-shadow 0.2s, border-color 0.2s;
}

.dlcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dlcard--primary {
  border: 1.5px solid var(--accent-line);
  background: linear-gradient(168deg, #ffffff 0%, #eef5ff 100%);
}

.dlcard--primary:hover {
  border-color: var(--accent);
}

.dlcard__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent-grad);
  border-radius: 999px;
  padding: 4px 13px;
  box-shadow: 0 6px 16px rgba(45, 108, 219, 0.32);
}

.dlcard__ribbon--amber {
  background: linear-gradient(135deg, #d9a23f, #bd7e16);
  box-shadow: 0 6px 16px rgba(189, 126, 22, 0.28);
}

.dlcard__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dlcard__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dlcard__icon svg {
  display: block;
}

.dlcard__icon--blue {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 8px 20px rgba(45, 108, 219, 0.32);
}

.dlcard__icon--logo {
  background: #fff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 7px;
  overflow: hidden;
}

.dlcard__icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dlcard__title {
  font-size: 20px;
  font-weight: 800;
}

.dlcard__tag {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.dlcard__lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.featlist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featlist li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.featlist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(14, 163, 113, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230ea371' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* 说明 / 警示面板（误报提示） */
.notice {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  margin-bottom: 16px;
}

.notice__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a6712;
  font-size: 14px;
  margin-bottom: 6px;
}

.notice p {
  margin: 0;
  font-size: 13px;
  color: #7a5a1e;
  line-height: 1.7;
}

.notice strong {
  color: #6b4d12;
}

.howto {
  margin-top: 10px;
  border-top: 1px dashed var(--warn-line);
  padding-top: 10px;
}

.howto summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-2);
  list-style: none;
}

.howto summary::-webkit-details-marker {
  display: none;
}

.howto summary::before {
  content: '▸ ';
}

.howto[open] summary::before {
  content: '▾ ';
}

.howto ol {
  margin: 10px 0 6px;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}

.howto__tip {
  font-size: 12.5px;
  color: var(--accent-2) !important;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 8px 10px;
}

/* ───────── 按钮 ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn--lg {
  padding: 15px 18px;
  font-size: 15.5px;
}

.btn--primary {
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 10px 24px rgba(45, 108, 219, 0.34);
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--primary:active {
  transform: translateY(1px);
}

/* 工具包下载按钮（高级·琥珀金，呼应「高级」徽标） */
.btn--toolkit {
  color: #fff;
  background: linear-gradient(135deg, #d9a23f, #bd7e16);
  box-shadow: 0 10px 24px rgba(189, 126, 22, 0.3);
}

.btn--toolkit:hover {
  filter: brightness(1.05);
}

.btn--toolkit:active {
  transform: translateY(1px);
}

/* 次要轮廓按钮（备用远程线路） */
.btn--outline {
  margin-top: 10px;
  color: var(--accent-2);
  background: transparent;
  border: 1px solid var(--accent-line);
  font-size: 13.5px;
  padding: 11px 16px;
}

.btn--outline:hover {
  background: var(--accent-soft);
}

.btn--outline:active {
  transform: translateY(1px);
}

/* 次要按钮（弹窗「取消」） */
.btn--ghost {
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.dlcard__foot {
  margin: 12px 0 0;
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
}

.state-badge {
  font-weight: 700;
}

.state-badge[data-ready='1'] {
  color: var(--success);
}

.state-badge[data-ready='0'] {
  color: var(--warn);
}

/* ───────── 工程师专用工具（弱化呈现，客户无需主动下载） ───────── */
.engineer-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 22px 0;
}

.engineer {
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}

.engineer__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.engineer__ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.engineer__title {
  font-size: 15px;
  font-weight: 800;
}

.engineer__note {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.engineer__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.toolbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
}

.toolbtn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.toolbtn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.toolbtn:hover svg {
  opacity: 1;
}

.toolbtn:active {
  transform: translateY(1px);
}

/* ───────── 我该选哪个 ───────── */
.help {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 22px 20px;
  scroll-margin-top: 80px;
}

.help .section-title {
  text-align: center;
  margin-bottom: 10px;
}

.help__sub {
  max-width: 560px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.help__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.help__col {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.help__col--a {
  border-top: 4px solid var(--accent);
}

.help__col--b {
  border-top: 4px solid var(--warn);
}

.help__badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-grad);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}

.help__badge--slate {
  background: linear-gradient(135deg, #d9a23f, #bd7e16);
}

.help__cardhead {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.help__cardhead .help__badge {
  margin-bottom: 0;
}

.help__ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}

.help__ico--blue {
  background: var(--accent-grad);
  box-shadow: 0 6px 14px rgba(45, 108, 219, 0.28);
}

.help__ico--amber {
  background: linear-gradient(135deg, #d9a23f, #bd7e16);
  box-shadow: 0 6px 14px rgba(189, 126, 22, 0.26);
}

.help__rec {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-grad);
  border-radius: 999px;
  padding: 3px 11px;
  box-shadow: 0 5px 14px rgba(45, 108, 219, 0.32);
}

.help__col--a .help__when strong {
  color: var(--accent);
}

.help__col--b .help__when strong {
  color: var(--warn);
}

.help__tip {
  max-width: 620px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 12px 18px;
  line-height: 1.7;
}

.help__when {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.help__list {
  margin: 0;
  padding-left: 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.help__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-dim);
}

.help__list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 900;
}

.help__col--b .help__list li::before {
  color: var(--warn);
}

.help__vs {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-faint);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

/* ───────── 服务范围 / 为什么选科讯 ───────── */
.service {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 22px 40px;
  scroll-margin-top: 80px;
}

.service .section-title {
  text-align: center;
  margin-bottom: 10px;
}

.service__sub {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}

.service__scope {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.scope {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.2s;
}

.scope:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
}

.scope__ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.scope__name {
  font-size: 15px;
  font-weight: 700;
}

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.why__item {
  text-align: center;
  padding: 20px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
}

.why__ico {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: var(--accent-grad);
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(45, 108, 219, 0.26);
}

.why__item h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 5px;
}

.why__item p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ───────── 页脚 ───────── */
.footer {
  margin-top: 30px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand strong {
  font-size: 16px;
  font-weight: 800;
}

.footer__brand p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}

.footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.footer__tags span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.footer__bar {
  border-top: 1px solid var(--border-soft);
  padding: 14px 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
}

/* ───────── 弹窗 ───────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(20, 30, 42, 0.46);
  backdrop-filter: blur(4px);
}

.modal-backdrop.is-open {
  display: grid;
  animation: fade 0.16s ease;
}

.modal {
  width: 100%;
  max-width: 440px;
  text-align: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
  animation: pop 0.18s ease;
}

.modal__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #d9a23f, #bd7e16);
  box-shadow: 0 10px 22px rgba(189, 126, 22, 0.3);
}

.modal h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
}

.modal__text strong {
  color: var(--danger);
}

.modal__foot {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.modal__foot .btn {
  flex: 1;
  width: auto;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* ───────── Toast ───────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  max-width: 88vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ───────── 载入动效 ───────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero__inner > *,
.dlcard,
.help__col,
.scope,
.why__item {
  animation: rise 0.5s ease both;
}

.dlcard:nth-child(2) { animation-delay: 0.06s; }

/* ───────── 响应式 ───────── */
@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .help__grid {
    grid-template-columns: 1fr;
  }
  .help__vs {
    margin: 0 auto;
  }
  .service__scope,
  .why {
    grid-template-columns: repeat(2, 1fr);
  }
  .engineer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .nav__links {
    gap: 13px;
    font-size: 12.5px;
  }
  .brand__sub {
    display: none;
  }
  .hero {
    padding-top: 44px;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .engineer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
}
