/* ========================================
   首页特有样式（新版：藏青金学术风）
   ======================================== */

/* ---- 首屏滚动提示 ---- */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero-scroll-hint i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---- 首页 Hero 背景图（home.jpg，图上已含主标题） ---- */
.home .hero {
    background-color: var(--primary-dark);
    background: linear-gradient(to bottom,
                rgba(10, 21, 41, 0.35) 0%,
                rgba(10, 21, 41, 0.35) 42%,
                rgba(10, 21, 41, 0.65) 78%,
                rgba(10, 21, 41, 0.92) 100%),
                url('../images/home.jpg');
    background-size: cover;
    background-position: center;
    align-items: flex-end;
}

.home .hero::before {
    background: rgba(10, 21, 41, 0.15);
}

.home .hero .container {
    padding-bottom: 4.5rem;
}

.home .hero-content {
    max-width: 760px;
}

/* ---- Hero 副标题与金色文字 ---- */
.hero-title .text-gold {
    color: var(--accent-color);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--accent-color);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    margin-top: 3rem;
}

.trust-item {
    text-align: center;
}

.trust-num {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.trust-num span {
    font-size: 1rem;
    font-weight: 500;
}

.trust-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* ---- Offer 滚动捷报 ---- */
.offer-ticker {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-header {
    flex-shrink: 0;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-list {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker 35s linear infinite;
}

.ticker-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ticker-item i {
    color: var(--accent-color);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- 优秀学员 Offer 图片滚动展示 ---- */
.offer-gallery {
    background: var(--bg-gray);
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.offer-gallery-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-2xl);
}

.offer-gallery-header .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.offer-gallery-header h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.offer-gallery-header p {
    font-size: 1rem;
    color: var(--text-light);
}

.offer-gallery-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.offer-gallery-row {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: offerScroll 40s linear infinite;
}

.offer-gallery-row:hover {
    animation-play-state: paused;
}

.offer-image-card {
    width: 260px;
    height: 340px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
}

.offer-image-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.offer-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
}

@keyframes offerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- 核心服务 ---- */
.core-services {
    background: var(--primary-color);
    color: white;
}

.core-services .section-title,
.core-services .section-subtitle {
    color: white;
}

.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card-v2 {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    color: white;
    transition: all var(--transition-base);
    cursor: pointer;
    overflow: hidden;
}

.service-card-img {
    width: calc(100% + 3.5rem);
    height: 160px;
    margin: -2.25rem -1.75rem 1.5rem;
    object-fit: cover;
    display: block;
}

.service-card-v2:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.service-icon-v2 {
    width: 56px;
    height: 56px;
    background: var(--accent-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card-v2 h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card-v2 p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition-base);
}

.service-card-v2:hover .service-link {
    gap: 0.7rem;
}

/* ---- 课程卡片 ---- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

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

.course-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.course-info {
    padding: 1.5rem;
}

.course-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.course-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ---- 师资卡片 ---- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

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

.teacher-photo {
    height: 220px;
    background-size: cover;
    background-position: center top;
}

.teacher-info {
    padding: 1.5rem;
}

.teacher-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.teacher-card .title {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.teacher-card .desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---- 学术资讯 ---- */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card:hover h3 {
    color: var(--accent-color);
}

.article-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: transform 0.5s ease;
    position: relative;
}

.article-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 31, 58, 0.7), rgba(15, 31, 58, 0.4));
}

.article-img i {
    position: relative;
    z-index: 1;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.2rem;
}

.article-tag {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    color: var(--accent-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color var(--transition-base);
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---- CTA ---- */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
    position: relative;
}

.cta-section-bg {
    background-size: cover;
    background-position: center;
}

.cta-section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 58, 0.82);
    z-index: 0;
}

.cta-section-bg .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    margin-bottom: var(--space-md);
}

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

/* ---- 导航 CTA ---- */
.navbar-cta {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-base);
    margin-left: 0.5rem;
}

.navbar-cta:hover {
    background: var(--accent-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ---- 响应式优化 ---- */
@media (max-width: 1024px) {
    .hero-trust {
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
    }

    .trust-divider {
        display: none;
    }

    .services-grid-v2,
    .courses-grid,
    .teachers-grid,
    .academic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-image-card {
        width: 220px;
        height: 288px;
    }

    .offer-gallery-row {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-trust {
        margin-top: 2rem;
        gap: 1.25rem;
    }

    .trust-num {
        font-size: 1.75rem;
    }

    .ticker-header {
        display: none;
    }

    .offer-gallery-header h2 {
        font-size: 1.6rem;
    }

    .offer-gallery-header p {
        font-size: 0.9rem;
    }

    .offer-image-card {
        width: 180px;
        height: 236px;
    }

    .offer-gallery-row {
        gap: 1rem;
    }

    .offer-gallery-track {
        padding: 0.75rem 0;
    }

    .services-grid-v2,
    .courses-grid,
    .teachers-grid,
    .academic-grid {
        grid-template-columns: 1fr;
    }

    .service-card-v2 {
        padding: 1.75rem;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-trust {
        padding: 1rem;
    }

    .trust-num {
        font-size: 1.5rem;
    }

    .offer-gallery-header h2 {
        font-size: 1.4rem;
    }

    .offer-gallery-header p {
        font-size: 0.85rem;
    }

    .offer-image-card {
        width: 150px;
        height: 196px;
    }

    .offer-gallery-row {
        gap: 0.75rem;
    }

    .offer-gallery-track {
        padding: 0.5rem 0;
        mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    }
}

/* ========================================
   最新申博资讯（preview-v2 布局）
   ======================================== */
.news-section-v2 .section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-2xl);
}

.news-section-v2 .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.news-section-v2 .section-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.news-section-v2 .section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

.news-grid-v2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.news-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    background: var(--white);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-card-featured {
    display: flex;
    flex-direction: column;
}

.news-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 31, 58, 0.8), transparent 60%);
}

.news-content {
    padding: 1.75rem;
    flex: 1;
}

.news-card .news-tag {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-card .news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: block;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.news-item:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.news-item h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.news-item .news-meta {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .news-grid-v2 {
        grid-template-columns: 1fr;
    }

    .news-section-v2 .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .news-img {
        height: 200px;
    }

    .news-card h3 {
        font-size: 1.15rem;
    }
}


/* ---- 无障碍与动效偏好 ---- */
@media (prefers-reduced-motion: reduce) {
    .offer-gallery-row {
        animation: none;
    }
}
