/*
Theme Name: 糖果卖场主题（最终版）
Theme URI: https://your-site.com
Description: 响应式糖果卖场主题，支持首页+转换率统计页，带QQ悬浮按钮
Author: Your Name
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =全局基础样式
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Arial", sans-serif;
    min-height: 100vh;
    position: relative;
}

/* =全屏背景通用样式（首页+转换页共用）
-------------------------------------------------------------- */
.fullscreen-bg-container {
    position: fixed; /* 固定背景，防止滚动时偏移 */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* 背景在最下层 */
    overflow: hidden;
}
.fullscreen-bg {
    width: 100%;
    height: 100%;
    background-size: cover !important; /* 强制覆盖容器，保持比例 */
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
.default-pink-bg {
    background: linear-gradient(180deg, #fff3e6 0%, #f0d9e7 100%); /* 默认粉色渐变 */
}

/* =首页核心组件样式
-------------------------------------------------------------- */
/* 1. 卖场入口按钮（粉色底+黑字） */
.cta-button-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.cta-btn-wrapper {
    background-color: rgba(255, 105, 180, 0.9); /* 粉色背景 */
    border-radius: 8px;
    padding: 15px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.cta-btn {
    color: #000; /* 黑色文字 */
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.cta-btn-wrapper:hover {
    transform: scale(1.05);
    background-color: rgba(255, 105, 180, 1); /* 鼠标悬停加深颜色 */
}
.cta-btn-wrapper.disabled {
    background-color: rgba(255, 105, 180, 0.6);
    cursor: not-allowed;
    transform: none;
}

/* 2. 右侧QQ悬浮按钮 */
.floating-qq {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20; /* 高于背景和按钮 */
    transition: all 0.3s ease;
}
.floating-qq img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.floating-qq:hover {
    transform: translateY(-50%) scale(1.1);
}

/* 3. 底部版权栏 */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    color: #666;
    font-size: 14px;
    background-color: rgba(255,255,255,0.7); /* 半透明背景，避免遮挡内容 */
    z-index: 10;
}

/* =转换率页面样式
-------------------------------------------------------------- */
.conv-page-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding: 40px 20px 80px; /* 底部留空，避免被版权栏遮挡 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.conv-title {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    text-align: center;
}
.stats-container {
    width: 100%;
    max-width: 1200px;
    min-height: 400px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* 转换页内容样式 */
.conv-custom-content {
    color: #333;
    line-height: 1.6;
}
.conv-custom-content h2, .conv-custom-content h3 {
    margin: 1.5rem 0 1rem;
    color: #ff69b4;
}
.conv-custom-content p {
    margin-bottom: 1rem;
}
.conv-custom-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}
.conv-custom-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.conv-custom-content table th,
.conv-custom-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}
.conv-custom-content table th {
    background-color: #f8e1eb;
}

/* =响应式适配（手机端优化）
-------------------------------------------------------------- */
@media (max-width: 768px) {
    /* 按钮适配 */
    .cta-btn-wrapper {
        padding: 12px 24px;
    }
    .cta-btn {
        font-size: 16px;
    }
    /* QQ图标适配 */
    .floating-qq img {
        width: 50px;
        height: 50px;
    }
    /* 底部文字适配 */
    .site-footer {
        font-size: 12px;
    }
    /* 转换页标题适配 */
    .conv-title {
        font-size: 2rem;
    }
    /* 统计容器适配 */
    .stats-container {
        padding: 20px;
        min-height: 300px;
    }
}
