
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(to bottom, #0A192F, #000000);
    color: #C8D6E5;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #6C5CE7;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

a {
    color: #38E54D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6C5CE7;
}

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

header {
    text-align: center;
    padding: 50px 0;
    background: radial-gradient(circle, rgba(10,25,47,1) 0%, rgba(0,0,0,1) 100%);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    animation: rotateBackground 60s linear infinite;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

header h1 {
    font-size: 3em;
    animation: fadeInDown 2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.8);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #C8D6E5;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #38E54D;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid #2C3A47;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5em;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #38E54D;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

.section-content .text {
    flex: 1 1 45%;
    min-width: 300px;
}

.section-content .image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.section-content .image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.section-content .image img:hover {
    transform: scale(1.05);
}

.code-block {
    background: #1E2A38;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block pre {
    margin: 0;
    color: #C8D6E5;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

button.button {
    background-color: #C8D6E5;
    color: #0A192F;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1em;
}

button.button:hover {
    background-color: #6C5CE7;
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(10, 25, 47, 0.9);
    color: #C8D6E5;
    position: relative;
}

.footer p {
    margin: 0;
    font-size: 1em;
}

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

@media (max-width: 1200px) {
    .section-content .text, .section-content .image {
        flex: 1 1 100%;
    }
}

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

    .navbar li {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 0;
    }

    header h1 {
        font-size: 2em;
    }

    .section-title h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column;
    }

    .section-content {
        flex-direction: column;
    }

    .section-content .text, .section-content .image {
        flex: 1 1 100%;
    }
}

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

    .navbar a {
        font-size: 0.9em;
    }

    .section-title h2 {
        font-size: 1.5em;
    }
}

/* 动态粒子系统 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 代码示例高亮 */
pre {
    background: #1E2A38;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

/* 按钮动画 */
@keyframes buttonHover {
    0% {
        background-color: #C8D6E5;
    }
    50% {
        background-color: #6C5CE7;
    }
    100% {
        background-color: #C8D6E5;
    }
}

button.animated-button {
    animation: buttonHover 5s infinite;
}

/* 动态线条动画 */
.line {
    width: 100px;
    height: 2px;
    background-color: #38E54D;
    animation: draw-line 2s ease-in-out forwards;
}

@keyframes draw-line {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* 几何图形样式 */
.hexagon {
    width: 100px;
    height: 57.74px;
    background-color: #C8D6E5;
    position: relative;
    margin: 20px auto;
}

.hexagon:before,
.hexagon:after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 28.87px solid #C8D6E5;
}

.hexagon:after {
    top: 100%;
    border-top: 28.87px solid #C8D6E5;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 0;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }
}

