
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&family=Inter:wght@400;700&display=swap');

/* CSS变量定义 */
:root {
    --soft-green: #A8D5BA;
    --earth-brown: #8B6D5C;
    --deep-blue: #2C3E50;
    --silver-grey: #BDC3C7;
    --neon-purple: #9B59B6;
    --background-gradient: linear-gradient(135deg, #A8D5BA, #8B6D5C, #2C3E50);
    --transition-speed: 0.3s;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-gradient);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header .logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: var(--neon-purple);
}

.nav a {
    margin-left: 15px;
    text-decoration: none;
    color: var(--silver-grey);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav a:hover {
    color: var(--neon-purple);
}

/* 主视觉区 */
.hero {
    position: relative;
    height: 80vh;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-gradient);
    opacity: 0.6;
}

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

.hero h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 模块样式 */
.section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--neon-purple);
}

.module-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    flex: 1 1 calc(33% - 20px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.module img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.module h3 {
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 10px;
    color: var(--soft-green);
}

.module p {
    font-size: 1rem;
    color: #ffffff;
}

/* 示例展示样式 */
.article-section {
    background: rgba(44, 62, 80, 0.8);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.article-section h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--neon-purple);
}

.article-section p, .article-section li {
    font-size: 1rem;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.article-section pre {
    background: #34495e;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #2ecc71;
}

/* 按钮样式 */
.button {
    background: linear-gradient(135deg, var(--deep-blue), var(--neon-purple));
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    font-family: 'Inter', sans-serif;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* 提示样式 */
.note {
    text-align: center;
    font-size: 1rem;
    color: var(--silver-grey);
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .module {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .module {
        flex: 1 1 100%;
    }
    .header {
        flex-direction: column;
    }
    .nav {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 320px) {
    .hero p {
        font-size: 1rem;
    }
    .module h3 {
        font-size: 1.2rem;
    }
}

