 /* 新增样式 */
 .main-features {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 0 10px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon img, .feature-icon svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.feature-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.features-grid {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    padding: 15px;
}

.feature-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    transition: all 0.3s;
    border-radius: 10px;
}

.feature-grid-item:hover {
    background-color: #f9f5f0;
}

.grid-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.feature-grid-item:hover .grid-icon {
    transform: scale(1.1);
}

.grid-icon img, .grid-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* 时辰建议样式 */
.shichen-suggestion-content {
    padding: 5px 0;
}

.shichen-icon-wrapper {
    font-size: 16px;
}

.shichen-badge {
    font-weight: 500;
    font-size: 11px;
}

.shichen-info {
    line-height: 1.4;
}

/* 每日运势样式 */
.month-daily-fortune {
}

.month-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.current-month-year {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
    background-color: #f9f6f2;
    border-radius: 8px;
    padding: 8px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 8px 5px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.legend-text {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.month-calendar {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.weekday {
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.date-cell {
    height: 70px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.date-cell-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    padding: 6px;
    transition: all 0.3s;
}

.date-number {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 3px;
    z-index: 2;
    color: #333;
}

.fortune-level-badge {
    display: inline-block;
    padding: 6px;
    font-size: 13px;
    font-weight: bold;
    color: white;
    text-align: center;
    z-index: 2;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.date-cell:hover .date-cell-content {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.date-cell.current {
    position: relative;
}

.date-cell.current .date-cell-content {
    box-shadow: 0 0 0 2px #FF5722;
    position: relative;
}

.date-cell.current .date-cell-content::after {
    content: "今";
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 10px;
    color: #fff;
    background-color: #FF5722;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .date-cell {
        height: 60px;
        padding: 2px;
    }
    
    .date-number {
        font-size: 14px;
    }
    
    .fortune-level-badge {
        font-size: 10px;
    }
}




/* 日期详情样式优化 */
.day-fortune-detail {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.fortune-date {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.fortune-level-indicator {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.fortune-content, .fortune-suggestions {
    margin-bottom: 15px;
}

.fortune-content h4, .fortune-suggestions h4 {
    font-size: 16px;
    color: #A8432D;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.fortune-content h4 i, .fortune-suggestions h4 i {
    margin-right: 8px;
    color: #A8432D;
}

.analysis-text, .suggestion-text {
    line-height: 1.6;
    color: #444;
    background-color: #f9f6f2;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
}

/* 定义CSS变量用于吉凶等级颜色 */
:root {
    --fortune-color-great-luck: #FF5722;
    --fortune-color-good-luck: #FF9800;
    --fortune-color-small-luck: #f39c12;
    --fortune-color-neutral: #9E9E9E;
    --fortune-color-small-bad: #607D8B;
    --fortune-color-bad: #34495e;
    --fortune-color-great-bad: #673AB7;
    
    --fortune-bg-great-luck: rgba(231, 76, 60, 0.15);
    --fortune-bg-good-luck: rgba(230, 126, 34, 0.15);
    --fortune-bg-small-luck: rgba(241, 196, 15, 0.15);
    --fortune-bg-neutral: rgba(52, 152, 219, 0.15);
    --fortune-bg-small-bad: rgba(155, 89, 182, 0.15);
    --fortune-bg-bad: rgba(52, 73, 94, 0.15);
    --fortune-bg-great-bad: rgba(44, 62, 80, 0.15);
    
    --fortune-border-great-luck: #FF5722;
    --fortune-border-good-luck: #FF9800;
    --fortune-border-small-luck: #f39c12;
    --fortune-border-neutral: #9E9E9E;
    --fortune-border-small-bad: #607D8B;
    --fortune-border-bad: #34495e;
    --fortune-border-great-bad: #673AB7;
}


/* 直接定义背景色类，作为备用方案 */
.bg-great-luck {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid #FF5722;
}

.bg-good-luck {
    background-color: rgba(230, 126, 34, 0.15);
    border: 1px solid #FF9800;
}

.bg-small-luck {
    background-color: rgba(241, 196, 15, 0.15);
    border: 1px solid #f39c12;
}

.bg-neutral {
    background-color: rgba(52, 152, 219, 0.15);
    border: 1px solid #9E9E9E;
}

.bg-small-bad {
    background-color: rgba(155, 89, 182, 0.15);
    border: 1px solid #607D8B;
}

.bg-bad {
    background-color: rgba(52, 73, 94, 0.15);
    border: 1px solid #34495e;
}

.bg-great-bad {
    background-color: rgba(44, 62, 80, 0.15);
    border: 1px solid #673AB7;
}

/* 徽章颜色类 */
.badge-great-luck {
    background-color: #FF5722;
}

.badge-good-luck {
    background-color: #FF9800;
}

.badge-small-luck {
    background-color: #f39c12;
}

.badge-neutral {
    background-color: #9E9E9E;
}

.badge-small-bad {
    background-color: #607D8B;
}

.badge-bad {
    background-color: #34495e;
}

.badge-great-bad {
    background-color: #673AB7;
}

/* 今年运势 */
.year-fortune-content {
    padding-top: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.year-overview {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.year-fortune-score {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 15px;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.score-level {
    display: flex;
    flex-direction: column;
}

.level-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.level-value {
    font-size: 16px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    color: white;
}

.year-fortune-summary {
    flex: 1;
    padding: 15px;
    background-color: #f9f6f2;
    border-radius: 8px;
    line-height: 1.6;
    min-width: 200px;
}

/* 运势等级颜色样式 */
.great-luck, .good-luck, .small-luck, .neutral, .small-bad, .bad, .great-bad, .medium-bad {
    color: white;
}

.great-luck {
    background-color: #FF5722;
}

.good-luck {
    background-color: #FF9800;
}

.small-luck {
    background-color: #f39c12;
}

.neutral {
    background-color: #9E9E9E;
}

.small-bad {
    background-color: #607D8B;
}

.medium-bad {
    background-color: #3F51B5;
}

.bad {
    background-color: #34495e;
}

.great-bad {
    background-color: #673AB7;
}

/* 运势走势图样式 */
.fortune-chart-container {
    margin-bottom: 25px;

}

.chart-title, .table-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    padding-left: 10px;
}

.chart-title:before, .table-title:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    height: 16px;
    width: 3px;
    background-color: #A8432D;
}

.fortune-chart {
    position: relative;
    padding: 20px 10px;
    background-color: #f9f6f2;
    /* border-radius: 8px; */
}

.chart-wrapper {
    position: relative;
    height: 110px;
    margin: 10px 0;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #ccc;
    font-size: 12px;
    color: #999;
    padding-left: 5px;
}

.chart-svg {
    position: relative;
    width: 100%;
    height: 90px;
    z-index: 2;
}

.chart-point {
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: r 0.2s;
}

.chart-point:hover {
    r: 8;
}

.month-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.month-label {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #666;
}

/* 月份运势表格样式 */
.months-fortune-table-container {
    margin-bottom: 25px;
}

.months-fortune-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f6f2;
    border-radius: 8px;
    overflow: hidden;
}

.months-row {
    display: flex;
    border-bottom: 1px solid #e5e1d8;
}

.months-row:last-child {
    border-bottom: none;
}

.months-header {
    background-color: #e5e1d8;
    font-weight: bold;
}

.month-cell {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-fortune-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 运势建议样式 */
.year-fortune-suggestions {
    background-color: #f9f6f2;
    border-radius: 8px;
    padding: 15px;
}

.year-fortune-suggestions h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #A8432D;
}

.year-fortune-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.year-fortune-suggestions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* 月份吉凶等级颜色 */
.fortune-great-luck {
    background-color: #FF5722;
}

.fortune-good-luck {
    background-color: #FF9800;
}

.fortune-small-luck {
    background-color: #f39c12;
}

.fortune-neutral {
    background-color: #9E9E9E;
}

.fortune-small-bad {
    background-color: #607D8B;
}

.fortune-medium-bad {
    background-color: #3F51B5;
}

.fortune-bad {
    background-color: #34495e;
}

.fortune-great-bad {
    background-color: #673AB7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .year-overview {
        flex-direction: column;
    }
    
    .year-fortune-score {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .months-row {
        font-size: 12px;
    }
}

.month-fortune-display {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    margin-bottom: 15px;
}

.month-fortune-display td {
    text-align: center;
    padding: 2px;
    width: 16.66%;
}

.month-fortune-display td div {
    font-size: 14px;
    padding: 2px 0;
}

/* 添加时辰图标样式，使月份运势表格与时辰表格样式一致 */
.shichen-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
    margin-bottom: 15px;
}

.shichen-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin: 0 auto;
}

/* 背景颜色样式 - 需要添加回来 */
.fortune-bg-great-luck {
    background-color: rgba(231, 76, 60, 0.3);
    border: 1px solid #FF5722;
}

.fortune-bg-good-luck {
    background-color: rgba(230, 126, 34, 0.3);
    border: 1px solid #FF9800;
}

.fortune-bg-small-luck {
    background-color: rgba(241, 196, 15, 0.3);
    border: 1px solid #f39c12;
}

.fortune-bg-neutral {
    background-color: rgba(52, 152, 219, 0.3);
    border: 1px solid #9E9E9E;
}

.fortune-bg-small-bad {
    background-color: rgba(155, 89, 182, 0.3);
    border: 1px solid #607D8B;
}

.fortune-bg-bad {
    background-color: rgba(52, 73, 94, 0.3);
    border: 1px solid #34495e;
}

.fortune-bg-great-bad {
    background-color: rgba(44, 62, 80, 0.3);
    border: 1px solid #673AB7;
}

/* 吉凶等级颜色样式 - 为了保持兼容性 */
.great-luck {
    background-color: #FF5722;
}
.fortune-medium-luck {
    background-color: #f39c12;
}
.good-luck {
    background-color: #FF9800;
}

.small-luck {
    background-color: #f39c12;
}
.fortune-slight-luck {
    background-color: #f39c12;
}
.neutral {
    background-color: #9E9E9E;
}
.fortune-slight-bad {
    background-color: #607D8B;
}   
.small-bad {
    background-color: #607D8B;
}

.bad {
    background-color: #34495e;
}

.great-bad {
    background-color: #673AB7;
}
 /* 添加月份吉凶图标的交互样式 */
 .month-jixiong-icon {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.month-jixiong-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.month-jixiong-icon.active {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.month-jixiong-icon.active:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -4px;
    width: 8px;
    height: 8px;
    background-color: inherit;
    transform: rotate(45deg);
}

/* 月份运势分析容器样式 */
#month-explanation-container {
    opacity: 1;
    transition: opacity 0.3s;
}

#month-explanation-content {
    line-height: 1.6;
    color: #333;
}

/* 日运势分析样式优化 */
.analysis-text {
    line-height: 1.6;
    color: #333;
    text-align: left;
    padding: 10px;
    font-size: 12px;
}

.analysis-text br {
    display: block;
    margin-bottom: 5px;
}

/* 运势分析标题样式 */
.analysis-text br + strong,
.analysis-text strong {
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;
    color: #A8432D;
    font-weight: bold;
}

/* 有利因素、不利因素、今日建议样式 */
.fortune-section-title {
    font-weight: bold;
    color: #A8432D;
    margin-top: 15px;
    margin-bottom: 8px;
    display: block;
}

/* 列表项样式 */
.fortune-item {
    position: relative;
    margin-bottom: 2px;
}

.fortune-item:before {
    position: absolute;
    left: 0;
    color: #666;
}

/* 当前选中日期样式 */
.date-cell.current {
    position: relative;
}

.date-cell.current:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #FF5722;
    border-radius: 8px;
    pointer-events: none;
}

/* 今日日期样式 */
.date-cell.today .date-number {
    font-weight: bold;
    color: #FF5722;
}