/* 全局基础设置 */
body {
    font-family: Kaiti, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, Kaiti;
    background-color: #f5f7fa; /* 浅灰色背景，更有质感 */
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 让内容垂直居中 */
}

/* 仪表盘容器 */
.dashboard {
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.mini-logo {
    width: 120px; /* 首页 Logo 缩小，不再占据视觉重心 */
    height: auto;
    margin-bottom: 15px;
}

/* 网格布局：自动适配屏幕列数 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* 功能卡片基础样式 */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 卡片内的版本链接按钮 */
.card-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.card-links a:hover {
    background: #007bff;
    color: white;
}

/* 锁定/未开发状态 */
.locked {
    opacity: 0.6;
    filter: grayscale(1);
    border: 2px dashed #ccc;
    background: none;
}

/* 关键：控制 Logo 大小 */
.logo-container img {
    width: 300px; /* 你可以根据需要调整这个数值，比如 250px 或 350px */
    height: auto; /* 保持比例 */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1)); /* 给 Logo 增加一点立体感 */
    border-radius: 15px;
}

/* 文字部分美化 */
.content h1 {
    color: #007bff;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.content p {
    line-height: 1.6;
    color: #666;
    font-size: 1.1em;
}

/* 按钮容器 */
.cta-button {
    margin-top: 30px;
}

/* 按钮主体样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%); /* 蓝青渐变，很有科技感 */
    color: white;
    text-decoration: none;
    border-radius: 50px; /* 胶囊形状 */
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease; /* 动画过渡 */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* 鼠标悬停效果 */
.btn:hover {
    transform: translateY(-3px) scale(1.05); /* 向上轻微浮动并放大 */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    filter: brightness(1.1); /* 稍微变亮 */
}

/* 点击时的反馈 */
.btn:active {
    transform: translateY(-1px);
}

.tool-selection {
    margin-top: 30px;
    text-align: center;
}

.tool-selection h2 {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    gap: 15px; /* 按钮之间的间距 */
    flex-wrap: wrap; /* 手机端自动换行 */
    justify-content: center;
}

/* 我们可以给不同版本不同的颜色 */
.button-group .btn:nth-child(2) {
    background: linear-gradient(135deg, #28a745 0%, #85d084 100%); /* 绿色 */
}

.button-group .btn:nth-child(3) {
    background: linear-gradient(135deg, #ffc107 0%, #ffdb6d 100%); /* 橙色 */
}

/* 习字簿：蓝色系 (科技/专业) */
.theme-blue {
    border-top: 6px solid #007bff;
    background: linear-gradient(to bottom, #ffffff 70%, #eef6ff 100%);
}
.theme-blue .card-icon { background: linear-gradient(135deg, #007bff, #00d4ff); -webkit-background-clip: text;}

/* 点名簿：绿色系 (活力/便捷) */
.theme-green {
    border-top: 6px solid #28a745;
    background: linear-gradient(to bottom, #ffffff 70%, #f0fff4 100%);
}
.theme-green .card-icon { background: linear-gradient(135deg, #28a745, #a2ffb6); -webkit-background-clip: text;}

/* 数学/G-MATH：紫色系 (智慧/逻辑) */
.theme-purple {
    border-top: 6px solid #6f42c1;
    background: linear-gradient(to bottom, #ffffff 70%, #f5f0ff 100%);
}
.theme-purple .card-icon { background: linear-gradient(135deg, #6f42c1, #a29bfe); -webkit-background-clip: text;}

/* 修正卡片内的链接按钮样式，让它们也带上微渐变 */
.card-links a {
    padding: 8px 16px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.theme-blue .card-links a:hover { background: linear-gradient(135deg, #007bff, #00d4ff); color: white; border-color: transparent; }
.theme-green .card-links a:hover { background: linear-gradient(135deg, #28a745, #85d084); color: white; border-color: transparent; }
.theme-purple .card-links a:hover { background: linear-gradient(135deg, #6f42c1, #a29bfe); color: white; border-color: transparent; }
