
/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础字体与颜色 */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333333;
    line-height: 1.6;
    padding: 20px;
}

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

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4CAF50;
}

/* 头部 */
header {
    padding: 100px 0 50px 0;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    color: #ffffff;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

header h1 {
    position: relative;
    font-size: 2.5em;
    z-index: 1;
}

header p {
    position: relative;
    font-size: 1.2em;
    z-index: 1;
    margin-top: 10px;
}

/* 主内容区 */
main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

article {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

article h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

article h3 {
    color: #333333;
    margin-top: 20px;
    margin-bottom: 10px;
}

article p {
    margin-bottom: 15px;
}

article pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

article code {
    font-family: 'Courier New', Courier, monospace;
    color: #d6336c;
}

/* 侧边栏 */
.sidebar {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sidebar h3 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333333;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #4CAF50;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 代码块样式 */
code {
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
}

pre code {
    display: block;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    overflow-x: auto;
}

/* 按钮样式 */
button {
    background-color: #4CAF50;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* 示例展示区 */
.sample-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.sample-display h2 {
    color: #d6336c;
    margin-bottom: 20px;
    text-align: center;
}

.sample-display article {
    margin-bottom: 20px;
}

.sample-display pre {
    background: #e6e6e6;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #666666;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        max-width: 1024px;
    }
}

@media (max-width: 1200px) {
    main {
        grid-template-columns: 3fr 1fr;
    }
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin: 5px 0;
    }
    
    .container {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5em;
    }
    
    header p {
        font-size: 0.9em;
    }
    
    nav ul {
        padding: 10px 0;
    }
}

/* 微交互动画 */
.icon {
    width: 50px;
    height: 50px;
    background-color: #4caf50;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

button:hover::before {
    width: 200px;
    height: 200px;
}

/* 流动的自然感与科技感层次 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.8);
}

.section:nth-child(odd) {
    background: rgba(244, 244, 244, 0.8);
}

/* 3D 动态效果 */
.three-d {
    transform: rotateY(20deg);
    transition: transform 0.5s;
}

.three-d:hover {
    transform: rotateY(0deg);
}

