/* 深空主题样式 */
:root {
    --deep-space-bg: #0a0a1a;
    --deep-space-accent: #1a1a2e;
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --accent-color: #6c63ff;
    --neon-blue: #00f3ff;
    --neon-purple: #bd00ff;
    --neon-pink: #ff00cc;
    --neon-green: #00ff9d;
    
    /* 浅色主题变量 */
    --light-bg: #ffffff;
    --light-accent: #f0f0ff;
    --light-text-primary: #1a1a2e;
    --light-text-secondary: #5a5a7a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--deep-space-bg) 0%, #000033 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* 浅色主题样式 */
body.light-theme {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0ff 100%);
    color: var(--light-text-primary);
}

/* 顶部导航栏 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.light-theme .header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 35px;
    width: auto;
}

@media (max-width: 768px) {
    .logo {
        height: 30px;
    }
}

.site-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

body.light-theme .site-name {
    background: linear-gradient(to right, #6c63ff, #bd00ff);
    -webkit-background-clip: text;
    background-clip: text;
}

@media (max-width: 768px) {
    .site-name {
        font-size: 1.5rem;
    }
}

/* 主题切换按钮 */
.theme-toggle {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* 只在支持hover的设备上应用hover效果 */
@media (hover: hover) {
    .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.2) rotate(15deg);
    }

    body.light-theme .theme-toggle:hover {
        background: rgba(10, 10, 26, 0.2);
    }
}

/* 主体内容 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.construction-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

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

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-green), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

body.light-theme h1 {
    background: linear-gradient(to right, #ffffff, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-green), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

body.light-theme .subtitle {
    color: var(--light-text-secondary);
}

.message {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
    background: rgba(26, 26, 46, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    backdrop-filter: blur(5px);
}

body.light-theme .message {
    background: rgba(200, 200, 255, 0.3);
    color: var(--light-text-primary);
    border: 1px solid rgba(108, 99, 255, 0.5);
}

.emoji-highlight {
    font-size: 1.5em;
    vertical-align: middle;
}

/* 版权区域 */
.footer {
    background: rgba(10, 10, 26, 0.9);
    padding: 1.5rem 5%;
    text-align: center;
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
}

body.light-theme .footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(108, 99, 255, 0.3);
}

.footer-content {
    position: relative;
    z-index: 2;
}

.copyright {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

body.light-theme .copyright {
    color: var(--light-text-secondary);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 在更小的屏幕上，让联系信息垂直排列 */
@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .beian-links {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .beian-links a {
        text-align: center;
    }
}

body.light-theme .contact-info {
    color: var(--light-text-secondary);
}

.email {
    color: var(--neon-blue);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-blue);
}

body.light-theme .email {
    color: #6c63ff;
}

body.light-theme .email:hover {
    color: #bd00ff;
    text-shadow: 0 0 10px #6c63ff;
}

.beian-links {
    display: flex;
    gap: 1rem;
}

.beian-links a {
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}

body.light-theme .beian-links a {
    color: var(--light-text-secondary);
}

/* 星空背景动画 */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 5s) infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* 在浅色主题下显示黑色星空 */
body.light-theme .star {
    background-color: black;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 1rem 5%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .message {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .construction-icon {
        font-size: 3rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .footer {
        padding: 1rem 5%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}