
/* ==========================================
   基础与整站白色调性适配
   ========================================== */
.san-ace-app-section {
    padding: 90px 0;
    background-color: #ffffff; /* 严格全站极简白底色 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 头部样式 */
.app-header {
    text-align: center;
    margin-bottom: 60px;
}

.app-tagline {
    color: #004B87; /* San Ace 品牌工业蓝 */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.app-header h2 {
    color: #0F172A;
    font-size: 34px;
    font-weight: 700;
    margin: 0;
}

.app-header-line {
    width: 45px;
    height: 3px;
    background-color: #C1272E; /* 品牌红点缀中轴线 */
    margin: 18px auto 0 auto;
}

/* ==========================================
   三分栏卡片网格布局（台式机/笔记本电脑）
   ========================================== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 独立的图文分体卡片结构 */
.app-split-card {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden; /* 隐藏切除溢出的图片边缘 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* 上图下文垂直分体排列 */
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 💥 Hover 卡片整体悬浮与弱投影 */
.app-split-card:hover {
    transform: translateY(-5px);
    border-color: #CBD5E1;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

/* 1. 上半部分：纯图片容器 */
.card-image-wrapper {
    width: 100%;
    height: 190px; /* 固定图片显示高度 */
    overflow: hidden;
    background-color: #f1f5f9;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片等比例拉伸填充不缩放变形 */
    transition: transform 0.5s ease;
}

/* 💥 Hover 时图片纯粹在框内平滑放大，文字区不动 */
.app-split-card:hover .card-image-wrapper img {
    transform: scale(1.06);
}

/* 2. 下半部分：纯文字与图标容器 */
.card-text-wrapper {
    padding: 28px 24px;
    background-color: #ffffff; /* 确保文字区永远是干净纯白的 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* 标题加图标对齐行 */
.card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* 保留的小图标样式 */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon .material-icons {
    font-size: 20px;
}

/* 红蓝交错的品牌小图标点缀 */
.icon-red { color: #C1272E; }
.icon-blue { color: #004B87; }

.card-text-wrapper h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* 💥 Hover 时标题文字变成品牌红 */
.app-split-card:hover .card-text-wrapper h3 {
    color: #C1272E;
}

.card-text-wrapper p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* 3. 卡片底部隐藏的品牌红饰线 */
.card-bottom-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background-color: #C1272E;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-split-card:hover .card-bottom-line {
    transform: scaleX(1);
}


/* ==========================================
   屏幕适配（媒体查询）
   ========================================== */

/* 1. 笔记本电脑端 (1024px 到 1280px) */
@media (max-width: 1280px) {
    .app-grid { gap: 20px; }
    .card-text-wrapper { padding: 25px 20px; }
    .app-header h2 { font-size: 30px; }
    .card-text-wrapper h3 { font-size: 16px; }
}

/* 2. 平板电脑端 (768px 到 1023px) - 自动折叠为双列卡片 */
@media (max-width: 1023px) {
    .app-container { padding: 0 30px; }
    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* 3. 移动端 / 手机 (767px 及以下) - 自动变为单列垂直卡片流 */
@media (max-width: 767px) {
    .san-ace-app-section { padding: 60px 0; }
    .app-container { padding: 0 20px; }
    .app-header { margin-bottom: 40px; }
    .app-header h2 { font-size: 26px; }
    .app-grid { grid-template-columns: 1fr; gap: 20px; }
    .card-image-wrapper { height: 180px; } /* 适合手机的舒适图高 */
}
