
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Helvetica', sans-serif;
    color: #ffdd57;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2em;
    margin: 40px 0 20px;
}

h3 {
    font-size: 1.5em;
    margin: 30px 0 15px;
}

p {
    font-size: 1em;
    margin-bottom: 15px;
}

a {
    color: #00ffcc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.header {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.navbar a {
    padding: 10px 20px;
    background: linear-gradient(45deg, #00ffcc, #ff5e62);
    border-radius: 25px;
    transition: transform 0.3s, background 0.3s;
}

.navbar a:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #ff5e62, #00ffcc);
}

.section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 60s linear infinite;
}

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

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

.card {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

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

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

.card p {
    font-size: 0.95em;
    color: #ffffff;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ffcc;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

th {
    background: linear-gradient(45deg, #00ffcc, #ff5e62);
}

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

.footer p {
    font-size: 0.9em;
}

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

    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 40px 10px;
    }

    .card {
        padding: 15px;
    }
}

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

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.25em;
    }

    .navbar a {
        padding: 8px 16px;
    }
}

@media (min-width: 1440px) {
    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 2.5em;
    }

    h3 {
        font-size: 2em;
    }

    .navbar a {
        padding: 12px 24px;
    }
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff5e62, #00ffcc);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

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

.highlight {
    color: #ffdd57;
    font-weight: bold;
}

.particle-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(odd) {
    animation-duration: 8s;
}

.gradient-text {
    background: linear-gradient(45deg, #00ffcc, #ff5e62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


