/* ============================================================
   内页通用样式
   ============================================================ */

/* ---------- 页头横幅与面包屑 ---------- */
.page-banner { width: 100%; overflow: hidden; }
.page-banner img { width: 100%; height: auto; display: block; }
.breadcrumb { max-width: var(--container-w); margin: 0 auto; padding: 18px 20px; color: var(--text-light); font-size: 13px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-faint); }
/* breadcrumb 自身已是容器，内部的 .container 不再重复加边距，保证与 .page-wrap 对齐 */
.breadcrumb .container { width: auto; max-width: none; margin: 0; padding: 0; }

.page-wrap { max-width: var(--container-w); margin: 0 auto; padding: 0 20px 60px; }
.page-title { font-size: 24px; font-weight: 600; margin: 10px 0 24px; }

/* ---------- Tab 通用 ---------- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.tabs-nav button {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.tabs-nav button:hover { color: var(--primary); }
.tabs-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- 图文块 ---------- */
.media-row { display: flex; gap: 50px; align-items: center; padding: 40px 0; }
.media-row.rev .media-img { order: 2; }
.media-row .media-img { flex: 0 0 48%; }
.media-row .media-img img { width: 100%; border-radius: 6px; }
.media-row .media-img video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #111; border-radius: 6px; display: block; }
.media-row .media-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.media-row .media-text h3 { font-size: 22px; margin-bottom: 12px; }
.media-row .media-text p { color: #555; font-size: 15px; line-height: 1.9; }
.media-row .media-list { margin: 14px 0 20px; }
.media-row .media-list li {
  position: relative;
  padding-left: 18px;
  color: #555;
  line-height: 2.1;
}
.media-row .media-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.btn-view {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 32px;
  border-radius: 999px;
  font-size: 14px;
  transition: all .25s;
}
.btn-view:hover { background: var(--primary); color: #fff; }
.media-row .media-text .btn-view { align-self: flex-start; }

/* ---------- 卡片网格 ---------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.p-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.p-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.p-card .p-card-img { height: 190px; overflow: hidden; background: #f7f9fc; }
.p-card .p-card-img img { width: 100%; height: 100%; object-fit: cover; }
.p-card .p-card-body { padding: 20px 22px 24px; }
.p-card .p-card-body h3 { font-size: 18px; margin-bottom: 8px; }
.p-card .p-card-body p { color: #666; font-size: 14px; line-height: 1.8; min-height: 40px; }
.p-card .p-card-link { display: inline-block; margin-top: 12px; color: var(--primary); font-size: 14px; }

/* ---------- 产品中心: 数据产品卡片(线上样式) ---------- */
.detail-data-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.data-content-item {
  flex: 0 0 calc(50% - 40px);
  max-width: calc(50% - 40px);
  display: flex;
  margin: 10px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px 0 rgba(0,0,0,.15);
  box-sizing: border-box;
  transition: transform .25s, box-shadow .25s;
}
.data-content-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.item-img { flex: 0 0 300px; width: 300px; height: 240px; background: #f7f9fc; }
.item-img img { width: 100%; height: 100%; object-fit: fill; display: block; }
.item-text { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 24px 20px 26px 28px; text-align: left; }
.item-text-title { font-size: 21px; font-weight: 500; color: #222; line-height: 29px; }
.item-text-desc { margin-top: 12px; font-size: 14px; color: #555; line-height: 22px; flex: 1; word-break: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;}
.item-text-btn {
  margin-top: 18px;
  align-self: flex-start;
  width: 105px;
  height: 40px;
  line-height: 38px;
  border: 1px solid #979797;
  border-radius: 20px;
  text-align: center;
  color: #555;
  font-size: 14px;
  transition: all .2s;
}
.data-content-item:hover .item-text-btn { background: #0091FF; border-color: #0091FF; color: #fff; }
@media (max-width: 900px) {
  .data-content-item { flex: 0 0 100%; max-width: 100%; }
  .item-img { flex: 0 0 45%; width: 45%; height: auto; aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  .data-content-item { flex-direction: column; }
  .item-img { width: 100%; flex: none; aspect-ratio: 4/3; }
  .item-text { padding: 18px; }
}

/* 产品中心: 导航产品卡片 16:9 大图 */
.p-card .p-card-img.nav-img { aspect-ratio: 16 / 9; height: auto; background: #f7f9fc; }
.p-card .p-card-img.nav-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 数据产品: 左侧树 + 右侧内容 ---------- */
.data-layout { display: flex; gap: 30px; align-items: flex-start; }
.data-tree {
  width: 210px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.data-tree .tree-item {
  padding: 12px 18px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
  transition: background .2s;
}
.data-tree .tree-item:hover { background: #f7f9fc; color: var(--primary); }
.data-tree .tree-item.active { background: var(--primary); color: #fff; }
.data-tree .tree-item:last-child { border-bottom: none; }
.data-tree .tree-group {
  padding: 8px 18px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  background: #f7f9fc;
}
.data-content { flex: 1; min-width: 0; }
.data-block { display: none; }
.data-block.active { display: block; }
.data-block h3 { font-size: 22px; margin: 6px 0 14px; }
.data-block p { color: #555; font-size: 14px; line-height: 2; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 14px; vertical-align: top; }
.spec-table th { background: #f7f9fc; font-weight: 600; width: 150px; text-align: left; }
.spec-table td ul { margin: 0; padding-left: 18px; list-style: disc; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.sample-grid figure { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.sample-grid figure img { width: 100%; height: 150px; object-fit: cover; }
.sample-grid figcaption { text-align: center; padding: 8px; color: #666; font-size: 13px; }

/* ---------- 资讯列表 ---------- */
.info-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.info-tabs li { padding: 10px 22px; cursor: pointer; color: #666; border-bottom: 3px solid transparent; font-size: 15px; }
.info-tabs li:hover { color: var(--primary); }
.info-tabs li.active { color: var(--primary); border-bottom-color: var(--primary); }

.info-list { border-top: 2px solid var(--primary); }
.info-list .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.info-item a { color: var(--text); font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-item a:hover { color: var(--primary); }
.info-item .info-date { color: var(--text-faint); font-size: 13px; margin-left: 20px; white-space: nowrap; }

/* 资讯列表移动端优化 */
@media (max-width: 640px) {
  .info-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .info-tabs::-webkit-scrollbar { display: none; }
  .info-tabs li { flex-shrink: 0; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .info-head { display: none !important; }
  .info-list .info-item { padding: 12px 2px; }
}

/* 资讯详情 */
.info-detail h1, .info-detail h2 { font-size: 24px; margin: 10px 0 14px; }
.info-meta { color: var(--text-faint); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.info-content { font-size: 15px; line-height: 2; color: #444; }
.info-content img { max-width: 100%; }
.info-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }
.info-nav a { color: var(--text-light); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-nav a:hover { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.faq-tabs li { padding: 8px 22px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; color: #666; font-size: 14px; transition: all .2s; }
.faq-tabs li:hover { border-color: var(--primary); color: var(--primary); }
.faq-tabs li.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-search { display: flex; gap: 10px; margin-bottom: 16px; }
.faq-search input { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 9px 14px; outline: none; }
.faq-search input:focus { border-color: var(--primary); }
.faq-search button { border: none; background: var(--primary); color: #fff; padding: 9px 26px; border-radius: 6px; cursor: pointer; }
.faq-hot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; color: var(--text-faint); }
.faq-hot span { cursor: pointer; color: var(--primary); }
.faq-list { border-top: 2px solid var(--primary); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item .faq-q { padding: 16px 10px; cursor: pointer; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.faq-item .faq-q .no { color: var(--primary); font-weight: 600; }
.faq-item .faq-a { display: none; padding: 4px 16px 20px 34px; color: #555; font-size: 14px; line-height: 2; }
.faq-item.open .faq-a { display: block; }

/* ---------- 注册/帮助步骤 ---------- */
.step-list { counter-reset: step; }
.step-list > li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 14px;
  color: #444;
  line-height: 1.9;
  counter-increment: step;
}
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.help-note { background: #fffbe6; border: 1px solid #ffe58f; color: #ad6800; padding: 14px 18px; border-radius: 6px; font-size: 14px; margin: 18px 0; }

/* 右侧客服框 */
.side-box { border: 1px solid var(--border); border-radius: 8px; padding: 22px; margin-bottom: 20px; text-align: center; }
.side-box h4 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.side-box .phone { font-size: 22px; color: var(--primary); font-weight: 600; }
.side-box a.btn-view { margin-top: 10px; }

/* ---------- 表单(正版验证) ---------- */
.form-panel { max-width: 760px; margin: 0 auto; }
.form-tip { font-size: 14px; color: #b00; margin-bottom: 18px; }
.form-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.form-row label { width: 110px; text-align: right; font-size: 14px; color: #555; }
.form-row input[type=text],
.form-row input[type=password],
.form-row input[type=email],
.form-row input[type=number],
.form-row select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  min-width: 260px;
  outline: none;
}
.form-row input:focus, .form-row select:focus { border-color: var(--primary); }
.form-row .help-link { font-size: 13px; color: var(--primary); }
.form-actions { display: flex; gap: 14px; justify-content: center; margin: 26px 0; }
.form-actions button { padding: 10px 44px; }
.captcha-row img { height: 36px; cursor: pointer; border: 1px solid var(--border); border-radius: 4px; }

/* ---------- 数字空间应用 ---------- */
.ds-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.ds-tabs button { padding: 10px 30px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; color: #555; background: #fff; font-size: 14px; transition: all .2s; }
.ds-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.ds-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 描点滚动偏移(避免被固定头部遮挡) ---------- */
section[id] { scroll-margin-top: 140px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .p-grid, .p-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .media-row { flex-direction: column; padding: 24px 0; }
  .media-row .media-img { flex: 0 0 auto; width: 100%; order: 1 !important; }
  .data-layout { flex-direction: column; }
  .data-tree { width: 100%; display: flex; flex-wrap: wrap; border: none; }
  .data-tree .tree-group { width: 100%; }
  .data-tree .tree-item { border: 1px solid var(--border); border-radius: 4px; margin: 4px; }
  .info-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .info-item a { width: 100%; max-width: 100%; min-width: 0; }
  .info-item .info-date { margin-left: 0; }
  .data-card-img { width: 100%; }
}
@media (max-width: 560px) {
  .p-grid, .p-grid.cols-2, .p-grid.cols-4 { grid-template-columns: 1fr; }
  .form-row label { width: 100%; text-align: left; }
  .form-row input[type=text], .form-row input[type=password], .form-row input[type=email], .form-row input[type=number], .form-row select { width: 100%; min-width: 0; }
}
/* ---------- 地图服务: .data-map-item (线上样式) ---------- */
.detail-map-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.data-map-item { display: flex; align-items: center; gap: 40px; margin-top: 20px; width: 100%; max-width: 1100px; }
.map-item-img { flex: 0 0 46%; min-width: 0; }
.map-item-img img { width: 100%; height: auto; border-radius: 6px; display: block; }
.map-item-img video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #111; border-radius: 6px; display: block; }
.map-item-text { position: relative; flex: 1; min-width: 0; width: 500px; padding-left: 20px; padding-bottom: 56px; }
.map-item-text-title { font-size: 24px; color: #161923; line-height: 32px; margin-bottom: 18px; }
.map-item-text-content ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.map-item-text-content li { width: 50%; padding: 9px 12px; box-sizing: border-box; position: relative; padding-left: 22px; color: #444; font-size: 14px; line-height: 22px; }
.map-item-text-content li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.map-item-text-btn { position: absolute; left: 0; bottom: 0; margin-left: 20px; width: 105px; height: 40px; line-height: 38px; border: 1px solid #979797; border-radius: 20px; text-align: center; font-size: 14px; transition: all .2s; }
.map-item-text-btn a { color: #555; display: block; }
.map-item-text-btn:hover, .data-map-item:hover .map-item-text-btn { background: #0091FF; border-color: #0091FF; }
.map-item-text-btn:hover a, .data-map-item:hover .map-item-text-btn a { color: #fff; }
@media (max-width: 900px) {
  .data-map-item { flex-direction: column; gap: 16px; align-items: flex-start; }
  .map-item-img { flex: none; width: 100%; }
  .map-item-text { width: 100%; padding-left: 0; padding-bottom: 0; }
  .map-item-text-btn { position: static; margin-left: 0; margin-top: 16px; }
}
@media (max-width: 560px) { .map-item-text-content li { width: 100%; } }

/* ---------- 联系我们 (与线上一致) ---------- */
.content-contact .contact-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.contact-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 24px 26px; box-shadow: var(--shadow); }
.contact-card .flex { margin-top: 14px; }
.contact-card .flex:first-child { margin-top: 0; }
.contact-map img { width: 100%; border-radius: 6px; border: 1px solid #eee; display: block; }
.content-contact ul { list-style: none; margin: 0; padding: 0; }
.content-contact .detail_left { flex: 1; min-width: 0; max-width: 640px; }
.content-contact .detail_right { flex: 1; min-width: 0; }
.content-contact .desc { margin-bottom: 16px; font-size: 15px; color: #333; }
.content-contact .flex { display: flex; align-items: center; }
.content-contact .flex-center-y { display: flex; align-items: center; }
.content-contact .mr10 { margin-right: 10px; }
.content-contact .icon { width: 26px; height: 26px; object-fit: contain; }
.content-contact .img img { max-width: 100%; border-radius: 6px; border: 1px solid #eee; display: block; }
@media (max-width: 900px) {
  .content-contact .contact-wrap { flex-direction: column; gap: 30px; }
}

/* ---------- 服务与支持 /service ---------- */
.service-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.service-faq-card { display: flex; align-items: center; gap: 32px; padding: 30px 34px; }
.service-faq-img { width: 210px; height: 180px; flex-shrink: 0; background: #f7f9fc; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.service-faq-img img { max-width: 170px; max-height: 150px; object-fit: contain; }
.service-faq-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--text); }
.service-faq-card p { color: #666; line-height: 1.9; margin-bottom: 16px; }

.service-side { text-align: left; margin-bottom: 20px; }
.service-side:last-child { margin-bottom: 0; }
.service-side h4 { text-align: center; margin-bottom: 8px; }
.service-downloads { margin-top: 20px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.service-list-col { grid-template-columns: 1fr; }
.service-item { border: 1px solid #f0f0f0; border-radius: 8px; padding: 16px 14px; text-align: center; }
.service-item-name { font-weight: 600; color: #333; margin-bottom: 8px; }
.service-item-value { font-size: 18px; color: var(--primary); font-weight: 600; text-decoration: none; display: inline-block; }
a.service-item-value:hover { color: #004fcc; }
.service-qr { display: inline-block; }
.service-qr img { width: 110px; height: 110px; object-fit: contain; border-radius: 8px; border: 1px solid #eee; }
.service-item-extra { color: #999; font-size: 13px; margin-top: 6px; }

.download-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; }
.download-list li { padding: 11px 0; border-bottom: 1px dashed #eee; }
.download-list li:last-child { border-bottom: none; }
.download-list a { color: var(--primary); text-decoration: none; display: block; }
.download-list a:hover .download-title { text-decoration: underline; }
.download-title { font-size: 15px; color: #333; display: block; }
.download-desc { display: block; color: #999; font-size: 13px; margin-top: 3px; }

@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-faq-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .service-faq-img { width: 100%; height: 160px; }
  .service-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .download-list { grid-template-columns: 1fr; }
}
