/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(135, 206, 250, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: rgba(25, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(135, 206, 250, 0.3);
}

.logo {
    color: #87CEFA;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(135, 206, 250, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 5px rgba(135, 206, 250, 0.5));
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #87CEFA;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #87CEFA;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1515876332424-0868648fcebd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.8) 150%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: textGlow 2s infinite alternate;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.server-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    animation: fadeIn 1.5s ease;
}

.ip {
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    border: 1px solid rgba(135, 206, 250, 0.5);
    box-shadow: 0 0 15px rgba(135, 206, 250, 0.2);
}

.copy-btn {
    background: linear-gradient(45deg, #4A90E2, #5DADE2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    background: linear-gradient(45deg, #5DADE2, #4A90E2);
}

.minecraft-blocks {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.block {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.block:hover {
    transform: translateY(-10px) scale(1.1);
}

.block:nth-child(2) {
    animation-delay: 0.5s;
}

.block:nth-child(3) {
    animation-delay: 1s;
}

/* 服务器介绍区域 */
.about {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #191923;
    position: relative;
}

.about h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4A90E2, #5DADE2);
    margin: 15px auto;
    border-radius: 2px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(135, 206, 250, 0.2);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.2);
    border-color: rgba(135, 206, 250, 0.5);
}

.feature-card h3 {
    color: #191923;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #555;
    font-size: 1.1rem;
}

/* 服务器规则区域 */
.rules {
    padding: 100px 0;
    background: 
        linear-gradient(rgba(25, 25, 35, 0.9), rgba(25, 25, 35, 0.9)),
        url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3&auto=format&fit=crop&w=1951&q=80') center/cover fixed;
    color: white;
}

.rules h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.rules h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4A90E2, #5DADE2);
    margin: 15px auto;
    border-radius: 2px;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rule-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.rule-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #87CEFA;
}

.rule-item p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 加入我们区域 */
.join {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.join h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #191923;
    position: relative;
}

.join h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #4A90E2, #5DADE2);
    margin: 15px auto;
    border-radius: 2px;
}

.join-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.join-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #555;
}

.server-info-large {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.server-info-large .ip {
    font-size: 1.8rem;
    padding: 20px 40px;
}

.server-info-large .copy-btn {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.guide {
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(135, 206, 250, 0.2);
}

.guide h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #191923;
}

.guide ol {
    padding-left: 20px;
}

.guide li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.guide strong {
    color: #4A90E2;
    font-weight: 600;
}

/* 页脚 */
footer {
    background-color: #191923;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(135, 206, 250, 0.3);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(135, 206, 250, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(135, 206, 250, 0.8), 0 0 30px rgba(74, 144, 226, 0.6);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .server-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .server-info-large {
        flex-direction: column;
        gap: 15px;
    }
    
    .about, .rules, .join {
        padding: 60px 0;
    }
}