:root {
    --tp-primary: #1F6FEB;
    --tp-primary-light: #EAF1FE;
    --tp-up: #E5484D;
    --tp-down: #2BA471;
    --tp-bg: #F7F9FC;
    --tp-surface: #FFFFFF;
    --tp-text: #1F2733;
    --tp-text-2: #5B6675;
    --tp-text-3: #98A2B3;
    --tp-border: #E6EAF0;
}

body {
    margin: 0;
    background: var(--tp-bg);
    color: var(--tp-text);
    font-family: "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
}

body > div > .layui-nav,
.layui-nav[style*="position: fixed"] {
    top: 0;
    left: 0;
}

.tp-hero {
    margin-top: 60px; /* fixed顶栏高度让位 */
}

.tp-hero {
    background: linear-gradient(180deg, #F2F7FF, #F7F9FC);
    border-bottom: 1px solid var(--tp-border);
}

.tp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px 64px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.tp-hero-text {
    flex: 1 1 55%;
}

.tp-hero-text h1 {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.25;
    color: var(--tp-text);
    letter-spacing: 1px;
}

.tp-hero-sub {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--tp-text-2);
    max-width: 540px;
}

.tp-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tp-hero-tags span {
    padding: 4px 14px;
    background: var(--tp-primary-light);
    color: var(--tp-primary);
    border-radius: 999px;
    font-size: 13px;
}

.tp-hero-actions {
    display: flex;
    gap: 16px;
}

.tp-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}

.tp-btn-primary {
    background: var(--tp-primary);
    color: #fff;
}

.tp-btn-primary:hover {
    background: #1A5FD1;
    color: #fff;
}

.tp-btn-ghost {
    border: 1px solid var(--tp-primary);
    color: var(--tp-primary);
}

.tp-btn-ghost:hover {
    background: var(--tp-primary-light);
}

.tp-hero-chart {
    flex: 1 1 45%;
    max-width: 480px;
}

.tp-hero-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.tp-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
}

.tp-section-tight {
    padding-top: 0;
}

.tp-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.tp-section-head h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--tp-text);
}

.tp-section-head p {
    margin: 0;
    font-size: 15px;
    color: var(--tp-text-3);
}

.tp-anchor {
    position: fixed;
    right: 16px;
    top: 35%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
}

.tp-anchor a {
    display: block;
    padding: 8px 12px;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--tp-text-2);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(31, 39, 51, .06);
    transition: all .2s;
}

.tp-anchor a:hover,
.tp-anchor a.tp-anchor-active {
    color: var(--tp-primary);
    border-color: var(--tp-primary);
    background: var(--tp-primary-light);
}

.tp-module-detail {
    scroll-margin-top: 76px;
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    padding: 24px 28px 12px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.tp-module-detail + .tp-module-detail {
    margin-top: 24px;
}

.tp-module-detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--tp-border);
}

.tp-module-detail-head .layui-icon {
    font-size: 22px;
    color: var(--tp-primary);
}

.tp-module-detail-head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--tp-text);
    flex: 1;
}

.tp-module-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--tp-border);
}

.tp-module-detail-row:last-child {
    border-bottom: none;
}

.tp-module-detail-row .tp-module-parent {
    flex: 0 0 120px;
    margin-bottom: 0;
    line-height: 26px;
}

.tp-module-detail-row .tp-chips {
    flex: 1;
}

.tp-module-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--tp-text);
}

.tp-module-desc {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--tp-text-2);
    line-height: 1.7;
}

.tp-module-group {
    margin-bottom: 14px;
}

.tp-module-parent {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-text);
    text-decoration: none;
}

.tp-module-parent:hover {
    color: var(--tp-primary);
}

.tp-module-more-wrap {
    margin-top: auto;
    padding-top: 10px;
}

.tp-module-more {
    font-size: 14px;
    color: var(--tp-primary);
    text-decoration: none;
}

.tp-module-more:hover {
    text-decoration: underline;
}

.tp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-chip {
    display: inline-block;
    padding: 4px 12px;
    background: #F2F5FA;
    border: 1px solid var(--tp-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--tp-text-2);
    text-decoration: none;
    transition: all .15s;
}

a.tp-chip:hover {
    color: var(--tp-primary);
    border-color: var(--tp-primary);
    background: var(--tp-primary-light);
}

.tp-chip-more {
    color: var(--tp-text-3);
}

.tp-ai-strip {
    background: linear-gradient(90deg, #1F6FEB, #3D8BFD);
    border-radius: 12px;
    padding: 26px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
}

.tp-ai-text {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp-ai-text .layui-icon {
    font-size: 34px;
    opacity: .9;
}

.tp-ai-text h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.tp-ai-text p {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

.tp-ai-strip .tp-btn-primary {
    background: #fff;
    color: var(--tp-primary);
    flex: none;
}

.tp-ai-strip .tp-btn-primary:hover {
    background: #F2F7FF;
}

.tp-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tp-feature-card {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    padding: 28px 24px;
}

.tp-feature-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--tp-text);
}

.tp-feature-card h3 .layui-icon {
    color: var(--tp-primary);
    margin-right: 6px;
}

.tp-feature-tip {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--tp-text-2);
}

.tp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tp-stat {
    background: var(--tp-surface);
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.tp-stat .layui-icon {
    font-size: 28px;
    color: var(--tp-primary);
    margin-bottom: 10px;
}

.tp-stat h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--tp-text);
}

.tp-stat p {
    margin: 0;
    font-size: 13px;
    color: var(--tp-text-2);
    line-height: 1.7;
}

.tp-stat a {
    color: var(--tp-primary);
}

/* ---------- Footer ---------- */
.tp-footer {
    background: #F0F3F8;
    border-top: 1px solid var(--tp-border);
    padding: 32px 24px 28px;
}

.tp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tp-footer-links {
    margin: 0 0 8px;
}

.tp-footer-links a {
    display: inline-block;
    color: var(--tp-text-2);
    text-decoration: none;
    font-size: 13px;
    margin: 0 12px;
}

.tp-footer-links a:hover {
    color: var(--tp-primary);
}

.tp-footer-links img {
    height: 16px;
    width: 16px;
    vertical-align: -3px;
    margin-right: 4px;
}

.tp-footer-copy {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--tp-text-3);
    font-style: normal;
}

.tp-footer-risk {
    margin: 0;
    font-size: 13px;
    color: #B92C28;
}

.tp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

.tp-reveal.tp-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .tp-hero-inner {
        flex-direction: column;
        gap: 32px;
        padding-top: 48px;
    }

    .tp-hero-text {
        text-align: center;
    }

    .tp-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .tp-hero-tags,
    .tp-hero-actions {
        justify-content: center;
    }

    .tp-module-detail-row {
        flex-direction: column;
        gap: 8px;
    }

    .tp-module-detail-row .tp-module-parent {
        flex: none;
    }

    .tp-features {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .tp-hero-text h1 {
        font-size: 28px;
    }

    .tp-hero-sub {
        font-size: 14px;
    }

    .tp-section {
        padding: 40px 16px;
    }

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

    .tp-ai-strip {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .tp-ai-text {
        flex-direction: column;
        gap: 8px;
    }

    .tp-stats {
        grid-template-columns: 1fr;
    }
}

.tp-scroll-notice {
    display: flex;
    align-items: center;
    width: 100%;
    height: 36px;
    margin-top: 60px;
    overflow: hidden;
    background: transparent;
    border-bottom: 1px dashed rgba(31, 111, 235, 0.3);
}

body.tp-has-scroll-notice .tp-hero {
    margin-top: 0;
}

.tp-scroll-notice-label {
    flex: none;
    margin-left: 20px;
    padding: 0 10px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
    color: #fff;
    background: #1F6FEB;
    border-radius: 11px;
}

.tp-scroll-notice-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
}

.tp-scroll-notice-text {
    display: inline-block;
    padding-left: 100%;
    font-size: 16px;
    color: #B84A4A;
    white-space: nowrap;
    animation: tp-scroll-marquee linear infinite;
}

@keyframes tp-scroll-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
