
/* 基础样式重置与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(to bottom right, #1e90ff, #8a2be2);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h1, h2, h3 {
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}
p {
    font-size: 16px;
    margin-bottom: 15px;
}
a {
    color: #ff7f50;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff4500;
}

/* 导航栏设计 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}
.navbar .menu {
    display: flex;
    gap: 20px;
}
.navbar .menu a {
    font-size: 16px;
}

/* 主视觉区设计 */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
    filter: blur(10px);
    z-index: -1;
}
.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 20px;
    max-width: 800px;
}

/* 卡片式布局模块 */
.card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}
.card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}
.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    color: #333;
}

/* 示例文章展示区域 */
.article-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin: 40px 0;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.article-section h2 {
    color: #1e90ff;
    margin-bottom: 20px;
}
.article-section pre {
    background: #1e1e1e;
    color: white;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article-section th, .article-section td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
.article-section th {
    background: #1e90ff;
    color: white;
}

/* 动画与交互效果 */
.button {
    background-color: #ff7f50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #ff4500;
}

/* 响应式设计适配 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }
    .hero-section p {
        font-size: 16px;
    }
    .card-section {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 400px) {
    .navbar .menu {
        flex-direction: column;
        gap: 10px;
    }
}

