@font-face {
    font-family: 'adobe';
    src: url('font/Adobe\ 黑体\ Std\ R.otf');
}
@font-face {
    font-family: 'FZHei';
    src: url('font/FZHei-B01S.ttf');
}

/* 内容模块样式 - 放在CSS前部，确保优先级 */
.main-content, .about-section, .company-environment, .privacy-content {
    background-color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}


*,
body {
   font-family: adobe, sans-serif;
    margin: 0;
    padding: 0;
    color: #000000;
    box-sizing: border-box;
}

body {
    background-color: #F5F4F2;
}

body,
html {
    font-family: adobe, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F4F2;
    color: #000000;
}

#particleCanvas {
    position: fixed;   
    background-color: #6AEAD3;
  }
canvas {
  display: block;
}
ul, li {
    font-family: adobe, sans-serif;
    list-style: none;
}
.current-page{
    height: 0.7rem;
    position: relative;
}
.current-page::after {
    content: '';
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translatex(-50%);
    width: 100%;
    height: 3px;
    background-color: #000000;
    /* border-radius: 50%; */   
}
header img{
	width: auto;
    height: auto;
    max-width: 100%;
}
header {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

.left-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.left-nav img {
    width: auto;
    max-width: 320px;
    height: 40px;
    object-fit: contain;
}

.right-nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item.current {
    position: relative;
    border-bottom: 4px solid #000;
}

.nav-item.current img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.pet-elf-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.pet-elf-logo img {
    height: 55px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 8px;
}

.pet-elf-logo span {
    font-weight: bold;
    color: #000000;
}

header ul{
    align-items: center;
	display: flex;
	font-size: 0.31rem;
}
header ul li{
	margin-right: 0.6rem;
}
header ul li a{
	color: #000000;
	text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.top-company{
   
    height: 10.09rem;
    background: url('./img/baground.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}
.company-info-box{
    padding-top: 5rem;
     display: flex;
     gap: 0.2rem;
    justify-content: center;
    align-items: center;
}
.company-logo{
    width:5.08rem;
    height: 3.62rem;
}
.company-info-img{

    height: 0.78rem;
}
.company-info{
    width: 6.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.company-info p{
    line-height: 0.4rem;
    font-weight: 600;
    font-size: 0.25rem;
    color: #000000;

}
.summer-logo-box{
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.summer-logo{
    margin: 0.64rem 0;
    width: 8.9rem;
    height: 0.8rem;
}
.game-logo{
    width: 3.42rem;
    height: 3.42rem;
}
.summer-logo-box p{
   margin: 0.64rem 0 0.3rem;
    font-family: FZHei-B01S;
    font-weight: 500;
    font-size: 0.36rem;
    color: #004236;
    line-height: 0.40rem;
    padding: 0 1.2rem;
}

.footer {
    width: 100%;
    background-color: #ffffff;
    padding: 30px 0;
    color: #000000;

    border-top: 1px solid #eeeeee;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 22px;
}

.contact-info img {
    width: 0.5rem;
    height: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: #000000;
   
    font-size: 22px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #666666;
}

.footer-links .separator {
    color: #000000;
    font-size: 18px;
}

/* Main content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 30px;
}

.game-title-section {
    flex: 2;
    padding-right: 20px;
    max-width: 650px;
}

.game-title-section img {
    margin: 0 auto;
    max-width: 50%;
    height: auto;
    margin-bottom: 15px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.game-title-section h1 {
    font-size: 36px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.game-title-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f0c41b;
}

.game-title-section p {
    font-size: 27px;
    color: #000;
    line-height: 1.6;
}

.game-image {
    flex: 1;
    text-align: right;
    max-width: 250px;
}

.game-image img {
    max-width: 100%;
    border-radius: 15px;
  
}

/* About section */
.about-section {
    background-color: #ffffff;
    color: #000000;
    padding: 40px;
    border-radius: 10px;
  
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.about-section h2 {
    font-size: 40px;
    text-align: center;
    position: relative;
    display: inline-block;
}
.about-section h4 {
    font-size: 28px;
    font-weight: 600;
}


.about-section p {
    font-size: 27px;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}



.company-environment h2 {
    font-size: 40px;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.environment-images {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.env-image {
    flex: 1;
}

.env-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 15px;
    }
    
    .game-title-section {
        padding-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .game-title-section img {
    margin: 0 auto;
        max-width: 50%;
        height: auto;
        margin-bottom: 10px;
    }
    
    .environment-images {
        flex-direction: column;
    }
    
    .game-image {
        max-width: 250px;
        text-align: center;
        margin: 0 auto;
    }
    
    .container {
        padding: 15px;
    }
    
    .about-section,
    .privacy-content,
    .company-environment {
        padding: 15px;
    }
    
    .company-environment h2 {
        font-size: 28px;
    }
    
    .game-title-section p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    .contact-info {
        font-size: 14px;
    }
    
    .left-nav {
        flex: none;
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    header nav {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
        gap: 15px;
    }
    
    .left-nav {
        width: 100%;
        justify-content: center;
        height: 40px;
    }
    
    .left-nav img {
        height: 30px;
        max-width: 240px;
    }
    
    .right-nav {
        width: 100%;
        justify-content: center;
        height: 40px;
        gap: 15px;
    }
    
    .nav-item.current {
        height: 40px;
        border-bottom: 3px solid #000;
    }
    
    .nav-item.current img {
        height: 20px;
    }
    
    .pet-elf-logo {
        height: 40px;
    }
    
    .pet-elf-logo img {
        height: 45px;
        max-width: 220px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header nav {
        flex-direction: column;
        align-items: center;
        padding: 8px 10px;
        gap: 10px;
    }
    
    .left-nav {
        height: 35px;
    }
    
    .left-nav img {
        height: 25px;
        max-width: 200px;
    }
    
    .right-nav {
        height: 35px;
        gap: 12px;
    }
    
    .nav-item.current {
        height: 35px;
    }
    
    .nav-item.current img {
        height: 18px;
    }
    
    .pet-elf-logo {
        height: 35px;
    }
    
    .pet-elf-logo img {
        height: 35px;
        max-width: 180px;
    }
    
    .game-title-section {
        padding-right: 0;
    }
    
    .game-title-section img {
        max-width: 50%;
        height: auto;
        margin-bottom: 10px;
    }
    
    .game-title-section p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .company-environment h2 {
        font-size: 24px;
    }
    
    .about-section h2 {
        font-size: 20px;
    }
    
    .about-section p {
        font-size: 14px;
    }
    
    .left-nav img {
        max-width: 180px;
    }
    
    .current img {
        max-width: 60px;
    }
    
    .pet-elf-logo img {
        max-width: 100px;
    }
    
    .right-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

/* Add root font-size responsive adjustment for rem units */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    /* Adjust navigation for very small screens */
    .right-nav {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .nav-item.current {
        margin-bottom: 5px;
    }
}

/* Add viewport-based units for flexible sizes */
@media (max-width: 768px) {
    .game-title-section h1 {
        font-size: 6vw;
    }
    
    .company-environment h2 {
        font-size: 6vw;
    }
}

/* Fix header for mobile */
@media (max-width: 480px) {
    header nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    .left-nav {
        margin-bottom: 10px;
    }
    
    .right-nav {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
    }
}

/* Privacy content styles */

.privacy-content h1,
.privacy-content h2,
.privacy-content h3 {
    color: #000000;
    margin-bottom: 20px;
}

/* 解决背景色继承问题 */
.main-content *, .about-section *, .company-environment *, .privacy-content * {
    background-color: transparent;
}

/* 修复可能继承背景色的问题 */
.game-title-section p, 
.about-section p,
.about-section h2,
.about-section h4,
.company-environment h2,
.environment-images,
.env-image,
.game-image {
    background-color: transparent;
}

.game-title-section img {
    max-width: 50%;
    height: auto;
    margin-bottom: 15px;
}

@media (max-width: 1200px) {
    .pet-elf-logo img {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .pet-elf-logo img {
        max-width: 200px;
    }
}

@media (max-width: 375px) {
    .pet-elf-logo img {
        max-width: 100px;
    }
}

#starCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #F5F4F2;
}
