/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #ff6f00;
    text-shadow: 0 0 5px rgba(255, 111, 0, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6f00;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 登录按钮样式 */
.login-btn {
    background: linear-gradient(135deg, #ff6f00, #d32f2f);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ff6f00;
    object-fit: cover;
}

.user-name {
    color: #c0c0c0;
    font-size: 15px;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 111, 0, 0.2);
    border-color: #ff6f00;
    color: #ff6f00;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a237e 0%, #0d1b4a 100%);
    margin: 8% auto;
    padding: 40px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #c0c0c0;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ff6f00;
    background: rgba(255, 111, 0, 0.1);
    transform: rotate(90deg);
}

.modal-title {
    color: #c0c0c0;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    text-align: center;
    margin-bottom: 35px;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.qq-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #12b7f5, #0e9cd9);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.4);
}

.qq-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(18, 183, 245, 0.6);
    background: linear-gradient(135deg, #14c5ff, #0fa8e8);
}

.qq-login-btn:active {
    transform: translateY(0);
}

.qq-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.qq-login-iframe {
    width: 100%;
    text-align: center;
}

#qqLoginContainer {
    margin: 20px 0;
}

#qqLoginContainer iframe {
    border: none !important;
}

.login-tips {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-align: center;
    margin-top: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 英雄区域样式 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a237e 0%, #0d1b4a 100%);
    overflow: hidden;
}

#star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-logo {
    margin-bottom: 40px;
}

.game-title {
    font-size: 80px;
    font-weight: bold;
    color: #c0c0c0;
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.8);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.game-subtitle {
    font-size: 24px;
    color: #ff6f00;
    text-shadow: 0 0 10px rgba(255, 111, 0, 0.5);
    font-weight: 300;
}

.hero-slogan {
    margin-top: 40px;
}

.slogan-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #c0c0c0;
    border-bottom: 2px solid #c0c0c0;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* 通用区域样式 */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6f00, #1a237e);
    border-radius: 2px;
}

/* 游戏介绍区域 */
.intro-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h3 {
    font-size: 28px;
    color: #ff6f00;
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.8;
}

.game-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(26, 35, 126, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.feature-icon {
    font-size: 24px;
}

.feature-text {
    color: #c0c0c0;
    font-weight: 500;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.5), rgba(13, 27, 74, 0.5));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(192, 192, 192, 0.3);
}

.placeholder-text {
    color: rgba(192, 192, 192, 0.6);
    font-size: 18px;
}

/* 职业展示区域 */
.careers-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.career-card {
    background: rgba(26, 35, 126, 0.2);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 111, 0, 0.3);
    border-color: #ff6f00;
}

.career-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.career-icon {
    font-size: 40px;
}

.career-name {
    font-size: 24px;
    color: #c0c0c0;
    font-weight: bold;
}

.career-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.career-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #ff6f00, #d32f2f);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 时间轴区域 */
.timeline-section {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff6f00, #1a237e);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 50%;
    padding-left: 30px;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 50%;
    padding-right: 30px;
}

.timeline-date {
    font-size: 18px;
    color: #ff6f00;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 20px;
    color: #c0c0c0;
    margin-bottom: 10px;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 回忆相册区域 */
.gallery-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
}

.gallery-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.gallery-wrapper {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #1a237e, #ff6f00);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.4);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ff6f00;
    transform: scale(1.2);
}

/* 玩家寄语区域 */
.memories-section {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
}

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.memory-card {
    background: rgba(26, 35, 126, 0.2);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    transition: all 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.2);
}

.memory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.player-name {
    color: #ff6f00;
    font-weight: bold;
    font-size: 16px;
}

.memory-date {
    color: rgba(192, 192, 192, 0.7);
    font-size: 14px;
}

.memory-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-style: italic;
}

/* 友情链接区域 */
.links-section {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(26, 35, 126, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateX(5px);
    border-color: #ff6f00;
    box-shadow: 0 5px 20px rgba(255, 111, 0, 0.3);
}

.link-icon {
    font-size: 32px;
    color: #ff6f00;
}

.link-content h3 {
    color: #c0c0c0;
    font-size: 18px;
    margin-bottom: 5px;
}

.link-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.link-arrow {
    margin-left: auto;
    color: #ff6f00;
    font-size: 20px;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1a237e 0%, #0d1b4a 100%);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    color: #c0c0c0;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-subtext {
    color: rgba(192, 192, 192, 0.7);
    font-size: 14px;
    font-style: italic;
}

/* 动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }
    
    .careers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 80px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .navbar .container {
        justify-content: center;
    }
    
    #loginBtn,
    .user-info {
        position: absolute;
        right: 20px;
    }
    
    .game-title {
        font-size: 48px;
    }
    
    .game-subtitle {
        font-size: 18px;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .gallery-wrapper {
        height: 250px;
    }
    
    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .user-name {
        max-width: 80px;
    }
    
    .login-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .career-card:hover,
    .memory-card:hover,
    .link-card:hover {
        transform: none;
    }
    
    .career-card:active,
    .memory-card:active,
    .link-card:active {
        transform: scale(0.98);
    }
}