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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bd9;
}

.btn-secondary {
    background-color: transparent;
    color: #4a6cf7;
    border: 2px solid #4a6cf7;
}

.btn-secondary:hover {
    background-color: #4a6cf7;
    color: white;
}

/* 头部样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    color: #4a6cf7;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: #666;
}

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

.nav li {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a6cf7;
    border-bottom-color: #4a6cf7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 140px);
}

.tab-content {
    display: none;
    padding: 40px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50">🎮</text></svg>') no-repeat;
    background-size: contain;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="50">🌟</text></svg>') no-repeat;
    background-size: contain;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.7) 0%, rgba(124, 58, 237, 0.7) 100%);
    z-index: 1;
    border-radius: 0 0 50% 50% / 0 0 20% 20%;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.features {
    padding: 80px 0;
    background-color: white;
}

.features h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 108, 247, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74, 108, 247, 0.2);
}

.feature-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover .feature-image::after {
    opacity: 1;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-image img {
    transform: scale(1.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 关于我们页面样式 */
.about-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

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

.timeline h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 100px;
    top: 50px;
    height: calc(100% + 30px);
    width: 2px;
    background-color: #eaeaea;
}

.timeline-year {
    flex: 0 0 100px;
    font-weight: 700;
    color: #4a6cf7;
    font-size: 18px;
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
}

.timeline-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.timeline-content p {
    color: #666;
}

/* 公司愿景页面样式 */
.vision-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.vision-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vision-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.vision-image:hover img {
    transform: scale(1.02);
}

.vision-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.vision-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.values h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.value-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-item:hover .value-image img {
    transform: scale(1.05);
}

.value-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4a6cf7;
}

.value-item p {
    color: #666;
}

.motto {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.motto blockquote {
    font-size: 20px;
    font-style: italic;
    color: #555;
    padding: 20px;
    border-left: 4px solid #4a6cf7;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* 联系我们页面样式 */
.contact-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.contact-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.02);
}

.contact-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.contact-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

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

.contact-content > p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #4a6cf7;
}

.contact-detail {
    margin-bottom: 10px;
    color: #555;
}

.contact-item ul {
    list-style-type: none;
}

.contact-item li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.contact-item li::before {
    content: '•';
    color: #4a6cf7;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #4a6cf7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #4a6cf7;
}

.footer-logo p {
    color: #bbb;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 8px;
    color: #bbb;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bbb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav li {
        margin: 0;
        margin-bottom: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-item:not(:last-child)::after {
        display: none;
    }
    
    .timeline-year {
        margin-bottom: 10px;
    }
    
    .timeline-content {
        padding-left: 0;
    }
    
    .about-header,
    .vision-header,
    .contact-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-image,
    .vision-image,
    .contact-image {
        order: -1;
    }
}