/* 秘密基地页面 */

/* 锁定界面 */
.lock-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.95), rgba(30, 27, 60, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
}

.lock-planet {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.secret-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #7B68EE, #4B0082);
    filter: drop-shadow(0 0 60px #7B68EE);
    animation: rotate-slow 20s linear infinite;
}

.locked-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    width: 220px;
    height: 60px;
    border: 3px solid #7B68EE;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 30px #7B68EE;
    animation: pulse 2s ease-in-out infinite;
}

.lock-title {
    font-size: 3rem;
    color: var(--cosmic-purple);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(123, 104, 238, 0.8);
}

.lock-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.lock-hint {
    font-size: 0.95rem;
    color: var(--cosmic-teal);
    background: rgba(46, 196, 182, 0.15);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.password-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#passwordField {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(10, 17, 40, 0.8);
    border: 2px solid rgba(123, 104, 238, 0.5);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 3px;
}

#passwordField:focus {
    outline: none;
    border-color: var(--cosmic-purple);
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.3);
}

.unlock-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--pink));
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.unlock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.5);
}

.attempts {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 解锁后的内容 */
.secret-content {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.planet-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.planet-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-planet {
    display: flex;
    justify-content: center;
}

.planet-visual {
    position: relative;
    width: 280px;
    height: 280px;
}

.secret-core-unlocked {
    background: radial-gradient(circle at 35% 35%, #7B68EE, #4B0082) !important;
    filter: drop-shadow(0 0 60px #7B68EE) drop-shadow(0 0 30px #4B0082) !important;
}

.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    width: 260px;
    height: 70px;
    border: 3px solid #7B68EE;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 30px #7B68EE;
}

.planet-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 330px;
    height: 330px;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.2), transparent 70%);
    border-radius: 50%;
    animation: pulse-large 3s ease-in-out infinite;
}

@keyframes pulse-large {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

.hero-text {
    padding: 2rem;
}

.planet-title {
    font-size: 3.5rem;
    color: var(--cosmic-purple);
    margin-bottom: 1.5rem;
}

.planet-desc {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.planet-stats {
    display: flex;
    gap: 2rem;
}

.planet-stats span {
    font-size: 1.1rem;
    color: var(--cosmic-teal);
    background: rgba(46, 196, 182, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

/* 秘密区域 */
.secrets-section {
    padding: 4rem 2rem;
}

.section-subtitle {
    font-size: 2rem;
    color: var(--cosmic-purple);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* 秘密宝盒 */
.secret-boxes {
    margin-bottom: 5rem;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.secret-box {
    background: rgba(30, 27, 60, 0.7);
    border: 2px solid rgba(123, 104, 238, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.secret-box:hover {
    transform: translateY(-15px) rotateY(5deg);
    border-color: var(--cosmic-purple);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.box-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.box-title {
    font-size: 1.5rem;
    color: var(--cosmic-purple);
    margin-bottom: 0.8rem;
}

.box-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.open-box-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--pink));
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.open-box-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.4);
}

/* 专属彩蛋 */
.easter-eggs {
    margin-bottom: 5rem;
}

.eggs-collection {
    display: grid;
    gap: 2rem;
}

.egg-item {
    background: rgba(30, 27, 60, 0.7);
    border: 2px solid rgba(123, 104, 238, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s;
}

.egg-item.unlocked {
    cursor: pointer;
}

.egg-item.unlocked:hover {
    transform: translateX(10px);
    border-color: var(--cosmic-purple);
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.3);
}

.egg-item.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.egg-icon {
    font-size: 3rem;
    text-align: center;
}

.egg-info {
    min-width: 0;
}

.egg-title {
    font-size: 1.3rem;
    color: var(--cosmic-purple);
    margin-bottom: 0.5rem;
}

.egg-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.egg-badge {
    background: linear-gradient(135deg, var(--cosmic-purple), var(--pink));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.locked-badge {
    background: rgba(100, 100, 100, 0.5);
}

/* 基地规则 */
.base-rules {
    margin-bottom: 3rem;
}

.rules-card {
    background: rgba(30, 27, 60, 0.7);
    border: 2px solid rgba(123, 104, 238, 0.3);
    border-radius: 25px;
    padding: 3rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(123, 104, 238, 0.2);
    transition: all 0.3s;
}

.rule-item:hover {
    background: rgba(123, 104, 238, 0.2);
    transform: translateX(10px);
}

.rule-item:last-child {
    margin-bottom: 0;
}

.rule-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.rule-item p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式 */
@media (max-width: 1024px) {
    .planet-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .boxes-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .lock-content {
        padding: 2rem 1.5rem;
    }

    .lock-planet {
        width: 150px;
        height: 150px;
    }

    .secret-core {
        width: 130px;
        height: 130px;
    }

    .password-input {
        flex-direction: column;
    }

    .planet-hero {
        padding: 3rem 1.5rem;
    }

    .planet-title {
        font-size: 2.5rem;
    }

    .secrets-section {
        padding: 2rem 1.5rem;
    }

    .egg-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }

    .egg-badge {
        grid-column: 2;
    }

    .boxes-grid {
        grid-template-columns: 1fr;
    }
}
