
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121E3F, #0D245A);
    color: #FFFFFF;
    overflow-x: hidden;
    line-height: 1.6;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(18, 30, 63, 0.9);
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAFEE;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar ul li a:hover {
    color: #9B56FF;
    transform: scale(1.1);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center/cover;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 30, 63, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    color: #4CAFEE;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease forwards;
}

.hero p {
    font-size: 1.2em;
    color: #FFFFFF;
    max-width: 600px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease forwards;
}

.hero button {
    padding: 10px 20px;
    font-size: 1em;
    color: #121E3F;
    background-color: #9B56FF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero button:hover {
    background-color: #4CAFEE;
    transform: scale(1.05);
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-section {
    padding: 100px 0 50px 0;
    background-color: #0D245A;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAFEE;
    color: #121E3F;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tab:hover {
    background-color: #9B56FF;
    transform: scale(1.05);
}

.tab.active {
    background-color: #9B56FF;
}

.tab-content {
    display: none;
    animation: fadeIn 1s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.card {
    background-color: rgba(18, 30, 63, 0.8);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background-color: rgba(18, 30, 63, 0.9);
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

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

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

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

.example-section {
    padding: 50px 0;
    background-color: #121E3F;
}

.example-section h2 {
    text-align: center;
    color: #9B56FF;
    margin-bottom: 30px;
}

.example-content {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(12, 30, 63, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow: auto;
}

.example-content h2, .example-content h3 {
    color: #4CAFEE;
}

.example-content p {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.example-content pre {
    background-color: #0D245A;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #87CEEB;
    margin-bottom: 15px;
}

.footer {
    padding: 30px 0;
    background-color: rgba(18, 30, 63, 0.9);
    text-align: center;
    color: #FFFFFF;
}

.footer p {
    margin-bottom: 10px;
}

.footer a {
    color: #4CAFEE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #9B56FF;
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background-color: rgba(18, 30, 63, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar .menu-toggle {
        display: block;
        cursor: pointer;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #FFFFFF;
}

