/**
 * Coze / 高流量价格页样式 v20260719b
 */

/* 修复 article-mobile.css 把 .main-wrap 设为 max-width:100% 导致宽屏主栏与侧栏被拉开 */
body.coze-price-page .main-wrap {
  max-width: var(--blog-shell-max, 1200px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.coze-price-page .article-main.coze-price-article {
  max-width: none;
  width: 100%;
}

body.coze-price-page .article-main.coze-price-article h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 12px;
}

/* ── 价格快照 Hero ── */
.coze-price-hero {
  margin: 0 0 24px;
  padding: 20px 22px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.coze-price-hero__lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.coze-price-hero__lead a {
  color: #6ee7b7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.coze-price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coze-price-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}

.coze-price-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(110, 231, 183, 0.45);
}

.coze-price-card--featured {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
  border-color: rgba(52, 211, 153, 0.55);
}

.coze-price-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6ee7b7;
  margin-bottom: 6px;
}

.coze-price-card__price {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.coze-price-card__price span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-left: 2px;
}

.coze-price-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: none;
}

/* ── 章节粘性导航 ── */
.coze-price-nav {
  position: sticky;
  top: 55px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

.coze-price-nav a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.coze-price-nav a:hover {
  color: #047857;
  border-color: #6ee7b7;
  background: #ecfdf5;
}

/* ── 来源提示 ── */
.coze-source-callout {
  margin: 20px 0 28px;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.coze-source-callout p {
  margin: 0;
  max-width: none;
}

.coze-source-callout a {
  font-weight: 600;
}

.coze-source-callout strong {
  color: #b45309;
}

/* ── 表格容器（宽表横向滚动） ── */
body.coze-price-page .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.coze-price-page .table-scroll table {
  max-width: none;
  width: 100%;
  min-width: 520px;
  margin: 0;
  font-size: 14px;
}

body.coze-price-page .table-scroll table th {
  white-space: nowrap;
}

body.coze-price-page .table-scroll table td small {
  color: #64748b;
  font-size: 12px;
}

/* ── 套餐分区标题 ── */
.coze-tier-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.coze-tier-head::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: #10b981;
  flex-shrink: 0;
}

/* ── partner banner 与 CTA 分离 ── */
body.coze-price-page .partner-banner {
  margin-top: 8px;
}

body.coze-price-page .art-mid-cta {
  margin-bottom: 20px;
}

/* ── FAQ 折叠 ── */
.coze-faq-list {
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coze-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.coze-faq-item[open] {
  border-color: #a7f3d0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.coze-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coze-faq-item summary::-webkit-details-marker {
  display: none;
}

.coze-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.coze-faq-item[open] summary::after {
  content: "−";
}

.coze-faq-item__body {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

.coze-faq-item__body p {
  margin: 12px 0 0;
  max-width: none;
}

/* ── 架构图 pre ── */
.coze-arch-pre {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  color: #334155;
}

/* ── quote form 按钮组 ── */
body.coze-price-page .quote-form .cta-btn {
  margin-top: 4px;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ── 移动端 ── */
@media (max-width: 768px) {
  .coze-price-cards {
    grid-template-columns: 1fr;
  }

  .coze-price-nav {
    top: 55px;
    gap: 6px;
    padding: 8px 0;
    margin-left: -4px;
    margin-right: -4px;
  }

  .coze-price-nav a {
    font-size: 12px;
    padding: 5px 10px;
  }

  body.coze-price-page .article-main.coze-price-article {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.coze-price-page .table-scroll table {
    min-width: min(100%, 480px);
    font-size: 13px;
  }

  body.coze-price-page .table-scroll table th,
  body.coze-price-page .table-scroll table td {
    padding: 8px 10px;
  }

  .coze-price-cards--4 {
    grid-template-columns: 1fr;
  }

  body.coze-price-page .quote-form .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0 !important;
  }
}

/* ── 精选摘要 / 一句话答案 ── */
.coze-snippet-answer {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.coze-snippet-answer strong {
  color: #92400e;
}

/* ── 四列价格卡 ── */
.coze-price-cards--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .coze-price-cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── 团队预算计算器 ── */
.coze-price-calc {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.coze-price-calc h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #0f172a;
}

.coze-price-calc .calc-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
}

.coze-price-calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.coze-price-calc label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.coze-price-calc select,
.coze-price-calc input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.coze-price-calc__result {
  padding: 14px 16px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 14px;
  line-height: 1.65;
  color: #065f46;
}

.coze-price-calc__result strong {
  font-size: 1.25rem;
  color: #047857;
}

@media (max-width: 640px) {
  .coze-price-calc__grid {
    grid-template-columns: 1fr;
  }
}

/* ── 价格页底部 sticky 咨询条 ── */
.price-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.price-sticky-cta.is-visible {
  transform: translateY(0);
}

.price-sticky-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.price-sticky-cta__copy {
  flex: 1;
  min-width: 140px;
}

.price-sticky-cta__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.price-sticky-cta__sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.price-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.price-sticky-cta__btn--primary {
  background: #10b981;
  color: #fff;
}

.price-sticky-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
