/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', serif;
    line-height: 1.6;
    color: #2c2c2c;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 语言切换按钮 */
.lang-switch {
    background: none;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: #d4af37;
    color: #2c2c2c;
}

/* 主页面背景 */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(45, 45, 45, 0.8) 50%, rgba(26, 26, 26, 0.8) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image: url('imgs/background_firstpage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(-10%) translateY(-10%);
    animation: backgroundDistort 30s ease-in-out infinite;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(45, 45, 45, 0.3) 50%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

@keyframes backgroundDistort {
    0%, 100% { 
        transform: translateX(-10%) translateY(-10%) scale(1.1) rotate(0deg);
        filter: blur(0px) hue-rotate(0deg);
    }
    25% { 
        transform: translateX(-8%) translateY(-12%) scale(1.12) rotate(0.5deg);
        filter: blur(1px) hue-rotate(5deg);
    }
    50% { 
        transform: translateX(-12%) translateY(-8%) scale(1.08) rotate(-0.5deg);
        filter: blur(0.5px) hue-rotate(-5deg);
    }
    75% { 
        transform: translateX(-9%) translateY(-11%) scale(1.1) rotate(0.3deg);
        filter: blur(1.5px) hue-rotate(3deg);
    }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(212, 175, 55, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(212, 175, 55, 0.5), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(139, 69, 19, 0.3), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: float 25s linear infinite;
    z-index: 2;
    opacity: 0.8;
}

@keyframes float {
    0% { 
        transform: translateY(0px) rotate(0deg) translateX(0px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-50px) rotate(180deg) translateX(10px);
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px) rotate(360deg) translateX(0px);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-title {
    font-size: 4rem;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 1rem;
    letter-spacing: 8px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.4);
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

@keyframes titleGlow {
    0% { 
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.4);
        transform: scale(1);
    }
    100% { 
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.7);
        transform: scale(1.02);
    }
}

.game-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 8rem;
    letter-spacing: 4px;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: #d4af37;
    margin: 10px auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #d4af37;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 游戏介绍部分 */
.game-section {
    padding: 6rem 0;
    background: #f8f5f0;
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23d4af37" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d4af37;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.game-card h3 {
    color: #2c2c2c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-card p {
    color: #666;
    line-height: 1.8;
}

.game-card ul {
    list-style: none;
    color: #666;
}

.game-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-card li::before {
    content: '◦';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.game-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-gallery {
    width: 100%;
}

.main-image {
    margin-bottom: 1rem;
}

/* 游戏画廊样式 */
.main-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.thumbnail.active {
    border-color: #d4af37;
    transform: scale(1.1);
}

.thumbnail:hover {
    border-color: #b8941f;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 游戏场景展示部分 */
.gallery-section {
    padding: 6rem 0;
    background: #1a1a1a;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-section .section-header h2 {
    color: #d4af37;
}

.scene-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 700px;
    position: relative;
    z-index: 1;
}

.scene-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.scene-item:hover {
    transform: scale(1.02);
}

.scene-item.large {
    grid-row: 1 / 3;
}

.scene-image {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.scene-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.scene-item:hover .scene-overlay {
    transform: translateY(0);
}

.scene-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.scene-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 招聘信息部分 */
.recruitment-section {
    padding: 6rem 0;
    background: #2c2c2c;
    position: relative;
}

.recruitment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.recruitment-content {
    position: relative;
    z-index: 1;
}

.recruitment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.recruitment-header h2 {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.seal-decoration {
    width: 60px;
    height: 60px;
    background: #d4af37;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-decoration::before {
    content: '印';
    color: #2c2c2c;
    font-weight: bold;
    font-size: 1.2rem;
}

.recruitment-scroll {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f5f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.recruitment-scroll::before,
.recruitment-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent);
}

.recruitment-scroll::before {
    left: 0;
}

.recruitment-scroll::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.1), transparent);
}

.scroll-content {
    padding: 3rem;
    position: relative;
}

.scroll-content h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c2c2c;
    margin-bottom: 2rem;
    font-weight: 700;
}

.recruitment-intro {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.position-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 3px solid #d4af37;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.position-item h4 {
    color: #2c2c2c;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.position-item p {
    color: #666;
    line-height: 1.6;
}

.contact-info {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 6px;
    border: 2px solid #d4af37;
    margin-bottom: 2rem;
}

.contact-info h4 {
    color: #2c2c2c;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.email-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #b8941f;
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

.stamp {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    transform: rotate(-15deg);
}

.stamp-inner {
    width: 100%;
    height: 100%;
    border: 3px solid #d4af37;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    font-size: 0.8rem;
    font-weight: bold;
    color: #d4af37;
    line-height: 1.2;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .game-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .game-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
        margin-bottom: 6rem;
    }
    
    .game-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .scene-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
        height: auto;
    }
    
    .scene-item.large {
        grid-row: auto;
    }
    
    .positions {
        grid-template-columns: 1fr;
    }
    
    .scroll-content {
        padding: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .recruitment-header h2 {
        font-size: 2rem;
    }
    
    .gallery-thumbnails {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .game-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .game-card {
        padding: 1.5rem;
    }
    
    .scroll-content {
        padding: 1.5rem;
    }
}

/* 滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }

.position-item {
    animation: fadeInUp 0.6s ease forwards;
}

.position-item:nth-child(1) { animation-delay: 0.1s; }
.position-item:nth-child(2) { animation-delay: 0.2s; }
.position-item:nth-child(3) { animation-delay: 0.3s; }
.position-item:nth-child(4) { animation-delay: 0.4s; }
