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

/* 设定全文的字体和背景渐变 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4A90E2, #503F8B);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.75rem;
    margin-top: 30px;
}

h4 {
    font-size: 1.5rem;
    margin-top: 25px;
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin-bottom: 20px;
}

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

a:hover {
    color: #64DD17;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: left;
}

th {
    background: #003E6B;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 列表样式 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #00C853, #64DD17);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #64DD17, #00C853);
}

/* 卡片布局 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    flex: 1 1 calc(33.33% - 40px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

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

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

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .card {
        flex: 1 1 calc(33.33% - 40px);
    }
}

@media (max-width: 1200px) {
    .card {
        flex: 1 1 calc(50% - 40px);
    }
}

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

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 15px;
    }
}

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

    h2 {
        font-size: 1.25rem;
    }

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

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* 进度条动画 */
.progress-bar {
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #03A9F4, #FFC107);
    animation: wave 2s linear infinite;
}

@keyframes wave {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* 仪表盘样式 */
.dashboard {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dashboard h3 {
    margin-bottom: 15px;
}

.dashboard .chart {
    height: 200px;
    background: #ffffff;
    border-radius: 5px;
}

/* AI助手样式 */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 200, 83, 0.9);
    color: #ffffff;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ai-assistant:hover {
    background: rgba(100, 221, 23, 0.9);
}

.chat-box {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ai-assistant.active + .chat-box {
    display: block;
}

/* 提示文本样式 */
.announcement {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    color: #FFC107;
}


