* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 40px 20px;
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.subtitle {
    font-size: 1.1em;
    color: #a0a0a0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.ranking-item.first {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.3), rgba(255, 107, 107, 0.2));
    border: 2px solid #e94560;
}

.ranking-item.last {
    background: linear-gradient(135deg, rgba(72, 202, 149, 0.2), rgba(106, 176, 76, 0.1));
    border: 2px solid #48ca95;
}

.rank-badge {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.ranking-item.first .rank-badge {
    background: linear-gradient(135deg, #ff0000, #ff4444);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6);
}

.ranking-item.last .rank-badge {
    background: linear-gradient(135deg, #48ca95, #6ab04c);
    box-shadow: 0 4px 20px rgba(72, 202, 149, 0.6);
}

.rank-number {
    font-size: 1.8em;
    font-weight: bold;
}

.constellation-info {
    flex: 1;
}

.constellation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.constellation-name {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 1.3em;
}

.scary-score {
    text-align: right;
}

.score-label {
    display: block;
    font-size: 0.85em;
    color: #a0a0a0;
}

.score-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #e94560;
}

.ranking-item.first .score-value {
    color: #ff0000;
}

.ranking-item.last .score-value {
    color: #48ca95;
}

.description {
    color: #c0c0c0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.traits {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.trait-tag {
    background: rgba(233, 69, 96, 0.2);
    color: #ff6b6b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.ranking-item.last .trait-tag {
    background: rgba(72, 202, 149, 0.2);
    color: #48ca95;
    border-color: rgba(72, 202, 149, 0.3);
}

.score-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border-radius: 10px;
    transition: width 1s ease;
}

.ranking-item.first .score-fill {
    background: linear-gradient(90deg, #ff0000, #ff4444);
}

.ranking-item.last .score-fill {
    background: linear-gradient(90deg, #48ca95, #6ab04c);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #a0a0a0;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .ranking-item {
        flex-direction: column;
        align-items: center;
    }

    .constellation-header {
        flex-direction: column;
        gap: 10px;
    }

    .scary-score {
        text-align: center;
    }
}
