@charset "UTF-8";
/**
 * 首页特定样式
 * 依赖 main.css 中的 CSS 变量和公共组件
 * 
 * @package RiaFlow_Theme
 * @version 2.0.0
 */

/* ==========================================
   Hero 轮播区域
   ========================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 1020px;
    /* max-height: calc(100vh - var(--nav-container-height)); */
    max-height: 100vh;
    overflow: hidden;
    /* margin-top: var(--nav-container-height); */
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* opacity: 0.8; */
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: var(--container-max-width);
    /* padding: 0 var(--spacing-md); */
    z-index: 2;
}

.hero-title {
    color: var(--text-primary);
    font-size: 64px;
    font-weight: 700;
    line-height: 75px;
    letter-spacing: 0.26px;
    margin-bottom: 50px;
}

.hero-highlight {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.07px;
    margin-bottom: 20px;
}

.hero-description {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-actions .btn-primary {
    width: 220px;
    height: 60px;
    border-radius: var(--border-radius-pill);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    box-shadow: var(--shadow-button);
}

.hero-actions .btn-secondary {
    width: 220px;
    height: 60px;
    border-radius: var(--border-radius-pill);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.44px;
    background: linear-gradient(107deg, #F5F8FF 0%, #F8F4FF 100%);
    border: 1px solid #D1C6E9;
    color: var(--text-primary);
}

.hero-actions .btn-secondary:hover {
    background: linear-gradient(107deg, #EDF2FF 0%, #F2ECFF 100%);
    box-shadow: 0px 4px 12px rgba(125, 79, 192, 0.15);
}

/* Hero 轮播指示器 */
.hero-indicators {
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-pill);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.hero-dot.active {
    width: 32px;
    background: var(--accent-color);
}

/* ==========================================
   痛点场景卡片区域
   ========================================== */
.painpoints-section {
    padding: var(--spacing-4xl) 0;
    background: transparent;
}

.painpoints-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.painpoints-grid {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

.painpoint-card {
    width: 400px;
    flex: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* 三张卡片个性化渐变背景（右上角光晕） */
.painpoints-grid .painpoint-card:nth-child(1) {
    background:
        radial-gradient(ellipse 200px 160px at 105% -5%, rgba(125, 79, 192, 0.15) 0%, transparent 100%),
        var(--bg-card);
}
.painpoints-grid .painpoint-card:nth-child(2) {
    background:
        radial-gradient(ellipse 200px 160px at 105% -5%, rgba(60, 111, 221, 0.14) 0%, transparent 100%),
        var(--bg-card);
}

.painpoints-grid .painpoint-card:nth-child(3) {
    background:
        radial-gradient(ellipse 200px 160px at 105% -5%, rgba(250, 173, 20, 0.18) 0%, transparent 100%),
        var(--bg-card);
}


.painpoint-icon {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.painpoint-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.painpoint-scene {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scene-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: -0.15px;
}

.scene-text {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.painpoint-solution {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--bg-card-highlight);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.solution-label {
    color: var(--text-accent);
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
}

.solution-text {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.painpoint-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.module-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-subtle);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--text-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    letter-spacing: -0.15px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.card-link:hover {
    opacity: 0.8;
}

.card-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   对比表格区域
   ========================================== */
.comparison-section {
    padding: var(--spacing-4xl) 0;
    background: transparent;
}

.comparison-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.comparison-header {
    display: flex;
    background: var(--bg-dark);
    height: 80px;
}

.comparison-header .col-dimension {
    width: 31.25%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    border-right: 1px solid var(--border-color-light);
}

.comparison-header .col-traditional {
    width: 34.375%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    border-right: 1px solid var(--border-color-light);
}

.comparison-header .col-riaflow {
    width: 34.375%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.44px;
    background: var(--accent-color);
}

.comparison-body {
    display: flex;
    flex-direction: column;
}

.comparison-row {
    display: flex;
    height: 65px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.alt {
    background: rgba(0, 0, 0, 0.02);
}

.comparison-row .col-dimension {
    width: 31.25%;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    border-right: 1px solid var(--border-color);
}

.comparison-row .col-traditional {
    width: 34.375%;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: -0.31px;
    border-right: 1px solid var(--border-color);
}

.comparison-row .col-riaflow {
    width: 34.375%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    background: var(--bg-card-highlight);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.comparison-row.alt .col-riaflow {
    background: rgba(253, 251, 255, 0.8);
}

.comparison-row .col-riaflow svg {
    flex-shrink: 0;
}

/* ==========================================
   响应式设计 - 平板 (769px - 1024px)
   ========================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        height: 720px;
    }

    .hero-content {
        max-width: 600px;
        padding: 0 40px;
    }

    .hero-title {
        font-size: 44px;
        line-height: 56px;
    }

    .hero-highlight {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-actions {
        gap: var(--spacing-md);
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 180px;
        height: 52px;
        font-size: 16px;
    }

    .painpoints-section {
        padding: 80px 40px;
    }

    .painpoints-grid {
        gap: var(--spacing-md);
    }

    .painpoint-card {
        width: auto;
        flex: 1;
        padding: var(--spacing-md);
    }

    .comparison-section {
        padding: 80px 40px;
    }

    .comparison-row .col-dimension,
    .comparison-row .col-traditional,
    .comparison-row .col-riaflow {
        padding: var(--spacing-sm) 20px;
        font-size: 14px;
    }

    .comparison-header .col-dimension,
    .comparison-row .col-dimension {
        width: 28%;
    }

    .comparison-header .col-traditional,
    .comparison-row .col-traditional {
        width: 36%;
    }

    .comparison-header .col-riaflow,
    .comparison-row .col-riaflow {
        width: 36%;
    }
}

/* ==========================================
   响应式设计 - 手机 (≤768px)
   ========================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 560px;
    }

    .hero-content {
        transform: translate(-50%, -50%);
        padding: 0 var(--spacing-sm);
        max-width: 100%;
        top: 30%;
    }

    .hero-bg img {
        object-position: 60% center;
    }

    .hero-title {
        font-size: 32px;
        line-height: 42px;
        margin-bottom: var(--spacing-md);
    }

    .hero-highlight {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 32px;
    }

    .hero-actions {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: auto;
        flex: 1;
        height: 48px;
        font-size: 15px;
        padding: 0 20px;
    }

    .hero-indicators {
        bottom: 24px;
    }

    /* 痛点场景 */
    .painpoints-section {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .painpoints-grid {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .painpoint-card {
        width: 100%;
        padding: var(--spacing-md);
    }

    .painpoint-title {
        font-size: 22px;
        line-height: 28px;
    }
    .scene-label {
        font-size: 12px;
    }
    .solution-label
    {
        font-size: 14px;
    }
    .scene-text,
    .solution-text {
        font-size: 16px;
        line-height: 22px;
    }

    /* 对比表格 */
    .comparison-section {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }

    .comparison-table {
        border-radius: var(--border-radius);
    }

    .comparison-header {
        height: 60px;
    }

    .comparison-header .col-dimension,
    .comparison-header .col-traditional,
    .comparison-header .col-riaflow {
        font-size: 13px;
        padding: 0 12px;
    }

    .comparison-header .col-dimension {
        width: 25%;
    }

    .comparison-header .col-traditional {
        width: 35%;
    }

    .comparison-header .col-riaflow {
        width: 40%;
    }

    .comparison-row {
        height: auto;
        min-height: 52px;
    }

    .comparison-row .col-dimension {
        width: 25%;
        padding: 12px;
        font-size: 13px;
    }

    .comparison-row .col-traditional {
        width: 35%;
        padding: 12px;
        font-size: 13px;
    }

    .comparison-row .col-riaflow {
        width: 40%;
        padding: 12px;
        font-size: 13px;
        gap: 6px;
    }

    .comparison-row .col-riaflow svg {
        width: 16px;
        height: 16px;
    }

}

/* ── home-bg-wrapper ───────────────────────────────── */
.home-bg-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-bg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/bg/home-bg.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.home-bg-wrapper > * {
    position: relative;
    z-index: 1;
}
