/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* 通用样式 */
h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 10px;
}

p {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: white;
}

button, a {
    cursor: pointer;
}

/* 欢迎消息 */
.welcome-message {
    margin: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(90deg, #87CEFA, #FFD700); /* 渐变色从浅蓝到金色 */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 柔和的阴影 */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* 文字阴影，增强对比度 */
    background-size: 200% 200%;
    animation: gradientAnimation 5s ease infinite;
}

/* 提示信息 */
.warning {
    background-color: #ffefef;
    color: #d9534f;
    padding: 10px;
    border: 1px solid #d9534f;
    border-radius: 5px;
    margin: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}


.warning-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 8s linear infinite;
}

/* 文字滚动的动画 */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 搜索栏样式 */
.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.search-box {
    padding: 10px;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

.search-button {
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
}

/* 按钮样式 */
.chat-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #4a90e2;
    color: white;
    border-radius: 5px;
    text-align: center;
}

.join-chat {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* 模块分组样式 */
.button-container, .app-container, .stats-box, .team-section {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.button-container h2,.stats-box h2,.app-container h2 {
    padding: 0px;
    margin-top: 0px;
}

.button-container a {
    display: block;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    background-color: #4a90e2;
    color: white;
    border-radius: 8px;
    margin: 10px auto;
    width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.button-container a:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}
.yuedu button {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    margin: 5px 0;
    display: inline-block;
    text-align: center;
}

.yuedu p {
    background-color: #fffbeb;
    color: #d89e00;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid #d89e00;
    margin-top: 10px;
}

/* 数据监控模块 */
.stats-box {
    text-align: left;
    padding: 20px;
}

.stats-box .stat-item {
    margin: 5px 0;
    font-size: 1rem;
}
.label {
    font-weight: bold;
    color: #888;
}
.value {
    font-weight: bold;
    color: #333;
}
.progress-bar {
    width: 80%;
    background-color: #e6e6e6;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    margin-top: 5px;
}

.progress {
    height: 10px;
    background-color: #76c7c0;
    border-radius: 5px;
}

/* 使用 grid 对齐布局 */
.status-box {
    display: grid;
    grid-template-columns: 150px auto; /* 固定文本 150px, 数据自适应 */
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.progress-bar {
    grid-column: 2; /* 占用第二列 */
}

.stat-item {
    display: grid;
    grid-template-columns: 150px auto;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}


/* APP 下载 */
.app-container a {
    display: block;
    padding: 15px;
    margin: 10px auto;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 80%;
    color: white;
    background: linear-gradient(45deg, #4a90e2, #34c38f);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.app-container a:hover {
    background: linear-gradient(45deg, #34c38f, #4a90e2);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* 致谢模块 */
h1 {
    text-align: center;
    font-size: 1.8rem;
    color: #4a90e2;
    margin-top: 20px;
}

.team-section {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px;
    gap: 5px;
    font-size: 0.85rem; /* 缩小字体 */
    max-width: 100%;
}

.team-member {
    flex: 0 0 auto;
    width: 90px; /* 缩小卡片宽度 */
    height: 90px; /* 缩小卡片宽度 */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px;
    font-size: 0.5rem; /* 缩小字体 */
}

.team-member h2 {
    font-size: 0.7rem;
    margin: 0px;
}
.team-member p {
    font-size: 0.5rem;
    margin: 0px;
}
.team-member img {
    max-width: 30px; /* 缩小头像 */
    height: 30px;
    border-radius: 50%;
    margin-bottom: 2px;
}

/* 修改邮箱链接的样式 */
.team-member a {
    display: inline-block;
    margin-top: 5px;
    color: #f28a8a;
    font-weight: bold;
    text-decoration: none;
    word-break: break-all;
}

/* 邮箱链接的 hover 效果 */
.team-member a:hover {
    color: #e25c5c;
}

/* 横向滑动美化 */
.team-section::-webkit-scrollbar {
    height: 6px;
}

.team-section::-webkit-scrollbar-thumb {
    background-color: #4a90e2;
    border-radius: 3px;
}

.team-section::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #4a90e2;
}