/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

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

/* 进入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.container {
    width: 70%;
    margin: 0 auto;
    overflow: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: #fff;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border-bottom: 2px solid #3498db;
    animation: fadeIn 0.8s ease-out;
}

header h1 {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.6em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

nav ul li {
    margin: 0 12px;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

nav ul li a:hover:before {
    left: 100%;
}

nav ul li a:hover {
    background: rgba(52, 152, 219, 0.8);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

nav ul li a.active {
    background: #3498db;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* 主体内容样式 */
main {
    margin-top: 85px;
    padding: 12px 0;
    animation: fadeIn 1s ease-out;
}

.hero {
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero::before {
    content: "";
    position: absolute;
    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" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgba(255,255,255,0.1)"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.2)" stroke-width="1"/></svg>');
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 700px;
    padding: 18px;
}

.hero-title {
    font-size: 2.5em;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 25px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-out 0.5s;
    animation-fill-mode: both;
}

.cta-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.3);
}

section {
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInLeft 0.8s ease-out;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.3);
}

h2 {
    color: #2c3e50;
    margin-bottom: 12px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 6px;
    font-size: 1.5em;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
}

h3 {
    color: #3498db;
    margin: 18px 0 12px 0;
    font-size: 1.3em;
    animation: fadeIn 1s ease-out;
}

p {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.5;
    animation: fadeIn 1s ease-out;
}

ul {
    margin-left: 18px;
    margin-bottom: 12px;
    animation: fadeIn 1s ease-out;
}

ul li {
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 2px solid #3498db;
    list-style: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

ul li:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: 0.5s;
}

ul li:hover:before {
    left: 100%;
}

ul li:nth-child(1) { animation-delay: 0.2s; }
ul li:nth-child(2) { animation-delay: 0.4s; }
ul li:nth-child(3) { animation-delay: 0.6s; }
ul li:nth-child(4) { animation-delay: 0.8s; }
ul li:nth-child(5) { animation-delay: 1.0s; }

ul li:hover {
    transform: translateX(4px);
    background: rgba(52, 152, 219, 0.1);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 截图画廊样式 */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.screenshot-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #3498db;
}

.screenshot-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
    padding: 15px;
    text-align: center;
    background: linear-gradient(to right, #f8f9fa, #e9ecef, #f8f9fa);
}

/* 地图和Wiki画布样式 */
#map iframe,
#wiki iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, #2c3e50, #1a2a6c);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 18px;
    border-top: 2px solid #3498db;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
    animation: slideInRight 1s ease-out;
}

/* 团队成员页面样式 */
.team-member {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.5em;
    text-align: center;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* 响应式设计 */
@media(max-width: 768px) {
    .container {
        width: 95%;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 6px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 12px;
        font-size: 1.1em;
    }
    
    .screenshot-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-item {
        width: 90%;
    }
    
    .screenshot-item img {
        width: 100%;
        margin-bottom: 6px;
        border-radius: 8px;
    }
    
    main {
        margin-top: 110px;
    }
    
    section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.4em;
        padding-bottom: 8px;
    }
    
    h3 {
        font-size: 1.2em;
        margin: 15px 0 10px 0;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    p {
        font-size: 1em;
        line-height: 1.6;
    }
    
    .hero {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    #map iframe,
    #wiki iframe {
        height: 400px;
    }
    
    .team-member {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
    }
    
    .team-member h3 {
        font-size: 1.3em;
    }
}