/* 首页整体布局 */
.banner,
.categories,
.spotlight-section,
.featured-section,
.learning-paths,
.hot-products,
.service-highlights,
.testimonials,
.news-section {
    padding: 56px 0;
}

.banner {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 53, 0.22), transparent 35%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 42%, #f5f5f5 42%, #f5f5f5 100%);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.section-title-left {
    margin-bottom: 12px;
    text-align: left;
}

.section-title-left::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    color: #64748b;
    max-width: 720px;
    font-size: 15px;
    line-height: 1.8;
}

.section-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.content-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-item {
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.tab-item.active {
    background: #ff6b35;
    color: #ffffff;
}

/* 首屏 */
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.hero-main {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
}

.banner-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.4) 52%, rgba(15, 23, 42, 0.2) 100%);
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 48px;
    z-index: 2;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.slide-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 700;
}

.slide-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.banner-nav {
    position: absolute;
    left: 48px;
    bottom: 102px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    width: 28px;
    border-radius: 999px;
    background-color: #ffffff;
}

.hero-metrics {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.metric-item strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 24px;
}

.metric-item span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-side-card {
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.hero-side-dark {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
}

.hero-side-dark a,
.hero-side-dark p,
.hero-side-dark .side-card-header span {
    color: inherit;
}

.side-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.side-card-header span {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.side-card-header a {
    color: #ff6b35;
    font-size: 13px;
    text-decoration: none;
}

.ranking-list {
    list-style: none;
    display: grid;
    gap: 18px;
}

.ranking-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ranking-index {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35, #f59e0b);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-list a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 4px;
}

.ranking-list p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.6;
}

.side-feature {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 100%);
}

.side-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.12);
    color: #ff6b35;
    font-size: 12px;
    font-weight: 700;
}

.side-feature h3 {
    margin-bottom: 10px;
    color: #111827;
    font-size: 22px;
    line-height: 1.35;
}

.side-feature p {
    color: #64748b;
    line-height: 1.8;
}

.service-mini-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.service-mini-list span {
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.hero-channel-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.channel-chip {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    padding: 12px 18px;
    border-radius: 18px;
    text-decoration: none;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.channel-chip:hover {
    transform: translateY(-4px);
    background: rgba(255, 107, 53, 0.9);
}

/* 频道精选 */
.categories {
    background: #f5f5f5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.category-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.category-item:hover {
    transform: translateY(-8px);
}

.category-thumb {
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 18px;
}

.category-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-item:hover img {
    transform: scale(1.04);
}

.category-tag {
    display: inline-flex;
    margin-bottom: 12px;
    color: #ff6b35;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.category-copy h3 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 8px;
}

.category-copy p {
    color: #64748b;
    line-height: 1.8;
}

/* 焦点区域 */
.spotlight-section {
    background: #ffffff;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.spotlight-main,
.spotlight-card {
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.spotlight-main {
    background: linear-gradient(135deg, #111827 0%, #1d4ed8 100%);
    color: #ffffff;
}

.spotlight-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.spotlight-label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.spotlight-label.muted {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.14);
    color: #ff6b35;
}

.spotlight-main h3,
.spotlight-card h3 {
    margin-bottom: 14px;
    font-size: 28px;
    line-height: 1.3;
}

.spotlight-card h3 {
    color: #111827;
    font-size: 24px;
}

.spotlight-main p,
.spotlight-card p {
    line-height: 1.8;
    margin-bottom: 22px;
}

.spotlight-main p {
    color: rgba(255, 255, 255, 0.84);
}

.spotlight-card p {
    color: #64748b;
}

.spotlight-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.spotlight-card a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

/* 品牌说明 */
.featured-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    text-align: center;
}

.featured-section .section-title {
    color: #ffffff;
}

.featured-section .section-title::after {
    background-color: #ffffff;
}

.featured-content {
    max-width: 860px;
    margin: 0 auto;
}

.featured-content h3 {
    font-size: 30px;
    margin-bottom: 18px;
}

.featured-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.88);
}

.featured-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.stat-item {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
}

.stat-number {
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 学习路径 */
.learning-paths {
    background-color: #ffffff;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.path-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5edf5;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.path-tag {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 107, 53, 0.12);
    color: #ff6b35;
    font-size: 12px;
    font-weight: 700;
}

.path-card h3 {
    margin-bottom: 12px;
    color: #111827;
    font-size: 22px;
}

.path-card p {
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.8;
}

.path-card ul {
    margin: 0 0 22px 18px;
    color: #475569;
}

.path-card li + li {
    margin-top: 8px;
}

/* 推荐流 */
.hot-products {
    background: #f8fafc;
}

.hot-products .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 0;
}

.hot-products .product-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.hot-products .product-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(15, 23, 42, 0.04) 100%);
    pointer-events: none;
}

.hot-products .product-item img {
    height: 220px;
}

.product-cover {
    position: relative;
}

.product-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.22) 100%);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.product-duration {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 12px;
}

.hot-products .product-info {
    padding: 18px;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.product-channel {
    color: #ff6b35;
    font-size: 12px;
    font-weight: 700;
}

.product-viewers {
    color: #94a3b8;
    font-size: 12px;
}

.hot-products .product-title {
    min-height: 46px;
    font-size: 17px;
    color: #111827;
}

.product-summary {
    min-height: 48px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.hot-products .product-price {
    margin-bottom: 8px;
}

.hot-products .product-rating {
    margin-bottom: 16px;
}

.hot-products .product-actions {
    gap: 12px;
}

/* 服务与反馈 */
.service-highlights {
    background-color: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f3 100%);
    border: 1px solid #ffe0d2;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.08);
}

.service-card h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 10px;
}

.service-card p {
    color: #64748b;
    line-height: 1.8;
}

.testimonials {
    background-color: #f8fafc;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.testimonial-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.testimonial-card strong {
    color: #111827;
}

/* 内容更新 */
.news-section {
    background-color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-item {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-6px);
}

.news-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 22px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
    line-height: 1.5;
}

.news-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.news-category {
    background-color: #ff6b35;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 1100px) {
    .hero-layout,
    .spotlight-grid,
    .path-grid,
    .service-grid,
    .testimonial-grid,
    .news-grid,
    .hot-products .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-channel-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-main {
        grid-column: span 2;
    }

    .featured-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .banner,
    .categories,
    .spotlight-section,
    .featured-section,
    .learning-paths,
    .hot-products,
    .service-highlights,
    .testimonials,
    .news-section {
        padding: 40px 0;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .hero-main {
        min-height: 460px;
        border-radius: 22px;
    }

    .slide-content {
        left: 24px;
        right: 24px;
        max-width: none;
    }

    .slide-content h2 {
        font-size: 30px;
    }

    .slide-content p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .banner-nav {
        left: 24px;
        bottom: 126px;
    }

    .hero-metrics {
        left: 16px;
        right: 16px;
        bottom: 16px;
        grid-template-columns: 1fr;
    }

    .hero-channel-strip,
    .spotlight-grid,
    .path-grid,
    .service-grid,
    .testimonial-grid,
    .news-grid,
    .hot-products .product-grid {
        grid-template-columns: 1fr;
    }

    .featured-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .featured-stats {
        grid-template-columns: 1fr;
    }

    .metric-item strong,
    .stat-number {
        font-size: 26px;
    }

    .category-thumb img,
    .hot-products .product-item img,
    .news-item img {
        height: 190px;
    }
}
