/* ============================================================
 * 场景页「交易导向」新区块样式
 *
 * 为什么单独一个文件：
 *   style.css 是 _theme/build-theme.js 生成的（原站 8 个 <style> 块拼接），
 *   手工往里加样式下次构建就没了。这个文件放在 assets/css/ 下，
 *   robocopy 没有 /MIR 参数，不会删多余文件，所以是安全的。
 *
 * 设计令牌全部取自 style.css 的 :root，不引入新颜色。
 *
 * 区块：
 *   1. .app-note-*    选型提示高亮框
 *   2. .app-trade-*   交易信息（MOQ / 交期 / 贴牌 / 包装）
 *   3. .app-faq-*     FAQ（用原生 <details>，无需 JS）
 *   4. .app-cta-*     收尾行动召唤
 * ============================================================ */

/* ---------- 1. 选型提示高亮框 ---------- */
.app-note-section {
  padding-top: 0;
}

.app-note-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  background: #FFF8F1;
  border: 1px solid rgba(232, 119, 34, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.app-note-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
}

.app-note-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.app-note-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- 2. 交易信息 ---------- */
.app-trade-grid {
  display: grid;
  /* 用 320px 而不是 240px：1280px 容器下会排成 3 列，
     6 条交易信息正好 3+3 对称；240px 会排成 4 列变成 4+2，不好看。 */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.app-trade-item {
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.app-trade-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.app-trade-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-trade-value {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--primary-dark);
}

/* ---------- 3. FAQ ---------- */
.app-faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.app-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.app-faq-q::-webkit-details-marker {
  display: none;
}

.app-faq-q:hover {
  background: var(--primary-soft);
}

.app-faq-q::after {
  content: '+';
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.app-faq-item[open] .app-faq-q::after {
  content: '−';
  background: var(--primary);
  color: #fff;
}

.app-faq-a {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-light);
}

.app-faq-a p {
  margin: 0;
}

/* ---------- 4. 收尾 CTA ---------- */
.app-cta-section {
  padding-bottom: 72px;
}

.app-cta-box {
  position: relative;
  overflow: hidden;
  padding: 46px 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.app-cta-box::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.app-cta-title {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.app-cta-desc {
  position: relative;
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.app-cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 26px;
}

.app-cta-actions .btn-outline,
.app-cta-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  background: transparent !important;
}

.app-cta-actions .btn-outline:hover,
.app-cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #fff !important;
}

.app-cta-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-cta-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
}

.app-cta-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: 700;
}

/* ---------- 计算器引导块（场景页 / 产品页共用）---------- */
.calc-teaser {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 900px;
  margin: 26px auto 0;
  padding: 18px 22px;
  background: var(--primary-soft);
  border: 1px solid rgba(26, 95, 180, 0.18);
  border-radius: var(--radius);
}

.calc-teaser-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
}

.calc-teaser-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-light);
}

.calc-teaser-text a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 95, 180, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.calc-teaser-text a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .app-note-box {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .app-cta-box {
    padding: 34px 22px;
  }

  .app-trade-grid {
    grid-template-columns: 1fr;
  }
}
