body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    
    /* 关键：启用Flexbox布局，并设置默认背景 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url('https://uploadfiles.nowcoder.com/images/20250725/0_1753414581128/AA49C42D7A74CC49DC5D1307F6AF71EE');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

header {
    padding: 20px;
    position: relative;
    z-index: 10;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    text-align: center;
    flex-shrink: 0; /* 不收缩 */
}

header.hidden {
    opacity: 0;
}

h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50; /* 牛客绿 */
}

/* 新增：仪表盘样式 */
.dashboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
}

.stat-label {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 5px;
}

p {
    margin-top: 5px;
    color: #aaa;
}

#galaxy-container {
    position: relative;
    overflow: hidden;
    background: transparent; /* 背景设为透明 */
    transition: opacity 0.5s ease-in-out;
    transform: translateY(-7%);
    flex-grow: 1; /* 关键：占据所有剩余空间 */
    /* 移除不必要的Flex布局，它导致了滚动高度计算错误 */
    /* display: flex; */
    /* flex-direction: column; */
    /* 关键：将滚动控制权移交给主容器 */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* 为移动端提供流畅滚动 */
}

/* 当处于星系视图（有Header）时，额外减去Header的高度 */
#galaxy-container.galaxy-view {
    height: calc(100vh - 150px); /* 150px 是 Header+Footer 的大致高度 */
}

/* 新增：SVG画布样式 */
#orbit-paths {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 让鼠标可以穿透SVG层 */
}

/* 新增：动态内容容器样式 */
#dynamic-content {
    position: relative; /* 关键修复：为绝对定位的子元素提供定位上下文 */
    display: flex;
    justify-content: center;
    align-items: center; /* 改为垂直居中，以适应更高的卡片 */
    gap: 20px; /* 控制模块之间的间距 */
    padding: 5% 20px 20px 20px; /* 增加顶部内边距 */
    box-sizing: border-box;
    width: 100%;
    min-height: 100%; /* 关键修复：确保内容区域至少和容器一样高 */
    /* height: 100%; -> 移除固定的100%高度，允许内容将其撑开 */
    z-index: 2; /* 确保行星在星轨之上 */
    /* transform: translateY(-7%); */ /* 移除此行，已上移至父容器 */
}

/* 新增：星轨样式 */
.orbit-line {
    fill: none;
    stroke: rgba(173, 216, 230, 0.3); /* 更暗的默认轨道 */
    stroke-width: 3px;
    stroke-dasharray: 10, 5; /* 虚线效果 */
    stroke-linecap: round;
    animation: dash-flow 40s linear infinite;
    filter: drop-shadow(0 0 5px rgba(173, 216, 230, 0.5));
}

/* 新增：为已解锁的路径添加更亮的效果 */
.orbit-line.unlocked {
    stroke: rgba(255, 215, 0, 0.6); /* 金色光轨 */
    filter: drop-shadow(0 0 8px #FFD700);
}

@keyframes dash-flow {
    from {
        stroke-dashoffset: 1000; /* 修正：反转动画方向 */
    }
    to {
        stroke-dashoffset: 0; /* 修正：反转动画方向 */
    }
}

footer {
    position: relative;
    z-index: 10;
    padding: 5px 0;
    text-align: center;
    flex-shrink: 0; /* 不收缩 */
    background: transparent; /* 背景设为透明 */
    /* margin-top: -31px; -> 不再需要负边距 */
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4CAF50; /* 牛客绿 */
}

/* 稍后会添加星球和星云的样式 */
.region {
    /* position: absolute;  We no longer need absolute positioning */
    flex: 1; /* 让所有模块等宽 */
    max-width: 22%; /* 限制最大宽度，防止过大 */
    height: 220px; /* 关键：设置一个固定的、更高的值 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 边框更实一些 */
    border-radius: 20px;
    transition: all 0.5s ease;
    cursor: pointer;
    background-size: cover; /* 确保区域背景图能填满 */
    background-position: center; /* 背景图居中 */
}

/* 只在星图视图下应用flex布局，避免影响行星视图 */
.galaxy-view .region {
    display: flex;
    justify-content: center;
    align-items: center;
}

.region:hover:not(.locked) {
    border-color: rgba(255, 255, 255, 0.8); /* 悬浮时边框更亮 */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.05); /* 移除 translateY, Flexbox 会处理垂直对齐 */
}

/* --- 重新添加并优化的样式 --- */

.region-title {
    position: relative; /* 不再需要绝对定位 */
    top: auto;
    left: auto;
    transform: none;
    color: #fff;
    font-size: 1.5em; /* 标题更醒目 */
    font-weight: bold;
    text-shadow: 0 0 8px black, 0 0 5px black; /* 阴影更重，保证在任何背景上都清晰 */
    background-color: rgba(0, 0, 0, 0.4); /* 给标题一个半透明背景 */
    padding: 5px 15px;
    border-radius: 10px;
    pointer-events: none; /* 允许点击穿透标题 */
}

/* 移除不再需要的占位符图标 */
.region::after {
    content: '';
}

/* --- 新增：太阳系视图专属样式 --- */
.solar-system-view {
    display: flex;
    align-items: flex-end; /* 修正：改为底部对齐 */
    justify-content: flex-start;
    overflow: hidden; /* 防止行星溢出 */
}

.sun {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FFD700, #FFA500, #FF4500);
    border-radius: 50%;
    margin-left: 50px; /* 修正：让太阳完全显示 */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 0 100px #FF4500, 0 0 200px #FFA500;
    animation: sun-pulse 8s ease-in-out infinite;
}

@keyframes sun-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sun-name {
    font-size: 2em; /* 调整字体大小 */
    font-weight: bold;
    text-shadow: 0 0 10px black;
    /* 移除所有绝对定位样式 */
}

.sun-chapter-number {
    font-size: 3em; /* 增大序号字体大小 */
    opacity: 0.8;
    font-weight: bold; /* 加粗 */
}

.planets-container {
    display: flex;
    align-items: flex-end; /* 改为底部对齐 */
    /* align-self: stretch; */ /* 移除：这是导致问题的根源 */
    gap: 40px;
    padding-left: 80px;
    padding-bottom: 30px; /* 增加底部内边距 */
    flex-grow: 1;
    overflow-x: auto; /* 如果行星太多，允许横向滚动 */
    /* height: 100%; */ /* 移除：这是导致问题的根源 */

    /* --- 新增：美化滚动条 (Firefox) --- */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
}

.problem-planet-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* 增加顶部空间以容纳悬浮放大效果 */
}

.problem-planet {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.problem-planet:hover {
    transform: scale(1.1);
}

.problem-planet::before, .problem-planet::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.problem-planet::before { /* 环 */
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.4), transparent 50%);
    opacity: 0.8;
}

.problem-planet::after { /* 高光 */
    width: 120%;
    height: 25%;
    background: rgba(255, 255, 255, 0.2);
    top: 5%;
    left: -10%;
    transform: rotate(-20deg);
    filter: blur(5px);
}

.problem-title {
    color: white;
    font-size: 1em;
    font-weight: 500;
    max-width: 120px;
}

/* --- 新增：解题状态样式 --- */
.problem-status {
    margin-top: 8px;
    font-size: 0.9em;
    font-weight: bold;
}

.solved-status {
    color: #4CAF50; /* 牛客绿 */
    text-shadow: 0 0 5px #4CAF50;
}

.unsolved-status {
    color: #f44336; /* 红色 */
    text-shadow: 0 0 5px #f44336;
}

/* 不同类型的行星外观 */
.problem-planet.type-1 { background: radial-gradient(circle at 30% 30%, #a18cd1, #fbc2eb); }
.problem-planet.type-2 { background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe); }
.problem-planet.type-3 { background: radial-gradient(circle at 30% 30%, #43e97b, #38f9d7); }
.problem-planet.type-4 { background: radial-gradient(circle at 30% 30%, #fa709a, #fee140); }
.problem-planet.type-5 { background: radial-gradient(circle at 30% 30%, #a8edea, #fed6e3); }

/* 已解决的行星 */
.problem-planet.solved {
    box-shadow: 0 0 20px #4CAF50, 0 0 40px #4CAF50;
    border: 2px solid #4CAF50;
}

/* --- 新增：美化行星容器的滚动条 (Webkit) --- */
.planets-container::-webkit-scrollbar {
    height: 8px;
}

.planets-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.planets-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.planets-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 视图切换效果 */
/* 移除导致问题的视图切换效果 */
/*.nebula-view {
    transform: scale(1.5);
}*/

.nebula-view, .solar-system-view {
    /* 在这里，我们不再需要 background-image 属性，因为它会覆盖 #galaxy-container 的背景。
       相反，我们只设置变量，让 #galaxy-container 来处理背景的显示。 */
    --bg-image: url('https://uploadfiles.nowcoder.com/images/20250725/0_1753414581128/AA49C42D7A74CC49DC5D1307F6AF71EE');
}

.nebula-view .region {
    opacity: 0;
}

.back-button {
    position: fixed;
    top: 30px; /* 调整位置 */
    left: 30px; /* 调整位置 */
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 行星 (章节) 样式 */
.planet {
    position: absolute; /* 修正：恢复绝对定位以确保布局正确 */
    overflow: hidden; /* 隐藏高光溢出部分 */
    width: 80px; /* 增大行星尺寸以容纳更多信息 */
    height: 80px;
    border-radius: 50%;
    cursor: default;
    display: flex;
    flex-direction: column; /* 垂直排列 */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding: 5px; /* 添加一些内边距 */
    text-align: center;
    animation: pulse 4s ease-in-out infinite; /* 为行星添加脉冲动画 */
}

/* 新增：星球的“环”效果 */
.planet::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.4), transparent 50%);
    opacity: 0.8;
}

/* 新增：星球高光效果 */
.planet::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 25%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 5%;
    left: -10%;
    transform: rotate(-20deg);
    filter: blur(5px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
    }
}

/* 新增：已完成行星的华丽样式 */
.planet.completed {
    background: radial-gradient(circle at 30% 30%, #FFEDB3, #FFD700, #FFA500); /* 更丰富的光辉 */
    border: 2px solid #FFD700;
    /* 恢复桌面端的动画效果 */
    box-shadow: 0 0 30px #FFD700, 0 0 50px #FFA500;
    animation: masterGlow 3s ease-in-out infinite;
}

/* 恢复 masterGlow 动画 */
@keyframes masterGlow {
    0%, 100% { 
        box-shadow: 0 0 30px #FFD700, 0 0 50px #FFA500;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 50px #FFD700, 0 0 80px #FFA500, 0 0 100px #FFD700;
        transform: scale(1.1);
    }
}

.planet.completed .planet-number,
.planet.completed .planet-name {
    color: #fff;
    text-shadow: 0 0 5px black, 0 0 10px #A0522D; /* 更深的阴影以突出金色 */
}

.planet:hover {
    transform: scale(1.1);
    z-index: 100; /* 提升层级，确保在最顶层显示 */
}

/* 更新：行星颜色为更有层次感的渐变 */
.planet.terran { background: radial-gradient(circle at 30% 30%, #aed581, #689f38); }
.planet.ocean  { background: radial-gradient(circle at 30% 30%, #4fc3f7, #0288d1); }
.planet.lava   { background: radial-gradient(circle at 30% 30%, #ff8a65, #f4511e); }
.planet.ethereal {
    background-color: #4a00e0; /* 深邃的紫色 */
    box-shadow: 0 0 15px 5px #8e2de2, 0 0 25px 10px rgba(74, 0, 224, 0.5), inset 0 0 10px 2px #fff;
    border: 2px solid #8e2de2; /* 靛蓝色边框 */
}

.planet.ethereal .planet-name {
    color: #f8f8f8;
    text-shadow: 0 0 5px #fff, 0 0 10px #8e2de2; /* 银白色/紫色光晕 */
}

.planet.ethereal.completed {
    background-color: #ffd700; /* 完成后变为金色 */
    box-shadow: 0 0 20px 10px #ffd700, 0 0 35px 15px rgba(255, 215, 0, 0.6), inset 0 0 12px 3px #fff;
    border-color: #fff;
}

/* 新增：行星序号样式 */
.planet-number {
    font-size: 1.8em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px black;
    line-height: 1;
}

.planet-name {
    color: white;
    font-weight: bold;
    font-size: 0.8em; /* 略微缩小章节名以适应空间 */
    text-shadow: 0 0 3px black;
    line-height: 1.2;
}

/* 卫星 (题目列表) 样式 */
.satellite-list {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 10px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    width: 150px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.planet:hover .satellite-list {
    visibility: visible;
    opacity: 1;
}

.satellite-list li {
    padding: 8px;
    color: #ddd;
    border-bottom: 1px solid #444;
}

.satellite-list li:last-child {
    border-bottom: none;
}

.satellite-list li.solved {
    color: #ffeb3b;
    text-decoration: line-through;
    font-weight: bold; /* 突出显示 */
}

/* 锁定区域 (样式微调) */
.region.locked {
    cursor: not-allowed;
    background: repeating-linear-gradient(45deg, rgba(34,34,34,0.8), rgba(34,34,34,0.8) 10px, rgba(51,51,51,0.8) 10px, rgba(51,51,51,0.8) 20px);
}

.lock-icon {
    font-size: 1.5em;
    color: #ffc107;
    font-weight: bold;
    text-shadow: 0 0 10px #ffc107;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
} 

/* 新增：用于控制显隐的类 */
.hidden {
    display: none;
} 

/* --- 全新的移动端响应式设计 --- */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto; /* 允许在移动端垂直滚动 */
    }

    header {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 0.8em;
        margin-bottom: 20px;
    }

    /* 仪表盘2x2布局 */
    .dashboard {
        gap: 15px; /* 增加卡片间距 */
        justify-content: center; /* 居中对齐 */
    }

    .stat-card {
        padding: 10px;
        flex: 0 0 40%; /* 设置为40%宽度，确保一行两个 */
        max-width: 150px; /* 限制最大宽度，防止在平板上过宽 */
    }

    .stat-number {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 0.6em;
    }

    #galaxy-container.galaxy-view {
        height: auto;
        min-height: calc(100vh - 100px);
        padding-bottom: 20px;
        transform: none; /* 关键：覆盖桌面端的上移效果 */
        padding-top: 20px; /* 增加顶部安全边距 */
    }
    
    #dynamic-content {
        padding: 20px 0; /* 修正：移除左右内边距，让内容占满宽度 */
    }

    /* --- 主界面 (星系视图) 移动端布局 --- */
    #galaxy-container.galaxy-view #dynamic-content {
        display: block; /* 改为块级布局以实现垂直排列 */
    }

    #galaxy-container.galaxy-view .region {
        width: 75%; /* 尝试一个更小的宽度，留出更多空间 */
        max-width: 75%; /* 同样调整 */
        flex: none; /* 新增：重置flex属性 */
        height: 180px; /* 增加高度，使其更大 */
        margin: 0 auto 20px auto; /* 居中并添加底部间距 */
        display: flex; /* 内部依然使用flex来居中标题 */
        justify-content: center;
        align-items: center;
    }

    #galaxy-container.galaxy-view .region:hover {
        transform: scale(1.02); /* 减弱悬浮效果 */
    }

    /* --- 章节界面 (星云视图) 移动端布局 --- */
    #galaxy-container.nebula-view {
        position: relative;
        transform: none; /* 关键：覆盖桌面端的上移效果 */
        padding-top: 40px; /* 为顶部提供稳定的安全边距 */
        min-height: calc(100vh - 100px); /* 确保内容区域足够高 */
        height: auto;
    }

    #galaxy-container.nebula-view #dynamic-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 20px 8vw;
        padding: 0 5% 20px;
        /* 关键：移除所有滚动和高度限制，让其高度由内容决定 */
        /* overflow-y: auto; */
        /* overflow-x: hidden; */
        /* -webkit-overflow-scrolling: touch; */
        /* scroll-behavior: smooth; */
        /* height: 100%; */
    }

    #galaxy-container.nebula-view .chapter-card {
        width: calc(42% - 10px); /* 恢复双列布局 */
        margin-bottom: 20px;
    }

    #galaxy-container.nebula-view .chapter-card:nth-child(even) {
        margin-top: 40px; /* 恢复交错效果 */
    }

    #galaxy-container.nebula-view .planet {
        position: static;
        transform: none;
        /* 尺寸调整：25vw */
        width: 25vw;
        height: 25vw; 
        max-width: 110px; /* 限制最大尺寸 */
        max-height: 110px; /* 限制最大尺寸 */
        padding: 6px; /* 调整内边距 */
        box-sizing: border-box;
        
        flex-direction: column; 
        justify-content: center;
        gap: 5px;

        animation: none; 
        box-shadow: none; 
        border: 1px solid rgba(255, 255, 255, 0.4);
        flex-shrink: 0;
    }

    /* 重新启用交错布局：仅将偶数星球向下推 */
    #galaxy-container.nebula-view .planet:nth-child(even) {
        margin-top: 40px;
    }

    /* 新增：移除移动端星球的装饰性伪元素，解决光晕问题 */
    #galaxy-container.nebula-view .planet::before,
    #galaxy-container.nebula-view .planet::after {
        content: none;
    }

    /* 移动端，对已完成的行星，只保留金色边框，不加辉光 */
    #galaxy-container.nebula-view .planet.completed {
        animation: none;
        box-shadow: none;
        border: 2px solid #FFD700;
    }

    #galaxy-container.nebula-view .planet:hover {
        transform: scale(1.05);
    }

    #galaxy-container.nebula-view .planet-number {
        font-size: 1.1em; /* 再次微调 */
    }

    #galaxy-container.nebula-view .planet-name {
        font-size: 0.65em; /* 再次微调 */
        text-align: center; /* 居中对齐文字 */
    }
    
    /* 在移动端彻底隐藏星轨 */
    #orbit-paths {
        display: none;
    }

    /* 调整返回按钮位置 */
    .back-button {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
    }

    /* --- 题目详情 (太阳系视图) 移动端布局 --- */
    #galaxy-container.solar-system-view {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        overflow-y: auto; /* 允许整个视图滚动 */
        transform: none; /* 关键：覆盖桌面端的上移效果 */
        padding-top: 40px; /* 与nebula-view统一，为返回按钮提供空间 */
    }

    /* 新增：定义动态内容区的布局，强制垂直排列 */
    #galaxy-container.solar-system-view #dynamic-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #galaxy-container.solar-system-view .sun {
        width: 180px;
        height: 180px;
        margin-left: 0;
        margin-bottom: 20px;
        animation: none;
        flex-shrink: 0; /* 防止太阳在 flex 布局中被压缩 */
    }

    #galaxy-container.solar-system-view .planets-container {
        /* 核心：应用和星云视图类似的双列网格布局 */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start; /* 支持交错 */
        width: 100%;
        gap: 15px 8vw; /* 垂直和水平间距 */
        padding: 20px 5%;
        overflow-x: hidden;
    }

    /* 新增：为题目 wrapper 设置样式，并覆盖JS的marginBottom */
    #galaxy-container.solar-system-view .problem-planet-wrapper {
        margin-bottom: 0 !important; 
        width: 30vw; /* 宽度设为30vw，为文字留出空间 */
        max-width: 120px; /* 限制最大宽度 */
    }

    /* 新增：应用交错效果 */
    #galaxy-container.solar-system-view .problem-planet-wrapper:nth-child(even) {
        margin-top: 30px; /* 交错的距离 */
    }

    #galaxy-container.solar-system-view .problem-planet {
        /* 调整星球大小以适应 wrapper */
        width: 80px;
        height: 80px;
    }

    #galaxy-container.solar-system-view .problem-title {
        font-size: 0.8em;
        margin-top: 8px; /* 文字与星球的间距 */
        line-height: 1.2;
    }

    #galaxy-container.solar-system-view .problem-accept-rate,
    #galaxy-container.solar-system-view .problem-status {
        font-size: 0.75em;
        margin-top: 4px;
    }
    
} /* @media (max-width: 768px) 结束 */

/* 页脚 - 移至全局，确保桌面和移动端都生效 */
footer {
    position: relative;
    z-index: 10;
    padding: 5px 0;
    text-align: center;
    flex-shrink: 0; /* 不收缩 */
    background: transparent; /* 背景设为透明 */
}

footer a {
    color: #00a8c6;
} 