/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Chakra+Petch:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600&display=swap');

/* 自定义样式补充 */
body {
    background-image: linear-gradient(to bottom, #0a0517, #1a0b3b);
    background-attachment: fixed;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
}

/* Logo样式 */
.site-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* 标题样式优化 */
h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.language-selector select {
    border: 1px solid #4c1d95;
    background-color: rgba(10, 5, 23, 0.8);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
}

.language-selector select:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.4);
}

/* 添加神秘感的光效 */
.bg-gray-800 {
    background: linear-gradient(145deg, #1e1b4b, #2e1065);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

/* 卡片悬停效果 */
.hover\:bg-gray-700:hover {
    background: linear-gradient(145deg, #2e1065, #4c1d95);
    transform: translateY(-2px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}

/* 按钮样式优化 */
.bg-green-600 {
    background: linear-gradient(to right, #5b21b6, #4c1d95);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.hover\:bg-green-700:hover {
    background: linear-gradient(to right, #6d28d9, #5b21b6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* 文字发光效果 */
.text-green-400 {
    color: #c4b5fd;
    text-shadow: 0 0 15px rgba(196, 181, 253, 0.4);
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 0.03em;
}

.text-green-500 {
    color: #8b5cf6;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* 添加神秘光晕效果 */
.bg-gray-800::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bg-gray-800:hover::after {
    opacity: 1;
}

/* 难度星级样式优化 */
.text-yellow-400 {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* 描述文本样式优化 */
.text-gray-300 {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* 背景纹理透明度调整 */
.bg-pattern {
    position: relative;
    z-index: 1;
}

/* 按钮文字样式 */
.game-button {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* 难度文本样式 */
.difficulty-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        letter-spacing: 0.08em;
    }
    
    .text-gray-300 {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}

/* 导航栏样式 */
.backdrop-filter {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* 导航栏背景图案 */
.backdrop-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.text %7B font: 10px monospace; fill: %236d28d9; fill-opacity: 0.1;%7D%3C/style%3E%3Cg fill='none' stroke='%236d28d9' stroke-width='1' stroke-opacity='0.1'%3E%3Cpath d='M0 0h100v100H0z'/%3E%3Cpath d='M20 20h60v60H20z'/%3E%3Cpath d='M40 0v100M60 0v100M0 40h100M0 60h100'/%3E%3Cpath d='M20 20l60 60M80 20l-60 60'/%3E%3C/g%3E%3Ctext x='5' y='15' class='text'%3E01100101%3C/text%3E%3Ctext x='65' y='35' class='text'%3E10110010%3C/text%3E%3Ctext x='25' y='75' class='text'%3E11001010%3C/text%3E%3Ctext x='45' y='55' class='text'%3E∆◊⌘%3C/text%3E%3Ccircle cx='20' cy='20' r='3' fill='%236d28d9' fill-opacity='0.2'/%3E%3Ccircle cx='80' cy='20' r='3' fill='%236d28d9' fill-opacity='0.2'/%3E%3Ccircle cx='20' cy='80' r='3' fill='%236d28d9' fill-opacity='0.2'/%3E%3Ccircle cx='80' cy='80' r='3' fill='%236d28d9' fill-opacity='0.2'/%3E%3Cpath d='M30 30h10v10H30zM60 60h10v10H60z' fill='%236d28d9' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: -1;
    background-size: 100px 100px;
    background-repeat: repeat;
}

/* 添加迷宫动画效果 */
@keyframes mazeGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(109, 40, 217, 0.2)); }
    50% { filter: drop-shadow(0 0 8px rgba(109, 40, 217, 0.4)); }
}

.backdrop-filter::before {
    animation: mazeGlow 4s ease-in-out infinite;
}

/* 导航栏动态效果 */
.backdrop-filter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.1),
        transparent
    );
    animation: lightScan 5s ease-in-out infinite;
    z-index: -1;
}

@keyframes lightScan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 导航链接悬停效果增强 */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6d28d9, #9333ea);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero区域样式 */
.hero-section {
    background: linear-gradient(
        145deg,
        rgba(88, 28, 135, 0.2),
        rgba(67, 56, 202, 0.1),
        rgba(88, 28, 135, 0.2)
    );
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 64px rgba(139, 92, 246, 0.15) inset;
    transform-style: preserve-3d;
    animation: heroFloat 8s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Hero区域装饰图案 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.text %7B font: 10px monospace;%7D .symbol %7B font: 14px serif;%7D%3C/style%3E%3Cg fill='%236d28d9' fill-opacity='0.05'%3E%3Cpath d='M0 0h140v140H0z' fill='none' stroke='%236d28d9' stroke-opacity='0.1'/%3E%3Cpath d='M20 20h100v100H20z' fill='none' stroke='%236d28d9' stroke-opacity='0.1'/%3E%3Ctext x='10' y='30' class='text'%3EESCAPE ROOM%3C/text%3E%3Ctext x='90' y='50' class='text'%3E01 02 03%3C/text%3E%3Ctext x='30' y='80' class='symbol'%3E%E2%86%90%E2%86%91%E2%86%92%E2%86%93%3C/text%3E%3Ctext x='70' y='110' class='text'%3ESOLVE%3C/text%3E%3Ccircle cx='30' cy='30' r='5' fill='%236d28d9' fill-opacity='0.1'/%3E%3Ccircle cx='110' cy='110' r='5' fill='%236d28d9' fill-opacity='0.1'/%3E%3Cpath d='M40 40l60 60M100 40l-60 60' stroke='%236d28d9' stroke-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 140px;
    background-repeat: repeat;
    opacity: 0.2;
    animation: heroPatternFloat 15s linear infinite;
}

/* Hero区域光效 */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(139, 92, 246, 0.15) 0%,
        transparent 60%
    );
    animation: heroGlow 10s ease-in-out infinite;
    mix-blend-mode: soft-light;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg) scale(1); }
    50% { transform: translateY(-12px) rotateX(2deg) scale(1.01); }
}

@keyframes heroPatternFloat {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 140px 140px;
    }
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(-30%, -30%) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20%, -20%) rotate(180deg);
        opacity: 0.8;
    }
}

/* 标题装饰 */
.section-title h2 {
    position: relative;
    display: inline-block;
    padding: 0 3rem;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
}

.section-title h2::before {
    right: 100%;
    margin-right: -15px;
}

.section-title h2::after {
    left: 100%;
    margin-left: -15px;
}

/* 标题悬停效果 */
.section-title h2 span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-title h2:hover span::after {
    transform: scaleX(1);
}

/* 特性区域样式 */
.features-section svg {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
    transition: all 0.3s ease;
}

.features-section > div > div:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

/* 页面过渡动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section,
.section-title,
.features-section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 欢迎文本容器样式 */
.welcome-text {
    position: relative;
    padding: 2rem 4rem;
    width: 100%;
    display: block;
    color: rgba(196, 181, 253, 0.9);
    text-shadow: 
        0 0 20px rgba(168, 85, 247, 0.4),
        0 0 40px rgba(168, 85, 247, 0.2);
    font-weight: 400;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 调整文本大小和行高 */
.welcome-text {
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .welcome-text {
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* 主内容区域样式增强 */
.container {
    perspective: 1000px;
}

/* 特性区域增强 */
.features-section svg {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
    transition: all 0.3s ease;
}

.features-section > div > div:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

/* 关卡卡片样式增强 */
.room-card {
    position: relative;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, 
        rgba(30, 27, 75, 0.9),
        rgba(46, 16, 101, 0.9)
    );
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.code { font: 6px monospace; }%3C/style%3E%3Cg fill='%236d28d9' fill-opacity='0.1'%3E%3Cpath d='M0 0h10v10H0zM50 0h10v10H50zM0 50h10v10H0zM50 50h10v10H50z'/%3E%3Ctext x='20' y='15' class='code'%3E01001%3C/text%3E%3Ctext x='35' y='45' class='code'%3E10110%3C/text%3E%3Cpath d='M15 15h30v30H15z' fill='none' stroke='%236d28d9' stroke-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.room-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.2) inset;
}

/* 房间编号样式 */
.room-number {
    display: inline-block;
    font-family: 'Orbitron', monospace;
    font-size: 0.8em;
    color: rgba(139, 92, 246, 0.6);
    margin-right: 1rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.1);
}

/* 游戏按钮增强 */
.game-button {
    background: linear-gradient(45deg, #5b21b6, #4c1d95);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.4) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-100%, -100%) rotate(45deg);
}

.game-button:hover::before {
    opacity: 1;
    animation: buttonGlow 2s infinite;
}

@keyframes buttonGlow {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/* 标题样式增强 */
.hero-section h1 {
    background: linear-gradient(
        120deg,
        #c4b5fd 0%,
        #8b5cf6 50%,
        #c4b5fd 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleGradient 8s linear infinite;
    position: relative;
    display: inline-block;
}

/* 标题装饰线条 */
.hero-section h1::before,
.hero-section h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.6), transparent);
    top: 50%;
    animation: lineFloat 3s ease-in-out infinite;
}

.hero-section h1::before {
    left: -80px;
    transform: translateX(-100%);
}

.hero-section h1::after {
    right: -80px;
    transform: translateX(100%);
}

/* 新增动画 */
@keyframes titleGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes lineFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
} 