/* 基础重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #0b0c10;
    color: #c5c6c7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 星空科技感背景 */
.stars-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
    z-index: -1;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 50px;
    animation: rotateLogo 20s linear infinite;
    display: inline-block;
    margin-bottom: 10px;
}

.header h1 {
    color: #66fcf1;
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.header p {
    color: #45f3ff;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 三栏布局 */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* 中间主卡片 */
.center-core {
    flex: 1;
    max-width: 520px;
}

/* 左右两侧整块长方形盒子 - 整体呼吸膨胀版 */
.side-poster {
    width: 260px;
    height: 480px;
    border: 1px solid #45f3ff33;
    border-radius: 16px !important; 
    overflow: hidden !important; 
    background: rgba(31, 40, 51, 0.3);
    display: block; 
    animation: boxPulse 3s ease-in-out infinite; 
}

.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.8;
}

@media (max-width: 950px) {
    .side-poster {
        display: none !important;
    }
}

/* 卡片通用样式 */
section {
    background: rgba(31, 40, 51, 0.6);
    border: 1px solid #45f3ff33;
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

h2 {
    color: #66fcf1;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* 表单组件 */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #45f3ff;
    font-size: 0.9rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    background: #0b0c10;
    border: 1px solid #45f3ff55;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus, .input-group select:focus {
    border-color: #66fcf1;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #66fcf1 0%, #45f3ff 100%);
    color: #0b0c10;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 252, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #c5c6c7;
    color: #c5c6c7;
    margin-top: 20px;
}

/* 加载动画 */
.loading-card {
    text-align: center;
    padding: 50px 20px;
}

.compass {
    font-size: 80px;
    animation: rotateCompass 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin-bottom: 20px;
}

/* 结果报告展示 */
.result-header {
    text-align: center;
    border-bottom: 1px solid #45f3ff33;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.result-header p {
    color: #66fcf1;
    font-weight: bold;
}

.destiny-word {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-left: 4px solid #66fcf1;
    border-radius: 4px;
    margin-bottom: 25px;
}

.destiny-word h3, .detail-analysis h3 {
    font-size: 1rem;
    color: #45f3ff;
    margin-bottom: 8px;
}

.scores-grid {
    margin-bottom: 25px;
}

.score-item {
    margin-bottom: 15px;
}

.score-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 进度条底座 */
.bar {
    width: 80%;
    height: 10px;
    background: #0b0c10;
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    margin-right: 10px;
}

/* 进度条内填充 */
.fill {
    height: 100%;
    background: linear-gradient(90deg, #45f3ff, #66fcf1);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1); /* 顺滑的展开动画 */
}

.detail-analysis {
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

/* 🌟 核心修复：死死锁住控制隐藏的样式，绝不被其他干扰 */
.hidden { 
    display: none !important; 
}

/* 关键帧动画 */
@keyframes rotateLogo { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateCompass { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }

/* 整体缩放与炫酷发光控制规则 */
@keyframes boxPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(69, 243, 255, 0.15);
    }
    50% {
        transform: scale(1.06); 
        border-color: #66fcf1;  
        box-shadow: 0 0 35px rgba(102, 252, 241, 0.5); 
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(69, 243, 255, 0.15);
    }
}

