* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}
.galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.nebula {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.nebula-1 {
    background: radial-gradient(circle, #4a1a6b 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}
.nebula-2 {
    background: radial-gradient(circle, #1a4a6b 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation: float 25s ease-in-out infinite reverse;
}
.nebula-3 {
    background: radial-gradient(circle, #6b4a1a 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}
@keyframes pulse-simple {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}
.stars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
header {
    padding: 20px 0;
    position: relative;
    z-index: 10;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    position: relative;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #64d2ff;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #64d2ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.5));
}
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}
.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.nav-links a:hover {
    background: rgba(100, 150, 255, 0.15);
    color: #64d2ff;
}
.nav-links a.active {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.25), rgba(168, 85, 247, 0.15));
    color: #64d2ff;
    border: 1px solid rgba(100, 200, 255, 0.3);
    box-shadow: 0 2px 8px rgba(100, 200, 255, 0.2);
}
.page-title {
    text-align: center;
    padding: 60px 0 40px;
}
.page-title h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #64d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.table-wrapper {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    padding: 30px;
    margin-bottom: 40px;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    text-align: left;
    padding: 16px 12px;
    color: #64d2ff;
    font-weight: 600;
    border-bottom: 2px solid rgba(100, 150, 255, 0.3);
}
td {
    padding: 12px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
    color: #c0c0d0;
}
tr {
    transition: all 0.3s ease;
}
tr:hover td {
    background: rgba(100, 150, 255, 0.05);
}
.rank-number {
    font-weight: bold;
    font-size: 1.2rem;
}
.rank-1 .rank-number { color: #FFD700; text-shadow: 0 0 10px #FFD700; }
.rank-2 .rank-number { color: #C0C0C0; text-shadow: 0 0 10px #C0C0C0; }
.rank-3 .rank-number { color: #CD7F32; text-shadow: 0 0 10px #CD7F32; }
.score {
    font-weight: bold;
    color: #64d2ff;
}
.status-active { color: #4CAF50; font-weight: bold; }
.status-inactive { color: #f44336; font-weight: bold; }
footer {
    padding: 40px 0;
    text-align: center;
    color: #606070;
    border-top: 1px solid rgba(100, 150, 255, 0.1);
    margin-top: 60px;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}
.page-btn {
    padding: 10px 15px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.page-btn:hover:not(.disabled) {
    background: rgba(100, 150, 255, 0.2);
    transform: translateY(-2px);
}
.page-btn.active {
    background: linear-gradient(135deg, #64d2ff, #a855f7);
    color: #fff;
    border-color: #64d2ff;
}
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.planet-link {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #64d2ff 0%, #a855f7 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.planet-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(100, 150, 255, 0.3);
}
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(20, 20, 40, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(100, 150, 255, 0.2);
        border-radius: 0 0 16px 16px;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 25px 20px;
        margin-top: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: 10px;
        margin: 2px 0;
        border: 1px solid transparent;
        transition: all 0.3s ease;
    }
    .nav-links a:hover {
        background: rgba(100, 150, 255, 0.15);
        color: #64d2ff;
        border-color: rgba(100, 150, 255, 0.2);
    }
    .nav-links a.active {
        color: #64d2ff;
        border: 1px solid rgba(100, 200, 255, 0.4);
        box-shadow: 0 3px 12px rgba(100, 200, 255, 0.3);
        margin: 4px 0;
        transform: scale(1.02);
    }
    .page-title h1 {
        font-size: 1.8rem;
    }
    .table-wrapper {
        padding: 15px;
    }
    .pagination {
        flex-wrap: wrap;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    table {
        font-size: 14px;
    }
    th, td {
        padding: 8px 10px;
    }
}

/* 恒星图标样式 */
.star-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: pulse-simple 2s infinite;
}

.star-icon.large {
    width: 150px;
    height: 150px;
}

.star-icon.red-dwarf {
    background: linear-gradient(135deg, #ff6b6b, #c44569);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.8);
}

.star-icon.orange-dwarf {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    box-shadow: 0 0 25px rgba(255, 165, 2, 0.8);
}

.star-icon.yellow-dwarf {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.star-icon.yellow-white-dwarf {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    box-shadow: 0 0 25px rgba(248, 249, 250, 0.8);
}

.star-icon.white-dwarf {
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.star-icon.blue-giant {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.8);
}

.star-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    transform: rotate(45deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

/* 行星卡片样式 */
.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.planet-card {
    background: rgba(20, 20, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.planet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.4);
}

.planet-image {
    margin-bottom: 20px;
    position: relative;
}

.planet-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a1a6b, #6b4a1a);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
    animation: pulse-simple 3s infinite;
}

.planet-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.planet-info {
    text-align: left;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(100, 150, 255, 0.1);
}

.info-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.info-value {
    color: #64d2ff;
    font-weight: 500;
}

.explore-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #64d2ff 0%, #a855f7 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 200, 255, 0.4);
}

.explore-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.explore-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* 恒星卡片样式 */
.star-card {
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.star-card:hover {
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

.star-name {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star-info .info-value {
    color: #ffd700;
}

.star-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #0a0a1a;
    font-weight: 600;
}

.star-btn:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.page-subtitle {
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(100, 150, 255, 0.2);
    color: #606070;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover:not(.active) {
    background: rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.5);
    transform: translateY(-2px);
}

.page-link.active {
    background: linear-gradient(135deg, #64d2ff 0%, #a855f7 100%);
    color: #fff;
    border-color: #64d2ff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(100, 200, 255, 0.3);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    color: #a0a0a0;
    padding: 0 5px;
    font-size: 0.9rem;
}

.pagination-info {
    text-align: center;
    color: #a0a0a0;
    margin-top: 15px;
    font-size: 0.9rem;
}
