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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #003366, #336699);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.8), transparent);
}

header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #ccccff;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ffcc;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #00ffcc;
    transition: width 0.3s ease;
}

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

.section {
    padding: 60px 0;
}

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

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

h2, h3, h4 {
    font-weight: 700;
    color: #00ffcc;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.2em;
}

p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #e6e6ff;
}

ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

pre {
    background: #1a1a2e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #00ffcc;
    color: #000000;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    background: #00e6b8;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #66ffcc;
}

.card p {
    color: #ccccff;
}

footer {
    text-align: center;
    padding: 30px 0;
    background: radial-gradient(circle, rgba(0, 51, 102, 0.8), transparent);
    color: #ccccff;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
}

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

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    header h1 {
        font-size: 2em;
    }

    nav {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }

    header h1 {
        font-size: 1.8em;
    }
}

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

    nav {
        flex-direction: column;
        gap: 10px;
    }

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

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

    nav a {
        font-size: 0.9em;
    }

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

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

    p, li {
        font-size: 0.9em;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    animation: aurora-move 15s linear infinite;
}

/* 代码块样式 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 视觉冲击 */
.hero {
    position: relative;
    height: 400px;
    background: url('https://images.gptkong.com/demo/sample1.png') center center / cover no-repeat;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.4);
    border-radius: 10px;
}

.hero-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffffff;
}

.visual-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.visual-impact img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.visual-impact img:hover {
    transform: scale(1.05);
}

/* 示例展示 */
.sample-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-display h2 {
    color: #ffcc00;
    margin-bottom: 20px;
}

.sample-display article {
    color: #e6e6ff;
}

.sample-display pre {
    background: #2e2e3e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.sample-display code {
    color: #ffcc00;
}

.sample-display ul {
    margin-left: 20px;
}

.sample-display img {
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, #00ffcc, #66ffcc);
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #66ffcc, #00ffcc);
    transform: scale(1.05);
}

