
/* 基本样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #003366, #4c0099, #00ffcc);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3rem;
    background: -webkit-linear-gradient(#007bff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #ffffff;
}

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

.article-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.article-section h2, 
.article-section h3, 
.article-section h4 {
    color: #00ffcc;
}

.article-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-section pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

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

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article-section table, 
.article-section th, 
.article-section td {
    border: 1px solid #00ffcc;
}

.article-section th, 
.article-section td {
    padding: 10px;
    text-align: left;
}

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

.button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* 图片样式 */
.img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.img-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .article-section {
        padding: 25px;
    }
}

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

    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .img-gallery {
        justify-content: center;
    }

    .article-section {
        padding: 20px;
    }
}

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

    .article-section {
        padding: 15px;
    }

    .article-section table, 
    .article-section th, 
    .article-section td {
        font-size: 0.9rem;
    }
}

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

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

    .article-section pre {
        font-size: 0.8rem;
    }

    .img-gallery img {
        max-width: 100%;
    }
}

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

    .article-section {
        padding: 10px;
    }

    .article-section table, 
    .article-section th, 
    .article-section td {
        font-size: 0.8rem;
    }

    .article-section pre {
        font-size: 0.7rem;
    }
}

/* 动效与过渡 */
.module-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.module-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.3);
}

.module-card h4 {
    margin-bottom: 10px;
    color: #00ffcc;
}

.module-card p {
    color: #ffffff;
}

/* 网格布局 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.footer p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
}

/* 按钮动画 */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0);
    }
}

.button-pulse {
    animation: buttonPulse 2s infinite;
}

/* 卡片式布局 */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.card:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 代码高亮 */
code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* 链接样式 */
a {
    color: #00ffcc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 动态极光背景 */
.background-aurora {
    position: fixed;
    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;
    z-index: -1;
}


