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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(26, 26, 26, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #ffd700;
}

/* 英雄区域样式 - 使用提供的背景图 */
#hero {
    height: 793px;
    width: 2560px;
    display: table;
    margin: 0 auto;
    position: relative;
    table-layout: fixed;
    border-collapse: collapse;
}

.hero-slice {
    display: table-cell;
    width: 320px;
    height: 793px;
    background-repeat: no-repeat;
    background-position: top left;
}

.hero-slice:nth-child(1) {
    background-image: url('images/hero-bg_r1_c1.png');
}

.hero-slice:nth-child(2) {
    background-image: url('images/hero-bg_r1_c2.png');
}

.hero-slice:nth-child(3) {
    background-image: url('images/hero-bg_r1_c3.png');
}

.hero-slice:nth-child(4) {
    background-image: url('images/hero-bg_r1_c4.png');
}

.hero-slice:nth-child(5) {
    background-image: url('images/hero-bg_r1_c5.png');
}

.hero-slice:nth-child(6) {
    background-image: url('images/hero-bg_r1_c6.png');
}

.hero-slice:nth-child(7) {
    background-image: url('images/hero-bg_r1_c7.png');
}

.hero-slice:nth-child(8) {
    background-image: url('images/hero-bg_r1_c8.png');
}

.hero-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}

#hero h1, #hero p, #hero .cta-button {
    position: relative;
    z-index: 2;
    color: #fff;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 500px;
}

.cta-button {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.download-icon {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}

.cta-button span {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 新闻区域样式 */
#news {
    padding: 3rem 5%;
    background-color: #f5f5f5;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.news-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item .date {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.read-more {
    display: inline-block;
    color: #1a1a1a;
    text-decoration: none;
    margin-top: 1rem;
}

/* 联系方式区域样式 */
.contact-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 350px));
    gap: 10rem;
    margin-top: 2rem;
    justify-content: center;
}

.contact-card {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.qr-code {
    width: 280px;
    height: 280px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* 关于游戏区域样式 */
#about {
    padding: 3rem 5%;
    background-color: #f5f5f5;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    text-align: left;
    padding-right: 150px;
    min-height: 120px;
}

.feature-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    left: auto;
}

.feature h3 {
    margin: 0.5rem 0;
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem 5%;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
    
    .news-container,
    .contact-options,
    .features {
        grid-template-columns: 1fr;
    }
}

.news-and-character {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.news-section {
    flex: 1;
}

.character-image {
    flex: 0 0 300px;
    margin-top: 2.5rem;
}

.sura-character {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-and-character {
        flex-direction: column;
    }
    
    .character-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto;
    }
}

.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-left: 8%;
}

.contact-content {
    flex: 1;
    padding-right: 2rem;
}

.contact-content h2 {
    margin-left: -2rem;
}

.contact-image {
    flex: 0 0 300px;
    margin-top: 2.5rem;
    margin-left: 3rem;
}

.warrior-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-section {
        flex-direction: column;
    }
    
    .contact-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto;
    }
}

.copyright-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 215, 0, 0.9);  /* 金色背景，半透明 */
    color: #000;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;  /* 确保显示在最上层 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .copyright-notice {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.news-image {
    margin: 1rem 0;
    text-align: center;
}

.register-gif {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 在移动设备上的样式调整 */
@media (max-width: 768px) {
    #hero {
        width: 100%;
        height: 500px;
        background: url('images/hero-bg_r1_c1.png') center center;
        background-size: cover;
    }
    
    .hero-slice {
        display: none;
    }
    
    .hero-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
}

/* 添加内容容器 */
.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
}

#hero h1, #hero p, #hero .cta-button {
    position: relative;
    z-index: 2;
    color: #fff;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-button {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.download-icon {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}

.cta-button span {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}