/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2bb1ff;
    --secondary-color: #667eea;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --text-color: #333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2s forwards;
}

.loader-logo {
    width: 80px;
    height: 80px;
    animation: rotate 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader p {
    margin-top: 20px;
    font-size: 18px;
    color: var(--text-color);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* 背景 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease-in-out;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo img {
    width: 48px;
    height: 48px;
    transition: var(--transition);
}

.logo img:hover {
    transform: rotate(360deg);
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: var(--light-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.header.scrolled .logo span {
    color: var(--dark-color);
    text-shadow: none;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header.scrolled .nav-menu a {
    color: var(--text-color);
    text-shadow: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    transition: var(--transition);
    border-radius: 2px;
}

.header.scrolled .menu-toggle span {
    background: var(--dark-color);
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--light-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    z-index: 999;
    transition: var(--transition);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* 通用区域样式 */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    color: var(--light-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 主页区域 */
.hero {
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: bold;
    color: var(--light-color);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    min-height: 80px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 24px;
    color: var(--light-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: var(--light-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(43, 177, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 177, 255, 0.6);
}

/* 关于区域 */
.about {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.staff-section h3 {
    font-size: 28px;
    color: var(--light-color);
    margin-bottom: 30px;
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.staff-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.staff-card:hover,
.staff-card.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(43, 177, 255, 0.3);
}

.staff-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--light-color);
    transition: var(--transition);
}

.staff-card.active img {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(43, 177, 255, 0.6);
}

.staff-info h4 {
    color: var(--light-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.staff-role {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.staff-detail {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    min-height: 200px;
}

.staff-detail-content h3 {
    color: var(--light-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.staff-detail-content .role {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.staff-detail-content .description {
    color: var(--light-color);
    font-size: 16px;
    line-height: 1.8;
}

.skin-viewer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
}

#skinCanvas {
    border-radius: 10px;
}

/* 版本区域 */
.version {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    backdrop-filter: blur(10px);
}

.version-content {
    display: flex;
    justify-content: center;
}

.version-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 60px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.version-card h3 {
    font-size: 32px;
    color: var(--light-color);
    margin-bottom: 20px;
}

.version-card p {
    font-size: 18px;
    color: var(--light-color);
    margin: 10px 0;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    color: var(--light-color);
    font-size: 14px;
}

/* 过渡动画 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .staff-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .header-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .staff-card {
        padding: 15px;
    }

    .staff-card img {
        width: 60px;
        height: 60px;
    }

    .version-card {
        padding: 30px 40px;
    }
}
