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

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

/* 全局字体和背景 */
body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E1F43, #00A6ED);
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-size: cover;
    animation: auroraMove 15s linear infinite;
}

/* 渐变极光动画 */
@keyframes auroraMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 31, 67, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #39FF14;
}

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

.navbar ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #FF69B4;
}

/* 主容器样式 */
.container {
    display: flex;
    flex-direction: row;
    padding: 100px 50px;
    justify-content: space-between;
    align-items: flex-start;
}

/* 左侧介绍文案 */
.intro {
    flex: 1;
    padding: 20px;
}

.intro h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #39FF14;
}

.intro p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro h2 {
    font-size: 36px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.intro pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    margin-bottom: 20px;
}

.intro code {
    font-family: 'Roboto', monospace;
    color: #39FF14;
}

/* 右侧AI工具操作区 */
.ai-tools {
    flex: 1;
    padding: 20px;
}

.ai-tools h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #FF69B4;
}

.ai-tools .card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-tools .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ai-tools .card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ai-tools .card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #39FF14;
}

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

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) scale(0.5);
        opacity: 0;
    }
}

/* 按钮样式 */
.button {
    position: relative;
    overflow: hidden;
    background-color: #39FF14;
    color: #000000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #28a745;
}

.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%);
    animation: ripple 0.6s ease-out;
    opacity: 0;
}

.button:hover::before {
    animation: none;
    opacity: 1;
    width: 200px;
    height: 200px;
}

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

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    font-family: 'Roboto', monospace;
    color: #39FF14;
    white-space: pre-wrap;
}

/* 示例展示区 */
.demo-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

.demo-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #FF69B4;
}

.demo-section p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-section pre {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
    margin-bottom: 20px;
}

.demo-section img {
    width: 100%;
    max-width: 320px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 提示信息 */
.reference-note {
    font-size: 18px;
    color: #FFD700;
    margin-top: 40px;
    text-align: center;
}

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

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    .intro, .ai-tools {
        padding: 10px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }
    .intro h1 {
        font-size: 36px;
    }
    .ai-tools h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 60px 20px;
    }
    .intro, .ai-tools {
        padding: 10px 0;
    }
    .navbar ul {
        display: none;
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 28px;
    }
    .ai-tools h2 {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .intro h1 {
        font-size: 24px;
    }
    .ai-tools h2 {
        font-size: 20px;
    }
}

