/* 补充：轮播与新闻列表（配合 Tailwind CDN） */
html, body { margin: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #fff; color: #111; }
a { text-decoration: none; }
.carousel { position: relative; width: 100%; height: 600px; background: #eef3f7; overflow: hidden; }
@media (max-width: 768px) { .carousel { height: 220px; } }
.carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.carousel img.is-active { opacity: 1; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 20px;
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.page-banner { width: 100%; height: 280px; background: #e8eef5; overflow: hidden; }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .page-banner { height: 160px; } }
.news-item { display: flex; gap: 36px; margin-top: 30px; }
.news-item .thumb { width: 399px; height: 261px; flex-shrink: 0; background: #eef3f7; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { flex: 1; }
.news-item h2 { font-size: 22px; margin: 0; }
.news-item .time { font-size: 16px; margin-top: 7px; color: #666; }
.news-item .summary { font-size: 16px; line-height: 33px; color: #333; }
@media (max-width: 900px) {
  .news-item { flex-direction: column; gap: 12px; }
  .news-item .thumb { width: 100%; height: 200px; }
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.tab {
  border: 1px solid #e5e7eb; background: #fff; border-radius: 999px;
  padding: 8px 18px; cursor: pointer; font-size: 15px;
}
.tab.is-active { background: #009fff; color: #fff; border-color: #009fff; }
.article-content img { max-width: 100%; height: auto; margin: 12px auto; display: block; }
/* 免费试用弹窗（对齐 SSR el-dialog width=600 + 内高 500 + fbg.jpg） */
.trial-mask {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5); padding: 16px;
  /* 不锁 body 滚动，避免右侧滚动条消失导致页面宽度跳动 */
  overscroll-behavior: contain;
}
.trial-mask.hidden { display: none !important; }
.trial-dialog {
  position: relative;
  width: 600px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.trial-close {
  position: absolute; right: 0; top: 0; z-index: 6;
  width: 44px; height: 44px; border: 0; background: transparent;
  color: #909399; font-size: 20px; line-height: 44px; cursor: pointer;
}
.trial-close:hover { color: #409eff; }
.trial-panel {
  position: relative; width: 100%; height: 500px;
  background: url('/assets/img/fbg.jpg') center/cover no-repeat;
}
.trial-panel-overlay {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7);
}
.trial-panel-body {
  position: relative; z-index: 2; height: 100%;
  box-sizing: border-box; padding-top: 15px;
}
.trial-heading {
  color: #fff; text-align: center;
  font-size: 36px; line-height: 1.3; font-weight: 400;
  margin: 0; padding: 0 24px;
}
.trial-sub {
  text-align: center; color: #009FFF;
  font-size: 24px; line-height: 1.4; margin-top: 4px;
}
.trial-form {
  /* SSR: w-[310px] + margin-left:100px */
  width: 310px;
  margin: 10px 0 0 100px;
}
.trial-row {
  display: flex; gap: 16px; align-items: center;
  margin-top: 16px; margin-bottom: 8px;
}
.trial-label {
  width: 100px; flex-shrink: 0; text-align: right;
  color: #fff; font-size: 20px; line-height: 32px; white-space: nowrap;
}
.trial-control { flex: 1; min-width: 0; }
.trial-input {
  display: block; width: 100%; height: 32px; box-sizing: border-box;
  border: 1px solid #dcdfe6; border-radius: 4px;
  padding: 1px 11px; font-size: 14px; color: #606266; background: #fff;
  outline: none; appearance: none; -webkit-appearance: none;
}
select.trial-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8abb2' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px;
}
.trial-input:focus { border-color: #009FFF; }
.trial-input::placeholder { color: #a8abb2; }
.trial-actions {
  display: flex; justify-content: flex-start;
  /* 与输入框左对齐：label 100 + gap 16 */
  padding-left: 116px; margin-top: 12px;
}
.trial-submit {
  width: 100%; max-width: 194px; height: 32px;
  border: 0; border-radius: 4px; cursor: pointer;
  background: #009FFF; color: #fff; font-size: 14px;
}
.trial-submit:disabled { opacity: 0.7; cursor: not-allowed; }
@media (max-width: 640px) {
  .trial-panel { height: auto; min-height: 520px; padding-bottom: 20px; }
  .trial-heading { font-size: 22px; }
  .trial-sub { font-size: 16px; }
  .trial-form { width: auto; margin: 12px 16px 0; }
  .trial-label { width: 88px; font-size: 16px; }
  .trial-actions { padding-left: 104px; }
  .trial-submit { max-width: none; }
}

/* 返回顶部（对齐 SSR BackToTop.vue） */
.back-to-top {
  position: fixed; bottom: 100px; right: 20px;
  width: 60px; height: 60px;
  background-color: #009eff; border-radius: 8px;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  color: #fff; user-select: none; transition: all 0.3s ease;
  border: 0; padding: 0;
}
.back-to-top.is-show { display: flex; }
.back-to-top:hover {
  background-color: #007acc; transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.back-to-top-icon {
  margin-top: 6px; width: 18px; height: 18px;
  filter: brightness(0) invert(1);
}
.back-to-top-text {
  margin-bottom: 8px; text-align: center; font-size: 12px; color: #fff;
}

.scroll-container { overflow: hidden; width: 100%; }
.scroll-content {
  animation: sw-marquee 40s linear infinite;
}
.scroll-content:hover { animation-play-state: paused; }
@keyframes sw-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 软件页 tabs（还原 Element Plus 顶栏风格） */
.Software-tabs { background: #009FFF; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.Software-tabs button {
  background: transparent; border: 0; color: #000; font-size: 18px;
  padding: 14px 28px; cursor: pointer; margin: 0 24px;
}
.Software-tabs button.is-active,
.Software-tabs button:hover { color: #fff; }
.Software-pane { display: none; }
.Software-pane.is-active { display: block; }
.swjspy .title { font-size: 24px; color: #009FFF; margin-bottom: 10px; margin-top: 30px; }
.swjspy .content { color: #000; font-size: 18px; }
.swvr .yuan {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  background-color: #009FFF; vertical-align: middle;
}
.adv-grid {
  display: grid; grid-template-columns: repeat(2, max-content);
  justify-content: center; column-gap: 100px; row-gap: 32px;
  width: max-content; max-width: 100%; margin: 48px auto 0;
}
.adv-item { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; line-height: 1.5; white-space: nowrap; }
.xuh {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid #fff; border-radius: 50%;
}
.icon-list__media { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: #f3f4f6; }
.icon-list__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-title { text-align: center; }
#map { z-index: 1; }

/* 新闻详情：主文 + 右侧推荐（网格，避免 absolute 被裁切） */
.newdetail-shell {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 10px 16px 35px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}
@media (min-width: 1280px) {
  .newdetail-shell {
    grid-template-columns: minmax(0, 1200px) 280px;
    justify-content: center;
    gap: 40px;
  }
}
.newdetail-main { width: 100%; min-width: 0; }
.article-nav {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: 40px; padding-top: 30px; border-top: 1px solid #e8e8e8;
}
.article-nav-item { flex: 1; cursor: pointer; transition: color .2s; }
.article-nav-item:not(.disabled):hover .article-nav-title { color: #009fff; }
.article-nav-item.disabled { cursor: default; }
.article-nav-label { display: block; font-size: 14px; color: #999; margin-bottom: 8px; }
.article-nav-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  font-size: 16px; color: #333; line-height: 1.5;
}
.article-nav-title.muted { color: #bbb; }
.recommend-sidebar { width: 100%; max-width: 360px; }
@media (min-width: 1280px) {
  .recommend-sidebar { max-width: none; position: sticky; top: 20px; }
}
.recommend-sidebar-inner {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.recommend-title {
  font-size: 18px; font-weight: 500; color: #333;
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid #009fff;
}
.recommend-list { list-style: none; margin: 0; padding: 0; }
.recommend-item {
  padding: 12px 0; border-bottom: 1px dashed #e0e0e0;
  cursor: pointer; transition: background .2s;
}
.recommend-item:last-child { border-bottom: none; }
.recommend-item:hover .recommend-item-title { color: #009fff; }
.recommend-item-title {
  font-size: 14px; color: #333; line-height: 1.5; margin: 0 0 6px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: color .2s;
}
.recommend-item-time { font-size: 12px; color: #999; margin: 0; }
.recommend-loading, .recommend-empty {
  font-size: 14px; color: #999; text-align: center; padding: 20px 0;
}
.news-html img { max-width: 100%; height: auto; margin: 10px auto; display: block; }
.news-html p { margin-bottom: 1em; }
