/* ==========================================
   河南新唯思教育官网 - 学员案例详情页样式
   ========================================== */

/* ========== 阅读进度条 ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ========== 案例页面 ========== */
.case-page {
    padding: 160px 0 100px;
    background: var(--bg-color);
}

/* ========== 案例头部 ========== */
.case-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* 学员档案卡片 */
.student-profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.student-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.case-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* 案例元信息 */
.case-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 166, 43, 0.05) 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.meta-item i {
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ========== 案例布局 ========== */
.case-layout {
    margin-bottom: 70px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== 案例正文 ========== */
.case-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

.case-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.case-content h2:first-child {
    margin-top: 0;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px 0;
}

.case-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
    text-indent: 2em;
}

.case-content ul,
.case-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.case-content li {
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

.case-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========== 侧边栏 ========== */
.case-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 咨询CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.sidebar-cta i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sidebar-cta h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.sidebar-cta p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.sidebar-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.sidebar-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* 侧边栏小部件 */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* 热门案例列表 */
.hot-cases {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-cases li {
    margin-bottom: 15px;
}

.hot-cases li:last-child {
    margin-bottom: 0;
}

.hot-cases a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.hot-cases a:hover {
    background: var(--bg-color);
}

.hot-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.hot-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.hot-cases a:hover .hot-title {
    color: var(--primary-color);
}

/* ========== 相关案例 ========== */
.related-cases {
    margin-top: 70px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.section-title-main {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-case-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.related-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-case-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}

.related-case-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-case-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.related-school {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.related-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.related-case-card:hover h3 {
    color: var(--primary-color);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-page {
        padding: 40px 0 60px;
    }

    .case-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .student-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .student-name {
        font-size: 28px;
    }

    .case-meta {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .case-content {
        padding: 30px 20px;
    }

    .case-content h2 {
        font-size: 24px;
    }

    .case-content h3 {
        font-size: 18px;
    }

    .case-cta {
        padding: 40px 30px;
    }

    .case-cta h3 {
        font-size: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title-main {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .case-header {
        padding: 25px 15px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .student-name {
        font-size: 24px;
    }

    .case-content {
        padding: 25px 15px;
    }

    .case-content h2 {
        font-size: 22px;
    }

    .case-cta {
        padding: 35px 20px;
    }

    .case-cta h3 {
        font-size: 22px;
    }
}


/* ========== 咨询CTA区域 ========== */
.case-cta-section {
    margin-bottom: 70px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.case-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.case-cta i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.case-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.case-cta p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.case-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 12px 40px;
    font-size: 16px;
}

.case-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
