.constellation-container {
    background: #0a0e27;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.constellation-container .header {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.constellation-container .header h1 {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* 星空背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.constellation-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.constellation-title {
    text-align: center;
    color: #FFD700;
    margin-bottom: 40px;
}

.constellation-title h2 {
    font-size: 32px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.constellation-title p {
    font-size: 16px;
    color: #B0C4DE;
}

.constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.constellation-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow-x: hidden;
}

.constellation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.constellation-item:hover::before {
    left: 100%;
}

.constellation-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.constellation-icon {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    transition: transform 0.3s;
}

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

.constellation-name {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.constellation-date-range {
    font-size: 12px;
    color: #B0C4DE;
}

.select-section,
.detail-section,
.result-section {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.constellation-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.constellation-header {
    text-align: center;
    margin-bottom: 30px;
}

.constellation-symbol {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.constellation-header h2 {
    font-size: 32px;
    color: #0a0e27;
    margin-bottom: 10px;
}

.constellation-header p {
    font-size: 16px;
    color: #666;
}

.constellation-traits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.trait-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.trait-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.trait-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #0a0e27;
}

.constellation-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.constellation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.constellation-btn.secondary {
    background: linear-gradient(135deg, #888 0%, #555 100%);
}

.fortune-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fortune-card h3 {
    text-align: center;
    color: #0a0e27;
    font-size: 28px;
    margin-bottom: 20px;
}

.fortune-card .fortune-result {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.result-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

@media (max-width: 768px) {
    .constellation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .constellation-traits {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .constellation-card,
    .fortune-card {
        padding: 25px;
    }

    .constellation-symbol {
        font-size: 60px;
    }
}

/* 流星动画 */
@keyframes shooting-star {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-300px, 300px);
        opacity: 0;
    }
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white;
    animation: shooting-star 3s linear infinite;
}

/* 姓名输入样式 */
.name-input-section {
    text-align: center;
    margin-bottom: 30px;
}

.constellation-name-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    border: 2px solid #FFD700;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #FFD700;
    font-size: 18px;
    text-align: center;
    transition: all 0.3s;
}

.constellation-name-input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

.constellation-name-input::placeholder {
    color: rgba(255, 215, 0, 0.6);
}

.name-hint {
    color: #B0C4DE;
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.8;
}

/* 支付选择样式 */
.payment-section {
    padding: 20px;
}

.payment-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.payment-box h3 {
    color: #0a0e27;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.payment-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.payment-option {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 3px solid #ddd;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.payment-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-option.recommended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #FFD700;
}

.payment-option.recommended h4,
.payment-option.recommended p {
    color: white;
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #FFD700;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.option-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.payment-option h4 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #333;
}

.payment-option p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
}

.price span {
    font-size: 48px;
}

.constellation-btn.free,
.constellation-btn.paid {
    width: 100%;
    padding: 12px;
    margin: 0;
}

.constellation-btn.free {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.constellation-btn.paid {
    background: #FFD700;
    color: #333;
}

@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* 页面免责声明样式 */
.page-disclaimer {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 20px;
    text-align: center;
    color: #FFD700;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    animation: disclaimerGlow 3s ease-in-out infinite;
}

.page-disclaimer .disclaimer-icon {
    font-size: 16px;
}

@keyframes disclaimerGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 193, 7, 0.15);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 193, 7, 0.3);
    }
}

@media (max-width: 768px) {
    .page-disclaimer {
        margin: 10px 15px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .page-disclaimer .disclaimer-icon {
        font-size: 14px;
    }
}
