/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-dark: #1a0a2e;
    --primary: #2d0a4a;
    --primary-light: #3d1266;
    --accent: #9c27b0;
    --accent-light: #ba68c8;
    --accent-dark: #7b1fa2;
    --text: #e0d6eb;
    --text-secondary: #b39ddb;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --terminal-bg: rgba(10, 5, 24, 0.8);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 背景效果 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><rect width="100%" height="100%" fill="black"/><circle cx="10%" cy="15%" r="1" fill="white"/><circle cx="25%" cy="7%" r="1" fill="white"/><circle cx="40%" cy="22%" r="1" fill="white"/><circle cx="75%" cy="5%" r="1" fill="white"/><circle cx="85%" cy="18%" r="1" fill="white"/><circle cx="95%" cy="12%" r="1" fill="white"/><circle cx="15%" cy="85%" r="1" fill="white"/><circle cx="30%" cy="92%" r="1" fill="white"/><circle cx="55%" cy="88%" r="1" fill="white"/><circle cx="70%" cy="95%" r="1" fill="white"/><circle cx="90%" cy="82%" r="1" fill="white"/></svg>');
    z-index: -2;
}

.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(93, 28, 133, 0.3) 0%, transparent 40%), 
                radial-gradient(circle at 80% 70%, rgba(125, 39, 177, 0.3) 0%, transparent 40%);
    z-index: -1;
    animation: nebulaPulse 20s infinite alternate;
}

@keyframes nebulaPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: rgba(26, 10, 46, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
}

.logo i {
    color: var(--accent-light);
    margin-right: 10px;
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--accent-light);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-light);
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.server-status {
    display: flex;
    align-items: center;
    background: rgba(156, 39, 176, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--accent);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主视觉区域 */
.hero {
    padding: 150px 0 100px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-light);
    text-shadow: 0 0 15px rgba(156, 39, 176, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.btn.primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 20px rgba(186, 104, 200, 0.7);
    transform: translateY(-3px);
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--accent);
}

.btn.secondary:hover {
    background: rgba(156, 39, 176, 0.2);
    transform: translateY(-3px);
}

.hero-terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.3);
}

.terminal-header {
    background: var(--accent-dark);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    min-height: 250px;
}

.prompt {
    color: var(--accent-light);
    margin-right: 10px;
}

.success {
    color: var(--success);
}

.highlight {
    color: var(--accent-light);
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0% { text-shadow: 0 0 5px rgba(156, 39, 176, 0.5); }
    50% { text-shadow: 0 0 15px rgba(156, 39, 176, 0.8); }
    100% { text-shadow: 0 0 5px rgba(156, 39, 176, 0.5); }
}

/* 特色区域 */
.features {
    padding: 100px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(45, 10, 74, 0.5);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(156, 39, 176, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent-light);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* 图片展示 */
.gallery {
    padding: 50px 0 100px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 10, 46, 0.8);
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

/* 服务器信息 */
.server-info {
    padding: 100px 0;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 15px;
    padding: 40px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(156, 39, 176, 0.3);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    animation: borderFlow 3s infinite linear;
}

@keyframes borderFlow {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

.info-card h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    background: rgba(26, 10, 46, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-light);
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.info-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.join-now {
    text-align: center;
    padding: 20px;
    background: rgba(26, 10, 46, 0.5);
    border-radius: 10px;
    border: 1px solid var(--accent);
}

.join-now p {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.highlight {
    color: var(--accent-light);
    font-weight: bold;
    background: rgba(156, 39, 176, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 页脚 */
footer {
    background: rgba(10, 5, 24, 0.9);
    padding: 70px 0 20px;
    border-top: 1px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.footer-col p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(156, 39, 176, 0.2);
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(156, 39, 176, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-terminal {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 10, 46, 0.95);
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .server-status {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .info-card {
        padding: 30px 20px;
    }
}