:root {
    --tpm-red: #c9151e;
    --tpm-red-dark: #9f1017;
    --tpm-ink: #171717;
    --tpm-muted: #5f6368;
    --tpm-line: #e4e6e8;
    --tpm-soft: #f7f8f8;
    --tpm-warm: #fff8f7;
    --tpm-green: #2f6654;
}

html {
    scroll-behavior: smooth;
}

.tpm-page {
    margin: 0;
    color: var(--tpm-ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

.tpm-page *,
.tpm-page *::before,
.tpm-page *::after {
    box-sizing: border-box;
}

.tpm-page a {
    color: inherit;
}

.tpm-main {
    overflow: hidden;
}

.tpm-wrap {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.tpm-hero {
    padding: 20px 0 56px;
    border-bottom: 1px solid var(--tpm-line);
    background: linear-gradient(180deg, #fff 0%, #fff 64%, #fcf8f8 100%);
}

.tpm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: #777;
    font-size: 13px;
}

.tpm-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.tpm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.tpm-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 42px;
    line-height: 1.22;
    letter-spacing: 0;
    text-wrap: balance;
}

.tpm-lead {
    max-width: 780px;
    margin: 22px 0 0;
    color: #3f4347;
    font-size: 17px;
    line-height: 1.9;
}

.tpm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.tpm-actions a,
.tpm-bottom-cta > a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.tpm-primary,
.tpm-bottom-cta > a {
    border: 1px solid var(--tpm-red);
    color: #fff !important;
    background: var(--tpm-red);
}

.tpm-primary:hover,
.tpm-bottom-cta > a:hover {
    background: var(--tpm-red-dark);
}

.tpm-secondary {
    border: 1px solid #cfd3d6;
    color: #222 !important;
    background: #fff;
}

.tpm-secondary:hover {
    border-color: #999;
    background: var(--tpm-soft);
}

.tpm-hero-aside {
    padding: 24px;
    border: 1px solid #dddfe1;
    border-radius: 6px;
    background: #fff;
}

.tpm-hero-aside h2 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.4;
}

.tpm-hero-aside dl,
.tpm-course-meta,
.tpm-expert-card dl {
    margin: 0;
}

.tpm-hero-aside dl > div {
    padding: 12px 0;
    border-top: 1px solid #eceeef;
}

.tpm-hero-aside dt,
.tpm-course-meta dt,
.tpm-expert-card dt {
    color: #777;
    font-size: 12px;
}

.tpm-hero-aside dd,
.tpm-course-meta dd,
.tpm-expert-card dd {
    margin: 3px 0 0;
    color: #2f3337;
    font-size: 14px;
}

.tpm-section {
    padding-top: 54px;
}

.tpm-section-head {
    display: flex;
    gap: 28px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tpm-line);
}

.tpm-section-head h2 {
    position: relative;
    margin: 0;
    padding-left: 13px;
    font-size: 25px;
    line-height: 1.35;
}

.tpm-section-head h2::before {
    position: absolute;
    top: .19em;
    bottom: .19em;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--tpm-red);
    content: "";
}

.tpm-section-head > p {
    margin: 0;
    color: var(--tpm-muted);
    font-size: 14px;
    text-align: right;
}

.tpm-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tpm-scenario-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--tpm-line);
    border-radius: 6px;
    background: #fff;
}

.tpm-course-head > span {
    width: fit-content;
    padding: 3px 8px;
    border: 1px solid #efcfcc;
    border-radius: 4px;
    color: var(--tpm-red);
    background: var(--tpm-warm);
    font-size: 12px;
    font-weight: 700;
}

.tpm-scenario-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.55;
}

.tpm-scenario-card p {
    margin: 0 0 18px;
    color: #555c61;
    font-size: 14px;
}

.tpm-scenario-card > a {
    margin-top: auto;
    color: var(--tpm-red);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tpm-anchor {
    scroll-margin-top: 116px;
}

.tpm-course-list {
    display: grid;
    gap: 14px;
}

.tpm-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    border: 1px solid var(--tpm-line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.tpm-course-main {
    padding: 24px;
}

.tpm-course-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.tpm-course-title {
    color: #171717 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.tpm-course-title:hover,
.tpm-course-meta a:hover,
.tpm-expert-card a:hover {
    color: var(--tpm-red) !important;
}

.tpm-course-main > p {
    margin: 14px 0 0;
    color: #50565b;
    font-size: 14px;
}

.tpm-course-main .tpm-course-note {
    padding-top: 12px;
    border-top: 1px solid #eceeef;
    color: #72777b;
    font-size: 13px;
}

.tpm-course-meta {
    padding: 20px 22px;
    border-left: 1px solid var(--tpm-line);
    background: #fcfcfc;
}

.tpm-course-meta > div {
    padding: 8px 0 12px;
    border-bottom: 1px solid #e8eaeb;
}

.tpm-course-meta > div:last-child {
    border-bottom: 0;
}

.tpm-course-meta a,
.tpm-expert-card a {
    color: var(--tpm-red);
    font-weight: 700;
    text-decoration: none;
}

.tpm-course-action dd a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #efc9c5;
    border-radius: 4px;
    background: #fff;
}

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

.tpm-expert-card {
    padding: 24px;
    border: 1px solid var(--tpm-line);
    border-radius: 6px;
    background: #fff;
}

.tpm-expert-head {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #eceeef;
}

.tpm-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--tpm-green);
    font-size: 19px;
    font-weight: 700;
    overflow: hidden;
}

.tpm-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpm-expert-head h3,
.tpm-expert-head p {
    margin: 0;
}

.tpm-expert-head h3 {
    font-size: 19px;
}

.tpm-expert-head p {
    color: #767b80;
    font-size: 12px;
}

.tpm-expert-card dl > div {
    padding-top: 14px;
}

.tpm-expert-link {
    display: inline-block;
    margin-top: 18px;
}

.tpm-boundary {
    padding-bottom: 4px;
}

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

.tpm-boundary-grid > a {
    display: grid;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid var(--tpm-line);
    border-radius: 6px;
    text-decoration: none;
}

.tpm-boundary-grid strong {
    color: var(--tpm-red);
    font-size: 15px;
}

.tpm-boundary-grid span {
    color: #61676c;
    font-size: 13px;
}

.tpm-faq details {
    border-bottom: 1px solid var(--tpm-line);
}

.tpm-faq summary {
    padding: 16px 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.tpm-faq details p {
    margin: 0;
    padding: 0 26px 18px 4px;
    color: #565c61;
    font-size: 14px;
}

.tpm-bottom-cta {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-top: 54px;
    margin-bottom: 54px;
    padding: 28px 30px;
    border: 1px solid #efd0cc;
    border-radius: 6px;
    background: var(--tpm-warm);
}

.tpm-bottom-cta h2,
.tpm-bottom-cta p {
    margin: 0;
}

.tpm-bottom-cta h2 {
    font-size: 22px;
}

.tpm-bottom-cta p {
    margin-top: 6px;
    color: #5e6469;
    font-size: 14px;
}

@media (max-width: 900px) {
    .tpm-hero-grid,
    .tpm-course-card {
        grid-template-columns: 1fr;
    }

    .tpm-hero-grid {
        gap: 28px;
    }

    .tpm-scenario-grid {
        grid-template-columns: 1fr;
    }

    .tpm-scenario-card {
        min-height: auto;
    }

    .tpm-course-meta {
        border-top: 1px solid var(--tpm-line);
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .tpm-wrap {
        width: min(100% - 28px, 1140px);
    }

    .tpm-hero {
        padding-top: 12px;
        padding-bottom: 36px;
    }

    .tpm-breadcrumb {
        margin-bottom: 20px;
    }

    .tpm-hero h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    .tpm-lead {
        font-size: 15px;
        line-height: 1.8;
    }

    .tpm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tpm-actions a {
        width: 100%;
    }

    .tpm-hero-aside {
        padding: 18px;
    }

    .tpm-section {
        padding-top: 40px;
    }

    .tpm-section-head {
        display: block;
    }

    .tpm-section-head h2 {
        font-size: 22px;
    }

    .tpm-section-head > p {
        margin-top: 10px;
        text-align: left;
    }

    .tpm-scenario-card,
    .tpm-course-main,
    .tpm-course-meta,
    .tpm-expert-card {
        padding: 18px;
    }

    .tpm-course-head {
        display: grid;
        gap: 10px;
    }

    .tpm-course-title {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .tpm-expert-grid,
    .tpm-boundary-grid {
        grid-template-columns: 1fr;
    }

    .tpm-bottom-cta {
        display: grid;
        gap: 18px;
        margin-top: 40px;
        margin-bottom: 40px;
        padding: 22px;
    }

    .tpm-bottom-cta > a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tpm-actions a,
    .tpm-bottom-cta > a {
        transition: none;
    }
}
