/* ==========================================
   1. 基础重置与响应式根设定
   ========================================== */
* { 
    box-sizing: border-box; 
}
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: #f5f7fa; 
    margin: 0; 
    padding: 0 0 20px 0; /* 顶部导航已吸顶，上边距归零 */
    color: #333; 
    line-height: 1.6;
    overflow-x: hidden; /* 防止全局水平滚动条 */
}

/* ==========================================
   2. 营销导航头 (marketing-header) - 白色背景样式
   ========================================== */
.marketing-header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* 白色质感毛玻璃背景 */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eef2f5; /* 浅灰色优雅边框 */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 柔和阴影 */
}

.marketing-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

/* Logo 炫彩流光样式 */
.marketing-header .brand-logo,.brand-game {
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-game {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.marketing-header .brand-logo a,.brand-game a {
    text-decoration: none;
    background: linear-gradient(
        120deg, 
        #2563eb 0%, 
        #3b82f6 20%, 
        #06b6d4 40%, 
        #ffffff 50%, /* 核心闪光高亮带 */
        #06b6d4 60%, 
        #3b82f6 80%, 
        #2563eb 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLight 3s linear infinite;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marketing-header .brand-logo a:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

@keyframes shineLight {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* PC 端导航菜单 */
.marketing-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.marketing-nav a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.25s ease-in-out;
}

.marketing-nav a:hover {
    color: #16e6a6;
    background-color: #f1f5f9;
    transform: translateY(-1px);
}

/* 导航栏“商务联系”蓝色胶囊按钮样式 */
.marketing-nav a.btn-contact {
    background-color: #2563eb;
    color: #ffffff !important;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
}

.marketing-nav a.btn-contact:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* 汉堡菜单按钮（PC 端隐藏） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 30px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #334155;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   3. 主容器布局与头部介绍区
   ========================================== */
.main-container { 
    max-width: 1200px; 
    width: 100%;
    margin: 20px auto 0 auto; 
    background: #fff; 
    padding: 25px 15px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    text-align: left; 
}

.header-section { 
    text-align: center; 
    margin-bottom: 25px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 20px; 
}

.header-section h1 { 
    font-size: clamp(1.4rem, 3.5vw, 2.1rem); 
    color: #2c3e50; 
    margin: 0 0 14px 0; 
    font-weight: 700;
    word-break: break-word;
    line-height: 1.3;
}

.intro-text { 
    color: #555; 
    font-size: 0.95rem; 
    line-height: 1.8; 
    max-width: 980px; 
    margin: 0 auto; 
    text-align: left;
}

/* 游戏类型标签样式 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.tag-item {
    background: #eef5fe;
    color: #3498db;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #d6e4f8;
}

/* 系统错误提示盒 */
.error-alert { 
    background-color: #fff0f0; 
    border: 1px solid #ffcccc; 
    color: #cc0000; 
    padding: 12px 15px; 
    border-radius: 6px; 
    margin-bottom: 20px; 
    font-size: 0.9rem;
}

/* ==========================================
   4. 核心矩阵自适应网格与模块样式
   ========================================== */
.matrix-grid { 
    display: grid; 
    grid-template-columns: minmax(0, 1fr); 
    gap: 20px; 
    margin-top: 25px; 
    width: 100%;
}

.matrix-block { 
    background: #fdfdfd; 
    border: 1px solid #eef2f5; 
    border-radius: 10px; 
    padding: 20px; 
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.matrix-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* H5 游戏矩阵专属样式 (Game Block) */
.matrix-block.block-game {
    border-top: 4px solid #ff4757;
}

/* 营销/研发矩阵专属样式 (Marketing Block) */
.matrix-block.block-marketing {
    border-top: 4px solid #1e90ff;
}

.matrix-block h2 { 
    font-size: 1.2rem; 
    color: #34495e; 
    border-left: 4px solid #3498db; 
    padding-left: 10px; 
    margin-top: 0; 
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 8px;
}

.block-title-icon {
    font-size: 1.25rem;
    margin-right: 4px;
}

.site-count { 
    font-size: 0.85rem; 
    color: #95a5a6; 
    font-weight: normal; 
}

/* ==========================================
   5. 矩阵站点列表与子元素细节处理 (Flex 响应式防挤压)
   ========================================== */
.site-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    max-height: 500px; 
    overflow-y: auto; 
    border: 1px solid #f0f0f0; 
    border-radius: 6px; 
    background: #fff; 
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.site-list li { 
    border-bottom: 1px solid #f8f9fa; 
    width: 100%;
}

.site-list li:last-child { 
    border-bottom: none; 
}

.site-list a { 
    display: flex;
    align-items: center;
    padding: 12px 15px; 
    color: #3498db; 
    text-decoration: none; 
    font-size: 0.9rem; 
    line-height: 1.5;
    transition: background 0.2s, color 0.2s; 
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap; 
}

.site-list a:hover { 
    background-color: #f4f9fd; 
    color: #2980b9; 
}

.block-marketing .site-list a:hover {
    color: #1e90ff;
}

/* 列表内部行内元素 Flex 排版调优 */
.site-icon {
    margin-right: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* 中文标题：优先获得剩余宽度，超出显示省略号 */
.title-text {
    color: #555555;
    flex: 1;
    min-width: 0; /* 极其重要：允许 Flex 子项缩小，激活 text-overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分隔符：固定宽度不挤压 */
.sep {
    margin: 0 8px;
    color: #cccccc;
    flex-shrink: 0;
}

/* 长二级域名：限制最大宽度，防止挤压标题 */
.domain-text {
    font-weight: 500;
    color: #888888;
    max-width: 220px; /* 控制域名的显示上限 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================
   6. 页脚区域
   ========================================== */
.footer-section {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    padding: 25px 0;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 40px;
}

p{
    margin: 0px!important;
}

.footer-section a,.footer-section p a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
}

.footer-section a:hover,.footer-section p a:hover {
    color: #0066cc;
}

/* ==========================================
   7. 移动端专门响应式处理 (< 768px)
   ========================================== */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .marketing-nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 15px 20px;
        gap: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        border-bottom: 1px solid #eef2f5;
    }

    .marketing-nav.active {
        display: flex;
    }

    .marketing-nav a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        background-color: #f8fafc;
        border: 1px solid #f1f5f9;
        color: #334155;
    }

    .marketing-nav a.btn-contact {
        display: inline-block;
        width: auto;
        margin: 4px auto;
        padding: 8px 30px;
    }

    /* 移动端域名宽度适度缩小，保障中文标题展示 */
    .domain-text {
        max-width: 120px;
    }
}

/* ==========================================
   8. 平板与桌面屏幕适配 (>= 768px)
   ========================================== */
@media (min-width: 768px) {
    body { 
        padding: 0 0 30px 0; 
    }
    .main-container { 
        padding: 35px; 
        margin-top: 30px;
    }
    .matrix-grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
        gap: 25px; 
    }
    
    /* 中等屏幕下适当压缩域名最大宽度 */
    .domain-text {
        max-width: 160px;
    }
}

@media (min-width: 1024px) {
    .main-container { 
        padding: 40px; 
    }
    .matrix-grid { 
        gap: 30px; 
    }
    
    /* 大屏恢复域名宽度上限 */
    .domain-text {
        max-width: 220px;
    }
}