
/* 基础样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    background: linear-gradient(to bottom, #03071e, #22577a);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #d9ed92;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    font-size: 1.1em;
    color: #d0d0d0;
    margin-bottom: 1.2em;
}

a {
    color: #aed9e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f0f0f0;
}

section {
    padding: 60px 30px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

/* 渐变按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    background: linear-gradient(to right, #43aa8b, #6dd5ed);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

/* 首页头部 */
.header-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url(https://images.gptkong.com/demo/sample1.png);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 30px;
    position: relative;
    overflow: hidden;
}

.header-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 叠加半透明黑色背景 */
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000;
}

.header-section p {
    font-size: 1.4em;
    color: #eee;
    text-shadow: 1px 1px 2px #000000;
    margin-bottom: 40px;
}

/* 功能模块 */
.features-section {
    background: linear-gradient(to bottom, #22577a, #38a3a5);
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

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

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

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d9ed92;
    padding: 10px;
}


/* 用户案例 */
.case-section {
    background: linear-gradient(to bottom, #38a3a5, #57cc99);
    padding-top: 80px;
    padding-bottom: 80px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.case-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.case-item h4 {
    color: #d9ed92;
    margin-bottom: 15px;
}

.case-item p {
    color: #c0c0c0;
    font-style: italic;
}

/* 互动元素 */
.interaction-section {
    background: linear-gradient(to bottom, #57cc99, #80ed99);
    padding-top: 80px;
    padding-bottom: 80px;
}

.interaction-content {
    margin-top: 40px;
}

.interaction-visual {
    margin-bottom: 30px;
}

.interaction-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.interaction-text {
    color: #e0fbfc;
}


/* 示例文章展示 */
.article-section {
    background: linear-gradient(to bottom, #80ed99, #c2e8ce);
    padding: 80px 30px;
    color: #333;
}

.article-section h2, .article-section h3 {
    color: #2d6a4f;
}

.article-section p {
    color: #444;
}

.article-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left; /* 文章内容左对齐 */
}

.article-content pre {
    background-color: #f4f4f4;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    white-space: pre-wrap; /* 代码换行 */
    word-wrap: break-word; /* 代码断词 */
}


/* 行动号召 */
.cta-section {
    background: linear-gradient(to bottom, #c2e8ce, #f0f0f0);
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.cta-section h2 {
    color: #2d6a4f;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-section p {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* 页脚 */
footer {
    background-color: #03071e;
    color: #777;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    section {
        padding: 40px 20px;
    }
    .header-section {
        padding: 100px 20px;
    }
    .header-section h1 {
        font-size: 2.8em;
    }
    .header-section p {
        font-size: 1.2em;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .article-section {
        padding: 60px 20px;
    }
    .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 2.4em;
    }
    .header-section p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    h2 {
        font-size: 2em;
    }
    h3 {
        font-size: 1.6em;
    }
    p {
        font-size: 1em;
    }
    .article-section {
        padding: 40px 15px;
    }
    .cta-section h2 {
        font-size: 2.4em;
    }
    .cta-section p {
        font-size: 1.1em;
    }
}

/* 字体 Montserrat 和 Roboto 需通过 link 引入，或者本地字体 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;700&display=swap');

