/* public/css/style.css */

/* 全局样式 */
body, html {
    margin: 0 auto;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* 更加现代的字体 */
    background: #f9f9f9; /* 柔和的背景色 */
    max-width: 900px; /* 适当增加最大宽度 */
    color: #333; /* 更加优雅的文字颜色 */
}

/* 悬浮导航样式 */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(255, 255, 255, 0.8); /* 半透明的白色背景 */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    max-width: 850px;
    z-index: 1000;
}

.floating-nav a {
    color: #555;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative; /* 为角标定位 */
}

.floating-nav i {
    font-size: 22px;
    margin-bottom: 5px;
}

.floating-nav a:hover {
    transform: translateY(-3px);
    color: #007bff;
}

.floating-nav a.active {
    color: #007bff; /* 例如，激活时颜色变为蓝色 */
}

.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    padding: 2px 5px;
    border-radius: 10px;
    background-color: red;
    color: white;
    font-size: 10px;
    min-width: 10px;
    text-align: center;
    line-height: 1.2;
}

.hidden {
    display: none;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .floating-nav {
        width: 70%; /* 更大屏幕时导航栏更加紧凑 */
    }

    .floating-nav i {
        font-size: 28px;
    }
}
