/* ==========================================================================
   1. 全局设计系统 (经典蓝白主题 Theme 2 清爽极客风)
   ========================================================================== */
:root {
  --bg-page: #d4eaff;         /* 软件外层经典浅蓝色背景 */
  --bg-card: rgba(255, 255, 255, 0.78); /* 半透明磨砂玻璃卡片 */
  --border-color: #53A6FF;    /* 经典蓝发光细实线 */
  --color-brand: #53A6FF;     /* 品牌主色亮蓝 */
  --color-brand-hover: #4a9aee; /* 品牌悬浮蓝 */
  --color-text-main: #333333; /* 主文字色 */
  --color-text-desc: #5a6a7a; /* 描述蓝灰文字 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Outfit', 'Noto Sans SC', sans-serif;
  background: linear-gradient(135deg, #d4eaff 0%, #eef7ff 100%);
  color: var(--color-text-main);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(83, 166, 255, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand);
}

/* ==========================================================================
   2. 导航栏 (Navigation)
   ========================================================================== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(212, 234, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(83, 166, 255, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text-main);
}

.logo-svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 5px rgba(83, 166, 255, 0.2));
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-title span {
  color: var(--color-brand);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-desc);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-brand);
}

.nav-btn {
  background: rgba(83, 166, 255, 0.15);
  border: 1px solid var(--color-brand);
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  color: var(--color-brand) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn:hover {
  background: var(--color-brand);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(83, 166, 255, 0.3);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--color-text-main);
  border-radius: 3px;
  transition: 0.3s;
}

/* ==========================================================================
   3. 英雄区与 Iframe 容器布局 (Hero & Iframe Section)
   ========================================================================== */
.hero-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-tag {
  background: rgba(83, 166, 255, 0.12);
  border: 1px solid rgba(83, 166, 255, 0.35);
  color: var(--color-brand);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 800;
  width: fit-content;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text-main);
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, #1b7cfc, var(--color-brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-desc);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary {
  background: var(--color-brand);
  border: 1px solid var(--color-brand);
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(83, 166, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(83, 166, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(83, 166, 255, 0.3);
  color: var(--color-text-main);
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

/* Iframe 模拟器卡片容器 */
.simulator-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  transition: height 0.15s ease-out;
}

/* 真实软件 1:1 Iframe 嵌套视窗 */
.sim-iframe-container {
  width: 100%;
  height: 100%;
  background: #cce5ff;
  border: 1.5px solid var(--border-color);
  border-radius: 0.8rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 
              0 0 25px rgba(83, 166, 255, 0.2);
  overflow: hidden;
  position: relative;
  transition: height 0.15s ease-out;
}

.sim-iframe-target {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  background: transparent;
  transform-origin: top left;
}

/* 快捷交互操作条 */
.demo-action-row {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.demo-act-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(83, 166, 255, 0.3);
  border-radius: 1.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: #334e68;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.25s;
}
.demo-act-btn:hover {
  border-color: var(--color-brand);
  background: rgba(83, 166, 255, 0.12);
  color: var(--color-brand);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. 痛点优势对比 & 功能卡片
   ========================================================================== */
.info-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-text-main);
  margin-top: 6rem;
  margin-bottom: 2.5rem;
}

.info-title span {
  color: var(--color-brand);
}

.contrast-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contrast-card {
  background: var(--bg-card);
  border: 1px solid rgba(83, 166, 255, 0.2);
  border-radius: 0.8rem;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
}

.contrast-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contrast-card.others h3 { color: #ff6159; }
.contrast-card.owo h3 { color: var(--color-brand); }

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contrast-list li {
  font-size: 0.88rem;
  color: var(--color-text-desc);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contrast-card.others .contrast-list li::before { content: '✗'; color: #ff6159; font-weight: 800; }
.contrast-card.owo .contrast-list li::before { content: '✓'; color: #62ba46; font-weight: 800; }

/* Features Grid */
.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(83, 166, 255, 0.15);
  border-radius: 0.8rem;
  padding: 1.8rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: 0 10px 25px rgba(83, 166, 255, 0.12);
}

.feature-card .icon-box {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: rgba(83, 166, 255, 0.08);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(83, 166, 255, 0.15);
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: #222;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--color-text-desc);
  line-height: 1.5;
}

/* ==========================================================================
   4.5 系统全貌与核心机能画廊 (System Showcase Gallery - 图文分栏强化)
   ========================================================================== */
.gallery-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.gallery-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(83, 166, 255, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgba(83, 166, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(83, 166, 255, 0.15);
  padding-right: 1.2rem;
}

.gallery-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-desc);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-tab-btn:hover {
  background: rgba(83, 166, 255, 0.08);
  color: var(--color-brand);
}

.gallery-tab-btn.active {
  background: rgba(83, 166, 255, 0.15);
  border-color: rgba(83, 166, 255, 0.3);
  color: var(--color-brand);
  box-shadow: 0 2px 8px rgba(83, 166, 255, 0.1);
}

.gallery-content {
  position: relative;
  min-height: 480px;
}

.gallery-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-item {
  display: flex;
  flex-direction: row; /* 默认左右双栏 */
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(83, 166, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  align-items: stretch;
  width: 100%;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: 0 8px 25px rgba(83, 166, 255, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.gallery-item img {
  width: 320px; /* 左侧图片固定宽度 */
  min-width: 320px;
  height: auto;
  object-fit: cover;
  border-right: 1px solid rgba(83, 166, 255, 0.1);
  border-bottom: none;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item-text {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.gallery-item-desc {
  font-size: 0.82rem;
  color: var(--color-text-desc);
  line-height: 1.6;
  text-align: left;
}

/* 针对部分需要上下排版的横图大图卡片 */
.gallery-item.layout-vertical {
  flex-direction: column;
}

.gallery-item.layout-vertical img {
  width: 100%;
  min-width: 100%;
  max-height: 240px;
  border-right: none;
  border-bottom: 1px solid rgba(83, 166, 255, 0.1);
}

/* 模态框灯箱 (Lightbox Modal) */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--color-brand);
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5),
              0 0 30px rgba(83, 166, 255, 0.3);
  border: 1px solid rgba(83, 166, 255, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

/* ==========================================================================
   5. 支持生态 & FAQ & Footer
   ========================================================================== */
.ecology-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.ecology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid rgba(83, 166, 255, 0.15);
  border-radius: 0.8rem;
  padding: 1.5rem 1rem;
  transition: all 0.3s;
}

.eco-card:hover {
  border-color: var(--color-brand);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.eco-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.eco-card h5 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #111;
}

.eco-card p {
  font-size: 0.75rem;
  color: var(--color-text-desc);
  line-height: 1.4;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(83, 166, 255, 0.15);
  border-radius: 0.6rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-header {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-header::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--color-brand);
  transition: transform 0.3s;
}

.faq-item.active .faq-header::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  font-size: 0.82rem;
  color: var(--color-text-desc);
  line-height: 1.5;
}

.faq-item.active .faq-body {
  padding: 0.2rem 1.2rem 1.2rem 1.2rem;
  max-height: 240px;
}

footer {
  background: rgba(212, 234, 255, 0.5);
  border-top: 1px solid rgba(83, 166, 255, 0.15);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 5rem;
}

.foot-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.foot-links {
  display: flex;
  gap: 2rem;
}

.foot-links a {
  color: var(--color-text-desc);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.foot-links a:hover {
  color: var(--color-brand);
}

.copyright {
  font-size: 0.72rem;
  color: #8899aa;
}

/* ==========================================================================
   6. Markdown 风格警告/重要说明框 & 长文排版
   ========================================================================== */
.warning-box {
  background: rgba(255, 97, 89, 0.06);
  border-left: 4px solid #ff6159;
  border-radius: 4px;
  padding: 0.8rem 1.1rem;
  margin: 0.8rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #a0403b;
}

.warning-box strong {
  color: #ff6159;
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.important-box {
  background: rgba(83, 166, 255, 0.06);
  border-left: 4px solid #53A6FF;
  border-radius: 4px;
  padding: 0.8rem 1.1rem;
  margin: 0.8rem 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #3b5066;
}

.important-box strong {
  color: #53A6FF;
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.desc-paragraph {
  font-size: 0.9rem;
  color: var(--color-text-desc);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left;
}

.bullet-list {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text-desc);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
  list-style-type: disc;
}

.bullet-list li {
  margin-bottom: 0.4rem;
}

.code-inline {
  background: rgba(83, 166, 255, 0.12);
  color: #1b7cfc;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  font-weight: 700;
}

/* 移动端响应式断点 */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.2rem;
    gap: 2.5rem;
  }

  .hero-info {
    align-items: center;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .simulator-wrapper {
    height: 520px;
  }

  .contrast-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: rgba(212, 234, 255, 0.98);
    border-bottom: 1px solid rgba(83, 166, 255, 0.2);
    padding: 1.5rem;
    gap: 1.2rem;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }

  .gallery-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(83, 166, 255, 0.15);
    padding-right: 0;
    padding-bottom: 1rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-tab-btn {
    flex: 0 0 auto;
  }

  .gallery-item {
    flex-direction: column;
  }

  .gallery-item img {
    width: 100%;
    min-width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(83, 166, 255, 0.1);
  }
}
