/* 通用样式 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

/* 背景设置 */
.bg {
    position: relative;
    height: 100vh;
    background-image: url('bizhi.jpg'); /* 可以替换成你自己的背景图 */
    background-size: cover;
    background-position: center;
}

/* 黑色透明遮罩层 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* 半透明黑色背景 */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 书签导航栏 */
.nav-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 15px;
    margin-bottom: 20px; /* 与其他内容的间距 */
}

/* 书签链接样式 */
.nav-links a {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border: 2px solid white; /* 为每个书签链接设置边框 */
    border-radius: 50px; /* 椭圆边框 */
    transition: all 0.3s;
    background-color: rgba(0, 0, 0, 0.2); /* 背景颜色 */
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 鼠标悬浮时的背景颜色 */
    border-color: white; /* 鼠标悬浮时的边框颜色 */
}


/* 搜索框样式 */
.search-container {
    margin-top: 20px;
}

.search-container form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 250px;
    border: 2px solid #fff;
    border-radius: 20px; /* 圆角 */
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.search-container input[type="text"]:focus {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.search-container input[type="submit"] {
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 20px; /* 同样的圆角 */
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container input[type="submit"]:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 将公历和农历放在同一行 */
.date-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.date-container p {
    margin: 0;
}

/* 生肖和星座并排显示 */
.shengxiao-xingzuo-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.shengxiao-xingzuo-container p {
    margin: 0;
}

/* 天气显示容器样式 */
.weather-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-container div {
    margin: 15px 0;
}

.weather-container img {
    width: 50px;
    height: 50px;
}

/* 隐藏底部备案信息 */
.footer {
    display: none;
}
