/* 整体页面样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #808080; /* 淡灰色背景 */
    color: #333; /* 深灰色文字 */
}

/* 顶部导航栏 */
.navbar {
    width: 100%;
    background-color: rgba(51, 51, 51, 0.8); /* 半透明深灰色背景 */
    overflow: visible;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar a {
    float: left;
    display: block;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
}

.navbar a:hover {
    background-color: rgba(87, 87, 87, 0.8); /* hover时透明背景 */
    color: #fff;
}

/* 用户菜单 */
.user-menu {
    float: right;
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
}

/* 用户菜单下拉内容 */
.user-menu .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
}

.user-menu .dropdown-content a {
    color: #333;
    padding: 15px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.user-menu .dropdown-content a:hover {
    background-color: rgba(245, 245, 245, 0.9); /* hover时浅灰色半透明背景 */
}

/* 显示下拉菜单 */
.user-menu:hover .dropdown-content {
    display: block;
}

/* 添加容器样式，确保内容不被导航栏覆盖 */
.container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
    background-color: #f8f8ff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* 签到天数样式 */
.days {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.day {
    width: 60px;
    height: 60px;
    background-color: #f8f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

.signed-in {
    background-color: #d1e7dd;
    border-color: #b2d3b4;
    cursor: not-allowed;
}

.current-day {
    background-color: #bee5eb;
    border-color: #7dbdc2;
}

.missed-day {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.day:hover {
    background-color: #f0f0f0;
}

.sign-in-message {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

/* 表单隐藏样式 */
form#sign-in-form {
    display: none;
}
