/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(ellipse at center, rgba(10, 20, 40, 1) 0%, rgba(5, 10, 25, 1) 70%, rgba(2, 5, 15, 1) 100%);
    color: #a9e0ff;
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 星空背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(1.5px 1.5px at 75% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(2px 2px at 20% 80%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%);
    background-size: 550px 550px;
    animation: stars-drift 150s linear infinite;
    opacity: 0.5;
}

@keyframes stars-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 550px 550px;
    }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
nav {
    background: rgba(10, 25, 50, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 174, 255, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 174, 255, 0.2);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: #00c2ff;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.8);
    transition: all 0.3s ease;
}

nav .logo:hover {
    text-shadow: 0 0 20px rgba(0, 194, 255, 1);
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #a9e0ff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #00c2ff, #0088ff);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #00c2ff;
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.6);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid #00c2ff;
    color: #00c2ff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 194, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.4);
}

/* 移动端导航菜单 */
.mobile-nav {
    background: rgba(10, 25, 50, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(0, 174, 255, 0.3);
    padding: 1rem 0;
}

.mobile-nav.hidden {
    display: none;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
}

.mobile-nav ul li {
    width: 100%;
}

.mobile-nav ul li a {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: left;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* Hero区域 */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background-image: url('Banner.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 2px solid rgba(0, 174, 255, 0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 15, 30, 0.7), rgba(10, 20, 40, 0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #7dd3fc;
    max-width: 600px;
    margin: 0 auto;
}

.glow-text {
    color: #ffffff;
    text-shadow: 0 0 10px #00aeff, 0 0 20px #0077ff, 0 0 30px #0055ff;
    animation: pulsate 2s infinite alternate;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    font-weight: 700;
}

@keyframes pulsate {
    0% {
        text-shadow: 0 0 10px #00aeff, 0 0 20px #0077ff, 0 0 30px #0055ff;
    }
    100% {
        text-shadow: 0 0 20px #00c2ff, 0 0 30px #0088ff, 0 0 40px #0066ff;
    }
}

/* 群规内容区域 */
.rules-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.rules-card {
    background: rgba(10, 25, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 174, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 174, 255, 0.15);
    margin-bottom: 2rem;
}

.rules-header {
    border-bottom: 2px solid rgba(0, 174, 255, 0.3);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rules-title {
    color: #00c2ff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
}

.rules-title i {
    color: #00c2ff;
    font-size: 1.6rem;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.version-badge {
    background: linear-gradient(135deg, #00c2ff, #0088ff);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
}

.publish-date {
    color: #7dd3fc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publish-date i {
    color: #00c2ff;
}

/* Markdown内容样式 */
.markdown-body {
    background: transparent !important;
    color: #a9e0ff !important;
    font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 1rem;
    line-height: 1.8;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: #00c2ff !important;
    border-bottom-color: rgba(0, 174, 255, 0.3) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

.markdown-body h1 {
    font-size: 2rem !important;
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.5);
}

.markdown-body h2 {
    font-size: 1.6rem !important;
    text-shadow: 0 0 8px rgba(0, 194, 255, 0.4);
}

.markdown-body h3 {
    font-size: 1.3rem !important;
}

.markdown-body p {
    margin-bottom: 1rem !important;
    color: #a9e0ff !important;
}

.markdown-body strong {
    color: #00e5ff !important;
    font-weight: 700;
}

.markdown-body ul,
.markdown-body ol {
    margin-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.markdown-body li {
    margin-bottom: 0.5rem !important;
    color: #a9e0ff !important;
}

.markdown-body code {
    background: rgba(0, 174, 255, 0.1) !important;
    color: #00e5ff !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 174, 255, 0.3) !important;
}

.markdown-body pre {
    background: rgba(10, 25, 50, 0.9) !important;
    border: 1px solid rgba(0, 174, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    overflow-x: auto;
}

.markdown-body pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.markdown-body blockquote {
    border-left: 4px solid #00c2ff !important;
    background: rgba(0, 174, 255, 0.05) !important;
    padding: 1rem 1.5rem !important;
    margin: 1rem 0 !important;
    color: #7dd3fc !important;
}

.markdown-body a {
    color: #00e5ff !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.markdown-body a:hover {
    color: #00c2ff !important;
    border-bottom-color: #00c2ff;
}

.markdown-body hr {
    border-color: rgba(0, 174, 255, 0.3) !important;
    margin: 2rem 0 !important;
}

.markdown-body table {
    border-color: rgba(0, 174, 255, 0.3) !important;
}

.markdown-body th {
    background: rgba(0, 174, 255, 0.2) !important;
    color: #00c2ff !important;
}

.markdown-body td {
    border-color: rgba(0, 174, 255, 0.2) !important;
}

/* 底部 */
footer {
    background: rgba(10, 25, 50, 0.9);
    color: #7dd3fc;
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid rgba(0, 174, 255, 0.3);
    margin-top: 4rem;
}

footer .footer-links {
    margin-top: 1rem;
}

footer .footer-links a {
    color: #00c2ff;
    text-decoration: none;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

footer .footer-links a:hover {
    text-shadow: 0 0 10px rgba(0, 194, 255, 0.8);
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00c2ff, #0088ff);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 194, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 194, 255, 0.6);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 20, 40, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00c2ff, #0088ff);
    border-radius: 4px;
    border: 1px solid rgba(0, 150, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00e5ff, #0099ff);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .rules-card {
        padding: 1.5rem;
    }
    
    .rules-title {
        font-size: 1.4rem;
    }
    
    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .markdown-body {
        font-size: 0.95rem;
    }
    
    .markdown-body h1 {
        font-size: 1.6rem !important;
    }
    
    .markdown-body h2 {
        font-size: 1.3rem !important;
    }
    
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

