/* VIGX CMS 区块样式（仅 CMS 区块化页面使用，命名空间 cmsb-，不影响既有 styles.css）
   设计令牌继承 :root（--brand/--paper/--night/--radius/--sans 等），主题变更自动生效。 */

.cmsb { padding: 56px 24px; position: relative; overflow: hidden; }
.cmsb-inner { max-width: var(--max, 1240px); margin: 0 auto; }

.cmsb-width-narrow .cmsb-inner { max-width: 760px; }
.cmsb-width-wide .cmsb-inner { max-width: var(--wide, 1440px); }
.cmsb-align-center { text-align: center; }
.cmsb-gap-none { padding-top: 0; }
.cmsb-gap-s { padding-top: 28px; }
.cmsb-gap-m { padding-top: 56px; }
.cmsb-gap-l { padding-top: 96px; }

.cmsb-heading { font-size: clamp(26px, 4vw, 40px); font-weight: 640; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--night, #101214); }
.cmsb-subheading { font-size: clamp(15px, 2vw, 18px); line-height: 1.7; margin: 0 0 28px; color: #444; }
.cmsb-align-center .cmsb-subheading { margin-left: auto; margin-right: auto; max-width: 720px; }

/* hero */
.cmsb-hero { position: relative; min-height: min(68svh, 620px); display: flex; align-items: center; border-radius: var(--radius, 24px); overflow: hidden; background: var(--night, #101214); }
.cmsb-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmsb-hero-shade { position: absolute; inset: 0; background: rgba(10, 11, 12, 0.44); }
.cmsb-hero-body { position: relative; z-index: 1; padding: 72px 56px; max-width: 760px; }
.cmsb-hero-title { color: #fff; font-size: clamp(34px, 5.4vw, 62px); font-weight: 680; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 16px; }
.cmsb-hero-subtitle { color: rgba(255, 255, 255, 0.86); font-size: clamp(16px, 2.2vw, 21px); line-height: 1.65; margin: 0 0 30px; }
.cmsb-hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border-radius: 999px; background: var(--brand, #ee4d2d); color: #fff; font-weight: 640; text-decoration: none; transition: background 0.2s ease; }
.cmsb-hero-cta:hover { background: var(--brand-dark, #c9341e); }
.cmsb-hero--light { background: var(--paper, #f5f3ee); }
.cmsb-hero--light .cmsb-hero-shade { background: rgba(245, 243, 238, 0.24); }
.cmsb-hero--light .cmsb-hero-title { color: var(--night, #101214); }
.cmsb-hero--light .cmsb-hero-subtitle { color: #444; }

/* hero layout_json 受控档位：min_height / title_size / align（运营在 CMS 下拉选择，无需开发） */
.cmsb-hero--min-s { min-height: 340px; }
.cmsb-hero--min-m { min-height: 520px; }
.cmsb-hero--min-l { min-height: 680px; }
.cmsb-hero--min-xl { min-height: 820px; }
.cmsb-hero--min-full { min-height: 100svh; }
.cmsb-hero--title-s .cmsb-hero-title { font-size: clamp(28px, 4.2vw, 44px); }
.cmsb-hero--title-l .cmsb-hero-title { font-size: clamp(40px, 6.6vw, 84px); }
.cmsb-hero--align-center .cmsb-hero-body { margin-left: auto; margin-right: auto; text-align: center; }
.cmsb-hero--align-center .cmsb-hero-cta { margin-left: auto; margin-right: auto; }

/* features / cards */
.cmsb-cards { display: grid; gap: 18px; }
.cmsb-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmsb-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmsb-card { display: block; background: #fff; border: 1px solid rgba(16, 18, 20, 0.08); border-radius: var(--radius, 24px); padding: 26px; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.cmsb-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(16, 18, 20, 0.12); }
.cmsb-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius, 24px) - 8px); margin-bottom: 18px; background: var(--paper, #f5f3ee); }
.cmsb-card h3 { font-size: 19px; font-weight: 620; margin: 0 0 8px; color: var(--night, #101214); }
.cmsb-card p { font-size: 14.5px; line-height: 1.7; margin: 0; color: #555; }

/* gallery */
.cmsb-gallery { display: grid; gap: 16px; }
.cmsb-gallery--grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmsb-gallery--grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmsb-gallery-item { margin: 0; }
.cmsb-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius, 24px) - 6px); background: var(--paper, #f5f3ee); }
.cmsb-gallery-item figcaption { font-size: 13px; color: #666; margin-top: 8px; }

/* faq */
.cmsb-faq { border-top: 1px solid rgba(16, 18, 20, 0.1); }
.cmsb-faq-item { border-bottom: 1px solid rgba(16, 18, 20, 0.1); }
.cmsb-faq-item summary { cursor: pointer; padding: 20px 4px; font-size: 17px; font-weight: 600; color: var(--night, #101214); list-style: none; position: relative; padding-right: 36px; }
.cmsb-faq-item summary::-webkit-details-marker { display: none; }
.cmsb-faq-item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.cmsb-faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.cmsb-faq-answer { padding: 0 4px 22px; font-size: 15px; line-height: 1.75; color: #555; }

/* rich text */
.cmsb-prose { font-size: 16px; line-height: 1.85; color: #3a3a3a; }
.cmsb-prose h2, .cmsb-prose h3 { color: var(--night, #101214); letter-spacing: -0.01em; margin: 30px 0 12px; }
.cmsb-prose img { max-width: 100%; border-radius: calc(var(--radius, 24px) - 8px); }
.cmsb-prose a { color: var(--brand, #ee4d2d); }
.cmsb-prose ul, .cmsb-prose ol { padding-left: 22px; }

/* cta */
.cmsb-cta { border-radius: var(--radius, 24px); background: var(--night, #101214); color: #fff; padding: 56px 40px; text-align: center; }
.cmsb-cta .cmsb-heading { color: #fff; }
.cmsb-cta .cmsb-subheading { color: rgba(255, 255, 255, 0.78); max-width: 640px; margin-left: auto; margin-right: auto; }
.cmsb-cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 32px; margin-top: 12px; border-radius: 999px; background: var(--brand, #ee4d2d); color: #fff; font-weight: 640; text-decoration: none; }
.cmsb-cta-btn:hover { background: var(--brand-dark, #c9341e); }
.cmsb-cta--light { background: #fff; border: 1px solid rgba(16, 18, 20, 0.08); }
.cmsb-cta--light .cmsb-heading { color: var(--night, #101214); }
.cmsb-cta--light .cmsb-subheading { color: #555; }

/* responsive */
@media (max-width: 900px) {
  .cmsb { padding: 40px 18px; }
  .cmsb-cards--cols-3, .cmsb-gallery--grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmsb-hero-body { padding: 48px 28px; }
}
@media (max-width: 620px) {
  .cmsb-cards--cols-2, .cmsb-cards--cols-3, .cmsb-gallery--grid-2, .cmsb-gallery--grid-3 { grid-template-columns: minmax(0, 1fr); }
  .cmsb-hero { min-height: 56svh; }
  .cmsb-hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  /* 档位在小屏按比例收敛，避免大档位撑爆移动端首屏 */
  .cmsb-hero--min-s { min-height: 260px; }
  .cmsb-hero--min-m { min-height: 380px; }
  .cmsb-hero--min-l { min-height: 460px; }
  .cmsb-hero--min-xl { min-height: 560px; }
  .cmsb-hero--title-l .cmsb-hero-title { font-size: clamp(30px, 8.6vw, 44px); }
  .cmsb-hero--title-s .cmsb-hero-title { font-size: clamp(26px, 7.4vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .cmsb-card, .cmsb-card:hover, .cmsb-faq-item summary::after { transition: none; }
}
