﻿/* --- 全局重置 --- */
* { 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: 15px;
}

/* 左侧区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.row-top { height: 240px; }
.row-middle { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    height: 200px;
}
.row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    height: 160px;
}

/* --- 通用卡片样式 --- */
.card {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- 背景渐变 --- */
.bg-jy-main { background: linear-gradient(90deg, #0052d4 0%, #4364f7 100%); }
.bg-ky { background: linear-gradient(110deg, #5b46e6 0%, #7c6bf7 100%); }
.bg-hth { background: linear-gradient(110deg, #7b2ff7 0%, #9b5cf7 100%); }
.bg-download { background: linear-gradient(to bottom, #2daae1, #1a8fd0); text-align: center; align-items: center; }
.bg-sidebar { background: linear-gradient(to bottom, #00c6ff, #0072ff); }

/* --- 装饰性素材定位 --- */

.card-img-bg {
    position: absolute;
    right: 5px;   /* 靠右稍微留一点点缝隙 */
    bottom: 0;    /* 紧贴底部 */
    
    /* ✅ 关键修复：让图片自己决定大小，但不能超过卡片 */
    width: auto;  
    height: auto; 
    
    /* 🔒 安全锁1：高度最多只能占卡片的 95%，防止顶破头 */
    max-height: 95%; 
    
    /* 🔒 安全锁2：宽度最多只占一半，防止挡住左边的文字 */
    max-width: 55%;  

    z-index: 1;
    pointer-events: none;
    opacity: 1;   /* 保持清晰不透明 */
}

/* --- 字体排版 --- */
h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 10px;}
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: 15px; }

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

/* --- 黄金按钮 --- */
.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;
}
.btn-gold:active { transform: scale(0.98); }
.btn-full { width: 80%; padding: 8px 0; font-size: 14px; margin-top: auto; }

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

.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: 13px;
}
.bonus-table th { color: #fce306; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.bonus-table td { padding: 10px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.highlight-num { color: #fce306; font-weight: bold; font-size: 16px; }
/* --- 手机端适配 --- */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    .row-top { height: auto; min-height: 200px; }
    .row-middle { grid-template-columns: 1fr; height: auto; }
    .row-bottom { grid-template-columns: 1fr; height: auto; }
    
    /* 🔴 修改点 3：手机端也要改成不透明，并且防止拉伸 */
    .card-img-bg { 
        opacity: 1;        /* 原来是 0.3，一定要改成 1 */
        width: auto;       /* 自动宽度 */
        max-width: 150px;  /* 限制最大宽度，防止太大挡住字 */
        height: auto; 
    } 
}

/* --- 侧边栏气泡样式 --- */
.sidebar-logos {
    display: flex;
    justify-content: center; /* 居中排列 */
    gap: 8px; /* 气泡之间的间距 */
    margin-bottom: 15px; /* 距离下方文字的距离 */
}

.logo-bubble {
    display: inline-block;
    padding: 4px 12px;       /* 内边距：上下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);
}

/* --- 三种不同的气泡颜色 --- */
/* Nine - 科技蓝 */
.bubble-blue {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}
/* K8 - 贵族紫 */
.bubble-purple {
    background: linear-gradient(135deg, #bdc3c7 0%, #2c3e50 100%); /* 或者用深色系: linear-gradient(135deg, #667eea 0%, #764ba2 100%) */
    background: linear-gradient(135deg, #614385 0%, #516395 100%);
}
/* HTH - 活力粉/红 */
.bubble-pink {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}