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

/* 字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #ff5734;
    margin-bottom: 10px;
}

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

/* 主要内容 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.section h2 {
    color: #00ffd5;
    margin-bottom: 15px;
}

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

.section pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #aaffff;
}

.section code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffcc00;
}

/* 示例展示 */
.example-display {
    border: 2px dashed #ffcc00;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.example-display h2 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.example-display article {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

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

.example-display pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

.example-display code {
    color: #00ffcc;
}

/* 功能列表 */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 15px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

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

.feature-card p {
    color: #e0ffff;
}

/* 按钮样式 */
button {
    background: #00ffd5;
    color: #001f3f;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 1rem;
}

button:hover {
    transform: scale(1.1);
    background: #a0ffeb;
}

/* 动态背景 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

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

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

@media (max-width: 1200px) {
    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    .feature-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    .feature-card {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .header h1 {
        font-size: 1.2rem;
    }
    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

