/* ═══════════════════════════════════════════════════════
   解决方案重构页面样式
   容器限定：.refactored-solution-*
   ═══════════════════════════════════════════════════════ */

/* ── CSS 变量定义（与目标页面一致） ── */
:root {
    --rs-brand: #3366ff;
    --rs-brand-hover: #2952e0;
    --rs-brand-light: #eef2ff;
    --rs-bg-page: #f4f5f7;
    --rs-bg-card: #ffffff;
    --rs-bg-subtle: #f8f9fb;
    --rs-text-main: #1d2129;
    --rs-text-body: #4e5565;
    --rs-text-muted: #8892a3;
    --rs-border: #e5e7ec;
    --rs-border-hair: #eff1f5;
    --rs-success: #38a169;
    --rs-warning: #f59e0b;
    --rs-danger: #e5484d;
    --rs-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --rs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --rs-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --rs-radius-sm: 6px;
    --rs-radius-md: 8px;
    --rs-radius-lg: 16px;
    --rs-ease: cubic-bezier(0.3, 0, 0.2, 1);
    --rs-max-width: 1200px;
}

/* ── 全局重置（仅限本页面容器内） ── */
.refactored-solution-banner,
.refactored-solution-section,
.refactored-solution-highlight-section,
.refactored-solution-video-section,
.refactored-solution-cta-section {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════
   Banner 区
   ═══════════════════════════════════════════════════════ */
.refactored-solution-banner {
    background: linear-gradient(135deg, #eef2ff 0%, #dbe4ff 40%, #e8f0ff 100%);
    background-image: url('/developer/images/banner-solution.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--rs-border-hair);
    /* 避免 Header 固定定位遮挡（60px 间距） */
    margin-top: 60px !important;
}

.refactored-solution-banner-inner {
    max-width: var(--rs-max-width);
    padding-left: 100px;
    padding-right: 100px;
    width: 100%;
}

.refactored-solution-banner .refactored-solution-banner-icon {
    font-size: 42px;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.refactored-solution-banner h1 {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 62px;
}

.refactored-solution-banner p {
    font-size: 16px;
    color: #fff;
    max-width: 560px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   解决方案列表区
   ═══════════════════════════════════════════════════════ */
.refactored-solution-section {
    padding: 48px 0;
}

.refactored-solution-section-inner {
    max-width: var(--rs-max-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* ── 标题栏 ── */
.refactored-solution-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.refactored-solution-header-bar h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--rs-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.refactored-solution-header-bar h2 i {
    font-size: 24px;
    color: var(--rs-brand);
}

/* ── 卡片容器（Flex 布局，4列） ── */
.refactored-solution-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ── 卡片样式（与旧页面一致） ── */
.refactored-solution-card {
    width: 276px;
    height: 363px;
    margin-right: 32px;
    margin-bottom: 32px;
    flex-shrink: 0;
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    transition: box-shadow .5s;
}

.refactored-solution-card:nth-child(4n) {
    margin-right: 0;
}

.refactored-solution-card a {
    text-align: center;
    position: relative;
    display: block;
    transition: all .7s;
}

.refactored-solution-card a:hover {
    transition: all .5s;
    text-decoration: none;
}

/* ── 卡片图片 ── */
.refactored-solution-card a img {
    width: 276px;
    height: 295px;
    display: block;
}

/* ── 悬停遮罩层 ── */
.refactored-solution-card a .hovermsg {
    display: none;
    height: 0;
    transition: all .5s ease;
    opacity: 1;
}

.refactored-solution-card a:hover .hovermsg {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 295px;
    background: #131824;
    opacity: 0.76;
    color: #333;
    box-sizing: border-box;
    padding: 45px;
    transition: all .5s ease;
}

.refactored-solution-card a .hovermsg p {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 26px;
    text-align: left;
    color: #fff;
}

.refactored-solution-card a .hovermsg .hoverbtn {
    position: absolute;
    bottom: 20px;
    left: 33%;
    width: 99px;
    height: 30px;
    line-height: 30px;
    opacity: 1;
    border: 1px solid #ffffff;
    border-radius: 5px;
    color: #fff;
}

/* ── 卡片标题 ── */
.refactored-solution-card a .tip {
    width: 80%;
    margin: 0 auto;
    height: 64px;
    font-size: 16px;
    color: #666;
    line-height: 65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.refactored-solution-card a:hover .tip {
    text-decoration: none;
}

.refactored-solution-card a:hover {
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   响应式设计
   ═══════════════════════════════════════════════════════ */

/* 平板及以下：单列布局 */
@media (max-width: 1366px) {
    .refactored-solution-banner h1 {
        font-size: 32px;
        line-height: 42px;
    }
}

@media (max-width: 768px) {
    .refactored-solution-banner {
        height: 300px;
    }

    .refactored-solution-banner h1 {
        font-size: 22px;
        line-height: 26px;
    }

    .refactored-solution-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .refactored-solution-card {
        margin-right: 16px;
        margin-bottom: 16px;
    }

    .refactored-solution-card:nth-child(4n) {
        margin-right: 16px;
    }

    .refactored-solution-card:nth-child(2n) {
        margin-right: 0;
    }
}

/* 手机端进一步优化 */
@media (max-width: 640px) {
    .refactored-solution-banner {
        height: 240px;
    }

    .refactored-solution-banner h1 {
        font-size: 18px;
        line-height: 26px;
    }

    .refactored-solution-section-inner {
        padding: 0 14px;
    }

    .refactored-solution-banner-inner {
        padding: 0 20px;
    }

    .refactored-solution-card {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .refactored-solution-card:nth-child(4n) {
        margin-right: 0;
    }

    .refactored-solution-card:nth-child(2n) {
        margin-right: 0;
    }
}
