/* ==================================================================
   case_card.css — 案例 / 关联产品卡片样式
   ------------------------------------------------------------------
   来源：由 废弃view_article.css 迁移而来（B4.2）。
   迁移原则：只搬「模板确实在用、且全站别处没有定义」的类，
             声明值逐字保留，确保零视觉回归。

   引入方式：仅由 view_appcase_common.htm 按需引入。
   ⚠️ 请勿加入 head_meta.htm 的全局 CSS 列表 —— 这些类只在
      应用/案例详情页出现，全站加载会白白增加未使用 CSS 体积。

   未迁移（随废弃文件一并删除）：
     .article-card            → base.css:105 与 view_news.css:7 已有定义，属重复
     .vibration-intro-text    → 全站无模板使用
     .pain-point-*            → 全站无模板使用
     .solution-pill           → 全站无模板使用
     @keyframes rotateDashed  → 仅服务于 .pain-point-icon-wrapper，一并废弃
   ================================================================== */

/* ------------------------------------------------------------------
   1. 区块标题（居中 + 下方短横线装饰）
   用于「相关系列产品」「关联案例」两个区块的 h3
   ------------------------------------------------------------------ */
.img-layout-section-title {
    text-align: center;
    margin-top: 4.5rem;
    margin-bottom: 2.5rem;
}

.img-layout-section-title h1,
.img-layout-section-title h2,
.img-layout-section-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    display: inline-block;
    position: relative;
    padding-bottom: 0.85rem;
    margin: 0;
}

.img-layout-section-title h1::after,
.img-layout-section-title h2::after,
.img-layout-section-title h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 35%;
    width: 30%;
    height: 4px;
    background-color: #007bff;
}

/* ------------------------------------------------------------------
   2. 关联案例列表容器
   ⚠️ 该类此前【全站无任何定义】，等于一个空类名。
   这里刻意只写不改变现有渲染结果的声明，以保证迁移前后像素一致；
   保留类名是为了后续需要加间距/分隔线时有挂载点。
   ------------------------------------------------------------------ */
.case-list-wrapper {
    display: block;
    width: 100%;
}

/* ------------------------------------------------------------------
   3. 关联案例单项卡片
   ------------------------------------------------------------------ */
.case-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 1.5rem;
}

.case-item-row {
    background-color: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.case-item-link:hover .case-item-row {
    transform: translateY(-4px);
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.02);
}

.case-item-link:hover .hover-primary-title {
    color: #007bff !important;
}

.case-img-wrap {
    background-color: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ------------------------------------------------------------------
   4. 关联系列产品卡（左图右文，一行两个）
   ------------------------------------------------------------------ */
.product-series-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-series-card {
    background-color: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-series-link:hover .product-series-card {
    transform: translateY(-4px);
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.1);
}

.product-series-img-col {
    width: 40%;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
}

.product-series-img-col img {
    max-width: 95%;
    max-height: 160px;
    height: auto;
    object-fit: contain;
}

.product-series-info-col {
    width: 60%;
    padding: 2rem 1.5rem;
}

.product-series-info-col h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.25rem;
    transition: color 0.3s ease;
}

.product-series-link:hover h4 {
    color: #007bff;
}

/* ------------------------------------------------------------------
   5. 「展开 / 收起更多案例」按钮
   ⚠️ 这组样式此前虽有定义，但模板里【根本没有对应按钮】，
   导致 #moreCasesCollapse 中第 4 条起的案例永久不可见。
   按钮已在 view_appcase_common.htm 补回，交互见 view_appcase.js 第 4 节。
   ------------------------------------------------------------------ */
.toggle-btn-wrapper {
    text-align: center;
    margin: 40px 0;
}

#btnToggleCases {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a4a4a;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#btnToggleCases:hover {
    color: #ffffff;
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
    transform: translateY(-1px);
}

#btnToggleCases:active {
    transform: translateY(1px);
}

#btnToggleCases i {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}
