h2{
    color: purple;
    font-size: 20px;
}
 :root {
            --neon-purple: #8A2BE2;
            --deep-space: #2A0F47;
            --stardust: #E6E6FA;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Orbitron', sans-serif;
        }

        body {
            background: radial-gradient(circle at center, var(--deep-space), #000);
            color: var(--stardust);
            min-height: 100vh;
        }

        .constellation {
            position: fixed;
            width: 100vw;
            height: 100vh;
            background-image: 
                radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 50%),
                radial-gradient(1px 1px at 80% 70%, #fff 50%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .title-box {
            perspective: 1000px;
            margin: 3rem 0;
        }

        h1 {
            font-size: 3rem;
            text-align: center;
            color: var(--neon-purple);
            text-shadow: 0 0 15px rgba(138,43,226,0.8);
            transform-style: preserve-3d;
            animation: titleGlow 2s infinite alternate;
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
        }

        .story-card {
            background: rgba(42,15,71,0.8);
            border: 2px solid var(--neon-purple);
            border-radius: 15px;
            padding: 1.5rem;
            transition: 0.5s;
            cursor: pointer;
            transform-style: preserve-3d;
            position: relative;
        }

        .story-card:hover {
            transform: rotateY(10deg) translateY(-10px);
            box-shadow: 0 0 30px rgba(138,43,226,0.6);
        }

        .card-image {
            width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 80vh;  /* 给底部描述留空间 */
    display: block;
    margin: 0 auto;
    object-fit: contain;
        }

        .card-content {
            padding: 1rem 0;
            backface-visibility: hidden;
        }

        /* 新增的放大模态框样式 */
        .galaxy-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            backdrop-filter: blur(5px);
        }

        .modal-content {
    position: relative;
    max-width: 90vw;  /* 改为视口单位 */
    max-height: 90vh;
    width: auto;       /* 新增 */
    height: auto;      /* 新增 */
    margin: 5vh auto;
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 50px rgba(138,43,226,0.5);
    border-radius: 15px;
    overflow: auto;    /* 改为auto支持滚动 */
    animation: modalEntrance 0.5s;
}

        @keyframes titleGlow {
            from { text-shadow: 0 0 10px rgba(138,43,226,0.5); }
            to { text-shadow: 0 0 30px rgba(138,43,226,1); }
        }

        @keyframes modalEntrance {
            from { transform: scale(0.8) rotateX(30deg); opacity: 0; }
            to { transform: scale(1) rotateX(0); opacity: 1; }
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            h1 { font-size: 2rem; }
            .card-image { height: 250px; }
        }
         .cosmic-portal {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        perspective: 400px;
    }

    /* 动态链接样式 */
    .star-gate {
        display: inline-flex;
        align-items: center;
        padding: 12px 25px;
        font-size: 1.2rem;
        background: linear-gradient(45deg, 
            rgba(138,43,226,0.8) 0%, 
            rgba(147,51,234,0.6) 100%);
        color: #fff !important;
        border: 1px solid #9D50FF;
        border-radius: 30px;
        text-decoration: none !important;
        backdrop-filter: blur(5px);
        box-shadow: 0 0 20px rgba(157,80,255,0.4);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }

    /* 悬停特效 */
    .star-gate:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 40px rgba(157,80,255,0.8);
        background: linear-gradient(45deg, 
            rgba(138,43,226,0.9) 0%, 
            rgba(147,51,234,0.7) 100%);
    }

    /* 星际粒子特效 */
    .star-gate::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, 
            rgba(255,255,255,0.8) 10%, 
            transparent 60%);
        transform: rotate(45deg);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .star-gate:hover::after {
        opacity: 0.3;
    }

    /* 返回图标动画 */
    .star-gate i {
        margin-right: 10px;
        transition: transform 0.4s;
    }

    .star-gate:hover i {
        transform: rotate(360deg);
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
        .star-gate {
            padding: 10px 20px;
            font-size: 1rem;
        }
    }
      
    /* 新增彩蛋样式 */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.easter-egg-card {
    position: relative;
    max-width: 600px;
    background: linear-gradient(45deg, 
        rgba(138,43,226,0.3), 
        rgba(70,25,115,0.7));
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    padding: 2rem;
    animation: eggEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes eggEntrance {
    0% {
        transform: scale(0) rotateZ(180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateZ(0);
        opacity: 1;
    }
}

.classified-info {
    padding: 1rem;
    background: rgba(0,0,0,0.5);
    border-left: 3px solid var(--neon-purple);
    margin: 1rem 0;
    position: relative;
}

.classified-info::after {
    content: "■■■■■■■■■■■■";
    position: absolute;
    bottom: -20px;
    left: 0;
    color: var(--neon-purple);
    opacity: 0.6;
}

.close-egg {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--neon-purple);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-egg:hover {
    transform: rotate(90deg);
}

/* 触发点 - 隐藏区域 */
.trigger-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 0.01;
    cursor: crosshair;
}
