
/* 导入Roboto字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #001f3f, #000000);
    color: #ffffff;
    overflow-x: hidden;
}

header {
    background: rgba(0, 31, 63, 0.9);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

nav.tabs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

nav.tabs .tab {
    padding: 12px 25px;
    margin: 10px;
    cursor: pointer;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 25px;
    transition: background 0.3s, box-shadow 0.3s;
    font-weight: 500;
}

nav.tabs .tab:hover {
    background: rgba(255, 165, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

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

section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    position: absolute;
    left: 0;
    bottom: -10px;
    border-radius: 2px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #ff8a00;
}

.card-content p {
    line-height: 1.6;
}

pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9em;
    margin: 20px 0;
}

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

.footer-note {
    text-align: center;
    font-size: 1em;
    opacity: 0.8;
    margin-top: 40px;
}

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

@keyframes moveStars {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

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.05;
    animation: moveStars 100s linear infinite;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }

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

    .card img {
        margin: 0 0 20px 0;
    }
}

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

    nav.tabs .tab {
        padding: 10px 20px;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 1.8em;
    }

    .card-content h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    nav.tabs {
        flex-direction: column;
        align-items: center;
    }

    nav.tabs .tab {
        width: 80%;
        text-align: center;
    }

    .card {
        flex-direction: column;
    }

    .card img {
        width: 100%;
        height: auto;
        margin: 0 0 15px 0;
    }
}

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

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

    .card-content h3 {
        font-size: 1.1em;
    }

    .card {
        padding: 15px;
    }
}

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

    nav.tabs .tab {
        padding: 8px 15px;
    }

    .section-title {
        font-size: 1.3em;
    }

    .card-content h3 {
        font-size: 1em;
    }
}

