:root {
    --blue: #0750d8;
    --blue-2: #2f7bff;
    --deep: #07328c;
    --gold: #ffd768;
    --gold-2: #ffb72b;
    --orange: #ff7a1a;
    --red: #d82923;
    --text: #132654;
    --muted: #66708a;
    --line: #dbe7ff;
    --bg: #f5f8ff;
    --card: #ffffff;
    --shadow: 0 14px 34px rgba(13, 70, 193, .08);
    --radius: 22px;
    --page-width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    background: radial-gradient(circle at top left, rgba(47, 123, 255, .08), transparent 28rem), linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
    color: var(--text);
    padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container51 { width: min(var(--page-width), calc(100% - 48px)); margin: 0 auto; }
.section51 { padding: clamp(16px, 5vw, 72px) 0; }

.banner51 {
    min-height: clamp(360px, 38vw, 520px);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 48%, #2f7bff 0%, #0a51d6 42%, #07328c 82%);
    color: #fff;
    border-bottom: 10px solid #fff;
}
.banner51::before {
    content: "";
    position: absolute;
    inset: -34%;
    background: repeating-conic-gradient(from -8deg, rgba(255,255,255,.30) 0deg, rgba(255,255,255,.06) 5deg, rgba(255,255,255,0) 11deg, rgba(255,255,255,0) 18deg);
    opacity: .46;
}
.banner51::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -130px;
    width: min(980px, 90vw);
    height: 260px;
    transform: translateX(-50%);
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50% 50% 0 0;
}
.brand51 {
    position: absolute;
    left: clamp(24px, 4vw, 56px);
    top: clamp(22px, 3vw, 40px);
    z-index: 3;
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 1000;
}
.brand51 small { display: block; margin-top: 2px; font-size: clamp(12px, 1vw, 15px); font-weight: 600; opacity: .9; }
.badge51 {
    position: absolute;
    right: clamp(24px, 4vw, 56px);
    top: clamp(24px, 3vw, 42px);
    z-index: 3;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 14px;
    padding: 10px 22px;
    font-weight: 900;
    background: rgba(255,255,255,.14);
}
.crown51 {
    position: absolute;
    top: clamp(54px, 7vw, 82px);
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    font-size: clamp(48px, 5vw, 76px);
}
.obj51 {
    position: absolute;
    z-index: 3;
    font-size: clamp(58px, 7vw, 112px);
    filter: drop-shadow(0 12px 12px rgba(0,0,0,.28));
}
.obj-left { left: clamp(28px, 7vw, 108px); bottom: clamp(42px, 7vw, 92px); }
.obj-right { right: clamp(28px, 7vw, 108px); bottom: clamp(34px, 6vw, 84px); }
.spark51 { position: absolute; z-index: 3; color: var(--gold); font-size: clamp(20px, 2vw, 30px); }
.s1 { left: 24%; top: 22%; } .s2 { right: 25%; top: 23%; } .s3 { left: 13%; top: 50%; } .s4 { right: 12%; top: 48%; }
.banner-main51 {
    position: relative;
    z-index: 4;
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: clamp(130px, 13vw, 178px);
    text-align: center;
}
.title-row51 {
    font-size: clamp(44px, 6vw, 86px);
    line-height: 1.02;
    font-weight: 1000;
    letter-spacing: -0.05em;
    text-shadow: 0 7px 0 rgba(0,0,0,.20);
}
.num51 { color: var(--gold); -webkit-text-stroke: 1px #fff; }
.zone-tag51 {
    display: inline-block;
    margin-left: clamp(8px, 1.8vw, 20px);
    padding: clamp(8px, 1vw, 12px) clamp(14px, 2vw, 28px);
    vertical-align: middle;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe27a, #ffb72b);
    color: #102c6b;
    box-shadow: 0 6px 0 rgba(0,0,0,.22);
    font-size: clamp(20px, 2.8vw, 36px);
    font-weight: 1000;
    letter-spacing: 0;
}
.slogan51 { margin-top: 16px; font-size: clamp(20px, 2.3vw, 34px); font-weight: 1000; text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.ribbon51 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 34px;
    border-radius: 8px;
    background: #fff;
    color: #14306d;
    box-shadow: 0 7px 0 rgba(0,0,0,.16);
    font-size: clamp(15px, 1.6vw, 22px);
    font-weight: 900;
}

.section-title51 { margin-bottom: 28px; text-align: center; }
.section-title51 h1 { color: #09286e; font-size: clamp(32px, 4vw, 48px); font-weight: 1000; }
.section-title51 p { margin-top: 8px; color: #27385f; font-size: clamp(16px, 1.8vw, 21px); }

.grid51 { display: grid; gap: 20px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card51 {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 2.5vw, 30px);
    box-shadow: var(--shadow);
}
.card51 h3 { margin-bottom: 10px; color: #0b2b77; font-size: clamp(20px, 2vw, 24px); }
.card51 h4 { margin-bottom: 8px; color: #132654; font-size: 18px; }
.card51 p, .card51 li { color: var(--muted); font-size: 16px; line-height: 1.78; }
.card51 ul { list-style: none; }
.card51 li { margin: 8px 0; }

.check51 li::before {
    content: "✔";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
}
.dot51 li::before { content: "•"; margin-right: 8px; color: var(--orange); font-size: 24px; vertical-align: -2px; }
.orange51 { background: linear-gradient(135deg, #fff7ef, #fff1e1); border-color: #ffe2c3; }
.blue51 { background: linear-gradient(135deg, #eef6ff, #e6f0ff); }
.gold51 { background: linear-gradient(135deg, #fff9ea, #fff2cf); border-color: #f4d99e; }
.icon-card51 { text-align: center; }
.icon51 {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #407fff, #154fc0);
    color: #fff;
    font-size: 34px;
}

.btn51 {
    display: inline-block;
    min-width: 150px;
    padding: 14px 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff982f, #ff6b12);
    box-shadow: 0 8px 0 rgba(170,72,0,.20);
    color: #fff;
    font-size: 20px;
    font-weight: 1000;
    text-align: center;
}
.mini-btn51 {
    display: block;
    margin-top: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #0d46c1;
    color: #fff;
    font-weight: 900;
    text-align: center;
}
.cta-band51 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 30px 0 0;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7e8, #fff1dc);
}

.course-grid51 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-img51 {
    display: grid;
    place-items: center;
    height: 170px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbe8ff, #fff);
    color: #2d5fc5;
    font-weight: 900;
    text-align: center;
}
.course-img51 img { width: 100%; height: 100%; object-fit: cover; }

.category51 { margin-bottom: 42px; }
.category51 h2 { margin: 24px 0 16px; color: #0b2b77; font-size: clamp(26px, 3vw, 34px); }
.now51, .price51 { color: var(--red); font-size: 24px; font-weight: 1000; }
.price51 { margin: 8px 0 14px; font-size: clamp(32px, 4vw, 44px); }
.old51 { color: #9aa3b5; text-decoration: line-through; }
.gift51 {
    display: inline-block;
    margin: 8px 0;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff2d3;
    color: #9a5e00;
    font-weight: 900;
}

.vip-feature51 {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px;
    align-items: center;
}
.vip-feature51.reverse {
    grid-template-columns: 1.25fr 1fr;
}
.vip-gallery51 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.vip-shot51 {
    overflow: hidden;
    min-height: 180px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf2ff, #fff);
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(13,70,193,.07);
}
.vip-shot51 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vip-shot51.single {
    min-height: 260px;
}

.footer51 {
    margin: 36px auto 46px;
    padding: clamp(30px, 4vw, 44px) 24px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b48c5, #062e8e);
    color: #fff;
    text-align: center;
}
.footer51 h2 { font-size: clamp(28px, 3.4vw, 40px); }
.footer51 p { margin: 8px 0 22px; font-size: 18px; opacity: .92; }

.activityBottom, .footer-rule { display: none; }
.activityNav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 18px;
    z-index: 999;
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
    width: min(720px, calc(100% - 32px));
    padding: 10px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(13,70,193,.96);
    box-shadow: 0 14px 34px rgba(6,31,88,.22);
    backdrop-filter: blur(12px);
}
.activityNavMain {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-align: center;
}
.activityNavMainActive { background: #fff; color: #0d46c1; }

@media (max-width: 980px) {
    .grid3, .course-grid51 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vip-feature51, .vip-feature51.reverse { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    body { padding-bottom: 88px; }
    .container51 { width: min(100% - 28px, var(--page-width)); }
    .banner51 { min-height: 278px; }
    .brand51 { left: 18px; top: 18px; font-size: 20px; }
    .brand51 small { font-size: 11px; }
    .badge51 { right: 14px; top: 18px; padding: 6px 10px; font-size: 12px; }
    .crown51 { top: 52px; font-size: 42px; }
    .banner-main51 { padding-top: 88px; }
    .title-row51 { font-size: 38px; letter-spacing: -2px; }
    .slogan51 { font-size: 17px; }
    .ribbon51 { padding: 8px 12px; font-size: 12px; }
    .zone-tag51 { margin-left: 6px; padding: 8px 10px; font-size: 18px; }
    .obj51 { font-size: 50px; }
    .obj-left { left: 14px; bottom: 26px; }
    .obj-right { right: 14px; bottom: 26px; }
    .grid2, .grid3, .course-grid51, .vip-gallery51 { grid-template-columns: 1fr; }
    .cta-band51 { display: block; text-align: center; }
    .cta-band51 .btn51 { margin-top: 16px; }
    .activityNav {
        bottom: 0;
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        border-radius: 18px 18px 0 0;
        padding: 8px;
    }
    .activityNavMain { padding: 10px 4px; font-size: 14px; }
}


/* legal english upgrade */
.legal-products51 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.legal-product51 {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.legal-product-head51 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
}

.legal-product-copy51 h2 {
    margin-bottom: 12px;
    color: #09286e;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 1000;
}

.legal-product-copy51 p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.legal-badges51 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.legal-badge51 {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    background: #eef4ff;
    color: #0b46bd;
    font-weight: 900;
}

.trump-card51 {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff2f1f, #ff8a00);
    color: #fff;
    font-weight: 1000;
    box-shadow: 0 8px 18px rgba(216, 41, 35, .22);
}

.legal-poster51 {
    overflow: hidden;
    border-radius: 22px;
    background: #360076;
    box-shadow: 0 16px 34px rgba(58, 0, 116, .22);
}

.legal-poster51 img {
    width: 100%;
    height: auto;
    display: block;
}

.legal-stats51 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, #f5f8ff, #ffffff);
}

.legal-stat51 {
    padding: 18px 12px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.legal-stat51:last-child {
    border-right: none;
}

.legal-stat51 span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.legal-stat51 strong {
    display: block;
    margin-top: 4px;
    color: #3f05a7;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 1000;
}

.privilege-grid51 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 16px;
    background: #d8c8ff;
}

.privilege-grid51 div {
    padding: 14px 16px;
    background: #fbf9ff;
    color: #330079;
    font-size: 16px;
    font-weight: 800;
}

.advanced-section51 {
    border-radius: 30px;
    padding: clamp(26px, 4vw, 42px);
    background:
        radial-gradient(circle at top right, rgba(255, 215, 104, .22), transparent 22rem),
        linear-gradient(135deg, #071f58, #0b48c5);
    color: #fff;
}

.advanced-section51 h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 1000;
}

.advanced-section51 p {
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
    line-height: 1.9;
}

.advanced-grid51 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.advanced-point51 {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, .10);
}

.advanced-point51 h3 {
    margin-bottom: 8px;
    color: #ffe28a;
    font-size: 22px;
}

.homework-gallery51 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.homework-shot51 {
    min-height: 180px;
    border: 1px dashed rgba(255, 255, 255, .35);
    border-radius: 18px;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .84);
    text-align: center;
    line-height: 1.7;
}

.legal-price-line51 {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: baseline;
    margin: 18px 0;
}

.legal-price-line51 .old51 {
    font-size: 18px;
}

.legal-price-line51 .price51 {
    margin: 0;
}

@media (max-width: 980px) {
    .legal-product-head51 {
        grid-template-columns: 1fr;
    }

    .homework-gallery51 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .legal-stats51 {
        grid-template-columns: repeat(2, 1fr);
    }

    .advanced-grid51,
    .privilege-grid51 {
        grid-template-columns: 1fr;
    }
}


/* v8 advanced homework gallery */
.homework-gallery51.has-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homework-shot51 img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.advanced-detail51 {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    align-items: start;
    margin-top: 26px;
}

.advanced-list51 {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 22px;
    background: rgba(255,255,255,.10);
}

.advanced-list51 h3 {
    color: #ffe28a;
    font-size: 22px;
    margin-bottom: 12px;
}

.advanced-list51 li {
    color: rgba(255,255,255,.88);
    line-height: 1.85;
    margin: 8px 0;
}

.advanced-list51 li::before {
    content: "✓";
    color: #ffd768;
    margin-right: 8px;
    font-weight: 1000;
}

.advanced-copy51 {
    margin-top: 16px;
    border-left: 4px solid #ffd768;
    padding-left: 16px;
    color: rgba(255,255,255,.86);
}

@media (max-width: 980px) {
    .advanced-detail51 {
        grid-template-columns: 1fr;
    }

    .homework-gallery51.has-images {
        grid-template-columns: 1fr;
    }
}

/* v9 legal english layout fix */
.legal-products51 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.legal-product51.clean-layout51 {
    padding: clamp(24px, 4vw, 38px);
}

.legal-product-body51 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.topic-grid51 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.topic-pill51 {
    border-radius: 16px;
    padding: 14px 16px;
    background: #f5f0ff;
    color: #330079;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.legal-overview51 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid #d8c8ff;
    border-radius: 18px;
    background: #ffffff;
}

.legal-overview-item51 {
    padding: 18px 12px;
    text-align: center;
    border-right: 1px solid #d8c8ff;
}

.legal-overview-item51:last-child {
    border-right: none;
}

.legal-overview-item51 span {
    display: block;
    color: #66708a;
    font-size: 14px;
}

.legal-overview-item51 strong {
    display: block;
    margin-top: 4px;
    color: #3f05a7;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 1000;
}

.legal-buy-row51 {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.legal-buy-row51 .legal-price-line51 {
    margin: 0;
}

@media (max-width: 720px) {
    .topic-grid51,
    .legal-overview51 {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-buy-row51 {
        display: block;
    }

    .legal-buy-row51 .btn51 {
        margin-top: 16px;
        width: 100%;
    }
}


/* v10 legal english plan card layout */
.legal-plans51 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.legal-plan51 {
    position: relative;
    overflow: hidden;
    border: 1px solid #d8c8ff;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
    box-shadow: 0 16px 34px rgba(63, 5, 167, .10);
}

.legal-plan51::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: linear-gradient(90deg, #3f05a7, #6b2cf5, #ff7a1a);
}

.legal-plan-inner51 {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(22px, 3vw, 32px);
}

.legal-plan-top51 {
    min-height: 178px;
}

.legal-plan-label51 {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    border-radius: 999px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #ff2f1f, #ff8a00);
    color: #fff;
    font-weight: 1000;
    box-shadow: 0 8px 18px rgba(216, 41, 35, .20);
}

.legal-plan51 h2 {
    margin-bottom: 10px;
    color: #2f0079;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 1000;
    line-height: 1.2;
}

.legal-plan-desc51 {
    color: #66708a;
    font-size: 16px;
    line-height: 1.85;
}

.legal-plan-section51 {
    margin-top: 22px;
}

.legal-plan-section51 h3 {
    margin-bottom: 12px;
    color: #330079;
    font-size: 20px;
    font-weight: 1000;
}

.topic-grid51.plan-topics51 {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}

.plan-topics51 .topic-pill51 {
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 10px 8px;
    border: 1px solid #e7ddff;
    background: #ffffff;
    color: #330079;
    font-size: 17px;
}

.legal-overview51.plan-overview51 {
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}

.plan-overview51 .legal-overview-item51 {
    padding: 16px 8px;
}

.plan-overview51 .legal-overview-item51 strong {
    color: #3f05a7;
    font-size: clamp(22px, 2.4vw, 30px);
}

.privilege-grid51.plan-privileges51 {
    margin: 0;
    grid-template-columns: repeat(2, 1fr);
    background: #d8c8ff;
}

.plan-privileges51 div {
    display: flex;
    align-items: center;
    min-height: 54px;
    font-size: 15px;
    line-height: 1.45;
}

.legal-plan-buy51 {
    margin-top: auto;
    padding-top: 24px;
}

.legal-plan-price51 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: baseline;
    margin-bottom: 16px;
}

.legal-plan-price51 .old51 {
    font-size: 17px;
}

.legal-plan-price51 .price51 {
    margin: 0;
    font-size: clamp(30px, 3vw, 40px);
}

.legal-plan-buy51 .btn51 {
    width: 100%;
}

.plan-recommend51 {
    position: absolute;
    right: 18px;
    top: 18px;
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff2d3;
    color: #9a5e00;
    font-size: 13px;
    font-weight: 1000;
}

@media (max-width: 980px) {
    .legal-plans51 {
        grid-template-columns: 1fr;
    }

    .legal-plan-top51 {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    .topic-grid51.plan-topics51,
    .legal-overview51.plan-overview51,
    .privilege-grid51.plan-privileges51 {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-plan-price51 {
        display: block;
    }

    .legal-plan-price51 .price51 {
        margin-top: 4px;
    }
}


/* v13 course and vip polish */
.course-img51 {
    position: relative;
}

.price-tag51 {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff982f, #ff6b12);
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
    box-shadow: 0 6px 14px rgba(255, 107, 18, .22);
}

.course-price51 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
}

.vip-benefit-no51 {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 7px 13px;
    background: #0d46c1;
    color: #fff;
    font-weight: 1000;
    font-size: 14px;
}

.coffee-section51 {
    margin: 10px 0 34px;
    border-radius: 30px;
    padding: clamp(28px, 4vw, 44px);
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 215, 104, .42), transparent 18rem),
        linear-gradient(135deg, #6b3b16, #b66b2a 45%, #ffb24a);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.coffee-section51::after {
    content: "☕";
    position: absolute;
    right: clamp(18px, 5vw, 70px);
    bottom: clamp(12px, 3vw, 30px);
    font-size: clamp(76px, 12vw, 150px);
    opacity: .22;
}

.coffee-content51 {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.coffee-label51 {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255,255,255,.14);
    font-weight: 900;
}

.coffee-section51 h2 {
    margin: 16px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 1000;
}

.coffee-section51 p {
    color: rgba(255,255,255,.9);
    font-size: 18px;
    line-height: 1.85;
}

.coffee-gifts51 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.coffee-gift51 {
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
}

.coffee-gift51 strong {
    display: block;
    font-size: 24px;
    color: #ffe6a3;
}

@media (max-width: 720px) {
    .coffee-gifts51 {
        grid-template-columns: 1fr;
    }

    .course-price51 {
        display: block;
    }
}


/* v14 high legal gift highlight */
.advanced-gift-highlight51 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px 0 18px !important;
    border: 1px solid rgba(255, 215, 104, .75) !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    background: rgba(255, 215, 104, .16) !important;
    color: #ffd768 !important;
    font-size: clamp(18px, 2vw, 24px) !important;
    font-weight: 1000 !important;
    box-shadow: 0 10px 24px rgba(255, 215, 104, .12) !important;
}


/* v15 VIP coffee and benefits */
.vipCoffee51 {
    position: relative;
    overflow: hidden;
    margin: 16px 0 40px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 231, 165, .55), transparent 18rem),
        linear-gradient(135deg, #315f35 0%, #8a5b2e 52%, #d99a48 100%);
    color: #fff;
    box-shadow: 0 22px 48px rgba(84, 52, 24, .20);
}

.vipCoffee51::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 31, 88, .28), transparent 62%);
    pointer-events: none;
}

.vipCoffeeInner51 {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(22px, 4vw, 44px);
    align-items: center;
    padding: clamp(28px, 5vw, 52px);
}

.vipCoffeeLabel51 {
    display: inline-flex;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.36);
    border-radius: 999px;
    padding: 8px 15px;
    background: rgba(255,255,255,.14);
    color: #fff5d6;
    font-weight: 1000;
}

.vipCoffee51 h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.18;
    font-weight: 1000;
}

.vipCoffee51 p {
    max-width: 720px;
    color: rgba(255,255,255,.90);
    font-size: 18px;
    line-height: 1.85;
}

.vipCoffeeCards51 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.vipCoffeeCard51 {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 22px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(10px);
}

.vipCoffeeCard51 img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.vipCoffeeCardBody51 {
    padding: 16px;
}

.vipCoffeeCardBody51 strong {
    display: block;
    color: #ffe7a8;
    font-size: 23px;
    font-weight: 1000;
}

.vipCoffeeCardBody51 span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.6;
}

.vipCoffeeVisual51 {
    display: grid;
    gap: 14px;
}

.vipCoffeeFarm51 {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.vipCoffeeFarm51 img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.vipCoffeeSmallImgs51 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.vipCoffeeSmallImgs51 img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

.vipBenefitBlock51 {
    margin-bottom: 28px;
}

.vipBenefitCard51 {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: clamp(22px, 3vw, 32px);
    background: #fff;
    box-shadow: var(--shadow);
}

.vipBenefitCard51.reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.vipBenefitNo51 {
    display: inline-flex;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 7px 14px;
    background: #0d46c1;
    color: #fff;
    font-weight: 1000;
}

.vipBenefitCard51 h3 {
    margin-bottom: 12px;
    color: #0b2b77;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 1000;
}

.vipBenefitCard51 p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.vipShots51 {
    display: grid;
    gap: 14px;
}

.vipShots51.cols1 {
    grid-template-columns: 1fr;
}

.vipShots51.cols2 {
    grid-template-columns: repeat(2, 1fr);
}

.vipShots51.cols3 {
    grid-template-columns: repeat(3, 1fr);
}

.vipShot51 {
    min-height: 180px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, #edf4ff, #fff);
    box-shadow: 0 10px 22px rgba(13,70,193,.07);
}

.vipShot51 img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.vipShotPlaceholder51 {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 20px;
    color: #2d5fc5;
    font-weight: 900;
    text-align: center;
}

@media (max-width: 980px) {
    .vipCoffeeInner51,
    .vipBenefitCard51,
    .vipBenefitCard51.reverse {
        grid-template-columns: 1fr;
    }

    .vipShots51.cols3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .vipCoffeeCards51,
    .vipCoffeeSmallImgs51,
    .vipShots51.cols2,
    .vipShots51.cols3 {
        grid-template-columns: 1fr;
    }

    .vipCoffeeCard51 img,
    .vipCoffeeFarm51 img,
    .vipCoffeeSmallImgs51 img {
        height: auto;
    }
}


/* v18 top home button */
.homeBtn51 {
    position: absolute;
    left: clamp(24px, 4vw, 56px);
    top: clamp(22px, 3vw, 40px);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.homeBtn51:hover {
    background: rgba(255,255,255,.22);
}

@media (max-width: 720px) {
    .homeBtn51 {
        left: 14px;
        top: 18px;
        padding: 7px 12px;
        font-size: 13px;
    }
}


/* v19 home button style fix */
.homeBtn51 {
    position: absolute !important;
    left: clamp(18px, 3.2vw, 42px) !important;
    top: clamp(18px, 2.6vw, 32px) !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 38px !important;
    border: 1px solid rgba(255,255,255,.86) !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    background: rgba(255,255,255,.96) !important;
    color: #0d46c1 !important;
    font-size: 15px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(6,31,88,.18) !important;
    backdrop-filter: blur(8px) !important;
}

.homeBtn51::before {
    content: "‹" !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #0d46c1 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

.homeBtn51:hover {
    transform: translateY(-1px) !important;
    background: #fff !important;
    box-shadow: 0 12px 26px rgba(6,31,88,.22) !important;
}

@media (max-width: 720px) {
    .homeBtn51 {
        left: 12px !important;
        top: 14px !important;
        min-height: 32px !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    .homeBtn51::before {
        width: 19px !important;
        height: 19px !important;
        font-size: 19px !important;
    }

    .badge51 {
        right: 12px !important;
        top: 14px !important;
    }
}

/* v20 isolated top home button */
.topHomeBar51 {
    position: absolute;
    left: clamp(18px, 3vw, 40px);
    top: clamp(18px, 2.4vw, 32px);
    z-index: 99;
}

.topHomeBtn51 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 999px;
    padding: 8px 16px 8px 10px;
    background: #ffffff;
    color: #0d46c1;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(6,31,88,.22);
}

.topHomeBtn51 span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d46c1;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.topHomeBtn51:hover {
    background: #ffffff;
    color: #0d46c1;
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .topHomeBar51 {
        left: 12px;
        top: 12px;
    }

    .topHomeBtn51 {
        min-height: 32px;
        padding: 6px 10px 6px 7px;
        font-size: 13px;
    }

    .topHomeBtn51 span {
        width: 19px;
        height: 19px;
        font-size: 17px;
    }

    .badge51 {
        top: 12px !important;
        right: 12px !important;
    }
}


/* v22 VIP fixed image matrix */
.vipV17-proof.nine {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vipV17-proof.nine .vipV17-shot {
    min-height: 170px;
}

.vipV17-proof.nine .vipV17-shot img {
    min-height: 170px;
}

@media (max-width: 980px) {
    .vipV17-proof.nine {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .vipV17-proof.nine {
        grid-template-columns: 1fr;
    }
}




/* v23 skill visual upgrade */
.vipV17-proof.two .vipV17-shot,
.vipV17-proof.two .vipV17-shot img{
    background:#fff7ef;
}
.vipV17-proof.two .vipV17-shot{
    padding:10px;
    border:1px solid #ffe0b8;
    box-shadow:0 12px 24px rgba(255,140,0,.08);
}
.vipV17-proof.two .vipV17-shot img{
    border-radius:14px;
    object-fit:contain;
}


/* top banner image replacement */
.topImageBanner51 {
    width: 100%;
    overflow: hidden;
    background: #07328c;
}

.topImageBanner51 img {
    display: block;
    width: 100%;
    height: auto;
}


/* v18: back home nav + image banner */
.topNav51 {
    width: 100%;
    background: #07328c;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.topNavInner51 {
    width: min(1180px, calc(100% - 32px));
    height: 46px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.backHomeBtn51 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
}

.backHomeBtn51:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.topImageBanner51 {
    width: 100%;
    overflow: hidden;
    background: #07328c;
}

.topImageBanner51 img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 720px) {
    .topNavInner51 {
        width: calc(100% - 24px);
        height: 42px;
    }

    .backHomeBtn51 {
        padding: 6px 11px;
        font-size: 13px;
    }
}


/* v19 VIP card package + legal english QR footer */
.vipPackageGrid51 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.vipPackageCard51 {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe7ff;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 18px 40px rgba(13, 70, 193, .10);
    padding: clamp(24px, 3vw, 34px);
}

.vipPackageCard51::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: linear-gradient(90deg, #0750d8, #ffb72b);
}

.vipPackageImage51 {
    min-height: 150px;
    display: grid;
    place-items: center;
    margin: 8px 0 22px;
}

.vipPackageImage51 img {
    width: min(360px, 100%);
    height: auto;
    filter: drop-shadow(0 16px 18px rgba(6, 31, 88, .18));
}

.vipPackageTitle51 {
    color: #09286e;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 1000;
    margin-bottom: 8px;
}

.vipPackageGift51 {
    display: inline-flex;
    margin: 8px 0 14px;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff2d3;
    color: #9a5e00;
    font-weight: 1000;
}

.vipPackagePrice51 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: baseline;
    margin: 14px 0 20px;
}

.vipPackageNow51 {
    color: #d82923;
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 1000;
    white-space: nowrap;
}

.vipPackageOld51 {
    color: #9aa3b5;
    font-size: 18px;
    text-decoration: line-through;
    white-space: nowrap;
}

.vipPackageCard51 .btn51 {
    width: 100%;
}

.legalQrSection51 {
    margin: 36px auto 46px;
    border-radius: 30px;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(135deg, #0b48c5, #062e8e);
    color: #fff;
    box-shadow: 0 18px 40px rgba(6, 31, 88, .16);
}

.legalQrInner51 {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    align-items: center;
}

.legalQrSection51 h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 1000;
    margin-bottom: 12px;
}

.legalQrSection51 p {
    color: rgba(255,255,255,.90);
    font-size: 18px;
    line-height: 1.85;
}

.legalQrBox51 {
    display: grid;
    place-items: center;
    border-radius: 24px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0,0,0,.15);
}

.legalQrBox51 img {
    width: 380px;
    height: 380px;
    object-fit: contain;
}

.legalQrPlaceholder51 {
    width: 180px;
    height: 180px;
    display: grid;
    place-items: center;
    border: 2px dashed #c9d8ff;
    border-radius: 16px;
    color: #0b48c5;
    font-weight: 900;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .vipPackageGrid51,
    .legalQrInner51 {
        grid-template-columns: 1fr;
    }

    .legalQrBox51 {
        width: fit-content;
        margin: 0 auto;
    }
}


/* v20: banner overlay back home + VIP package card redesign */
.topImageBanner51 {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #07328c;
}

.topImageBanner51 img {
    display: block;
    width: 100%;
    height: auto;
}

.bannerBackHome51 {
    position: absolute;
    left: clamp(18px, 3vw, 42px);
    top: clamp(16px, 2.5vw, 30px);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 999px;
    padding: 8px 15px;
    background: rgba(255,255,255,.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(6,31,88,.16);
}

.bannerBackHome51:hover {
    background: rgba(255,255,255,.24);
    color: #fff;
}

.vipPackageGrid51 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.vipPlanCard51 {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border-radius: 32px;
    padding: clamp(26px, 3.2vw, 38px);
    color: #fff;
    box-shadow: 0 22px 44px rgba(6, 31, 88, .18);
}

.vipPlanCard51::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 20%, rgba(255,255,255,.30), transparent 16rem),
        linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,0));
    pointer-events: none;
}

.vipPlanCard51::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -80px;
    width: 320px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    filter: blur(2px);
}

.vipPlanOne51 {
    background: linear-gradient(135deg, #ff3f7f 0%, #d80f58 48%, #8d0d83 100%);
}

.vipPlanTwo51 {
    background: linear-gradient(135deg, #8b35ff 0%, #6415ce 52%, #3a087f 100%);
}

.vipPlanInner51 {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vipPlanRibbon51 {
    align-self: flex-start;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(0,0,0,.28);
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
}

.vipPlanTitle51 {
    margin: 22px 0 6px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -.03em;
}

.vipPlanSub51 {
    color: rgba(255,255,255,.88);
    font-size: 20px;
    font-weight: 900;
}

.vipPlanCrown51 {
    position: absolute;
    right: clamp(20px, 3vw, 36px);
    top: clamp(48px, 5vw, 72px);
    color: rgba(255,255,255,.88);
    font-size: clamp(58px, 7vw, 92px);
    line-height: 1;
}

.vipPlanGift51 {
    margin: 28px 0 18px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
}

.vipPlanGift51 strong {
    display: block;
    color: #ffe9a8;
    font-size: 20px;
    font-weight: 1000;
}

.vipPlanGift51 span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    line-height: 1.6;
}

.vipPlanPrice51 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin-top: auto;
    padding-top: 12px;
}

.vipPlanNow51 {
    color: #fff5c8;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 1000;
    white-space: nowrap;
}

.vipPlanOld51 {
    color: rgba(255,255,255,.64);
    font-size: 18px;
    text-decoration: line-through;
    white-space: nowrap;
}

.vipPlanBtn51 {
    display: block;
    margin-top: 20px;
    border-radius: 999px;
    padding: 15px 26px;
    background: #ffffff;
    color: #0d46c1;
    font-size: 20px;
    font-weight: 1000;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.vipPlanBtn51:hover {
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .vipPackageGrid51 {
        grid-template-columns: 1fr;
    }

    .vipPlanCard51 {
        min-height: 390px;
    }

    .bannerBackHome51 {
        left: 12px;
        top: 12px;
        padding: 6px 11px;
        font-size: 13px;
    }
}


/* v21 detail fixes */

/* Legal English spacing */
.legalQrSection51 {
    margin-top: 12px !important;
}

.advanced-section51 {
    margin-bottom: 18px !important;
}

.lePlanWrap {
    margin-bottom: 20px !important;
}

/* Checkmark effect for legal English privileges */
.lePlanPrivilege {
    position: relative !important;
    padding-left: 34px !important;
}

.lePlanPrivilege::before {
    content: "✓" !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #0d46c1 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 1000 !important;
}

/* Course page footer spacing and mobile title */
.footer51 {
    margin-top: 12px !important;
}

.footer51 h2 {
    font-size: clamp(22px, 3vw, 34px) !important;
}

@media (max-width: 720px) {
    .footer51 h2 {
        font-size: 20px !important;
        white-space: nowrap !important;
    }

    .footer51 {
        padding-top: 24px !important;
        padding-bottom: 26px !important;
    }
}

/* Mobile course list: two cards per row */
@media (max-width: 720px) {
    .course-grid51 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .course-grid51 .card51 {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .course-img51 {
        height: 112px !important;
        border-radius: 12px !important;
    }

    .course-grid51 h4 {
        font-size: 14px !important;
        line-height: 1.45 !important;
        min-height: 42px !important;
    }

    .course-price51 {
        gap: 4px !important;
        display: block !important;
    }

    .course-price51 .now51 {
        display: block !important;
        font-size: 18px !important;
    }

    .course-price51 .old51 {
        display: block !important;
        font-size: 12px !important;
    }

    .mini-btn51 {
        font-size: 13px !important;
        padding: 8px 4px !important;
    }
}

/* VIP rights 1-3 spacing */
.gold51 .vipV16-kicker,
.gold51 .vipBenefitNo51,
.gold51 .vip-benefit-no51 {
    margin-bottom: 16px !important;
}

/* VIP course list image padding */
.vipV17-proof.nine {
    padding-left: 5px !important;
    padding-right: 5px !important;
    gap: 10px !important;
}

.vipV17-proof.nine .vipV17-shot {
    border-radius: 12px !important;
}

.vipV17-proof.nine .vipV17-shot img {
    min-height: 150px !important;
}

/* VIP benefit 6 images: remove rounded wrapping box */
.vipV17-proof.two .vipV17-shot {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.vipV17-proof.two .vipV17-shot img {
    border-radius: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
}

.vipV17-proof.two .vipV17-proofLabel {
    border-top: none !important;
    background: transparent !important;
}

/* VIP coffee block closer to package */
.vipV16-coffee {
    margin-top: 8px !important;
    margin-bottom: 28px !important;
}


/* v23 VIP QR style + spacing + mobile course grid */

/* VIP扫码咨询模块样式修复 */
.vipQrSection51 {
    margin: 22px auto 34px !important;
    border-radius: 30px !important;
    padding: clamp(26px, 4vw, 42px) !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 215, 104, .22), transparent 18rem),
        linear-gradient(135deg, #0b48c5, #062e8e) !important;
    color: #fff !important;
    box-shadow: 0 18px 40px rgba(6, 31, 88, .16) !important;
}

.vipQrInner51 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 28px !important;
    align-items: center !important;
}

.vipQrSection51 h2 {
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: clamp(28px, 3.4vw, 42px) !important;
    font-weight: 1000 !important;
    line-height: 1.25 !important;
}

.vipQrSection51 p {
    margin: 0 !important;
    max-width: 760px !important;
    color: rgba(255,255,255,.90) !important;
    font-size: 18px !important;
    line-height: 1.85 !important;
}

.vipQrBox51 {
    display: grid !important;
    place-items: center !important;
    border-radius: 24px !important;
    padding: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.15) !important;
}

.vipQrBox51 img {
    width: 380px !important;
    height: 380px !important;
    object-fit: contain !important;
}

/* 选择适合您的VIP礼遇整体上移，压缩与上方内容距离 */
.vipV16-coffee + .section51,
.vipQrSection51 + .section51 {
    padding-top: 18px !important;
}

/* 法律英语二维码区与高阶班底部间距缩小 */
.legalQrSection51 {
    margin-top: 10px !important;
}

/* 高阶班区域底部不要留太大 */
.advanced-section51 {
    margin-bottom: 14px !important;
}

/* 单课区手机端一排两个课程 */
@media (max-width: 720px) {
    #singleCourseWrap .course-grid51,
    .course-grid51 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    #singleCourseWrap .card51,
    .course-grid51 .card51 {
        padding: 12px !important;
        border-radius: 16px !important;
    }

    #singleCourseWrap .course-img51,
    .course-grid51 .course-img51 {
        height: 112px !important;
        border-radius: 12px !important;
    }

    #singleCourseWrap h4,
    .course-grid51 h4 {
        font-size: 14px !important;
        line-height: 1.45 !important;
        min-height: 42px !important;
    }

    #singleCourseWrap .course-price51,
    .course-grid51 .course-price51 {
        display: block !important;
        margin-top: 8px !important;
    }

    #singleCourseWrap .now51,
    .course-grid51 .now51 {
        display: block !important;
        font-size: 18px !important;
    }

    #singleCourseWrap .old51,
    .course-grid51 .old51 {
        display: block !important;
        font-size: 12px !important;
    }

    #singleCourseWrap .mini-btn51,
    .course-grid51 .mini-btn51 {
        font-size: 13px !important;
        padding: 8px 4px !important;
    }

    .vipQrInner51 {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .vipQrBox51 {
        width: fit-content !important;
        margin: 0 auto !important;
    }
}


/* v24 course page spacing and image fitting */
#singleCourseWrap {
    margin-top: 8px !important;
}

/* 压缩“适合你，如果你”版块与下方课程专区之间距离 */
.courseIntro51,
.courseIntro51 + .section51,
.courseIntro51 + #singleCourseWrap,
.suitable51,
.suitable51 + .section51,
.fitUser51,
.fitUser51 + .section51 {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
}

/* 如果“适合你，如果你”是上一段普通 section，则压缩它与课程列表的距离 */
main > section.section51:has(+ section.section51 #singleCourseWrap) {
    padding-bottom: 18px !important;
}

main > section.section51:has(#singleCourseWrap) {
    padding-top: 8px !important;
}

/* 课程卡片图片：完整显示 280×157，并贴合卡片上沿 */
.course-grid51 .card51 {
    overflow: hidden !important;
    padding-top: 0 !important;
}

.course-img51 {
    width: calc(100% + 2px) !important;
    height: auto !important;
    aspect-ratio: 280 / 157 !important;
    margin: -1px -1px 14px -1px !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    overflow: hidden !important;
    background: #eef4ff !important;
}

.course-img51 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 0 !important;
}

/* 角标位置适配图片贴边 */
.price-tag51 {
    left: 10px !important;
    top: 10px !important;
}

/* 手机端两列下，保持图片完整显示 */
@media (max-width: 720px) {
    #singleCourseWrap {
        margin-top: 4px !important;
    }

    main > section.section51:has(+ section.section51 #singleCourseWrap) {
        padding-bottom: 12px !important;
    }

    main > section.section51:has(#singleCourseWrap) {
        padding-top: 4px !important;
    }

    .course-grid51 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .course-grid51 .card51 {
        padding: 0 10px 12px 10px !important;
        border-radius: 16px !important;
    }

    .course-img51 {
        aspect-ratio: 280 / 157 !important;
        margin: -1px -10px 10px -10px !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .course-grid51 h4 {
        font-size: 14px !important;
        line-height: 1.45 !important;
        min-height: 42px !important;
    }

    .course-price51 {
        display: block !important;
        margin-top: 6px !important;
    }

    .course-price51 .now51 {
        display: block !important;
        font-size: 18px !important;
    }

    .course-price51 .old51 {
        display: block !important;
        font-size: 12px !important;
    }

    .mini-btn51 {
        font-size: 13px !important;
        padding: 8px 4px !important;
    }
}


/* v25 course image edge-fit and one-line price */

/* 课程卡片整体仍保留内部内容左右间距，但图片贴紧外层线框 */
.course-grid51 .card51 {
    overflow: hidden !important;
    border: 1px solid #dbe7ff !important;
    padding-top: 0 !important;
}

/* 去掉图片背后的淡色背景；图片区域贴紧卡片上边和左右边 */
.course-img51 {
    width: calc(100% + 2px) !important;
    height: auto !important;
    aspect-ratio: 280 / 157 !important;
    margin: -1px -1px 14px -1px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* 图片完整显示，左上/右上圆角贴合线框，左下/右下直角 */
.course-img51 img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    background: transparent !important;
}

/* 价格和原价放同一行 */
.course-price51 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-top: 8px !important;
    white-space: nowrap !important;
}

.course-price51 .now51 {
    display: inline !important;
    font-size: clamp(18px, 2vw, 24px) !important;
    line-height: 1.2 !important;
}

.course-price51 .old51 {
    display: inline !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* 图片角标仍压在图片上 */
.price-tag51 {
    left: 10px !important;
    top: 10px !important;
}

/* 手机端两列下，图片继续贴紧边框；文字/按钮保持左右间距 */
@media (max-width: 720px) {
    .course-grid51 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .course-grid51 .card51 {
        padding: 0 10px 12px 10px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .course-img51 {
        width: calc(100% + 20px) !important;
        aspect-ratio: 280 / 157 !important;
        margin: -1px -10px 10px -10px !important;
        border-radius: 16px 16px 0 0 !important;
        background: transparent !important;
    }

    .course-img51 img {
        border-radius: 16px 16px 0 0 !important;
        object-fit: contain !important;
        background: transparent !important;
    }

    .course-grid51 h4 {
        font-size: 14px !important;
        line-height: 1.45 !important;
        min-height: 42px !important;
    }

    .course-price51 {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        align-items: baseline !important;
        white-space: nowrap !important;
    }

    .course-price51 .now51 {
        display: inline !important;
        font-size: 16px !important;
    }

    .course-price51 .old51 {
        display: inline !important;
        font-size: 11px !important;
    }

    .mini-btn51 {
        font-size: 13px !important;
        padding: 8px 4px !important;
    }
}


/* v26 exact image edge fit */
.course-grid51 .card51{
  padding:0 14px 14px 14px !important;
  overflow:hidden !important;
  border:1px solid #dbe7ff !important;
  border-radius:22px !important;
  background:#fff !important;
}

.course-grid51 .course-img51{
  display:block !important;
  width:calc(100% + 30px) !important;
  margin:0 -15px 14px -15px !important;
  padding:0 !important;
  height:auto !important;
  aspect-ratio:280/157 !important;
  border-radius:22px 22px 0 0 !important;
  overflow:hidden !important;
  background:transparent !important;
}

.course-grid51 .course-img51 img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:22px 22px 0 0 !important;
}

.course-grid51 h4,
.course-grid51 .course-price51,
.course-grid51 .mini-btn51{
  margin-left:0 !important;
  margin-right:0 !important;
}

.course-grid51 .course-price51{
  display:flex !important;
  align-items:baseline !important;
  gap:8px !important;
  white-space:nowrap !important;
}

.course-grid51 .course-price51 .now51,
.course-grid51 .course-price51 .old51{
  display:inline !important;
}

@media (max-width:720px){
  .course-grid51{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }

  .course-grid51 .card51{
    padding:0 10px 12px 10px !important;
    border-radius:18px !important;
  }

  .course-grid51 .course-img51{
    width:calc(100% + 22px) !important;
    margin:0 -11px 10px -11px !important;
    border-radius:18px 18px 0 0 !important;
  }

  .course-grid51 .course-img51 img{
    border-radius:18px 18px 0 0 !important;
  }

  .course-grid51 h4{
    font-size:14px !important;
    line-height:1.45 !important;
    min-height:42px !important;
  }

  .course-grid51 .course-price51{
    gap:4px !important;
  }

  .course-grid51 .course-price51 .now51{
    font-size:16px !important;
  }

  .course-grid51 .course-price51 .old51{
    font-size:11px !important;
  }
}


/* v27 final course image fit: top edge exact, full image, bottom square */
#singleCourseWrap .course-grid51 .card51,
.course-grid51 .card51 {
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 1px solid #dbe7ff !important;
    border-radius: 18px !important;
    background: #fff !important;
    padding: 0 14px 14px 14px !important;
}

/* 图片区域反向抵消卡片左右内边距，顶部完全贴住边框 */
#singleCourseWrap .course-grid51 .course-img51,
.course-grid51 .course-img51 {
    box-sizing: border-box !important;
    display: block !important;
    width: calc(100% + 28px) !important;
    height: auto !important;
    aspect-ratio: 280 / 157 !important;
    margin: 0 -14px 14px -14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    line-height: 0 !important;
}

/* 图片必须完整显示，不裁切；底部保持直角 */
#singleCourseWrap .course-grid51 .course-img51 img,
.course-grid51 .course-img51 img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 18px 18px 0 0 !important;
    background: #fff !important;
}

/* 强制覆盖之前可能写入的圆角和间距 */
#singleCourseWrap .course-img51,
#singleCourseWrap .course-img51 img {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* 价格保持一行 */
#singleCourseWrap .course-price51,
.course-grid51 .course-price51 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

#singleCourseWrap .course-price51 .now51,
#singleCourseWrap .course-price51 .old51,
.course-grid51 .course-price51 .now51,
.course-grid51 .course-price51 .old51 {
    display: inline !important;
}

@media (max-width: 720px) {
    #singleCourseWrap .course-grid51,
    .course-grid51 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    #singleCourseWrap .course-grid51 .card51,
    .course-grid51 .card51 {
        border-radius: 16px !important;
        padding: 0 10px 12px 10px !important;
    }

    #singleCourseWrap .course-grid51 .course-img51,
    .course-grid51 .course-img51 {
        width: calc(100% + 20px) !important;
        margin: 0 -10px 10px -10px !important;
        aspect-ratio: 280 / 157 !important;
        border-radius: 16px 16px 0 0 !important;
    }

    #singleCourseWrap .course-grid51 .course-img51 img,
    .course-grid51 .course-img51 img {
        object-fit: contain !important;
        border-radius: 16px 16px 0 0 !important;
        background: #fff !important;
    }

    #singleCourseWrap .course-grid51 h4,
    .course-grid51 h4 {
        font-size: 14px !important;
        line-height: 1.45 !important;
        min-height: 42px !important;
    }

    #singleCourseWrap .course-price51,
    .course-grid51 .course-price51 {
        gap: 5px !important;
    }

    #singleCourseWrap .course-price51 .now51,
    .course-grid51 .course-price51 .now51 {
        font-size: 16px !important;
    }

    #singleCourseWrap .course-price51 .old51,
    .course-grid51 .course-price51 .old51 {
        font-size: 11px !important;
    }
}


/* v28 VIP top quick buy section */
.vipTopBuy51 {
    margin: 0px auto 0px;
}

.vipTopBuyHeader51 {
    margin-bottom: 16px;
    text-align: center;
}

.vipTopBuyHeader51 h2 {
    color: #09286e;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 1000;
    line-height: 1.25;
}

.vipTopBuyHeader51 p {
    margin-top: 8px;
    color: #66708a;
    font-size: 17px;
    line-height: 1.8;
}

.vipTopBuyGrid51 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.vipTopBuyCard51 {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(24px, 3vw, 34px);
    color: #fff;
    box-shadow: 0 18px 40px rgba(6, 31, 88, .16);
}

.vipTopBuyCard51::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.32), transparent 14rem),
        linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
    pointer-events: none;
}

.vipTopBuyCard51 > * {
    position: relative;
    z-index: 2;
}

.vipTopBuyOne51 {
    background: linear-gradient(135deg, #ff3f7f 0%, #d80f58 48%, #8d0d83 100%);
}

.vipTopBuyTwo51 {
    background: linear-gradient(135deg, #8b35ff 0%, #6415ce 52%, #3a087f 100%);
}

.vipTopBuyLabel51 {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(0,0,0,.24);
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
}

.vipTopBuyCard51 h3 {
    margin: 18px 0 6px;
    font-size: clamp(38px, 4.5vw, 56px);
    line-height: 1;
    font-weight: 1000;
}

.vipTopBuyDesc51 {
    color: rgba(255,255,255,.88);
    font-size: 18px;
    font-weight: 900;
}

.vipTopBuyGift51 {
    margin: 20px 0 16px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(8px);
}

.vipTopBuyGift51 strong {
    display: block;
    color: #ffe9a8;
    font-size: 19px;
    font-weight: 1000;
}

.vipTopBuyGift51 span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.6;
}

.vipTopBuyPrice51 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    margin-top: 12px;
}

.vipTopBuyNow51 {
    color: #fff5c8;
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 1000;
    white-space: nowrap;
}

.vipTopBuyOld51 {
    color: rgba(255,255,255,.64);
    font-size: 17px;
    text-decoration: line-through;
    white-space: nowrap;
}

.vipTopBuyBtn51 {
    display: block;
    margin-top: 18px;
    border-radius: 999px;
    padding: 14px 24px;
    background: #fff;
    color: #0d46c1;
    font-size: 19px;
    font-weight: 1000;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.vipTopBuyBtn51:hover {
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .vipTopBuyGrid51 {
        grid-template-columns: 1fr;
    }
}

