/* 背景与页面基本样式 */
/*body[data-type="anniversary"] #web_bg {*/
/*    background: var(--anzhiyu-background);*/
/*}*/

body[data-type="anniversary"] #page {
    border: 0;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: 0 0 !important;
}

body[data-type="anniversary"] #page .page-title {
    display: none;
}

/* 卡片整体布局 */
.anniversary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 响应式布局 */
    gap: 20px;
    padding: 20px;
}

/* 卡片样式 */
.anniversary-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.anniversary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

/* 卡片标题和图标水平居中对齐的样式 */
.card-header {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-align: center; /* 文本居中 */
}

.card-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px; /* 图标与标题之间的间距 */
}

/* 白色背景的中间部分 */
.card-body {
    background-color: white;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #333;
    text-align: center;
}

/* 剩余天数与"天后"的样式 */
.countdown-wrapper {
    position: relative;
    display: inline-block;
    font-size: 3rem; /* 设置数字大小 */
    color: #6b4226; /* 设置数字的颜色 */
    font-weight: bold;
}

.days-label {
    position: absolute;
    top: -10px;
    right: -45px;
    background-color: #36c5b2;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: normal;
    display: inline-block;
}

/* 目标日样式 */
.target-info {
    text-align: center;
    font-size: 1rem;
    font-weight: normal;
}

.target-label {
    display: inline-block;
    margin: 0; /* 去掉额外的边距 */
    font-size: 1rem;
    letter-spacing: 2px; /* 保持文字间距 */
}

.target-date {
    display: inline-block; /* 改为inline-block，直接与目标日标签对齐 */
    font-size: 1rem;
    color: #333;
    margin: 0; /* 去掉所有的上下边距 */
    font-weight: normal; /* 去掉加粗效果 */
}

/* 虚线样式 */
.dashed-line {
    border-top: 1px dashed #ccc;
    margin: 10px 0;
}

/* 目标日期与已经过去的天数信息 */
.target-info, .total-days-info {
    font-size: 1rem;
    margin: 5px 0;
    color: #555;
}

/* 响应式布局优化，适配不同设备 */
@media (max-width: 768px) {
    .anniversary-cards {
        grid-template-columns: 1fr;
    }

    .anniversary-card {
        padding: 15px;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

/* 动画效果 */
.anniversary-card {
    transition: all 0.3s ease-in-out;
}

.anniversary-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 版权信息的样式 */
.card-copyright {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
    text-align: right;
}

.card-copyright a {
    color: #007bff;
    text-decoration: none;
}

.card-copyright a:hover {
    text-decoration: underline;
}
/* 分组标题和描述样式 */
.anniversary-group {
    margin-bottom: 40px;
}

.group-header {
    margin-top: 40px;
    text-align: left; /* 将文本左对齐 */
    margin-bottom: 10px;
    background: rgba(255,255,255,.8);
    border-radius: 5px;
    font-weight: bold;
    padding-left: 15px;
}

.group-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left; /* 分组标题左对齐 */
}

.group-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: left; /* 分组描述左对齐 */
}