/* 首页专用样式 */

.home-page {
    background: #faefdeff;
}

/* 顶部背景图 */
.home-header {
    position: relative;
    width: 100%;
    height: 247px;
    overflow: hidden;
}
.home-header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 主横幅卡片 */
.home-banner {
    margin: -174px 6px 0;
    position: relative;
    z-index: 10;
}
.home-banner img,
.home-banner video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #f9e1ae;
    display: block;
    background: #000;
    object-fit: cover;
}
/* 右下角静音切换按钮 */
.home-banner-mute {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color .2s, transform .2s;
}
.home-banner-mute:active {
    transform: scale(0.92);
    background: rgba(0, 0, 0, 0.75);
}
.home-banner-mute svg {
    pointer-events: none;
}

/* 四功能入口 */
.home-nav-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 16px 20px;
    margin: 10px 6px 10px;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #fdf5de, #fdfdf1);
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.1);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    box-sizing: border-box;
    gap: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.nav-item span {
    font-size: 14px;
    font-weight: 500;
    color: #5e3a00;
    line-height: 1.43;
}

/* 三张横幅 */
.home-banners {
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 10;
}
.banner-card {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.banner-card:active {
    opacity: .85;
}

/* 专项退款 banner 覆盖文字 */
.banner-card-refund {
    position: relative;
    display: block;
    overflow: hidden;
}
.banner-card-refund img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* 圆梦退款卡 推广横幅（图片自带按钮，仅按钮区域可点） */
.banner-card-station {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: default; /* 容器整体不可点；仅按钮区域可点 */
}
.banner-card-station img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    pointer-events: none; /* 让点击穿透到下方 <a> 区域 */
}
.banner-card-station:active {
    opacity: 1; /* 取消父类的 :active 半透明，避免误以为整图可点 */
}
.banner-station-btn-link {
    position: absolute;
    /* 横幅5 中"立即前往开通"按钮位置：居中底部胶囊按钮 */
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    width: 64%;
    height: 22%;
    border-radius: 100px;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
    transition: background .15s;
}
.banner-station-btn-link:active {
    background: rgba(255, 255, 255, .15);
}

/* 绿色加速通道横幅：图片(1652×952)自带"立即开启绿色加速通道"金色胶囊按钮，左下角 */
.banner-green-express .banner-station-btn-link {
    left: 8%;
    top: 83%;
    bottom: auto;
    transform: none;
    width: 35%;
    height: 13%;
}

/* ===== 线上支付绑定 倒计时横幅（覆盖图中静态"倒计时120小时"文字） ===== */
.banner-paybind-cd .banner-station-btn-link {
    /* 新图按钮位置：居中底部 ≈4% 处，宽 32%，高 11% */
    bottom: 4%;
    width: 36%;
    height: 12%;
}
.paybind-cd-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    /* 包裹完整 "倒计时 X 天 XX 时 XX 分 XX 秒"，宽度自适应 */
    min-width: 38%;
    padding: 0.4em 1.2em;
    /* 红金渐变遮罩，盖住原图的"倒计时120小时" */
    background: radial-gradient(ellipse at center,
        #c10d11 0%,
        #c10d11 55%,
        rgba(193, 13, 17, 0.82) 80%,
        rgba(193, 13, 17, 0) 100%);
    border-radius: 100px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    /* 文字 */
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    font-weight: 900;
    font-size: clamp(13px, 3.4vw, 32px);
    line-height: 1;
    letter-spacing: 0.05em;
    color: #fff5cc;
    text-shadow:
        0 0 6px rgba(255, 200, 60, 0.45),
        0 1px 0 #8a4500;
    z-index: 2;
}
.paybind-cd-overlay .pbcd-prefix {
    margin-right: .35em;
    /* 金色文字渐变（仅在支持 background-clip:text 的浏览器生效） */
    background: linear-gradient(180deg, #fff5cc 0%, #ffd478 50%, #f0a31a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.paybind-cd-overlay .pbcd-num {
    display: inline-block;
    min-width: 1.6em;
    margin: 0 .12em;
    padding: 0.05em 0.32em;
    background: linear-gradient(180deg, #fff7d6 0%, #ffd166 60%, #c98718 100%);
    color: #8a2200;
    border-radius: 6px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .55),
        0 1px 3px rgba(0, 0, 0, .35);
    font-weight: 900;
    text-shadow: none;
}
.paybind-cd-overlay .pbcd-unit {
    margin: 0 .15em;
    background: linear-gradient(180deg, #fff5cc 0%, #ffd478 50%, #f0a31a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* 倒计时归零状态：文字改为"已正式开通" */
.paybind-cd-overlay.is-ended .pbcd-prefix::before {
    content: "已正式开通";
    background: linear-gradient(180deg, #fff5cc 0%, #ffd478 50%, #f0a31a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.paybind-cd-overlay.is-ended .pbcd-prefix,
.paybind-cd-overlay.is-ended .pbcd-num,
.paybind-cd-overlay.is-ended .pbcd-unit { display: none; }
.paybind-cd-overlay.is-ended .pbcd-prefix { display: inline-block; }
.paybind-cd-overlay.is-ended .pbcd-prefix::before { display: inline; }
.refund-channel-label {
    position: absolute;
    left: 50%;
    top: 64%;
    transform: translateX(-50%);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(255,255,255,.4);
    white-space: nowrap;
    pointer-events: none;
}
.refund-channel-cta {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: linear-gradient(to bottom, #ffd27a, #ffa43a);
    color: #8a2e00;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    letter-spacing: 1px;
    pointer-events: none;
}

/* 底部两卡片 */
.home-contact-row {
    display: flex;
    gap: 8px;
    padding: 14px 6px 0;
    position: relative;
    z-index: 10;
}
.contact-card {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    padding: 6px 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #d00300;
    text-align: center;
    margin: 0 0 4px;
    line-height: 1.22;
}
.qr-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}
.qr-border {
    width: 130px;
    height: 130px;
    background: #e6001d;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-img {
    width: 120px;
    height: 120px;
    background: #fff;
    display: block;
}
.contact-btns {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    padding: 0 2px;
}
.btn-action {
    flex: 1;
    height: 32px;
    background: #e6001d;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    line-height: 32px;
    text-align: center;
}
.btn-action:active { opacity: .8; }
.btn-outline {
    flex: 1;
    height: 32px;
    background: #fce4df;
    color: #e6001d;
    border: 1px solid #e6001d;
    border-radius: 100px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
}
.btn-outline:active { opacity: .8; }

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -1px 4px rgba(0,0,0,.06);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 1px;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.bottom-nav-item .bottom-nav-svg {
    width: 22px;
    height: 22px;
    color: #6d6d6d;
    stroke: currentColor;
}
.bottom-nav-item.active .bottom-nav-svg {
    color: #dd0200;
}
.bottom-nav-item span {
    font-size: 8px;
    color: #6d6d6d;
    line-height: 1.2;
}
.bottom-nav-item.active span {
    color: #dd0200;
}
/* 8项时压缩字号避免溢出 */
.bottom-nav .bottom-nav-item span {
    white-space: nowrap;
}

/* 弹窗内二维码 */
.qr-modal-box {
    max-width: 320px;
}
.qr-modal-img-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #e6001d;
}
.qr-modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.btn-qr-action {
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    background: #dd0200;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    font-family: inherit;
}
.btn-qr-action:active { opacity: .8; }
.btn-qr-download {
    display: block;
    width: 100%;
    height: 38px;
    line-height: 36px;
    background: #fce4df;
    color: #e6001d;
    border: 1px solid #e6001d;
    border-radius: 100px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}
.btn-qr-download:active { opacity: .8; }

/* 桌面端底部导航居中 */
@media (min-width: 480px) {
    .bottom-nav {
        max-width: 393px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ==========================================================
   首页公告弹窗（顺序弹出）
   ========================================================== */
.ann-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: annFadeIn .18s ease-out;
}
.ann-modal-mask.active { display: flex; }

.ann-modal-box {
    width: 100%;
    max-width: 420px;
    max-height: 82vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: annPopIn .22s cubic-bezier(.2,.8,.2,1);
}

@keyframes annFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes annPopIn {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.ann-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.ann-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.ann-modal-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
}
.ann-modal-close:hover { color: #374151; }

.ann-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.ann-img,
.ann-img-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.ann-img-link { display: block; }

.ann-text {
    margin-top: 12px;
    line-height: 1.5;
    word-break: break-word;
}
.ann-text br { line-height: 1; }
.ann-text .ann-red {
    color: #dc0000;
    font-weight: 600;
}
.ann-img + .ann-text,
.ann-img-link + .ann-text { margin-top: 14px; }

.ann-btns {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ann-btn {
    display: block;
    text-align: center;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
    user-select: none;
}
.ann-btn-primary {
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}
.ann-btn-primary:active { background: #1d4ed8; }

.ann-btn-ghost {
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}
.ann-btn-ghost:active { background: #eff6ff; }

.ann-btn-link {
    background: transparent;
    color: #2563eb;
    border: none;
    padding: 8px;
    text-decoration: underline;
}

.ann-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fafafa;
}
.ann-modal-counter {
    font-size: 12px;
    color: #9ca3af;
}
.ann-btn-close {
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.ann-btn-close:active { background: #1d4ed8; }

/* ===== 圆梦定期体验项目 倒计时横幅（首页，设计 Group 1000005066，1915×821） =====
   背景图自带主标题 + 倒计时框架 + "立即参与"按钮，
   前景仅叠加 7 个动态数字（HHH:MM:SS）+ 2 个红色冒号 + 透明按钮热区。
   所有定位百分比均来源于 figma 1915×821 坐标系（数字格 69×108，每格 left 见下注释） */
.banner-trial-cd {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
    container-type: inline-size;
    cursor: pointer;
}
.banner-trial-cd .trialcd-bg {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
/* 7 位数字格（红色背景 + 圆角 10px + 白色 DIN Bold 80px 数字） */
.banner-trial-cd .trialcd-cell {
    position: absolute;
    width: 3.604%;          /* 69/1915 */
    height: 13.155%;        /* 108/821 */
    top: 51.644%;           /* 424/821 */
    background: #d30301;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'DIN', 'DIN Alternate', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 4.18cqw;     /* 80/1915 */
    line-height: 1;
    padding-bottom: 0.04em;
    pointer-events: none;
}
.banner-trial-cd .trialcd-cell.h1 { left: 33.368%; }   /* 639/1915 */
.banner-trial-cd .trialcd-cell.h2 { left: 37.702%; }   /* 722/1915 */
.banner-trial-cd .trialcd-cell.h3 { left: 42.037%; }   /* 805/1915 */
.banner-trial-cd .trialcd-cell.m1 { left: 47.937%; }   /* 918/1915 */
.banner-trial-cd .trialcd-cell.m2 { left: 52.272%; }   /* 1001/1915 */
.banner-trial-cd .trialcd-cell.s1 { left: 58.173%; }   /* 1114/1915 */
.banner-trial-cd .trialcd-cell.s2 { left: 62.507%; }   /* 1197/1915 */
/* 红色冒号（80px DIN Bold #d30301，与数字格对齐） */
.banner-trial-cd .trialcd-colon {
    position: absolute;
    width: 1.671%;          /* 32/1915（原始 25 + 些微留白避免裁切） */
    height: 13.155%;
    top: 51.644%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d30301;
    font-family: 'DIN', 'DIN Alternate', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 4.18cqw;
    line-height: 1;
    padding-bottom: 0.18em;
    pointer-events: none;
}
.banner-trial-cd .trialcd-colon.c1 { left: 45.927%; }  /* 879.5/1915 居中 25px 冒号位置 */
.banner-trial-cd .trialcd-colon.c2 { left: 56.162%; }  /* 1075.5/1915 */
/* "立即参与" 透明热区按钮（图底已绘制金色椭圆按钮，水平居中偏左、垂直靠下） */
.banner-trial-cd .trialcd-btn-link {
    position: absolute;
    left: 36%;
    top: 80%;
    width: 22%;
    height: 13%;
    border-radius: 100px;
    z-index: 2;
    -webkit-tap-highlight-color: rgba(255, 255, 255, .15);
    transition: background .15s;
}
.banner-trial-cd .trialcd-btn-link:active {
    background: rgba(255, 255, 255, .12);
}

/* ===== 圆梦退款卡激活 倒计时横幅（首页，设计 Group 1000005073，1024×572） =====
   背景图：金红色喜庆主视觉，自带 "圆梦退款卡提前激活·白名单专属" + 空倒计时凹槽 + "抢先试用" 红色胶囊按钮。
   前景叠加：7 个金色渐变数字格（白名单红字 DIN Bold 70px）+ 2 个金色冒号 + 透明按钮热区跳 card.php。
   定位百分比来源于 figma 1024×572 坐标系（数字格 56.675×78，top 225，inner frame 起点 x=252） */
.banner-activate-cd {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    line-height: 0;
    container-type: inline-size;
    cursor: pointer;
}
.banner-activate-cd .activecd-bg {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
/* 7 位数字格（金色渐变背景 + 圆角 + 红色 DIN Bold 70px 数字） */
.banner-activate-cd .activecd-cell {
    position: absolute;
    width: 5.535%;          /* 56.675/1024 */
    height: 13.636%;        /* 78/572 */
    top: 39.336%;           /* 225/572 */
    background: linear-gradient(90deg, #fbf0c7 0%, #f2c97a 100%);
    border-radius: 0.977cqw;/* 10/1024 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6001d;
    font-family: 'DIN', 'DIN Alternate', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 6.836cqw;    /* 70/1024 */
    line-height: 1;
    padding-bottom: 0.04em;
    pointer-events: none;
}
.banner-activate-cd .activecd-cell.h1 { left: 24.609%; }  /* 252/1024 */
.banner-activate-cd .activecd-cell.h2 { left: 31.267%; }  /* 320.17/1024 */
.banner-activate-cd .activecd-cell.h3 { left: 37.925%; }  /* 388.35/1024 */
.banner-activate-cd .activecd-cell.m1 { left: 46.973%; }  /* 481/1024 */
.banner-activate-cd .activecd-cell.m2 { left: 53.630%; }  /* 549.17/1024 */
.banner-activate-cd .activecd-cell.s1 { left: 63.184%; }  /* 647/1024 */
.banner-activate-cd .activecd-cell.s2 { left: 69.841%; }  /* 715.17/1024 */
/* 金色冒号（DIN Bold 渐变，与数字格视觉中心对齐） */
.banner-activate-cd .activecd-colon {
    position: absolute;
    width: 2.005%;          /* 20.53/1024 */
    height: 13.636%;
    top: 39.336%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #fbf0c7 0%, #f2c97a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: 'DIN', 'DIN Alternate', 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 700;
    font-size: 6.836cqw;
    line-height: 1;
    padding-bottom: 0.18em;
    pointer-events: none;
}
.banner-activate-cd .activecd-colon.c1 { left: 44.240%; }  /* h3 与 m1 之间 */
.banner-activate-cd .activecd-colon.c2 { left: 60.156%; }  /* m2 与 s1 之间 */
/* "抢先试用" 透明热区按钮（背景图底部红色胶囊按钮位置，水平居中、垂直靠下；点击 → card.php） */
.banner-activate-cd .activecd-btn-link {
    position: absolute;
    left: 29%;
    top: 67%;
    width: 42%;
    height: 16%;
    border-radius: 100px;
    z-index: 2;
    -webkit-tap-highlight-color: rgba(255, 255, 255, .15);
    transition: background .15s;
}
.banner-activate-cd .activecd-btn-link:active {
    background: rgba(255, 255, 255, .12);
}
