/* ==================== 星座运势查询样式 ==================== */

/* 查询方式选择标签页 */
.query-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* 标签页内容区域 */
.query-tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.query-tab-content.active {
    display: block;
}

/* 星座运势查询section */
.horoscope-query-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(45, 27, 105, 0.95) 0%, rgba(67, 56, 202, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.horoscope-query-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.horoscope-query-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 星座选择区域 */
.zodiac-selection {
    margin-bottom: 3rem;
}

.selection-title {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.zodiac-buttons-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .zodiac-buttons-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .zodiac-buttons-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 0.3rem;
    }
}

.horoscope-zodiac-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: transparent;
    padding: 0.3rem 0.15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    border-radius: 0;
    position: relative;
}

.horoscope-zodiac-card.selected {
    transform: scale(1.08);
}

.horoscope-zodiac-card.selected .horoscope-zodiac-name {
    color: #ffd9e8;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.horoscope-zodiac-card:hover {
    transform: scale(1.03);
}

.horoscope-zodiac-card:hover .horoscope-zodiac-icon-wrapper {
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.horoscope-zodiac-icon-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 217, 232, 0.4) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 217, 232, 0.25) 100%);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 217, 232, 0.3);
}

.horoscope-zodiac-card.selected .horoscope-zodiac-icon-wrapper {
    background: radial-gradient(circle, rgba(255, 217, 232, 0.6) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 217, 232, 0.4) 100%);
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
    border-color: rgba(255, 105, 180, 0.5);
}

.horoscope-zodiac-symbol {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horoscope-zodiac-card:hover .horoscope-zodiac-symbol {
    transform: scale(1.05);
}

.horoscope-zodiac-name {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
}

.horoscope-zodiac-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

/* 星座运势表单 */
.horoscope-form {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .horoscope-form {
        padding: 1.5rem;
    }
}

.horoscope-form .form-group {
    margin-bottom: 1.5rem;
}

.horoscope-form label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.horoscope-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.horoscope-form select:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.horoscope-form select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.horoscope-form select option {
    background: #4f46e5;
    color: #fff;
}

.horoscope-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.horoscope-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.horoscope-btn:active {
    transform: translateY(0);
}

.horoscope-btn:disabled {
    color: #fff !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* 星座运势结果 */
.horoscope-result {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: none;
    animation: fadeInScale 0.5s ease-out;
}

.horoscope-result.show {
    display: block;
}

@media (max-width: 768px) {
    .horoscope-result {
        padding: 1.5rem;
    }
}

/* 加载状态 */
.horoscope-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.horoscope-loading p {
    color: #fff;
    font-size: 1.1rem;
}

/* 运势结果头部 */
.horoscope-result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.horoscope-result-symbol {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.horoscope-result-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.horoscope-result-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 运势概述 */
.horoscope-overview {
    margin-bottom: 2rem;
}

.horoscope-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.horoscope-summary h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars i {
    color: #fbbf24;
    font-size: 1.5rem;
}

.rating-stars .far.fa-star {
    color: rgba(255, 255, 255, 0.3);
}

.rating-score {
    color: #fbbf24;
    font-size: 1.3rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.horoscope-summary-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
}

.horoscope-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.rating-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.rating-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rating-item .rating-stars {
    justify-content: center;
    gap: 0.3rem;
}

.rating-item .rating-stars i {
    font-size: 1.2rem;
}

/* 运势详情 */
.horoscope-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #8b5cf6;
}

.detail-section.love-section {
    border-left-color: #ec4899;
}

.detail-section.career-section {
    border-left-color: #10b981;
}

.detail-section.wealth-section {
    border-left-color: #f59e0b;
}

.detail-section.health-section {
    border-left-color: #ef4444;
}

.detail-section h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lucky-tips {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tip-icon {
    font-size: 1.2rem;
}

.lucky-tips span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* 幸运信息 */
.horoscope-lucky {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.horoscope-lucky h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.lucky-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.lucky-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.lucky-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* 操作按钮 */
/* 错误状态 */
.horoscope-error {
    text-align: center;
    padding: 3rem 1rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.horoscope-error h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.horoscope-error p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* 星座计算查询区域 */
.zodiac-date-query {
    margin-bottom: 2rem;
}

.selection-desc {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.date-query-form {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.date-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.date-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.calculate-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.calculate-btn:disabled {
    color: #fff !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* 星座计算结果 */
.zodiac-calc-result {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    animation: fadeInScale 0.5s ease-out;
}

.zodiac-calc-result.show {
    display: block;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.result-icon {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
}

.result-info {
    flex: 1;
}

.result-info h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.result-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.result-element {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 更新表单禁用状态 */
.horoscope-form select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.horoscope-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.horoscope-form button:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zodiac-buttons-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 0.4rem;
    }
    
    .horoscope-zodiac-card {
        padding: 0.25rem 0.1rem;
        gap: 0.25rem;
    }
    
    .horoscope-zodiac-icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .horoscope-zodiac-symbol {
        font-size: 1.5rem;
    }
    
    .horoscope-zodiac-name {
        font-size: 0.6rem;
    }
    
    .horoscope-zodiac-date {
        font-size: 0.5rem;
    }
    
    .query-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tab-btn {
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
    
    .date-query-form {
        padding: 1.5rem;
    }
    
    .result-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .result-icon {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
    
    .result-element {
        align-self: center;
    }
    
    .horoscope-result-title {
        font-size: 1.5rem;
    }
    
    .horoscope-result-symbol {
        font-size: 3rem;
    }
    
    .rating-stars i {
        font-size: 1.2rem;
    }
    
    .lucky-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .horoscope-query-section {
        padding: 3rem 1rem;
    }
    
    .zodiac-buttons-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 0.25rem;
    }
    
    .horoscope-zodiac-card {
        padding: 0.2rem 0.05rem;
        gap: 0.2rem;
    }
    
    .horoscope-zodiac-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .horoscope-zodiac-symbol {
        font-size: 1.2rem;
    }
    
    .horoscope-zodiac-name {
        font-size: 0.55rem;
    }
    
    .horoscope-zodiac-date {
        font-size: 0.45rem;
    }
    
    .selection-title {
        font-size: 1.2rem;
    }
    
    .horoscope-form {
        padding: 1rem;
    }
    
    .horoscope-result {
        padding: 1rem;
    }
    
    .detail-section {
        padding: 1rem;
    }
    
    .lucky-grid {
        grid-template-columns: 1fr;
    }
}