/* 🔮 星盘门户页面样式 */

/* 页面基础布局 */
.horoscope-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #FFFFFF;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 动态星图背景（修复覆盖交互问题：使用正常文档流，不再全屏绝对定位） */
.dynamic-starmap {
    position: relative;
    width: 100%;
    /* 给该区块留出上下内边距，避免与下方表单重叠的视觉错觉 */
    padding: 2rem 0;
}

/* 将星图背景元素限制在自身容器内，且不拦截指针事件 */
.starmap {
    position: relative;
    height: 400px; /* 作为背景区域高度，可根据需求微调 */
    pointer-events: none; /* 背景星点不拦截点击，避免影响下拉框/表单 */
}

/* 容器设为定位上下文，便于内部绝对定位元素（如能量指针）正确定位 */
.starmap-container {
    position: relative;
}

/* 运势罗盘区域 */
.horoscope-compass {
    padding: 4rem 0;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.compass-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.compass-wheel {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(0, 245, 255, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: rotate 60s linear infinite;
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.current-date {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cosmic-time {
    color: #00F5FF;
    font-size: 1rem;
}

/* 十二星座环 */
.zodiac-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.zodiac-sign {
    position: absolute;
    font-size: 2rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.zodiac-sign:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.2);
    color: #FFD700;
}

/* 星座位置计算 */
.zodiac-sign[data-sign="aries"] { top: 10%; left: 50%; transform: translateX(-50%); }
.zodiac-sign[data-sign="taurus"] { top: 20%; right: 20%; }
.zodiac-sign[data-sign="gemini"] { top: 50%; right: 10%; }
.zodiac-sign[data-sign="cancer"] { bottom: 20%; right: 20%; }
.zodiac-sign[data-sign="leo"] { bottom: 10%; left: 50%; transform: translateX(-50%); }
.zodiac-sign[data-sign="virgo"] { bottom: 20%; left: 20%; }
.zodiac-sign[data-sign="libra"] { top: 50%; left: 10%; }
.zodiac-sign[data-sign="scorpio"] { top: 20%; left: 20%; }
.zodiac-sign[data-sign="sagittarius"] { top: 10%; left: 50%; transform: translateX(-50%); }
.zodiac-sign[data-sign="capricorn"] { top: 20%; right: 20%; }
.zodiac-sign[data-sign="aquarius"] { top: 50%; right: 10%; }
.zodiac-sign[data-sign="pisces"] { bottom: 20%; right: 20%; }

/* 能量指针 */
.energy-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 150px;
    background: linear-gradient(to top, #FFD700, #00F5FF);
    transform-origin: bottom center;
    animation: pulse 2s infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 运势查询面板 */
.horoscope-panel {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 快速查询 */
.quick-query {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.panel-title {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 1.5rem;
}

/* 表单样式 */
.query-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 500;
}

.cosmic-input, .cosmic-select, .cosmic-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cosmic-input:focus, .cosmic-select:focus, .cosmic-textarea:focus {
    outline: none;
    border-color: #00F5FF;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.cosmic-input::placeholder, .cosmic-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cosmic-select option {
    background: #1a1a2e;
    color: #FFFFFF;
}

.cosmic-textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

/* 查询按钮 */
.query-btn {
    position: relative;
    background: linear-gradient(135deg, #FFD700, #00F5FF);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #000000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-energy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 试用状态 */
.trial-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    text-align: center;
}

.trial-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #FFD700;
    font-size: 0.9rem;
}

.trial-icon {
    font-size: 1.2rem;
}

/* 运势结果 */
.horoscope-result {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-placeholder {
    text-align: center;
    color: #FFFFFF;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.result-placeholder h3 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.result-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 结果内容 */
.result-content {
    width: 100%;
    color: #FFFFFF;
}

.horoscope-text {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.horoscope-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* 结果操作 */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.result-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00F5FF;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* 快速分享按钮 */
.quick-share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.quick-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 245, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quick-share-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00F5FF;
    transform: scale(1.1);
}

/* 本命星盘解析 */
.natal-chart {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #00F5FF;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.chart-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.chart-3d {
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.1) 0%, rgba(0, 245, 255, 0.1) 100%);
    border: 2px solid rgba(255, 0, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chart-loading {
    text-align: center;
    color: #FFFFFF;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #00F5FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00F5FF;
}

.chart-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.info-card h4 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-btn {
    background: rgba(0, 245, 255, 0.2);
    border: 1px solid rgba(0, 245, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(0, 245, 255, 0.3);
    border-color: #00F5FF;
}

/* 专属守护灵 */
.guardian-spirit {
    padding: 4rem 0;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.spirit-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.spirit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.spirit-name {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.spirit-level {
    color: #00F5FF;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.energy-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #00F5FF);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.spirit-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.spirit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spirit-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00F5FF;
    transform: translateY(-2px);
}

/* 运势时间线 */
.horoscope-timeline {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-header h2 {
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.timeline-loading {
    text-align: center;
    color: #FFFFFF;
    font-size: 1.1rem;
}

.timeline-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.timeline-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00F5FF;
}

/* 会员解锁 */
.membership-unlock {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
}

.unlock-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.unlock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.unlock-title {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.unlock-description {
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.unlock-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.unlock-btn {
    background: linear-gradient(135deg, #FFD700, #00F5FF);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #000000;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.unlock-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: #FFFFFF;
}

.unlock-btn.secondary:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: #00F5FF;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .compass-wheel {
        width: 300px;
        height: 300px;
    }
    
    .zodiac-sign {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
    
    .chart-3d {
        width: 300px;
        height: 300px;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .spirit-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .unlock-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .compass-wheel {
        width: 250px;
        height: 250px;
    }
    
    .chart-3d {
        width: 250px;
        height: 250px;
    }
    
    .quick-query, .horoscope-result {
        padding: 1.5rem;
    }
} 