/* 1. 作用域根容器与防抖设置 */
.videoyoumo {
    width: 100% !important;
    height: 100% !important;
}

.zhiling-app {
    --primary: #1876f2;
    --primary-dark: #0f5cc4;
    --primary-light: #e8f1fd;
    --text-main: #0f172a;
    --text-sub: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f1f5f9;

    /* 防抖关键设置 1：强制预留滚动条空间，防止滚动条隐现导致居中挤压抖动 */
    scrollbar-gutter: stable;

    /* 防抖关键设置 2：严格约束宽度与横向溢出 */
    width: 100%;
    /* max-width: 100vw; */
    /* overflow-x: hidden; */
    position: relative;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 局部盒模型重置 */
.zhiling-app *,
.zhiling-app *::before,
.zhiling-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 防抖关键设置 3：所有布局容器禁止 transition: all，防止切屏时断点拉扯抖动 */
.zhiling-app .brand-stats,
.zhiling-app .adv-grid,
.zhiling-app .honor-grid,
.zhiling-app .about-grid,
.zhiling-app .teacher-box,
.zhiling-app .cred-wrapper,
.zhiling-app .contact-grid,
.zhiling-app .container,
.zhiling-app section {
    transition: none !important;
}

/* 网格子项防止挤压时溢出 */
.zhiling-app .brand-stats>div,
.zhiling-app .adv-card,
.zhiling-app .honor-card {
    min-width: 0;
}

/* 2. 布局与通用组件 */
.zhiling-app .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zhiling-app section {
    padding: 80px 0;
    position: relative;
}

.zhiling-app .sec-white {
    background-color: var(--bg-white);
    /* border-bottom: 1px solid var(--border-color); */
}

.zhiling-app .sec-gray {
    background-color: var(--bg-light);
    /* border-bottom: 1px solid var(--border-color); */
}

/* 通用标题 */
.zhiling-app .sec-header {
    text-align: center;
    margin-bottom: 40px;
}

.zhiling-app .sec-header .tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.zhiling-app .sec-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.zhiling-app .sec-header p {
    color: var(--text-sub);
    font-size: 16px;
    margin-top: 8px;
}

/* 按钮基础样式（仅保留颜色过渡，移除位移动画） */
.zhiling-app .btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(24, 118, 242, 0.3);
    border: none;
    /* cursor: pointer; */
    text-align: center;
}

/* 3. Hero 品牌首屏 */
.zhiling-app .hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-white) 100%);
    text-align: center;
    /* border-bottom: 1px solid var(--border-color); */
}

.zhiling-app .hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text-main);
}

.zhiling-app .hero-title span {
    color: var(--primary);
}

.zhiling-app .hero-subtitle {
    font-size: 17px;
    color: var(--text-sub);
    max-width: 750px;
    margin: 0 auto 32px;
}

.zhiling-app .brand-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-top: 40px;
    /* border: 1px solid var(--border-color); */
}

.zhiling-app .stat-item h3 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
}

.zhiling-app .stat-item div {
    font-size: 32px;
    color: var(--primary);
    font-weight: 800;
}

.zhiling-app .stat-item p {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 4px;
}

/* 4. 关于品牌 */
.zhiling-app .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.zhiling-app .brand-video {
    position: relative;
    width: 100%;
    height: 300px;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.zhiling-app .about-content h3 {
    font-size: 26px;
    margin-bottom: 16px;
    font-weight: 800;
}

.zhiling-app .about-content p {
    color: var(--text-sub);
    margin-bottom: 16px;
    font-size: 15px;
}

/* 5. 品牌优势 */
.zhiling-app .adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.zhiling-app .adv-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.zhiling-app .adv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.zhiling-app .adv-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.zhiling-app .adv-card p {
    font-size: 14px;
    color: var(--text-sub);
}

/* 6. 资质荣誉 */
.zhiling-app .honor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.zhiling-app .honor-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.zhiling-app .honor-img {
    width: 100%;
    height: 180px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: bold;
}

.zhiling-app .honor-info {
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

/* 7. 核心名师阵容 */
.zhiling-app .teacher-box {
    background: linear-gradient(135deg, #2b3245 0%, #1e2433 100%);
    border-radius: 20px;
    /* padding: 40px; */
    color: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.zhiling-app .t-left-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zhiling-app .t-left-info h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.zhiling-app .t-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    width: fit-content;
}

.zhiling-app .t-desc {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.zhiling-app .btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: fit-content;
}

.zhiling-app .btn-detail:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.zhiling-app .t-center-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zhiling-app .t-photo-wrap {
    /* width: 220px;
    height: 330px; */
    /* background: #3a4259; */
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    position: relative;
}

.chuangshirenimg {
    height: 400px;
}

.zhiling-app .t-right-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.zhiling-app .btn-see-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 8. 商家资质公示 */
.zhiling-app .cred-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.zhiling-app .cred-certs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.zhiling-app .cert-placeholder {
    height: 160px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-sub);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    text-align: center;
    padding: 10px;
}

.zhiling-app .cred-details {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.zhiling-app .cred-details h3 {
    font-size: 18px;
    margin-bottom: 18px;
    color: var(--primary);
}

.zhiling-app .cred-details ul {
    list-style: none;
}

.zhiling-app .cred-details li {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    font-size: 14px;
    gap: 10px;
}

/* 9. 联系我们 */
.zhiling-app .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.zhiling-app .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zhiling-app .contact-form input,
.zhiling-app .contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.zhiling-app .contact-form input:focus,
.zhiling-app .contact-form textarea:focus {
    border-color: var(--primary);
}

.zhiling-app .map-placeholder {
    background: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    color: var(--text-sub);
    font-weight: 600;
    padding: 20px;
    text-align: center;
}

/* ==========================================================================
   防抖关键设置 4：媒体查询，将 Hover Transform 位移严格限定在真正桌面鼠标设备下
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    .zhiling-app .btn-brand:hover {
        transform: translateY(-2px);
        background: var(--primary-dark);
        box-shadow: 0 6px 20px rgba(24, 118, 242, 0.4);
    }

    .zhiling-app .adv-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(24, 118, 242, 0.16);
        border-color: rgba(24, 118, 242, 0.3);
    }

    .zhiling-app .honor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
        border-color: rgba(24, 118, 242, 0.3);
    }

    .zhiling-app .btn-see-all:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: translateX(4px);
    }
}

/* ==========================================================================
   移动端 / 响应式断点媒体查询
   ========================================================================== */
@media (max-width: 992px) {
    .zhiling-app .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zhiling-app .brand-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }

    .zhiling-app .teacher-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .zhiling-app .t-left-info {
        align-items: center;
    }

    .zhiling-app .t-left-info h3 {
        font-size: 28px;
    }

    .zhiling-app .t-right-action {
        width: 100%;
    }

    .zhiling-app .btn-see-all {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .zhiling-app section {
        padding: 50px 0;
    }

    .zhiling-app .sec-header {
        margin-bottom: 30px;
    }

    .zhiling-app .sec-header h2 {
        font-size: 24px;
    }

    .zhiling-app .sec-header p {
        font-size: 14px;
    }

    .zhiling-app .hero-section {
        padding: 50px 0 30px;
    }

    .zhiling-app .hero-title {
        font-size: 28px;
    }

    .zhiling-app .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .zhiling-app .brand-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 18px 10px;
        gap: 16px 8px;
        margin-top: 30px;
    }

    .zhiling-app .stat-item h3 {
        font-size: 24px;
    }

    .zhiling-app .stat-item p {
        font-size: 12px;
    }

    .zhiling-app .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .zhiling-app .brand-video {
        height: 200px;
    }

    .zhiling-app .about-content h3 {
        font-size: 20px;
    }

    .zhiling-app .adv-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .zhiling-app .adv-card {
        padding: 20px 16px;
    }

    .zhiling-app .honor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .zhiling-app .honor-img {
        height: 160px;
    }

    .zhiling-app .teacher-box {
        padding: 24px 18px;
        border-radius: 16px;
        gap: 20px;
    }

    .zhiling-app .t-photo-wrap {
        width: 100%;
        /* max-width: 200px;
        height: 240px; */
    }

    .chuangshirenimg {
        height: 300px;
    }

    .zhiling-app .t-desc {
        font-size: 13px;
    }

    .zhiling-app .cred-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zhiling-app .cred-certs {
        grid-template-columns: 1fr 1fr;
    }

    .zhiling-app .cert-placeholder {
        height: 120px;
        font-size: 13px;
    }

    .zhiling-app .cred-details {
        padding: 20px 16px;
    }

    .zhiling-app .cred-details li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-bottom: 10px;
    }

    .zhiling-app .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .zhiling-app .map-placeholder {
        min-height: 180px;
    }
}