﻿/* --- 全局重置 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #050b1f; /* 深空蓝背景 */
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #fff;
    padding: 20px;
}

/* --- 布局容器 --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 880px 1fr; /* 左侧固定宽，右侧自适应 */
    gap: 20px;
}

/* 左侧区域：2x2 网格对齐 */
.main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --- 通用卡片样式 --- */
.card {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 30px 25px;
    height: 240px; /* 统一高度，视觉对称 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); } /* 增加鼠标悬停微动效 */

/* --- 4大平台独立背景渐变 --- */
.bg-jy-main { background: linear-gradient(90deg, #0052d4 0%, #4364f7 100%); }
.bg-ky { background: linear-gradient(110deg, #5b46e6 0%, #7c6bf7 100%); }
.bg-mk { background: linear-gradient(110deg, #7b2ff7 0%, #9b5cf7 100%); }
.bg-ayx { background: linear-gradient(135deg, #1f2937 0%, #374151 100%); }

/* --- 装饰性素材定位 --- */
.card-img-bg {
    position: absolute;
    right: 5px; 
    bottom: 0; 
    width: auto;  
    height: auto; 
    max-height: 95%; 
    max-width: 55%;  
    z-index: 1;
    pointer-events: none;
    opacity: 1; 
}

/* --- 字体排版 --- */
h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; z-index: 2; display: flex; align-items: center; }
h3 { font-size: 22px; font-weight: 800; margin-bottom: 5px; z-index: 2; }
p.desc { font-size: 14px; opacity: 0.9; margin-bottom: 5px; z-index: 2; line-height: 1.5; }
p.sub-desc { font-size: 12px; opacity: 0.7; z-index: 2; margin-bottom: 20px; }

/* --- 黄金按钮 --- */
.btn-gold {
    background: linear-gradient(180deg, #fce306 0%, #f7c304 100%);
    border: none;
    color: #4a3400;
    font-weight: 900;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn-gold:active { transform: scale(0.96); box-shadow: 0 2px 3px rgba(0,0,0,0.2); }
.btn-full { width: 80%; padding: 12px 0; font-size: 15px; margin-top: auto; text-align: center;}

/* --- 侧边栏 --- */
.sidebar {
    background: linear-gradient(180deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bonus-table {
    width: 100%;
    margin: 20px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}
.bonus-table th { color: #fce306; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.bonus-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.highlight-num { color: #fce306; font-weight: bold; font-size: 16px; }

/* --- 侧边栏气泡样式 --- */
.sidebar-logos {
    display: flex;
    justify-content: center;
    gap: 8px; 
    margin-bottom: 15px; 
    flex-wrap: wrap; /* 空间不足时自动换行 */
}

.logo-bubble {
    display: inline-block;
    padding: 4px 12px;       
    border-radius: 20px;     
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);  
    border: 1px solid rgba(255,255,255,0.2); 
    cursor: default;
    transition: transform 0.2s; 
}
.logo-bubble:hover { transform: translateY(-2px); }

.bubble-blue { background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%); }
.bubble-purple { background: linear-gradient(135deg, #614385 0%, #516395 100%); }
.bubble-pink { background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%); }
.bubble-mk-color { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); } /* 新增 MK 的气泡色 */

/* --- 手机端适配 --- */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; gap: 15px;}
    .main-content { grid-template-columns: 1fr; gap: 15px;}
    .card { height: auto; min-height: 200px; padding: 25px 20px; }
    
    .card-img-bg { 
        opacity: 1;        
        width: auto;       
        max-width: 150px;  
        height: auto; 
    } 
}

/* --- 左侧区域：修复拉伸空隙并支持横跨 --- */
.main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start; /* ✅ 核心修复：防止卡片被强行上下拉伸产生诡异间隙 */
}

/* --- 新增：代练横宽卡片 --- */
.card-wide {
    grid-column: span 2; /* 横跨两个网格列 */
    height: auto;
    min-height: 140px;
    flex-direction: row; /* 横向排列 */
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
}

.bg-boosting {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); /* 电竞深紫色调 */
    border: 1px solid rgba(255,255,255,0.08);
}

.boosting-info { flex: 1; }
.boosting-action { text-align: center; margin-left: 20px; }

/* 标签行样式更新 */
.tags-row { display: flex; gap: 8px; margin: 12px 0 0 0; z-index: 2; flex-wrap: wrap;}
.tag {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    color: #fff;
}

/* --- 手机端适配调整 --- */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; gap: 15px;}
    .main-content { grid-template-columns: 1fr; gap: 15px;}
    .card { height: auto; min-height: 200px; padding: 25px 20px; }
    
    /* 手机端代练卡片变为单列竖向排版 */
    .card-wide {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .boosting-action { margin-left: 0; width: 100%; text-align: left;}
    .boosting-action .btn-gold { width: 100%; text-align: center;}
    
    .card-img-bg { 
        opacity: 1;        
        width: auto;       
        max-width: 150px;  
        height: auto; 
    } 
}

/* --- 联系方式 (QQ & 微信) 专属展示样式 --- */
.contact-row { 
    display: flex; 
    gap: 15px; 
    margin: 15px 0 0 0; 
    z-index: 2; 
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(0, 0, 0, 0.2); /* 半透明深色底，凸显文字 */
    padding: 6px 18px;
    border-radius: 8px; /* 方形微圆角，比之前纯椭圆更正式 */
    font-size: 18px;
    font-weight: bold;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.qq-item {
    color: #00d2ff; /* 专属 QQ 亮蓝色 */
    border-left: 3px solid #00d2ff; /* 左侧高亮色带 */
}

.wx-item {
    color: #07c160; /* 专属 微信 亮绿色 */
    border-left: 3px solid #07c160; /* 左侧高亮色带 */
}