/* ===== 智谱师落地页样式 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== 公共容器 ===== */
.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 导航栏 ===== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* 面包屑：优思干科技 logo / 安卓产品 / 智谱师 */
.header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-company img {
  height: 26px;
  width: auto;
  display: block;
}

.brand-sep {
  color: #ccc;
  font-size: 14px;
  line-height: 1;
}

.brand-android {
  font-size: 14px;
  color: #555;
  transition: color 0.2s;
}
.brand-android:hover { color: #2DB77C; }

.brand-product {
  display: flex;
  align-items: center;
  gap: 5px;
}
.brand-product img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
.brand-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0 24px 0 0;
}

.header-nav a {
  font-size: 15px;
  color: #222;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #2DB77C;
  transition: width 0.25s;
  border-radius: 2px;
}
.header-nav a:hover,
.header-nav a.active { color: #2DB77C; }
.header-nav a:hover::after,
.header-nav a.active::after { width: 100%; }

.btn-download-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a2e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-download-header:hover {
  background: #2d2d44;
  transform: translateY(-1px);
}

/* ===== 通用按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00180A;
  color: #fff;
  font-size: clamp(14px, 1.25vw, 22px); /* 设计: 24px / 1920 */
  font-weight: 600;
  padding: clamp(10px, 0.9vw, 16px) clamp(18px, 1.8vw, 32px);
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { background: #1a2f1a; transform: translateY(-1px); }
.btn-primary img { width: 18px; height: 18px; flex-shrink: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #333;
  font-size: clamp(14px, 1.25vw, 22px);
  font-weight: 500;
  padding: clamp(10px, 0.9vw, 16px) clamp(18px, 1.8vw, 32px);
  border-radius: 10px;
  border: 1px solid #E1EAE4;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: #f0faf5;
  border-color: #2DB77C;
  color: #2DB77C;
}

/* ===== Hero 区 ===== */
#hero {
  padding-top: 64px; /* header 高度 */
  /*
   * min-height: 42.7vw 保证 hero 区域至少等于 banner 图按比例缩放后的高度
   * banner 原始尺寸 1920×820，比例 820/1920 = 42.7%
   * 在 1440px 视口下 → 615px；在 1920px 下 → 820px
   * background-size: 100% auto 让图片宽度撑满视口，高度等比，不裁切
   */
  min-height: 42.7vw; /* banner 原始比例 820/1920，背景图多高 section 就多高 */
  background-image: url('../img/banner1.jpg');
  background-size: cover;        /* 始终填满区域，彻底消除底部绿边 */
  background-position: left top; /* 保持左侧文字区不被裁切 */
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 左侧文字遮罩 */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232,245,238,0.5) 0%, rgba(232,245,238,0.1) 48%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  flex: 1; /* 撑满 #hero 剩余高度（已减去 padding-top: 64px） */
  display: flex;
  align-items: center; /* 内容垂直居中在剩余空间内 */
  padding: 24px 0;
}

/* 文字只占左侧，右侧完全留给背景图 */
.hero-text {
  max-width: 510px;
}

/* 大标题：两行，随视口等比缩放 */
.hero-title {
  font-size: clamp(42px, 4.6vw, 72px); /* 设计: 89px / 1920 = 4.64vw */
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title .line2 {
  display: block;
  font-size: clamp(32px, 3.35vw, 50px); /* 设计: 64px / 1920 = 3.33vw */
}
.hero-title .highlight { color: #00A53C; font-style: normal; }

/* 副标题 */
.hero-subtitle {
  font-size: clamp(14px, 1.04vw, 20px); /* 设计: 30px → 缩放比约 20px */
  color: #5A7060;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* 信任标识行 */
.hero-badges {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 28px);
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(12px, 0.94vw, 18px); /* 设计: 18px / 1920 */
  color: #333;
}
.hero-badge img {
  width: clamp(14px, 0.94vw, 18px);
  height: clamp(14px, 0.94vw, 18px);
  object-fit: contain;
}

/* ===== 通用 Section 标识 ===== */
.sec-badge {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}
.sec-badge img {
  height: 36px;
  width: auto;
}

.sec-subtitle {
  text-align: center;
  font-size: 18px;
  color: #999;
  margin-bottom: 48px;
}

/* ===== 产品介绍/核心数据区 ===== */
#intro {
  padding: 100px 0 90px;
  background: #FAFAFA;
}

/* 两栏主体：align-items: stretch 让左右等高 */
.intro-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 40px;
}

/* 左栏：logo + 品牌名 + 描述（白色卡片，按设计比例约 42% 宽） */
.intro-left {
  flex: 0 0 42%;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 36px 32px;
  box-sizing: border-box;
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.intro-brand img {
  width: clamp(56px, 5.2vw, 100px); /* 设计 100px / 1920 = 5.2vw */
  height: clamp(56px, 5.2vw, 100px);
  border-radius: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.intro-brand-name {
  font-size: clamp(24px, 2.5vw, 48px); /* 设计 48px / 1920 = 2.5vw */
  font-weight: 700;
  color: #333;
  letter-spacing: -0.01em;
}

.intro-desc-main {
  font-size: 18px; /* 设计 24px / 1920 = 1.25vw */
  color: #333;
  line-height: 1.9;
}

/* 右栏：3 张统计卡片横排 */
.intro-right {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: stretch;
}

/* 每张统计卡片：图片为底，文字叠加居中
 * 设计: 252×404px → 0.625 缩放 → 157×252px
 * 实际宽度由 flex 决定（更宽），min-height 保证高度 */
.stat-card {
  flex: 1;
  min-width: 0;
  min-height: 280px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.stat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 文字叠加层：覆盖在图片上方居中 */
.stat-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 12px;
}
.stat-num {
  font-size: clamp(44px, 3.75vw, 72px); /* 72px / 1920 = 3.75vw */
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 25px; /* 30px / 1920 = 1.56vw → 1200px=18.75px */
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

/* 底部说明小字 */
.intro-footer {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
  text-align: center;
  padding-top: 24px;
}

/* ===== 功能区 ===== */
#features {
  padding: 88px 0;
  background: #FAFAFA;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 卡片：文字在上，图片在下（与设计稿一致） */
.feature-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #EBEBEB;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(45,183,124,0.12);
  transform: translateY(-4px);
}

.feature-text {
  padding: 24px 20px 16px;
}

.feature-name {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.7;
}

.feature-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  margin-top: auto;
}

/* ===== 使用流程区 ===== */
#workflow {
  padding: 88px 0;
  background: #fff;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.workflow-step {
  background: #fff;
  border-radius: 16px;
  padding: 0 0 24px;
  text-align: center;
  border: 1px solid #EBEBEB;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.workflow-step:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* 左上角深色步骤标签（设计：#1C1C1C, border-radius: 16px 0 16px 0） */
.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #1C1C1C;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 16px 0 16px 0;
  line-height: 1;
  letter-spacing: 0.05em;
}

.step-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}

.step-name {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 20px 16px 8px;
}

.step-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0 16px;
}

/* ===== 使用场景区 ===== */
#scenes {
  padding: 88px 0;
  background: #FAFAFA;
}

/* 左大图 + 右列表 */
.scenes-layout {
  display: flex;
  gap: 48px;
  align-items: stretch; /* 左右等高 */
}

/* 左侧大图：拉伸填满整列高度，与右侧列表对齐 */
.scenes-photo {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}
.scenes-photo img {
  width: 100%;
  flex: 1;           /* 撑满左侧容器整个高度 */
  min-height: 200px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

/* 右侧场景列表 */
.scenes-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.scene-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #EBEBEB;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.scene-item:hover {
  border-color: #C8EDD9;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* 激活态：设计稿渐变绿背景 */
.scene-item--active {
  background: linear-gradient(137deg, #E9FFF2 0%, rgba(255,255,255,0.6) 100%);
  border-color: #C8EDD9;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.scene-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

.scene-info { flex: 1; min-width: 0; }

.scene-name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.scene-desc {
  font-size: 15px;
  color: #999;
  line-height: 1.55;
}

/* ===== 导出格式区（banner2 背景） ===== */
#screenshots {
  padding: 88px 0;
  background-image: url('../img/banner2.jpg');
  background-size: cover;
  background-position: center;
}

#screenshots .sec-subtitle { color: rgba(255,255,255,0.8); }

.export-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 卡片横排：左侧 pill+标题+描述 / 右侧图标 */
.export-card {
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.33);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  transition: background 0.2s, transform 0.2s;
}
.export-card:hover {
  background: rgba(255,255,255,0.4);
  transform: translateY(-4px);
}

/* 左侧文字区 */
.export-card-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 彩色渐变标签 */
.export-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  white-space: nowrap;
}
.export-pill--pdf {
  background-image: linear-gradient(103deg, #FC7979 7%, #E73333 100%);
}
.export-pill--img {
  background-image: linear-gradient(270deg, #0C93FA 0%, #12CEFD 94%);
}
.export-pill--xml {
  background-image: linear-gradient(135deg, #CBB0FF 0%, #804AFF 100%);
}

/* 右侧图标 */
.export-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.export-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.export-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* ===== 下载区 ===== */
#download {
  padding: 100px 0;
  background: #fff;
}

/* 副标题 */
.dl-note {
  font-size: 16px;
  color: #999;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 16px;
  text-align: center;
}

.dl-meta {
  font-size: 15px;
  color: #333;
  text-align: center;
  margin: 0 0 48px;
}
.dl-meta-sep {
  display: inline-block;
  margin: 0 16px;
  color: #ccc;
}

/* 三栏：左商店列 | 中手机 | 右商店列（设计比例 440:378:440） */
.download-layout {
  display: flex;
  gap: 0;
  align-items: center;
}

/* 左/右商店列：等宽，flex:1 */
.download-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 中间手机：设计 378px，按容器比例约 27%，固定宽度 320px */
.download-phone {
  flex: 0 0 320px;
  margin: 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-phone img {
  width: 100%;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 28px 72px rgba(0,0,0,0.20);
}

/* 商店按钮：设计卡片 440×104px */
.store-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.store-btn:hover {
  border-color: #9dd9bb;
  box-shadow: 0 8px 24px rgba(45,183,124,0.14);
}
.store-btn--disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* 商店图标：设计 56px */
.store-btn > img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 文字信息 */
.store-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 商店名：设计 20px */
.store-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}

/* 渠道名：设计 14px */
.store-channel {
  font-size: 13px;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右侧箭头圆圈：设计 40×40px，#1C1C1C */
.store-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1C1C1C;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-arrow::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  transform: rotate(45deg) translate(-1px, 1px);
}

/* ===== FAQ 区 ===== */
#faq {
  padding: 88px 0;
  background: #F7FAF8;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8f0ec;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open {
  box-shadow: 0 4px 20px rgba(45,183,124,0.1);
  border-color: #b2e8d0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-q-text {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a2e;
  flex: 1;
}

.faq-icon-img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon-img { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

/* ===== CTA Banner ===== */
/* 设计：1920×360px banner，logo(148px) 左，标题右，按钮下方居中
 * 缩放比 0.811 → logo≈120px，标题≈39px，按钮高≈58px */
#cta {
  background-image: url('../img/img_footer_banner.png');
  background-size: cover;
  background-position: center;
}

.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 32px 56px;
}

/* 上方横排：logo + 右侧文字 */
.cta-main {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}

/* Logo：设计 148px × 0.811 ≈ 120px */
.cta-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  flex-shrink: 0;
}

.cta-text {
  text-align: left;
}

/* 标题：设计 48px × 0.811 ≈ 39px */
.cta-title {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* 副标题：设计 24px × 0.811 ≈ 19px */
.cta-sub {
  font-size: clamp(14px, 1.25vw, 20px);
  color: rgba(255,255,255,0.85);
}

/* 按钮：设计 240×72px，bg #39D979 绿色，阴影 */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #39D979;
  color: #fff;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 700;
  padding: 16px 44px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(57,217,121,0.35);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
.btn-cta:hover {
  background: #2ec96e;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(57,217,121,0.45);
}
.btn-cta img { width: 22px; height: 22px; }

/* ===== Footer ===== */
#footer {
  background: #111;
  padding: 40px 0;
  text-align: center;
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-bottom {
  font-size: 14px;
  line-height: 30px;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}
.footer-bottom strong {
  font-weight: 600;
  color: #fff;
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.footer-bottom a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
