/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: #ffffff;
  color: #1e293b;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* 导航条全屏宽 */
.nav-full {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #eef4ff;
  flex-shrink: 0;
}

.logo-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0b3b8c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.logo:hover { color: #1e5fcc; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #0066ff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.3rem 1.3rem;
  border-radius: 60px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #b3d1ff;
}

.help-btn:hover {
  background-color: #eef4ff;
  color: #0052cc;
}

.help-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0066ff;
  color: #ffffff;
  font-weight: 400;
  font-size: 0.85rem;
  padding: 0.3rem 1.3rem;
  border-radius: 60px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 6px 14px -6px rgba(0, 102, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.contact-btn:hover {
  background-color: #0052cc;
  box-shadow: 0 10px 18px -8px #0066ff;
  transform: translateY(-1px);
}

.contact-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* 主内容区域 */
.main-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  flex: 1 0 auto;
}

/* ===== 黑色背景区 — 视频 + 下载按钮 + 简介 ===== */
.hero-section {
  position: relative;
  width: 100%;
  background-color: #000000;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid #1a1a1a;
  margin-bottom: 3rem;
  aspect-ratio: 16 / 7;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* 视频上的黑色半透明遮罩层 */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
  pointer-events: none;
}

/* 视频上方内容 — 靠左垂直居中，下载按钮在上，文字在下 */
.hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1.5rem;
  pointer-events: none;
}

.hero-intro .intro-box {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-radius: 8px;
  padding: 0.2rem 0.2rem;
  border: 0px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.1);
  max-width: 650px;
  transform: translateY(30px);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 下载按钮与试用提示区域容器 —— 竖向排列：下载按钮在上，试用提示条在下 */
.download-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: nowrap;
}

/* 下载按钮 — 放在文字上方 */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background-color: #3987fc;
  color: #ffffff;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 60px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 8px 18px -6px rgba(70, 144, 255, 0.7);
  border: 0px solid rgba(255, 255, 255, 0.3);
  width: fit-content;
  letter-spacing: 0.02em;
}

.download-btn:hover {
  background-color: #0052cc;
  box-shadow: 0 12px 24px -6px #0066ff;
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(0);
}

/* ===== 激活码样式 ===== */
.trial-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(35, 45, 65, 0.85); /* 深灰蓝色半透明背景 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(57, 135, 252, 0.4); /* 浅蓝色描边 */
  border-radius: 20px;
  padding: 0.3rem 0.3rem 0.3rem 1.2rem;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trial-text {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.copy-wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #3987fc;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.copy-wx-btn:hover {
  background-color: #2970db;
}

.copy-wx-btn:active {
  transform: scale(0.96);
}

.copy-wx-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.copy-wx-btn.copied {
  background-color: #22c55e;
}

/* 文字介绍 — 在按钮下方 */
.hero-intro .intro-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-intro .intro-line {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
  letter-spacing: 0.01em;
  font-weight: 520;
  white-space: nowrap;
}

.hero-intro .intro-line + .intro-line {
  margin-top: 0.15rem;
}

/* ===== 折幕助手2.0卡片 ===== */
.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  margin-bottom: 3rem;
}

.tab-panel.right {
  flex: 0 0 100%;
  max-width: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  border: 2px solid #eef4ff;
  box-shadow: 0 12px 28px -8px rgba(0, 102, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tab-panel.right .panel-title { color: #0b2f6b; }

.panel-title .version {
  font-size: 0.62em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 0.15em;
  color: #0066ff;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.8rem;
  flex: 1;
  font-size: 0.88rem;
}

.feature-table th {
  text-align: left;
  font-weight: 600;
  color: #3a4a62;
  padding: 0.65rem 0.75rem 0.65rem 0;
  white-space: nowrap;
  width: 21%;
  border-bottom: 1px dashed #d9e5ff;
  border-right: 1px dashed #d9e5ff;
}

.feature-table td {
  text-align: left;
  padding: 0.65rem 0 0.65rem 0.85rem;
  color: #1e2b41;
  border-bottom: 1px dashed #d9e5ff;
}

.feature-table tr:last-child th,
.feature-table tr:last-child td {
  border-bottom: none;
}

.param-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #0066ff;
  margin-right: 0.45rem;
}

.cave-type-text {
  font-weight: 700;
  color: #4a90e2;
}

/* ====== 右侧纯图片展示卡片 ====== */
.reference-card {
  width: 100%;
  display: flex;
  background-color: #ffffff;
  border-radius: 24px;
  border: 1px solid #eef2f9;
  box-shadow: 0 12px 32px -10px rgba(0, 102, 255, 0.1);
  overflow: hidden;
  margin-top: 1rem;
  min-height: 320px;
}

.ref-sidebar {
  flex: 0 0 240px;
  background-color: #f3f8ff;
  padding: 2.5rem 1rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid #eef2f9;
}

.ref-nav-item {
  position: relative;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  user-select: none;
}

.ref-nav-item .nav-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s;
}

.ref-nav-item .nav-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  transition: color 0.2s;
}

.ref-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.ref-nav-item.active {
  background-color: #ffffff;
  box-shadow: 0 4px 16px -4px rgba(0, 102, 255, 0.12);
  z-index: 2;
}
.ref-nav-item.active .nav-title { color: #1e293b; font-weight: 600; }
.ref-nav-item.active .nav-desc { color: #64748b; }

.ref-nav-item.active::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: 4px -4px 10px -4px rgba(0, 102, 255, 0.08);
  z-index: 1;
}

.ref-content {
  flex: 1;
  position: relative;
  background-color: #ffffff;
  display: flex;
  overflow: hidden;
}

.ref-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
}

.ref-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* ===== 项目支持板块 ===== */
.project-support-section {
  width: 100%;
  margin-top: 3rem;
}

.support-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  border: 2px solid #eef4ff;
  box-shadow: 0 12px 28px -8px rgba(0, 102, 255, 0.08);
}

.support-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b2f6b;
  margin-bottom: 1.2rem;
}

.support-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #1e2b41;
}

.support-highlight {
  color: #0b3b8c;
  font-weight: 500;
}

/* ===== 页脚联系方式 ===== */
.site-footer {
  width: 100%;
  background-color: #f8faff;
  border-top: 1px solid #eef4ff;
  margin-top: 0;
  padding: 2.5rem 0 1.5rem;
  scroll-margin-top: 100px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0b3b8c;
  margin-bottom: 0.8rem;
}

.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  font-size: 0.88rem;
  color: #475569;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-item svg {
  width: 15px;
  height: 15px;
  stroke: #0066ff;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: #0066ff;
}

.footer-bottom {
  border-top: 1px dashed #d9e5ff;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #0066ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 20px -6px rgba(0, 102, 255, 0.55);
  transition: all 0.25s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #0052cc;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 102, 255, 0.7);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 响应式调整 */
@media (max-width: 1000px) {
  .main-container { padding: 1.5rem 1.5rem 2.5rem; }
  .footer-inner { padding: 0 1.5rem; }
}

@media (max-width: 900px) {
  .ref-sidebar { flex: 0 0 200px; padding: 2rem 1rem 2rem 1rem; }
}

@media (max-width: 700px) {
  .reference-card { flex-direction: column; }
  .ref-sidebar {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid #eef2f9;
    gap: 0.75rem;
    justify-content: flex-start;
  }
  .ref-nav-item {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 130px;
    padding: 0.6rem 1rem;
    align-items: center;
  }
  .ref-nav-item .nav-desc { display: none; }
  .ref-nav-item.active::after { display: none; }

  .ref-content { min-height: 250px; }

  .tabs-row { flex-wrap: wrap; }
  .tab-panel.right { flex: 0 0 100%; max-width: 100%; }

  .back-to-top { right: 1rem; bottom: 1rem; width: 42px; height: 42px; }

  .logo-bar {
    justify-content: flex-start;
    gap: 0.5rem 1rem;
  }
  .nav-right {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-intro { padding-left: 1rem; padding-right: 1rem; }
  .hero-intro .intro-box {
    padding: 0.65rem 1rem;
    max-width: 100%;
    transform: none;
  }
  .hero-intro .intro-line {
    white-space: normal;
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .download-btn {
    font-size: 0.85rem;
    padding: 0.55rem 1.5rem;
  }
  .trial-bar {
    padding: 0.25rem 0.25rem 0.25rem 0.8rem;
    gap: 0.6rem;
  }
  .trial-text { font-size: 0.8rem; }
  .copy-wx-btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
}

@media (max-width: 480px) {
  .main-container { padding: 1.5rem 1rem 2rem; }
  .footer-inner { padding: 0 1rem; }
  .logo-bar { padding: 0.8rem 1rem; }
  .hero-section { border-radius: 20px; margin-bottom: 2rem; }
  .footer-contact-list { flex-direction: column; align-items: flex-start; gap: 0.8rem; }

  .ref-nav-item { flex: 1 1 100%; }

  .hero-intro .intro-box { padding: 0.5rem 0.8rem; }
  .hero-intro .intro-line {
    font-size: 0.7rem;
    line-height: 1.55;
  }
  .download-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
    gap: 0.4rem;
  }
  .download-btn svg {
    width: 15px;
    height: 15px;
  }

  .download-row {
    gap: 0.5rem;
    align-items: stretch;
  }
  .trial-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 0.6rem 0.8rem;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }
  .trial-text { font-size: 0.75rem; white-space: normal; text-align: left; }
  .copy-wx-btn { font-size: 0.75rem; padding: 0.5rem; width: 100%; }
}