/* 全局样式 */
:root {
    --primary-color: #000000;
    --secondary-color: #007bff;
    --accent-color: #ff9900;
    --text-color: #000000;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --border-color: #7777774D;
    --font-primary: 'Georgia', serif;
    --font-secondary: 'Georgia', 'Open Sans', sans-serif;
    --container-max-width: 1280px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 26px;
    color: var(--text-color);
    background-color: var(--bg-primary);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 56px;
    line-height: 68px;
}

h2 {
    font-size: 48px;
    line-height: 56px;
}

h5 {
    font-size: 24px;
    line-height: 32px;
}

/* 段落样式 */
p {
    margin-bottom: 18px;
    font-family: var(--font-secondary);
    font-size: 18px;
    line-height: 26px;
}

/* 链接样式 */
a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    opacity: 0.8;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.btn-full {
    width: 100%;
}

/* 分割线 */
.divider {
    height: 1px;
    background-color: var(--primary-color);
    margin: 15px 0;
}

/* 头部样式 */
.header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    /* padding: 12px 0; */
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header > .container,
.header > .container > .header-content {
    height: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: normal;
    line-height: 26px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero-section {
    /* padding: var(--section-padding); */
    background-color: var(--bg-primary);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 80px 0;
}

.hero-text {
    flex: 1;
    max-width: 45%;
}

.hero-title {
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 50px;
    color: var(--text-color);
    max-width: 600px;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    line-height: 40px;
    color: var(--primary-color);
    display: inline;
}

.stat-label {
    font-size: 32px;
    font-weight: 900;
    line-height: 40px;
    color: var(--primary-color);
    display: inline;
}

.stat-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-color);
    margin-top: 12px;
}

.hero-image {
    flex: 1;
    text-align: center;
    max-width: 55%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 关于我们区域样式 */
.about-section {
    padding: var(--section-padding);
    background-color: var(--bg-primary);
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 14px;
    line-height: 20px;
}

.section-title {
    font-size: 48px;
    line-height: 56px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 20px;
    line-height: 32px;
    max-width: 750px;
    font-weight: 400;
}

.section-description-about {
    font-size: 18px;
    line-height: 26px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 80px;
    padding: 60px 0;
}

.about-item.reverse {
    flex-direction: row-reverse;
}

.about-content {
    flex: 1;
}

.about-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 18px;
}

.about-image {
    flex: 1;
    text-align: center;
    font-size: 0;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.team-section-subtitle {
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

.game-portfolio-section {
    height: 288px;
    background-image: url(../images/tenweb_media_sganjdwhz.webp);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;

    &::before{
        content: '';
        pointer-events: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-color: #fff0;
        background-image: linear-gradient(270deg, #00000000 0%, #0000009C 100%);
    }
}

.team-section-title {
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;

}

.team-section-description {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 20px;

}

/* 游戏区域样式 */
.games-section {
    padding: var(--section-padding);
    background-color: var(--bg-primary);
}

/* 游戏展示区域 */
.game-showcase {
    padding: var(--section-padding);
    background-color: var(--bg-primary);
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.game-tag-icon{
    width: 14px;
    fill: var(--secondary-color);
    margin-right: 8px;
}

.game-tag {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

.game-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    transition: color 0.3s ease;
    padding: 12px 0;
}

.game-link:hover {
    color: var(--primary-color);
}

.game-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px 0;
}

.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-title {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 0;
}

.home-game-content{
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

.home-game-image{
    flex: 1;
    width: 630px;
    max-width: 630px;
}

.home-game-image img{
    width: 100%;
}

.home-game-title{
    font-size: 56px;
    line-height: 68px;
    margin: 0;
    font-weight: 700;
}

.home-game-description{
    font-size: 20px;
    line-height: 28px;
}

.game-description {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0;
}

.game-buttons {
    display: flex;
    gap: 20px;
}

.game-image {
    flex: 1;
    text-align: center;
}

.game-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.terms-container{
    width: 66%;
}

.legal-section{
    padding-top: 80px;
}

.legal-section-item > *{
    margin-bottom: 18px;
}

.legal-section-item h2{
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* 列表样式 */
.legal-section-item ul {
    margin-left: 20px;
    margin-bottom: 18px;
}

.legal-section-item ul li {
    margin-bottom: 8px;
    line-height: 26px;
}

.terms-title{
    font-size: 56px;
    line-height: 68px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* 特性区域样式 */
.features-section {
    padding: var(--section-padding);
    background-color: var(--bg-primary);
}

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

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-image {
    margin-bottom: 30px;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.feature-title {
    font-size: 24px;
    line-height: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-description {
    font-size: 18px;
    line-height: 26px;
    color: var(--text-color);
}

/* 联系区域样式 */
.contact-section {
    padding: var(--section-padding);
}

/* Team Section */
.team-section {
    padding: var(--section-padding);
    background-color: var(--bg-primary);
}

.team-grid {
    width: 66%;
    min-width: 66%;
    flex-basis: 66%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
}

.team-member {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-image {
    width: 355px;
    height: 355px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 0;
}

.member-role {
    font-size: 14px;
    line-height: 20px;
}

.member-description {
    font-size: 14px;
    line-height: 20px;
    margin-top: -4px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-info {
    max-width: 750px;
}

.contact-title {
    font-size: 48px;
    line-height: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.contact-description {
    font-size: 18px;
    line-height: 26px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 400;
}

.form-title {
    font-size: 48px;
    line-height: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
}

.form-subtitle {
    font-size: 18px;
    line-height: 26px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 400;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--secondary-color);
    transition: fill 0.3s;
}

.contact-text {
    font-size: 18px;
    line-height: 26px;
    color: var(--text-color);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

/* 表单样式 */
.contact-form {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.home-contact-info,
.home-contact-form{
    flex: 1;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-family: var(--font-secondary);
}

.form-input,
.form-textarea {
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    border-radius: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 24px;
    color: var(--primary-color);
    background-color: var(--bg-primary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    color: var(--secondary-color);
    font-family: var(--font-secondary);
    font-weight: 500;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--bg-primary);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    font-size: 14px;
    line-height: 20px;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.footer-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

    .about-item {
        flex-direction: column;
        text-align: center;
    }

    .about-item.reverse {
        flex-direction: column;
    }

    .game-item {
        flex-direction: column;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }

    .section-title {
        font-size: 40px;
        line-height: 48px;
    }

    .game-title {
        font-size: 28px;
        line-height: 44px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: 20px;
    }

    .nav-menu.active .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu.active .nav-item {
        margin: 0;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .game-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu {
        flex-direction: column;
        gap: 15px;
    }

    /* Contact section responsive */
    .contact-content {
        gap: 40px;
    }

    .contact-info {
        max-width: 100%;
        text-align: center;
    }

    .contact-form {
        max-width: 100%;
    }

    .contact-title {
        font-size: 36px;
        line-height: 44px;
    }

    .form-title {
        font-size: 36px;
        line-height: 44px;
    }

    /* Team section responsive */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 动画效果 */
.animated {
    animation-duration: 1.25s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 计数器动画 */
.stat-number {
    transition: all 0.5s ease;
}

/* 图片懒加载 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}
