/* 全局样式 - 中国水墨风 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Microsoft YaHei', 'SimSun', 'KaiTi', sans-serif;
    /* 渐变背景 - 简约中国风 */
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f5f3f0; /* 备用背景色 */
    /* 渐变遮罩层 */
    position: relative;
    color: #2c2c2c;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    min-height: 100vh;
}

/* 渐变遮罩层 - 让背景图片更柔和 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(245, 242, 235, 0.75) 50%, rgba(255, 255, 255, 0.75) 50%);
    pointer-events: none;
    z-index: 0;
}

/* 水墨晕染背景效果 - 增强版 */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: inkFlow 20s ease-in-out infinite alternate;
}

@keyframes inkFlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 1;
    }
}

/* 传统装饰图案 - 云纹效果 */
.chinese-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px);
}

/* 印章效果 */
.seal {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #c41e3a;
    color: #c41e3a;
    font-family: 'KaiTi', 'SimSun', serif;
    font-weight: bold;
    transform: rotate(-5deg);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
    background: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
}

/* 传统边框装饰 */
.traditional-border {
    position: relative;
    padding: 20px;
}

.traditional-border::before,
.traditional-border::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 0, 0, 0.15);
}

.traditional-border::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.traditional-border::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* 导航栏 - 水墨风 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 240, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-family: 'Microsoft YaHei', 'SimSun', 'KaiTi', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 4px;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2c2c2c, #6b6b6b);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a1a1a;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #2c2c2c;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 标题区域 - 水墨风 */
.header-section {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
    pointer-events: none;
    transform: rotate(-15deg);
}

.header-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 30%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transform: rotate(20deg);
}

.main-title {
    font-family: 'Microsoft YaHei', 'SimSun', 'KaiTi', serif;
    font-size: 5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.05);
    letter-spacing: 8px;
    position: relative;
    z-index: 1;
    animation: inkFade 3s ease-in-out infinite alternate;
    padding: 20px 0;
}

/* 简约的标题装饰线 */
.main-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.main-title-wrapper::before,
.main-title-wrapper::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
    top: 50%;
    transform: translateY(-50%);
}

.main-title-wrapper::before {
    left: 0;
}

.main-title-wrapper::after {
    right: 0;
}

@keyframes inkFade {
    from {
        opacity: 0.9;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.05);
    }
    to {
        opacity: 1;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15), 0 0 30px rgba(0, 0, 0, 0.08);
    }
}

.subtitle {
    font-size: 1.4rem;
    color: #6b6b6b;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 4px;
    font-style: italic;
}

/* 图片轮播区域 - 水墨风 */
.carousel-section {
    padding: 10px 0;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 4px;
    background: rgba(255, 255, 255, 0.5);
}

/* 传统边框装饰 - 轮播容器 */
.carousel-container::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.99) contrast(1.05);
    transition: filter 0.3s ease;
}

.carousel-slide:hover img {
    filter: brightness(1) contrast(1.1);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.slide-caption {
    position: absolute;
    top: 30px;
    left: 30px;
    text-align: left;
    z-index: 3;
    color: #faf9f6;
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 4px;
    font-family: 'Microsoft YaHei', 'SimSun', 'KaiTi', serif;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* 轮播控制按钮 */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    background: rgba(138, 43, 226, 0.3);
    border: 2px solid #8a2be2;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(138, 43, 226, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 指示器 - 水墨风 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.3);
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.indicator.active {
    background: #2c2c2c;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
    border-color: #2c2c2c;
}

.indicator.active::before {
    opacity: 1;
    background: #2c2c2c;
}

.indicator:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

/* 自动播放控制 */
.autoplay-control {
    text-align: center;
    margin-top: 20px;
}

.autoplay-toggle {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8a2be2;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.autoplay-toggle:hover {
    background: rgba(138, 43, 226, 0.4);
}

/* 内容区域通用样式 */
.content-section {
    padding: 60px 0;
    min-height: calc(100vh - 80px);
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0.5;
}

.content-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0.5;
}

.section-title {
    font-family: 'Microsoft YaHei', 'SimSun', 'KaiTi', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    letter-spacing: 4px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 20px 0 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 2px;
}

/* 游戏卡片网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-family: 'Microsoft YaHei', 'SimSun', serif;
}

.game-card p {
    color: #6b6b6b;
    font-size: 0.9rem;
}

/* 社区页面样式 */
.community-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
}

.post-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c2c2c, #6b6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #faf9f6;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.post-author {
    font-weight: 600;
    color: #1a1a1a;
}

.post-date {
    color: #8a8a8a;
    font-size: 0.9rem;
}

.post-content {
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-action-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #6b6b6b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.post-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.5s ease;
}

.post-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.3);
}

.post-action-btn:hover::before {
    left: 100%;
}

/* 公司详情页样式 */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    font-family: 'Microsoft YaHei', 'SimSun', 'KaiTi', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: 3px;
    position: relative;
    padding: 10px 0 15px 0;
}

.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent);
}

.about-section p {
    color: #4a4a4a;
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.team-member:hover {
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c2c2c, #6b6b6b);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #faf9f6;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-family: 'Microsoft YaHei', 'SimSun', serif;
}

.team-member p {
    color: #6b6b6b;
    font-size: 0.9rem;
}

/* 传统装饰元素 - 页脚装饰 */
.footer-decoration {
    text-align: center;
    padding: 20px 0;
    color: #8a8a8a;
    font-size: 0.9rem;
    position: relative;
}

.footer-decoration::before,
.footer-decoration::after {
    content: '◆';
    color: #c41e3a;
    opacity: 0.3;
    margin: 0 10px;
}

/* 毛笔笔触效果 */
.brush-stroke {
    position: relative;
    display: inline-block;
}

.brush-stroke::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.3), transparent);
    border-radius: 50%;
    opacity: 0.6;
}

/* 传统分隔线 */
.divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    display: inline-block;
    padding: 0 20px;
    color: #8a8a8a;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .carousel-container {
        border-radius: 10px;
    }
    
    .slide-caption {
        font-size: 1.2rem;
        top: 20px;
        left: 20px;
        padding: 6px 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .games-grid,
    .community-posts,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

