
/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    overflow-x: hidden;
}

/* 导航栏样式 */
header {
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: star-trail 30s linear infinite;
}

header .logo {
    font-size: 24px;
    font-family: 'CustomFutureFont', sans-serif;
    color: #00FFB3;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #00FFB3;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

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

@keyframes star-trail {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* 主体内容样式 */
main {
    padding: 100px 20px 20px 20px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: cover;
    animation: galaxy-rotate 60s linear infinite;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 卡片样式 */
.card {
    background: rgba(30, 30, 45, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    flex: 1 1 300px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card h3 {
    font-family: 'CustomFutureFont', sans-serif;
    color: #00FFB3;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    line-height: 1.5;
}

/* 按钮样式 */
.button {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #00FFB3;
    color: #000000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #00C853;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.button:hover::before {
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    from {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* 代码块样式 */
pre {
    background: #1e1e2d;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00FFB3;
    margin: 20px 0;
}

code {
    font-size: 14px;
}

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

.example-display h2 {
    font-family: 'CustomFutureFont', sans-serif;
    color: #FF5722;
    margin-bottom: 15px;
}

.example-display article {
    line-height: 1.6;
}

.example-display img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px;
    }
    .logo {
        font-size: 20px;
    }
    nav ul li a {
        padding: 3px 7px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    body {
        padding: 0 10px;
    }
    .button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

