
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #8BC34A, #FFC107);
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: #2E7D32;
    margin: 0;
}

header p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2em;
    color: #555;
    margin-top: 10px;
}

/* 导航栏样式 */
nav {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #2E7D32;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FFC107;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 40px 20px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.main-content .content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #2E7D32;
    margin-bottom: 20px;
    text-align: center;
}

.main-content p {
    font-size: 1em;
    color: #444;
    margin-bottom: 15px;
}

.main-content pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

.main-content code {
    font-family: 'Courier New', Courier, monospace;
    background: #e0e0e0;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 示例展示区 */
.example-display {
    border: 2px dashed #FFC107;
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.example-display h3 {
    color: #FF5722;
    margin-bottom: 15px;
}

.example-display img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px;
    border-radius: 5px;
}

/* 按钮样式 */
button {
    background-color: #FFC107;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #FF9800;
    transform: translateY(-3px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.intro-section {
    animation: fadeIn 1s ease-in-out;
}

@keyframes particleMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.particle {
    animation: particleMove 3s infinite;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .main-content {
        padding: 30px;
    }
}

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

@media (max-width: 1024px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    .main-content .content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 10px;
        background: url('https://images.gptkong.com/demo/sample2.png') no-repeat center center;
    }

    .main-content h2 {
        font-size: 1.8em;
    }

    .main-content pre {
        font-size: 0.9em;
    }

    button {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }

    nav a {
        margin: 5px 0;
    }

    .main-content .content {
        padding: 15px;
    }

    .main-content h2 {
        font-size: 1.5em;
    }

    .example-display h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.8em;
    }

    .main-content h2 {
        font-size: 1.3em;
    }

    nav {
        padding: 10px;
    }

    button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* 点缀图案 */
.decorative-leaf {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 50px;
    height: 50px;
    background: url('https://images.gptkong.com/demo/sample3.png') no-repeat center center;
    background-size: contain;
}

.decorative-geometry {
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: url('https://images.gptkong.com/demo/sample4.png') no-repeat center center;
    background-size: contain;
}

/* 交互动效 */
.button-animated {
    position: relative;
    overflow: hidden;
}

.button-animated::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.button-animated:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 提示语 */
.reference-note {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: 20px;
}

