/* ============================================================
   免费工具页底部 CTA · 专属作用域 .tcta-
   不与全站任何组件交叉；深蓝金边呼应 art-toolsuggest 既有视觉。
   对齐机制（2026-12-06 v2，全站 border-box 口径）：卡片边缘=页面主容器内容边缘。
   各页 include 时传 'w'（容器 CSS max-width，border-box 含 padding）与
   'pad'（容器侧 padding）：.tcta 与容器同宽同距 → 卡片边缘自动对齐。
   默认 1180+20，适配 tools / ea-backtest。
   ============================================================ */
.tcta {
    --tcta-w: 1180px;
    --tcta-pad: 20px;
    margin: 34px auto 10px;
    max-width: var(--tcta-w);
    padding: 0 var(--tcta-pad);
}
.tcta-in {
    padding: 26px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f1d34, #12233e);
    border: 1px solid rgba(212, 168, 83, .25);
}
.tcta-hd { display: flex; flex-direction: column; gap: 7px; }
.tcta-en { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: rgba(212, 168, 83, .65); }
.tcta-t { margin: 0; font-size: 18px; font-weight: 700; color: #f2f6fb; line-height: 1.4; }
.tcta-sub { margin: 0; font-size: 13px; line-height: 1.75; color: #b9c4d4; }

.tcta-cta { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
/* .tcta a. 前缀提升优先级：防反诈站 .afh3 a{color:inherit} 把按钮文字染暗 */
.tcta a.tcta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px;
    padding: 8px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d4a853, #c08f2f);
    color: #17253c; font-size: 14px; font-weight: 700;
    text-decoration: none;
    transition: filter .18s, transform .18s;
}
.tcta a.tcta-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tcta a.tcta-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(233, 240, 248, .45);
    color: #e9f0f8; font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: border-color .18s, color .18s;
}
.tcta a.tcta-ghost:hover { border-color: rgba(212, 168, 83, .7); color: #f6d992; }

.tcta-note { margin: 14px 0 0; font-size: 11px; line-height: 1.7; color: #8a96ab; }

@media (max-width: 640px) {
    .tcta { margin: 24px auto 6px; }
    .tcta-in { padding: 20px 16px; }
    .tcta-t { font-size: 16px; }
    .tcta-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    /* 各页容器在窄屏下的侧 padding（实测口径 2026-12-06）。
       !important 用于压过 PHP 传入的 inline --tcta-pad；兄弟选择器
       （.cmp-page ~ .tcta 等）用于 CTA 在页面容器之外的三页。 */
    .cmp-page ~ .tcta { --tcta-pad: 12px !important; }   /* 对比台窄屏 12px */
    .afh3 .tcta, .afc .tcta { --tcta-pad: 18px !important; }  /* 反诈两页窄屏 18px */
    .xrp ~ .tcta { --tcta-pad: 14px !important; }        /* 汇率页窄屏 14px */
    .bc-hero ~ .tcta { --tcta-pad: 14px !important; }    /* 券商对比窄屏 14px */
}
