/* ========================================
   首页样式 - 优超医学英语
   方案：珊瑚红主色，翠绿点缀，浅绿背景
   ======================================== */

/* ---------- 基础变量 ---------- */
:root {
    --color-primary: #FA5A5A;
    --color-primary-dark: #E04A4A;
    --color-primary-darker: #D04040;
    --color-accent: #00BE64;
    --color-accent-dark: #00A055;
    --color-bg: #F0F9F4;
    --color-bg-light: #FAFDFB;
    --color-bg-white: #ffffff;
    --color-text: #2D3748;
    --color-text-light: #4A5568;
    --color-text-muted: #A0AEC0;
    --color-card-bg: #ffffff;
    --color-border: #D4EDE0;
    --shadow-sm: 0 2px 8px rgba(45,55,72,0.06);
    --shadow-md: 0 4px 16px rgba(45,55,72,0.08);
    --shadow-lg: 0 8px 32px rgba(45,55,72,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ---------- 通用容器 ---------- */
.yc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 区块标题 ---------- */
.yc-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.yc-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 12px auto 0;
}

.yc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.yc-section-header .yc-section-title {
    margin-bottom: 0;
    text-align: left;
}

.yc-section-header .yc-section-title::after {
    margin: 12px 0 0;
}

.yc-section-more {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.yc-section-more:hover {
    color: var(--color-primary-dark);
}

/* ---------- 按钮 ---------- */
.yc-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.yc-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(250, 90, 90, 0.35);
}

.yc-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 90, 90, 0.45);
    color: #ffffff;
}

.yc-btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.yc-btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.yc-btn-cta {
    background: #ffffff;
    color: var(--color-primary);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.yc-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    color: var(--color-primary);
}

/* ========================================
   Hero区：浅绿背景，翠绿点缀
   ======================================== */
.yc-hero {
    padding: 140px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FAFDFB 0%, #F0F9F4 50%, #E8F5EE 100%);
    position: relative;
    overflow: hidden;
}

.yc-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 190, 100, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.yc-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250, 90, 90, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.yc-hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.yc-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.2;
}

.yc-hero-title span {
    color: var(--color-accent);
}

.yc-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.yc-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   三步备考
   ======================================== */
.yc-steps {
    padding: 100px 0;
    background: var(--color-bg-white);
}

.yc-steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.yc-step-card {
    background: linear-gradient(135deg, #F0F9F4 0%, #F5FBF7 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    position: relative;
    border: 1px solid var(--color-border);
}

.yc-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.yc-step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.1;
    line-height: 1;
}

.yc-step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.yc-step-icon svg {
    width: 100%;
    height: 100%;
}

.yc-step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.yc-step-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.yc-step-arrow {
    color: var(--color-primary);
    opacity: 0.3;
    flex-shrink: 0;
}

.yc-step-arrow svg {
    width: 32px;
    height: 32px;
}

/* ========================================
   最新备考资讯
   ======================================== */
.yc-news {
    padding: 100px 0;
    background: var(--color-bg);
}

.yc-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.yc-news-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.yc-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.yc-news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.yc-news-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--color-bg);
}

/* 旧的占位图样式，保留兼容 */
.yc-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.yc-news-placeholder svg {
    width: 48px;
    height: 48px;
}

/* 新的分类色封面样式 */
.yc-news-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
}

.yc-news-thumbnail-text {
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 分类色（与资讯列表页一致） */
.category-exam { background: #F5A0B0 !important; }
.category-tips { background: #A0E880 !important; }
.category-process { background: #70D0F0 !important; }

.yc-news-content {
    padding: 20px 24px 24px;
}

.yc-news-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: block;
}

.yc-news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.1rem * 1.4 * 2);
}

.yc-news-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yc-news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.yc-news-readmore {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #FA5A5A;
    border-radius: 12px;
    transition: background 0.2s;
}

.yc-news-card:hover .yc-news-readmore {
    background: #E04A4A;
}

/* ========================================
   精选热门课程
   ======================================== */
.yc-courses {
    padding: 100px 0;
    background: var(--color-bg-white);
}

.yc-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.yc-course-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.yc-course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.yc-course-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.yc-course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 0 10px;
    text-align: center;
}

.yc-course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.yc-course-content {
    padding: 20px;
}

.yc-course-type {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(250, 90, 90, 0.12);
    color: var(--color-primary-dark);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.yc-course-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.yc-course-subject {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.yc-course-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.yc-course-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
    color: #ffffff;  /* ← 修复：hover时文字保持白色 */
}

/* ========================================
   全真模拟考试
   ======================================== */
.yc-exam {
    padding: 100px 0;
    background: var(--color-bg);
}

.yc-exam-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.yc-exam-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.yc-exam-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.yc-exam-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yc-exam-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.yc-exam-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.yc-exam-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.yc-exam-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
    color: #ffffff;  /* ← 修复：hover时文字保持白色 */
}

/* ========================================
   学员成绩单
   ======================================== */
.yc-testimonials {
    padding: 100px 0;
    background: var(--color-bg-white);
}

.yc-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.yc-testimonial-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yc-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.yc-testimonial-avatar {
    flex-shrink: 0;
}

.yc-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.yc-testimonial-content {
    flex: 1;
}

.yc-testimonial-text {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.yc-testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yc-testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}

.yc-testimonial-subject {
    font-size: 0.8rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* ========================================
   CTA区：珊瑚红渐变，与变量统一
   ======================================== */
.yc-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.yc-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.yc-cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.yc-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.yc-cta-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

/* ========================================
   响应式设计
   ======================================== */
@media screen and (max-width: 1024px) {
    .yc-hero-title { font-size: 2.6rem; }
    .yc-courses-grid, .yc-exam-grid { grid-template-columns: repeat(2, 1fr); }
    .yc-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* 资讯卡片：4个卡片2列完美对齐 */
    .yc-news-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media screen and (max-width: 768px) {
    .yc-hero { padding: 100px 24px; }
    .yc-hero-title { font-size: 2rem; }
    .yc-hero-subtitle { font-size: 1rem; }
    .yc-hero-buttons { flex-direction: column; align-items: center; }
    .yc-btn { width: 100%; max-width: 280px; }
    .yc-section-title { font-size: 1.6rem; }
    .yc-section-header { flex-direction: column; gap: 12px; text-align: center; }
    .yc-section-header .yc-section-title { text-align: center; }
    .yc-section-header .yc-section-title::after { margin: 12px auto 0; }
    .yc-steps-grid { flex-direction: column; gap: 16px; }
    .yc-step-arrow { transform: rotate(90deg); }
    .yc-step-card { max-width: 100%; width: 100%; }
    .yc-news-grid, .yc-courses-grid, .yc-exam-grid, .yc-testimonials-grid { grid-template-columns: 1fr; }
    .yc-testimonial-card { text-align: center; align-items: center; }
    .yc-cta-title { font-size: 1.6rem; }
    .yc-steps, .yc-news, .yc-courses, .yc-exam, .yc-testimonials, .yc-cta { padding: 60px 0; }
}

@media screen and (max-width: 480px) {
    .yc-container { padding: 0 16px; }
    .yc-hero-title { font-size: 1.7rem; }
    .yc-hero-subtitle { font-size: 0.95rem; }
    .yc-section-title { font-size: 1.4rem; }
    .yc-step-card, .yc-exam-card { padding: 28px 20px; }
    .yc-testimonial-card { padding: 24px; }
}