
/* 通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f0f2f5, #e1e5ea);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

h2, h3 {
    color: #0056b3;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

p {
    margin-bottom: 15px;
    color: #555;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

.card-footer a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.card-footer a:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* 代码块样式 */
pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

code {
    font-family: monospace, monospace;
    font-size: 14px;
    color: #333;
    display: block;
    line-height: 1.4;
}

/* 示例文章样式 */
article {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

article h2 {
    color: #2e86de;
    border-bottom: 2px solid #2e86de;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

article h3 {
    color: #3498db;
    margin-top: 25px;
    margin-bottom: 20px;
}

article p, article ul, article ol, article table {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

article th, article td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

article th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 15px;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .card-body, .card-footer, .card-header {
        padding: 15px;
    }
    article {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 10px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .card-image {
        height: 180px;
    }
    article {
        padding: 20px;
    }
    article h2 {
        font-size: 28px;
    }
    article h3 {
        font-size: 22px;
    }
    article p, article ul, article ol, article table {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 360px;
        padding: 5px;
    }
    .card-image {
        height: 150px;
    }
    article {
        padding: 15px;
    }
    article h2 {
        font-size: 24px;
    }
    article h3 {
        font-size: 20px;
    }
    article p, article ul, article ol, article table {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .container {
        max-width: 300px;
    }
    .card-image {
        height: 120px;
    }
    article {
        padding: 10px;
    }
    article h2 {
        font-size: 20px;
    }
    article h3 {
        font-size: 18px;
    }
    article p, article ul, article ol, article table {
        font-size: 13px;
    }
}

/*  更多样式 */
.header-section {
    background: linear-gradient(to right, #2e86de, #5dade2);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.header-section h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.2);
}

.header-section p {
    font-size: 1.2em;
    color: #f0f8ff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.feature-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.feature-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #3498db;
    position: relative;
    padding-bottom: 20px;
}

.feature-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background-color: #3498db;
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feature-item h3 {
    color: #2e86de;
    margin-bottom: 15px;
}

.feature-item p {
    color: #555;
}

.cta-section {
    background: linear-gradient(to right, #764ba2, #6f1ab8); /* 电光紫渐变 */
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.cta-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.2);
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f8ff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ffcc00; /* 活力黄 */
    color: #333;
    border-radius: 10px;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #ffdd5e;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.footer-section {
    text-align: center;
    padding: 20px;
    color: #777;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.footer-section p {
    font-size: 0.9em;
}

/* 辅助色 - 绿色点缀 */
.accent-green {
    color: #2ecc71;
}

.bg-accent-green {
    background-color: #e8f8f5;
}

.border-accent-green {
    border-color: #2ecc71;
}

/*  卡片式数据展示区域  */
.data-display-section {
    padding: 40px 20px;
    background-color: #f0f2f5;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.data-display-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #3498db;
    position: relative;
    padding-bottom: 20px;
}

.data-display-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 4px;
    width: 80px;
    background-color: #3498db;
    border-radius: 2px;
}

/*  调整卡片网格的gap值，以增大卡片之间的间距，增强视觉舒适度 */
.card-grid {
    gap: 30px; /* 增大卡片间距 */
    padding: 20px; /* 为卡片网格增加内边距，使其内容不紧贴容器边缘 */
}

/*  调整卡片本身的内边距，增加文字内容与卡片边缘的距离 */
.card .card-body, .card .card-header, .card .card-footer {
    padding: 25px; /* 增加卡片内容内边距 */
}

/*  增大段落的底部外边距，使得段落之间有更明显的间隔 */
article p {
    margin-bottom: 20px; /* 增大段落底部外边距 */
}

/*  增加列表项的底部外边距，使列表项之间更宽松 */
article ul li, article ol li {
    margin-bottom: 10px; /* 增大列表项底部外边距 */
}

/*  调整代码块的内外边距，使其在视觉上更独立，也更易读 */
pre {
    padding: 20px; /* 增大代码块内边距 */
    margin-bottom: 25px; /* 增大代码块底部外边距 */
}

/*  增大article内容区域的内边距，使文章内容更宽松 */
article {
    padding: 40px; /* 增大文章内容区域内边距 */
}

/*  增大页眉和页脚的内边距，使页眉和页脚内容更透气 */
.header-section, .footer-section {
    padding: 70px 20px; /* 增大页眉和页脚内边距 */
}

/*  增大特性部分的内边距，使其内容更宽松 */
.feature-section {
    padding: 50px 20px; /* 增大特性部分内边距 */
}

/*  增大CTA部分的内边距，使其内容更突出 */
.cta-section {
    padding: 60px 20px; /* 增大CTA部分内边距 */
}

/*  调整卡片标题字体大小和行高，提升可读性 */
.card .card-header h3 {
    font-size: 1.8em; /* 增大卡片标题字体大小 */
    line-height: 1.4; /* 调整卡片标题行高 */
}

/*  调整文章标题字体大小和行高，提升可读性 */
article h2 {
    font-size: 2.5em; /* 增大文章主标题字体大小 */
    line-height: 1.3; /* 调整文章主标题行高 */
}

article h3 {
    font-size: 2em; /* 增大文章副标题字体大小 */
    line-height: 1.3; /* 调整文章副标题行高 */
}

/*  调整段落文本字体大小和行高，提升阅读舒适度 */
article p, article ul, article ol {
    font-size: 1.15em; /* 增大段落文本字体大小 */
    line-height: 1.7; /* 调整段落文本行高 */
}

/*  微调卡片阴影，使其更柔和自然 */
.card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* 调整卡片阴影 */
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* 调整卡片hover阴影 */
}

/*  调整特性项的阴影，使其更柔和自然 */
.feature-item {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* 调整特性项阴影 */
}

.feature-item:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12); /* 调整特性项hover阴影 */
}

/*  调整CTA部分阴影，使其更突出 */
.cta-section {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 调整CTA部分阴影 */
}

.cta-button {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* 调整CTA按钮阴影 */
}

.cta-button:hover {
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25); /* 调整CTA按钮hover阴影 */
}

