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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    color: #ff9800;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff9800;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #ff9800;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

section {
    min-height: 100vh;
    padding: 100px 50px 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff9800, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 18px;
    max-width: 800px;
    margin-bottom: 40px;
}

.btn {
    background-color: #ff9800;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 152, 0, 0.2);
    transition: all 0.6s;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    border-radius: 50%;
}

.btn:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.btn:hover {
    background-color: #e68900;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.article-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 15px;
    max-width: 1200px;
    margin: 50px auto;
    text-align: left;
}

.article-section h2, .article-section h3, .article-section h4 {
    font-family: 'Poppins', sans-serif;
    color: #ff9800;
}

.article-section p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

.article-section pre {
    background: #2a5298;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    margin-bottom: 20px;
}

footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    text-align: center;
    position: relative;
}

footer p {
    font-size: 14px;
    color: #ffffff;
}

footer .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ff9800;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    display: none;
    transition: background-color 0.3s;
}

footer .back-to-top:hover {
    background-color: #e68900;
}

@media (max-width: 1440px) {
    .section-title {
        font-size: 42px;
    }
}

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

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .section-description {
        font-size: 16px;
    }

    nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 14px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

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

    .section-title {
        font-size: 20px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 粒子特效 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') repeat;
    opacity: 0.1;
    z-index: -1;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* 鼠标移动视角控制 */
body:hover .gallery img {
    transform: rotateY(10deg);
}

/* 链接样式 */
a {
    color: #ff9800;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 提示文本样式 */
.reference-note {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 152, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #ffffff;
}

