/* ==========================================
   移动端自适应核心初始化
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    background-color: #07080b; /* 统一的外层环境底色（黑夜幕深黑底色） */
    font-family: 'Raleway', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ==========================================
   页面垂直分块 Section 排版 
   ========================================== */
.card-section {
    width: 100%;
    /* 1. 删掉了 min-height: 100vh; */
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 2. 修改这里的 padding 参数 */
    /* 20px 是卡片距离上下的间距（可根据需要调大或调小），15px 是两侧间距 */
    padding: 20px 15px; 
    
    background: #07080b; /* 环境底色 */
}

/* 电脑端大屏幕（PC模式）下的卡片居中流控限制 */
@media screen and (min-width: 768px) {
    .card-section {
        max-width: 450px;
        margin: 0 auto;
        border-left: 1px solid rgba(255, 255, 255, 0.03);
        border-right: 1px solid rgba(255, 255, 255, 0.03);
    }
}

/* ==========================================
   【核心修正】由 666.webp 代替原来的黑色半透明第二层
   ========================================== */
.card-container {
    width: 100%;
    max-width: 450px;
    
    /* 直接将 666.webp 贴到文字和圆角图片的底盘（代替第二层黑底） */
    background-image: url('666.webp');
    background-repeat: repeat;
    background-position: center top;
    background-size: cover; /* 自适应铺满单体卡片盘 */
    
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 卡片内部再套一层微弱黑调，确保 555 图片上的白色和金色文字具有顶级可读性，不刺眼 */
.card-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 12, 16, 0.45); /* 仅 45% 的极弱遮罩，用于锁住对比度 */
    border-radius: 19px;
    z-index: 1;
}

/* 确保卡片内部所有真实的图文元素浮在滤镜遮罩之上 */
.card-media, .card-text-content, .btn-box {
    position: relative;
    z-index: 2;
}

/* ==========================================
   图文混排排版与圆角宣传图组件 
   ========================================== */
.card-media {
    width: 100%;
    margin-bottom: 22px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.card-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-text-content {
    width: 100%;
    text-align: center;
}

/* ==========================================
   精准段落空行系统 (.p-group)
   ========================================== */
.p-group {
    width: 100%;
    margin-bottom: 24px; /* 严格按照您的原始文本空行，产生段落间距 */
    display: block;
}

.p-group:last-child {
    margin-bottom: 0;
}

.intro-p {
    font-size: 14px;
    line-height: 1.85;
    color: #e2e8f0;
}

.intro-p p {
    margin-bottom: 5px;
}

/* ==========================================
   字体级文字高级排版配色 
   ========================================== */
.main-title {
    font-size: 21px;
    color: #ffa64d;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.promo-title {
    font-size: 18px;
    color: #ffa64d;
    font-weight: bold;
    line-height: 1.4;
}

.bold { font-weight: bold; }
.text-large { font-size: 16px; }
.mt-15 { margin-top: 15px; }

.highlight-gold { color: #ffa64d; }
.highlight-white { color: #ffffff; }
.highlight-orange { color: #fc6e51; }

.quote-text {
    font-size: 17px;
    color: #ffa64d;
    font-weight: bold;
    margin: 6px 0;
}

.bless-text {
    font-size: 17px;
    color: #ffa64d;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* 活动内卡边框 */
.promo-badge-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 12px;
    margin: 10px auto 5px auto;
    border: 1px dashed rgba(255, 166, 77, 0.3);
    max-width: 280px;
}

/* ==========================================
   内卡片关联的操作按钮
   ========================================== */
.btn-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.btn-box.row-layout {
    flex-direction: row;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 46px;
    border-radius: 1000px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 8px;
    white-space: nowrap;
}

.btn-orange {
    background-color: #fb5806;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(251, 88, 6, 0.35);
}

.btn-orange:active {
    transform: scale(0.97);
    background-color: #df4d04;
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid #fb5806;
}

.btn-ghost:active {
    transform: scale(0.97);
    background: rgba(251, 88, 6, 0.12);
}

/* ==========================================
   底部吸底固定悬浮栏（严格限制 PC 端宽度流且居中）
   ========================================== */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px; /* PC全屏看时紧紧对齐卡片边缘宽度 */
    
    height: 75px;
    background: rgba(10, 12, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px 16px 0 0;
    
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
}

.sticky-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sticky-btn-register {
    background: linear-gradient(90deg, #ff7300 0%, #fb5806 100%);
    color: #ffffff;
    margin-right: 10px;
    box-shadow: 0 4px 12px rgba(251, 88, 6, 0.4);
}

.sticky-btn-register:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

.sticky-btn-pm {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-btn-pm:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   极小屏低分辨率手机防御
   ========================================== */
@media screen and (max-width: 350px) {
    .btn-box.row-layout {
        flex-direction: column;
    }
    .p-group {
        margin-bottom: 18px;
    }
    .main-title {
        font-size: 18px;
    }
    .btn {
        height: 42px;
        font-size: 13px;
    }
    .sticky-btn {
        height: 44px;
        font-size: 14px;
    }
}
/* 让最后一个板块的底部多留一点空白，完美避开悬浮条 */
.card-section:last-of-type {
    padding-bottom: 115px; 
}