/* 年度运势详情样式 */
.detailed-fortune {
    padding: 15px;
}

.detailed-fortune h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.fortune-section {
    margin-bottom: 25px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fortune-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 8px;
    font-weight: 600;
}

.fortune-chart {
    height: 30px;
    background-color: #f1f1f1;
    border-radius: 15px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    border-radius: 15px;
    transition: width 1s ease-in-out;
}

.fortune-chart span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
}

.monthly-chart {
    margin-top: 15px;
    overflow-x: auto;
}

.monthly-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.monthly-table th,
.monthly-table td {
    border: 1px solid #eee;
    padding: 8px 12px;
    text-align: center;
}

.monthly-table th {
    background-color: var(--accent-color);
    color: white;
}

.lucky-month {
    background-color: rgba(241, 196, 15, 0.1);
    font-weight: bold;
}

.mini-chart {
    height: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.mini-bar {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.mini-chart span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.advice-list {
    list-style-type: none;
    padding-left: 0;
}

.advice-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.advice-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* 动画效果 */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .fortune-section {
        padding: 12px;
    }

    .monthly-table th,
    .monthly-table td {
        padding: 6px 8px;
        font-size: 14px;
    }

    .mini-chart {
        width: 90%;
    }
}

/* 加载动画 */
.spinner-wrapper {
    text-align: center;
    padding: 30px;
}

.fortune-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(137, 84, 168, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误消息 */
.error-message {
    color: #d9534f;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    background-color: rgba(217, 83, 79, 0.1);
    border-radius: 8px;
    margin: 20px;
}

.error-message small {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}