/* PC 首页设计稿样式（home-pc） */
.home-pc {
    background: #f5f5f5;
    padding-bottom: 0;
}

/* —— 副栏：标签 + 搜索 —— */
.home-subbar {
    border-bottom: 1px solid #efefef;
    background: #fff;
}
.home-subbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
.home-sub-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.home-sub-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.home-sub-tab:hover { color: #111; background: #f5f5f5; }
.home-sub-tab.is-active {
    background: #111;
    color: #fff;
}
.home-sub-search {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    min-width: min(100%, 360px);
    flex: 1 1 280px;
    max-width: 480px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    overflow: hidden;
    background: #fafafa;
}
.home-sub-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.65rem 1.1rem;
    font-size: 0.92rem;
    outline: none;
    color: #222;
}
.home-sub-search button {
    border: 0;
    background: #FFF000;
    color: #111;
    font-weight: 800;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}
.home-sub-search button:hover { background: #F5E800; }
.home-sub-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: #FFF000;
    color: #111 !important;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}
.home-sub-vip.is-on {
    background: #111;
    color: #FFF000 !important;
}

/* —— Hero 区：内容宽内 R 角框 + 统计叠底（对齐设计稿） —— */
.home-hero-section {
    padding-top: 0.65rem;
    padding-bottom: 0.25rem;
    background: #f5f5f5;
}
.home-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 3.2 / 1;
    min-height: 168px;
    max-height: 280px;
    overflow: hidden;
    border-radius: 18px; /* 设计稿 R 角框围起来 */
    background: #f2f2f2;
}
.home-hero-track {
    position: absolute;
    inset: 0;
}
.home-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-color: #f2f2f2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s;
    display: flex;
    align-items: center;
}
.home-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.home-hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.72) 32%, rgba(255,255,255,0.18) 56%, transparent 76%);
    pointer-events: none;
}
.home-hero-copy {
    position: relative;
    z-index: 2;
    padding: 1.1rem 1.6rem 1.5rem;
    max-width: 34rem;
}
.home-hero-copy h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
    font-weight: 900;
    line-height: 1.15;
    color: #111;
    letter-spacing: -0.02em;
}
.home-hero-en {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8a8200;
    text-transform: uppercase;
}
.home-hero-desc {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}
.home-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FFF000;
    color: #111 !important;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 0.58rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: background 0.2s, transform 0.2s;
}
.home-hero-cta:hover {
    background: #F5E800;
    transform: translateY(-1px);
}
.home-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 3;
}
.home-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,0.22);
    cursor: pointer;
}
.home-hero-dot.is-active {
    width: 20px;
    background: #FFF000;
}

/* —— 统计：五格独立描边卡，紧挨 Banner 下方，禁止重叠 —— */
.home-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-top: 0.85rem;
    padding: 0;
}
.home-stat-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 0.95rem 0.6rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.home-stat-card span {
    display: block;
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    font-weight: 900;
    color: #111;
    line-height: 1.1;
}
.home-stat-card small {
    display: block;
    margin-top: 0.35rem;
    color: #777;
    font-size: 0.8rem;
}

/* —— 三入口：黄标 + 标题副文（对齐原设计稿） —— */
.home-entries-wrap { padding: 1.5rem 0 0.25rem; }
.home-entries {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.home-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
.home-entry::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.home-entry-tag {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #FFF000;
    color: #111;
    font-size: 0.75rem;
    font-weight: 800;
}
.home-entry-copy {
    position: relative;
    z-index: 1;
    padding: 1.15rem 1.2rem 1.25rem;
}
.home-entry-copy strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.home-entry-copy em {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255,255,255,0.88);
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 500;
}
.home-entry:hover { filter: brightness(1.05); }

/* —— 区块通用 —— */
.home-block.svc-section {
    border-top: 0;
    padding-top: 2.75rem;
    padding-bottom: 0.5rem;
    background: transparent;
}
.home-block .svc-section-head {
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.home-block .svc-section-head h2 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 900;
    color: #111;
    line-height: 1.25;
}
.home-block .svc-section-head p {
    margin: 0.35rem 0 0;
    color: #999;
    font-size: 0.92rem;
}
.home-block .svc-section-head a.more {
    color: #666;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    padding-top: 0.35rem;
}
.home-block .svc-section-head a.more:hover { color: #111; }

/* —— 课程：原设计稿一排展示（最多 5 卡） —— */
.home-course-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}
.home-course-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    min-height: 0;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.home-course-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #111;
    overflow: hidden;
    flex-shrink: 0;
}
.home-course-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.home-course-body {
    position: relative;
    padding: 0.85rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    min-height: 0;
}
.home-course-tag {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b59a00;
    letter-spacing: 0.02em;
}
.home-course-body h3 {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-course-meta {
    margin: 0 0 0.75rem;
    color: #999;
    font-size: 0.72rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.home-course-price {
    margin-top: auto;
    font-style: normal;
    color: #111;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* —— 案例：原设计稿一排 5 卡 —— */
.home-case-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}
.home-case-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.home-case-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.home-case-cover {
    aspect-ratio: 4 / 3;
    background: #eee;
    overflow: hidden;
}
.home-case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-case-body {
    padding: 0.85rem 0.9rem 1rem;
    background: #fff;
}
.home-case-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b59a00;
    margin-bottom: 0.35rem;
}
.home-case-body h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-case-body p {
    margin: 0;
    font-size: 0.8rem;
    color: #999;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* —— 峰会横卡 —— */
.home-summit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}
.home-summit-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ececec;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}
.home-summit-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.home-summit-cover {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
}
.home-summit-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: #FFF000;
    color: #111;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
}
.home-summit-body {
    padding: 1rem 1.15rem 1.2rem;
}
.home-summit-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
}
.home-summit-body p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* —— CTA：设计稿点阵波浪地板底纹 —— */
.home-cta {
    position: relative;
    margin-top: 1.5rem;
    padding: 4.5rem 0 4.25rem;
    overflow: hidden;
    color: #fff;
    text-align: left;
    background-color: #0c0c0c;
    background-image: url('../img/home/cta-wave-dots.png?v=3');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}
.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 70% at 78% 12%, rgba(120, 140, 175, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.12) 0%, transparent 35%, rgba(0,0,0,0.35) 100%);
}
.home-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}
.home-cta-inner h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
}
.home-cta-inner p {
    margin: 0 0 1.6rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 28rem;
}
.home-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FFF000;
    color: #111 !important;
    font-weight: 800;
    padding: 0.9rem 1.55rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
}
.home-cta-btn:hover {
    background: #F5E800;
    transform: translateY(-1px);
}

/* —— 响应式 —— */
@media (max-width: 1200px) {
    .home-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.75rem; }
    .home-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
    .home-course-card { min-height: 0; }
    .home-course-cover {
        aspect-ratio: 16 / 10;
    }
    .home-course-cover img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center;
    }
    .home-entries { grid-template-columns: 1fr; }
    .home-entry { min-height: 180px; aspect-ratio: 16 / 9; }
    .home-summit-grid { grid-template-columns: 1fr; }
    .home-sub-search { margin-left: 0; max-width: none; flex: 1 1 100%; }
    .home-hero { max-height: 240px; }
}
@media (max-width: 640px) {
    .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.65rem; }
    .home-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .home-course-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .home-course-cover {
        aspect-ratio: 16 / 9;
    }
    .home-course-cover img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center;
    }
    .home-course-body h3 { font-size: 1rem; }
    .home-course-meta { font-size: 0.78rem; -webkit-line-clamp: 4; }
    .home-hero {
        aspect-ratio: 16 / 9;
        max-height: 220px;
        border-radius: 14px;
    }
    .home-hero-copy { padding: 0.9rem 1rem 1.2rem; }
    .home-sub-vip { width: 100%; text-align: center; }
}
