/* ========================================
   medschoolhell.com - 首页专用样式
   浮动悬浮卡片对称叠加布局
   ======================================== */

/* Hero Section - 全屏Banner */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A8D8EA 0%, #F4C2C2 50%, #FFF9F5 100%);
    z-index: -2;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--color-secondary);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--color-accent);
    top: 50%;
    right: 30%;
    animation-delay: 4s;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.hero-card-1 {
    width: 380px;
    height: 280px;
    top: 0;
    left: 0;
    z-index: 3;
}

.hero-card-2 {
    width: 320px;
    height: 240px;
    top: 60px;
    right: 0;
    z-index: 2;
}

.hero-card-3 {
    width: 280px;
    height: 200px;
    bottom: 0;
    left: 80px;
    z-index: 1;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 核心优势板块 - 对称悬浮卡片 */
.features {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.8;
    line-height: 1.8;
}

/* 快速入口 - 对称叠加 */
.quick-access {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--color-bg), rgba(168, 216, 234, 0.1));
}

.access-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
}

.access-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.access-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.access-card.large {
    grid-row: span 2;
}

.access-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.access-content {
    padding: 2rem;
}

.access-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.access-desc {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.access-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.access-link:hover {
    gap: 1rem;
}

/* 资讯列表 */
.news-section {
    padding: 6rem 2rem;
}

.news-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 响应式 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-card-stack {
        height: 400px;
    }
    
    .hero-card-1 {
        width: 300px;
        height: 220px;
    }
    
    .hero-card-2 {
        width: 260px;
        height: 180px;
    }
    
    .hero-card-3 {
        width: 220px;
        height: 160px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .access-container {
        grid-template-columns: 1fr;
    }
    
    .access-card.large {
        grid-row: span 1;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-card-stack {
        height: 300px;
    }
    
    .hero-card-1 {
        width: 240px;
        height: 180px;
    }
    
    .hero-card-2 {
        width: 200px;
        height: 140px;
    }
    
    .hero-card-3 {
        width: 160px;
        height: 120px;
    }
}
