* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-bg: #f8fafc;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-dark);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-text {
    background: transparent;
    color: var(--text-dark);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #4338ca;
}

/* 英雄区 */
.hero {
    background: linear-gradient(to bottom, var(--gray-bg), var(--white));
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    font-size: 14px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-solid {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
}

.hero-image {
    background: #1f2937;
    border-radius: 8px;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* 特性亮点 */
.features-highlight {
    padding: 40px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.highlight-icon {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

.highlight-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.highlight-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* 核心功能区 */
.core-features {
    padding: 60px 0;
}

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

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--gray-bg);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 使用步骤 */
.steps {
    background: var(--primary-light);
    padding: 60px 0;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.step-card {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 12px;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 22px;
    color: var(--primary);
}

/* 用户评价 */
.testimonials {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-author {
    font-size: 14px;
    opacity: 0.8;
    text-align: right;
}

/* CTA区 */
.cta {
    padding: 60px 0;
    text-align: center;
}

.cta-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* 页脚 */
footer {
    background: var(--white);
    border-top: 1px solid #e5e7eb;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.footer-column-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}



/* 列表页面标题 */
.page-title {
    text-align: center;
    padding: 30px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

/* 内容列表区 - 三列布局 */
.list-container {
    padding: 20px 0 40px;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-img {
    width: 100%;
    height: 180px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
}

/* 分页功能 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
}

.page-item {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: background 0.2s;
}

.page-item:hover {
    background: var(--primary-light);
}

.page-item.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-desc {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 8px;
}




/* 内容主体容器 */
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}

/* 文章正文区 */
.article-container {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-content p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.8;
}

.article-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.article-img {
    width: 200px;
    height: 150px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin: 16px 0;
}

.article-tip {
    font-size: 12px;
    color: var(--text-light);
    padding: 12px 0;
    border-left: 2px solid var(--primary);
    padding-left: 12px;
    margin: 20px 0;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    background: var(--gray-bg);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn .next {
    color: var(--primary);
}

/* 侧边栏：相关推荐 */
.sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.recommend-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recommend-img {
    width: 100%;
    height: 180px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.recommend-content {
    padding: 12px;
}

.recommend-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recommend-title a{
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-desc {
    font-size: 12px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




/* 移动端适配 */
@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn-text {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .content-wrap {
        grid-template-columns: 1fr;
    }

    .article-container {
        padding: 20px;
    }

    .article-nav {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {

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

    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 16px;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }
}



.pagination-wrap {
    padding: 20px 10px;
    margin-top: 20px;
    border-radius: 8px;
}

.pagination-wrap .paging-cls {
    text-align: center;
}

.pagination-wrap .paging-cls li {
    display: inline-block;
    margin: 0 5px;
    list-style: none;
}

.pagination-wrap .paging-cls span,
.pagination-wrap .paging-cls a {
    display: inline-block;
    border: 1px solid #eef3f8;
    border-radius: 5px;
    height: 44px;
    line-height: 44px;
    width: 44px;
    margin: 0 3px;
    font-size: 14px;
    color: #000000;
    text-decoration: none;
}

.pagination-wrap .paging-cls span:hover,
.pagination-wrap .paging-cls a:hover {
    background: #F0B90B;
    color: #fff !important;
}

.pagination-wrap .paging-cls .current {
    background: #F0B90B;
    color: #fff;
    font-weight: bold;
}

.pagination-wrap .paging-cls .fa-angle-double-left::before {
    content: "<";
}

.pagination-wrap .paging-cls .fa-angle-double-right::before {
    content: ">";
}

.pagination-wrap .active a{
    background-color: #F0B90B !important;
    color: #fff !important;
    font-weight: bold;
}



.news-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.news-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.news-link:hover {
    text-decoration: underline;
}

.news-link::after {
    content: '→';
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(4px);
}
