/* 星座日历样式 */

/* 年份选择器 */
.year-selector {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.year-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.year-nav-btn {
    padding: 8px 15px;
    background-color: #6a5acd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.year-nav-btn:hover {
    background-color: #5a4bbd;
}

.year-select-form {
    margin: 0 20px;
}

#year-select {
    padding: 8px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

/* 星座边界卡片 */
.zodiac-boundaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.zodiac-boundary-card {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.zodiac-boundary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.zodiac-symbol {
    font-size: 28px;
    margin-right: 15px;
    color: #6a5acd;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0ff;
    border-radius: 50%;
}

.zodiac-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.zodiac-dates {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.zodiac-element {
    color: #888;
    font-size: 14px;
}

/* 天文事件时间线 */
.events-timeline {
    margin-top: 25px;
    border-left: 2px solid #6a5acd;
    padding-left: 20px;
    position: relative;
}

.month-divider {
    margin: 30px 0 15px -22px;
    position: relative;
}

.month-divider h3 {
    display: inline-block;
    background-color: #6a5acd;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 16px;
    margin: 0;
}

.event-item {
    margin-bottom: 20px;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #6a5acd;
    border-radius: 50%;
    left: -26px;
    top: 15px;
}

.event-date {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.event-content {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-name {
    margin: 0 0 10px 0;
    color: #333;
}

.event-description {
    color: #666;
    margin-bottom: 10px;
}

.affected-zodiac {
    font-size: 14px;
    color: #777;
}

.affected-zodiac a {
    color: #6a5acd;
    text-decoration: none;
    font-weight: 500;
}

.affected-zodiac a:hover {
    text-decoration: underline;
}

/* 农历信息 */
.lunar-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.lunar-year-info {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.lunar-year-info h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.jieqi-info {
    flex: 2;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.jieqi-info h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.jieqi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.jieqi-item {
    text-align: center;
    padding: 8px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

.jieqi-item.current {
    background-color: #6a5acd;
    color: white;
    font-weight: 500;
}

/* 生日星座查询 */
.birthday-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.birthday-form .form-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.birthday-form .form-group {
    margin-bottom: 0;
}

.birthday-form select {
    padding: 10px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    min-width: 100px;
}

.birthday-form .submit-btn {
    padding: 10px 20px;
    background-color: #6a5acd;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.birthday-form .submit-btn:hover {
    background-color: #5a4bbd;
}

.birthday-result {
    margin-top: 25px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #6a5acd;
}

.birthday-result h3 {
    margin-top: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zodiac-details {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.zodiac-basic-info {
    flex: 1;
    min-width: 200px;
}

.zodiac-basic-info p {
    margin: 8px 0;
    color: #666;
}

.zodiac-basic-info p strong {
    color: #444;
}

.zodiac-personality {
    flex: 2;
    min-width: 300px;
}

.zodiac-personality h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.result-actions {
    margin-top: 25px;
    text-align: center;
}

.action-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #6a5acd;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #5a4bbd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .zodiac-boundaries-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .jieqi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .birthday-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .birthday-form .form-group {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .jieqi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zodiac-details {
        flex-direction: column;
    }
}