/* ============================================================
   Chifine — Application Widgets 样式表
   视觉统一锁在本文件（配合 widget.php 的结构类名），
   运营只通过 Elementor 面板改内容，无需触碰 CSS。
   类名前缀 cfw- 避免与站内其它样式冲突。
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

.cfw-widget{font-family:'Inter',sans-serif;color:#1F1F22}
.cfw-widget *{box-sizing:border-box}

/* ================= Hero ================= */
.cfw-hero{background:#fff;overflow:hidden}
.cfw-hero-inner{max-width:1440px;margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:560px;gap:64px}
.cfw-hero-left{padding:80px 0}
.cfw-hero-tag{display:inline-flex;align-items:center;gap:10px;font-family:'IBM Plex Sans',sans-serif;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:#EA6027;margin-bottom:20px}
.cfw-hero-tag::before{content:'';width:28px;height:2px;background:#EA6027}
.cfw-hero-title{font-family:'Archivo',sans-serif;font-weight:800;font-size:clamp(32px,4vw,52px);line-height:1.08;letter-spacing:-.02em;color:#1F1F22;margin:0 0 20px}
.cfw-hero-sub{font-size:16px;line-height:1.7;color:#5A5A5F;margin:0 0 32px;max-width:520px}
.cfw-hero-features{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin-bottom:36px}
.cfw-hero-feat{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:#3A3A3F}
.cfw-hero-feat-check{width:20px;height:20px;min-width:20px;background:#EA6027;border-radius:4px;display:flex;align-items:center;justify-content:center}
.cfw-hero-feat-check svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:2.5}
.cfw-hero-btns{display:flex;gap:12px;flex-wrap:wrap}
.cfw-btn-primary{display:inline-flex;align-items:center;gap:8px;background:#EA6027;color:#fff;padding:0 24px;height:48px;font-size:15px;font-weight:600;border:none;cursor:pointer;border-radius:8px;transition:background .2s;text-decoration:none}
.cfw-btn-primary:hover{background:#C94E1E}
.cfw-btn-primary svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.cfw-btn-secondary{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#1F1F22;border:1px solid #EAE7E3;padding:0 24px;height:48px;font-size:15px;font-weight:600;cursor:pointer;border-radius:8px;transition:all .2s;text-decoration:none}
.cfw-btn-secondary:hover{border-color:#EA6027;color:#EA6027}
.cfw-hero-right{position:relative;height:100%;min-height:480px;padding:40px 0}
.cfw-hero-img-main{width:100%;height:100%;min-height:440px;border-radius:12px;overflow:hidden;background:#F7F5F2}
.cfw-hero-img-main img{width:100%;height:100%;object-fit:cover;display:block}

/* ================= Section 通用 ================= */
.cfw-section{background:#F7F5F2;padding:96px 0}
.cfw-section--white{background:#fff}
.cfw-inner{max-width:1280px;margin:0 auto;padding:0 24px}
.cfw-header{text-align:center;margin-bottom:56px}
.cfw-tag{font-family:'IBM Plex Sans',sans-serif;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:#EA6027;margin-bottom:12px}
.cfw-title{font-family:'Archivo',sans-serif;font-weight:700;font-size:clamp(28px,3.5vw,44px);line-height:1.15;letter-spacing:-.01em;color:#1F1F22;margin:0 0 12px}
.cfw-desc{font-size:16px;line-height:1.6;color:#5A5A5F;max-width:560px;margin:0 auto}

/* ================= Tabs ================= */
.cfw-tabs-wrap{display:grid;grid-template-columns:300px 1fr;gap:24px;background:#1F1F22;border-radius:12px;overflow:hidden;min-height:480px}
.cfw-tab-list{display:flex;flex-direction:column;padding:24px 0}
.cfw-tab-btn{padding:20px 28px;font-family:'Inter',sans-serif;font-size:15px;font-weight:500;color:rgba(245,243,239,.5);text-align:left;border:none;background:transparent;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.06);transition:all .2s}
.cfw-tab-btn:hover{color:#F5F3EF;background:rgba(255,255,255,.04)}
.cfw-tab-btn.active{color:#fff;background:#EA6027}
.cfw-tab-content{background:#F7F5F2;padding:40px;display:flex;flex-direction:column;justify-content:center}
.cfw-tab-panel{display:none;flex-direction:column}
.cfw-tab-panel.is-active{display:flex}
.cfw-tab-title{font-family:'Archivo',sans-serif;font-weight:700;font-size:26px;color:#1F1F22;margin-bottom:12px}
.cfw-tab-text{font-size:15px;line-height:1.7;color:#5A5A5F;margin-bottom:20px}
.cfw-tab-imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.cfw-tab-imgs img{width:100%;aspect-ratio:1/1;border-radius:8px;object-fit:cover;border:1px solid #EAE7E3}

/* ================= 占位灰块（未选图时） ================= */
.cfw-img-ph{width:100%;aspect-ratio:1/1;border-radius:8px;background:#EAE7E3}

/* ================= Industry grid ================= */
.cfw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.cfw-card{background:#fff;border:1px solid #EAE7E3;border-radius:8px;padding:28px;transition:all .25s;display:flex;flex-direction:column}
.cfw-card:hover{border-color:#EA6027;transform:translateY(-4px);box-shadow:0 12px 32px rgba(31,31,34,.08)}
.cfw-card-no{font-family:'Archivo',sans-serif;font-weight:800;font-size:14px;color:#EA6027;margin-bottom:10px}
.cfw-card-name{font-family:'Inter',sans-serif;font-size:18px;font-weight:600;color:#1F1F22;margin-bottom:8px}
.cfw-card-text{font-size:14px;line-height:1.6;color:#5A5A5F;margin-bottom:14px}
.cfw-card-link{font-size:14px;font-weight:600;color:#EA6027;text-decoration:none;display:inline-flex;align-items:center;gap:6px;margin-top:auto}
.cfw-card-link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}

/* ================= CTA ================= */
.cfw-cta{background:#EA6027;padding:72px 0;position:relative;overflow:hidden}
.cfw-cta-inner{max-width:1280px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:40px;position:relative;z-index:1;flex-wrap:wrap}
.cfw-cta-title{font-family:'Archivo',sans-serif;font-weight:700;font-size:clamp(24px,3vw,36px);color:#fff;margin-bottom:12px}
.cfw-cta-text{font-size:16px;line-height:1.6;color:rgba(255,255,255,.85);max-width:520px}
.cfw-cta-btn{display:inline-flex;align-items:center;gap:8px;background:#1F1F22;color:#fff;padding:0 32px;height:52px;font-size:15px;font-weight:600;border:none;cursor:pointer;border-radius:8px;text-decoration:none;white-space:nowrap}

/* ================= 响应式 ================= */
@media(max-width:1024px){
  .cfw-hero-inner{grid-template-columns:1fr;gap:32px;min-height:auto}
  .cfw-hero-left{padding:60px 0 0}
  .cfw-hero-right{min-height:360px;padding:0 0 40px}
  .cfw-hero-features{grid-template-columns:1fr}
  .cfw-tabs-wrap{grid-template-columns:1fr}
  .cfw-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .cfw-hero-title{font-size:28px}
  .cfw-grid{grid-template-columns:1fr}
  .cfw-tab-imgs{grid-template-columns:1fr 1fr}
  .cfw-cta-inner{flex-direction:column;align-items:flex-start}
}
