/* 移动端专用样式（<768px） */
@media (max-width: 768px) {
    /* Logo与文字间距放大 */
    .card-profile-image {
        margin-bottom: 5rem !important; /* 强制Logo底部留白 */
    }
    
    /* 统计文字尺寸缩小，避免溢出 */
    .stat-item .heading {
        font-size: 1.2rem !important;
    }
    .stat-item .description {
        font-size: 0.8rem !important;
    }
    
    /* 防止统计项换行重叠 */
    .card-profile-stats {
        flex-wrap: nowrap !important; /* 禁止换行 */
        overflow-x: auto !important;  /* 横向溢出时可滚动 */
        padding: 0 10px !important;   /* 左右内边距，避免贴边 */
    }
    
    /* 隐藏滚动条（可选） */
    .card-profile-stats::-webkit-scrollbar {
        display: none;
    }
}

/* 大屏幕样式修正（≥768px） */
@media (min-width: 768px) {
    /* 恢复原有布局：Logo居中，统计项在右侧 */
    .row.justify-content-center {
        align-items: center !important; /* 垂直居中对齐 */
    }
    .card-profile-image {
        margin-bottom: 3.2rem !important; /* 取消大屏幕Logo底部间距 */
    }
    .col-12:nth-child(2) { /* 统计数据列 */
        order: 1 !important; /* 大屏幕时统计项居右 */
        text-align: right !important;
    }
}

/* 激活码弹窗样式 */
.activation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* 默认隐藏，仅在未激活时显示 */
    justify-content: center;
    align-items: center;
    z-index: 99999; /* 确保弹窗在最上层 */
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 320px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 二维码容器样式（已存在） */
.qr-code-container {
    margin: 0 auto 20px;
    width: 180px; /* 固定容器宽度 */
    height: 180px; /* 固定容器高度 */
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding: 10px; /* 容器内边距 */
    box-sizing: border-box; /* 确保padding不影响容器总尺寸 */
}

.qr-code {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px; /* 二维码内边距 */
    box-sizing: border-box;
}

/* 关键：控制实际二维码图片大小 */
.qr-code-img {
    max-width: 100%; /* 图片宽度不超过容器 */
    max-height: 100%; /* 图片高度不超过容器 */
    object-fit: contain; /* 保持图片比例，不拉伸 */
    display: block; /* 去除图片底部间隙 */
}

/* 二维码占位符样式（仅备用，实际使用图片时可删除） */
.qr-code-placeholder {
    width: 100%;
    height: 100%;
    background-color: #333;
    position: relative;
}

/* 二维码占位符样式（实际使用时替换为图片） */
.qr-code-placeholder::before,
.qr-code-placeholder::after {
    content: '';
    position: absolute;
    background-color: #fff;
}

.qr-code-placeholder::before {
    width: 40px;
    height: 40px;
    top: 0;
    left: 0;
}

.qr-code-placeholder::after {
    width: 25px;
    height: 25px;
    top: 7.5px;
    left: 7.5px;
    background-color: #333;
}

.modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.activation-form {
    margin-bottom: 20px;
}

.activation-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.validity-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.activation-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.activation-btn:hover {
    background-color: #0056b3;
}

/* 广告警告样式调整 */
.ad-warning {
  background-color: #ff4d4d;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  margin: 0 auto 25px;
  max-width: 600px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

