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

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

/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #004AAD, #6F39C1);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    animation: backgroundMove 15s linear infinite;
}

/* 背景动画 */
@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #FFD63F;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #FFD63F;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.75rem;
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #EAEAEA;
}

/* 链接样式 */
a {
    color: #FFD63F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFB703;
}

/* 按钮样式 */
button {
    background-color: #FFB703;
    color: #000000;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    background-color: #FFD63F;
}

/* 卡片式设计 */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 5px;
    overflow: auto;
}

code {
    color: #FFD63F;
    font-family: 'Courier New', Courier, monospace;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; }
}

.inspiration-spot::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #FFB703, transparent);
    opacity: 0.8;
    filter: blur(5px);
    animation: pulse 2s infinite;
}

/* 表单验证反馈 */
input.error {
    border: 2px solid #FF4E4E;
    animation: shake 0.3s;
}

input.success {
    border: 2px solid #4CAF50;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* 数据可视化图表 */
.chart {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: moveGradient 3s linear infinite;
}

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

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

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

@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}

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

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

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
}

input, textarea {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 提示信息 */
.notice {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.2rem;
    color: #FFD63F;
}

