/* ============================================================
   double11.css — 双11 好物节专题页专有样式（前台 /1111）
   - 命名空间统一 d11-*，与全站 qie-* 体系隔离，不污染既有样式
   - 依赖 front.css 的品牌变量（--qie / --qie-grad / --qie-radius 等）
   - 须在 front.css 之后加载
   ============================================================ */

:root {
    --d11-red:      #E22E1F;
    --d11-red-deep: #A8140C;
    --d11-night:    #1B0605;
    --d11-night-2:  #2E0A08;
    --d11-gold:     #FFD666;
    --d11-gold-2:   #F0A500;
    --d11-grad:      linear-gradient(135deg, #E22E1F 0%, #FF6A00 55%, #F0A500 100%);
    --d11-grad-gold: linear-gradient(135deg, #FFD666 0%, #F0A500 100%);
    --d11-grad-dark: linear-gradient(150deg, #3A0A08 0%, #6E120C 45%, #E22E1F 100%);
}

/* ---------- 页面骨架 ---------- */
.d11-page { background: #F6F7F9; padding-bottom: 2rem; }

/* ---------- Hero 大促主视觉 ---------- */
.d11-hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--d11-grad-dark);
    padding: 2rem 0 2.4rem;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 10px 30px rgba(120, 15, 8, .22);
}
.d11-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(760px 300px at 12% -10%, rgba(255, 214, 102, .28), transparent 65%),
        radial-gradient(620px 320px at 88% 8%,  rgba(226, 46, 31, .55), transparent 62%),
        radial-gradient(420px 220px at 50% 108%, rgba(255, 106, 0, .30), transparent 70%);
}
.d11-hero::after {
    content: ""; position: absolute; left: 50%; bottom: -120px; width: 720px; height: 240px;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 214, 102, .18), transparent 70%);
}
.d11-hero-inner { position: relative; z-index: 2; }
.d11-hero-logo {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--d11-grad-gold); color: #4A0B06;
    font-weight: 900; letter-spacing: .5px;
    padding: .3rem .9rem; border-radius: 999px;
    font-size: .82rem; box-shadow: 0 4px 14px rgba(240, 165, 0, .38);
}
.d11-hero-title {
    font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 900;
    line-height: 1.05; margin: .8rem 0 .4rem; letter-spacing: -1px;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .30);
}
.d11-hero-sub { color: rgba(255, 255, 255, .88); font-size: .95rem; max-width: 560px; }
.d11-hero-stats { display: flex; gap: 1.6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.d11-hero-stat b { display: block; font-size: 1.35rem; font-weight: 900; color: var(--d11-gold); line-height: 1.2; }
.d11-hero-stat span { font-size: .76rem; color: rgba(255, 255, 255, .72); }
.d11-btn-gold {
    background: var(--d11-grad-gold); color: #4A0B06;
    border-radius: 999px; padding: .55rem 1.6rem; font-weight: 800; border: 0;
}
.d11-btn-gold:hover { color: #4A0B06; filter: brightness(1.05); transform: translateY(-1px); }

/* 倒计时 */
.d11-countdown { display: flex; align-items: center; gap: .4rem; margin-top: 1.2rem; flex-wrap: wrap; }
.d11-countdown-label { font-size: .8rem; color: rgba(255, 255, 255, .8); margin-right: .2rem; }
.d11-cd-cell {
    min-width: 52px; padding: .42rem .5rem; text-align: center;
    background: rgba(0, 0, 0, .30); border: 1px solid rgba(255, 214, 102, .40);
    border-radius: 10px; backdrop-filter: blur(3px);
}
.d11-cd-cell b { display: block; font-size: 1.25rem; font-weight: 900; color: var(--d11-gold); font-variant-numeric: tabular-nums; line-height: 1.15; }
.d11-cd-cell span { font-size: .66rem; color: rgba(255, 255, 255, .68); }
.d11-cd-sep { color: var(--d11-gold); font-weight: 900; padding-bottom: 12px; }

/* Hero 券卡 */
.d11-hero-coupons { position: relative; z-index: 2; }
.d11-hero-coupon {
    display: flex; align-items: stretch; background: #fff; color: var(--qie-ink);
    border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    margin-bottom: .7rem; text-decoration: none; transition: transform .18s, box-shadow .18s;
}
.d11-hero-coupon:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .26); color: var(--qie-ink); }
.d11-hero-coupon-amt {
    flex: 0 0 92px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--d11-grad); color: #fff; padding: .55rem .3rem; position: relative;
}
.d11-hero-coupon-amt b { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.d11-hero-coupon-amt span { font-size: .66rem; opacity: .95; margin-top: 2px; text-align: center; }
.d11-hero-coupon-body { flex: 1; min-width: 0; padding: .55rem .7rem; display: flex; flex-direction: column; justify-content: center; }
.d11-hero-coupon-body strong { font-size: .9rem; }
.d11-hero-coupon-body span { font-size: .74rem; color: var(--qie-muted); }
/* 票券缺口 */
.d11-hero-coupon-amt::before, .d11-hero-coupon-amt::after {
    content: ""; position: absolute; right: -7px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--d11-night-2);
}
.d11-hero-coupon-amt::before { top: -7px; }
.d11-hero-coupon-amt::after { bottom: -7px; }

/* ---------- 通用区块 ---------- */
.d11-sec { margin-top: 1.5rem; }
.d11-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.d11-sec-head h2 {
    font-size: 1.22rem; font-weight: 900; margin: 0; position: relative; padding-left: 13px;
}
.d11-sec-head h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 20px; border-radius: 4px; background: var(--d11-grad);
}
.d11-sec-head .d11-sec-desc { font-size: .8rem; color: var(--qie-muted); }
.d11-sec-more { font-size: .8rem; color: var(--qie-muted); text-decoration: none; white-space: nowrap; }
.d11-sec-more:hover { color: var(--qie); }

/* ---------- 官方活动矩阵 ---------- */
.d11-act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.d11-act {
    display: block; text-align: center; text-decoration: none; color: var(--qie-ink);
    background: #fff; border: 1px solid var(--qie-border); border-radius: 14px;
    padding: .8rem .35rem .65rem; position: relative; overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.d11-act:hover { transform: translateY(-4px); box-shadow: var(--qie-shadow-hover); border-color: var(--d11-red); color: var(--qie-ink); }
.d11-act--off { opacity: .62; cursor: not-allowed; }
.d11-act-ic {
    width: 46px; height: 46px; margin: 0 auto .4rem; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: var(--d11-grad); color: #fff; box-shadow: 0 6px 14px rgba(226, 46, 31, .28);
}
.d11-act:nth-child(4n+2) .d11-act-ic { background: linear-gradient(135deg,#FF6A00,#F0A500); box-shadow: 0 6px 14px rgba(240,165,0,.30); }
.d11-act:nth-child(4n+3) .d11-act-ic { background: linear-gradient(135deg,#7B2FF7,#E22E1F); box-shadow: 0 6px 14px rgba(123,47,247,.26); }
.d11-act:nth-child(4n+4) .d11-act-ic { background: linear-gradient(135deg,#0F8A5F,#2BA471); box-shadow: 0 6px 14px rgba(43,164,113,.26); }
.d11-act-name { font-size: .84rem; font-weight: 700; }
.d11-act-desc { font-size: .7rem; color: var(--qie-muted); margin-top: 2px; }
.d11-act-off {
    position: absolute; top: 6px; right: -18px; transform: rotate(38deg);
    background: #8A8A93; color: #fff; font-size: .6rem; padding: 2px 20px;
}

/* ---------- 主题会场（横向滚动） ---------- */
.d11-theme-rail {
    display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .5rem;
    scrollbar-width: thin; scroll-snap-type: x proximity;
}
.d11-theme-rail::-webkit-scrollbar { height: 5px; }
.d11-theme-rail::-webkit-scrollbar-thumb { background: #dcdce2; border-radius: 3px; }
.d11-theme {
    flex: 0 0 auto; width: 152px; scroll-snap-align: start;
    border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
    position: relative; aspect-ratio: 3 / 4; display: flex; align-items: flex-end;
    box-shadow: var(--qie-shadow); transition: transform .18s, box-shadow .18s;
}
.d11-theme:hover { transform: translateY(-4px); box-shadow: var(--qie-shadow-hover); color: #fff; }
.d11-theme-bg { position: absolute; inset: 0; overflow: hidden; }
.d11-theme-bg img { width: 100%; height: 100%; object-fit: cover; }
.d11-theme-bg--t0 { background: linear-gradient(160deg,#E22E1F,#7A0F0A); }
.d11-theme-bg--t1 { background: linear-gradient(160deg,#FF6A00,#C9350A); }
.d11-theme-bg--t2 { background: linear-gradient(160deg,#7B2FF7,#E22E1F); }
.d11-theme-bg--t3 { background: linear-gradient(160deg,#0F8A5F,#0B5C46); }
.d11-theme-bg--t4 { background: linear-gradient(160deg,#2F6FED,#12307F); }
.d11-theme-bg--t5 { background: linear-gradient(160deg,#B0338A,#5A1660); }
.d11-theme-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.66) 0%, rgba(0,0,0,0) 55%); }
.d11-theme-txt { position: relative; z-index: 2; padding: .6rem .6rem .7rem; width: 100%; }
.d11-theme-txt b { display: block; font-size: .86rem; font-weight: 800; line-height: 1.25; }
.d11-theme-txt span { font-size: .68rem; color: rgba(255,255,255,.8); }
.d11-theme-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: var(--d11-grad-gold); color: #4A0B06; font-size: .62rem; font-weight: 800;
    padding: .12rem .45rem; border-radius: 6px;
}

/* ---------- 品类会场 Tab ---------- */
.d11-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.d11-tabs::-webkit-scrollbar { display: none; }
.d11-tab {
    flex: 0 0 auto; background: #fff; border: 1px solid var(--qie-border);
    border-radius: 999px; padding: .38rem 1rem; font-size: .85rem; color: var(--qie-ink);
    cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none; display: inline-block;
}
.d11-tab:hover { border-color: var(--d11-red); color: var(--d11-red); }
.d11-tab.active { background: var(--d11-grad); color: #fff; border-color: transparent; font-weight: 700; }

/* ---------- 爆款榜单 ---------- */
.d11-rank-list { background: #fff; border-radius: var(--qie-radius); box-shadow: var(--qie-shadow); overflow: hidden; }
.d11-rank-item {
    display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem;
    text-decoration: none; color: inherit; border-bottom: 1px solid var(--qie-border);
    transition: background .15s;
}
.d11-rank-item:last-child { border-bottom: 0; }
.d11-rank-item:hover { background: #FFF8F7; color: inherit; }
.d11-rank-no {
    flex: 0 0 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 900; background: #F0F1F3; color: var(--qie-muted);
}
.d11-rank-item:nth-child(1) .d11-rank-no { background: var(--d11-grad-gold); color: #4A0B06; }
.d11-rank-item:nth-child(2) .d11-rank-no { background: linear-gradient(135deg,#D9DEE6,#AEB6C2); color: #33383F; }
.d11-rank-item:nth-child(3) .d11-rank-no { background: linear-gradient(135deg,#E8A87C,#C4794A); color: #3A2317; }
.d11-rank-thumb {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg,#f0f1f3,#e6e8ec); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.d11-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d11-rank-main { flex: 1; min-width: 0; }
.d11-rank-name { font-size: .85rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d11-rank-meta { font-size: .72rem; color: var(--qie-muted); margin-top: 2px; }
.d11-rank-side { flex: 0 0 auto; text-align: right; }
.d11-rank-price { color: var(--d11-red); font-weight: 900; font-size: 1rem; }
.d11-rank-price small { font-size: .68rem; }
.d11-rank-badge { display: inline-block; font-size: .66rem; padding: .05rem .35rem; border-radius: 5px; margin-top: 3px; }
.d11-rank-badge--coupon { background: #FFE9E6; color: var(--d11-red); font-weight: 700; }
.d11-rank-badge--comm { background: #E6F6EF; color: var(--qie-success); font-weight: 700; }

/* ---------- 省钱攻略 ---------- */
.d11-guide-card {
    background: #fff; border: 1px solid var(--qie-border); border-radius: 14px; padding: .85rem;
    text-decoration: none; color: inherit; display: block; height: 100%;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.d11-guide-card:hover { transform: translateY(-3px); box-shadow: var(--qie-shadow-hover); border-color: var(--d11-red); color: inherit; }
.d11-guide-ic { font-size: 1.5rem; margin-bottom: .3rem; }
.d11-guide-card b { display: block; font-size: .88rem; font-weight: 700; line-height: 1.35; }
.d11-guide-card span { font-size: .74rem; color: var(--qie-muted); display: block; margin-top: .2rem; }

/* ---------- 首页双11 入口横幅 ---------- */
.qie-d11-entry {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    background: var(--d11-grad-dark); color: #fff; text-decoration: none;
    border-radius: var(--qie-radius); padding: .85rem 1.2rem;
    box-shadow: 0 8px 22px rgba(120, 15, 8, .22);
    position: relative; overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}
.qie-d11-entry::after {
    content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 102, .28), transparent 70%);
    pointer-events: none;
}
.qie-d11-entry:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(120, 15, 8, .30); color: #fff; }
.qie-d11-entry-badge {
    flex-shrink: 0; background: var(--d11-grad-gold); color: #4A0B06;
    font-weight: 900; font-size: .8rem; padding: .22rem .75rem; border-radius: 999px;
}
.qie-d11-entry-title { flex: 1; min-width: 0; font-size: .9rem; color: rgba(255, 255, 255, .92); }
.qie-d11-entry-cta {
    flex-shrink: 0; font-size: .82rem; font-weight: 700; color: var(--d11-gold);
    border: 1px solid rgba(255, 214, 102, .5); border-radius: 999px; padding: .2rem .8rem;
}
@media (max-width: 575.98px) {
    .qie-d11-entry { padding: .7rem .9rem; gap: .5rem; }
    .qie-d11-entry-title { font-size: .8rem; }
}

/* ---------- 说明 / 免责 ---------- */
.d11-notice {
    background: #FFF8F7; border: 1px solid #FFE1DC; border-radius: var(--qie-radius);
    padding: 1rem 1.1rem; color: #8A4A44; font-size: .78rem; line-height: 1.75;
}
.d11-notice b { color: var(--d11-red); }

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .d11-hero-coupons { margin-top: 1.4rem; }
}
@media (max-width: 767.98px) {
    .d11-act-grid { grid-template-columns: repeat(4, 1fr); gap: .45rem; }
    .d11-act-ic { width: 38px; height: 38px; font-size: 1.2rem; border-radius: 11px; }
    .d11-act-name { font-size: .74rem; }
    .d11-act-desc { display: none; }
    .d11-hero { padding: 1.5rem 0 1.8rem; }
    .d11-sec-head h2 { font-size: 1.05rem; }
    .d11-theme { width: 132px; }
}
@media (max-width: 575.98px) {
    .d11-cd-cell { min-width: 44px; }
    .d11-cd-cell b { font-size: 1.08rem; }
    .d11-rank-item { padding: .6rem .7rem; gap: .5rem; }
    .d11-rank-thumb { flex-basis: 44px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .d11-act, .d11-theme, .d11-hero-coupon, .d11-guide-card, .d11-btn-gold { transition: none; }
    .d11-act:hover, .d11-theme:hover, .d11-hero-coupon:hover, .d11-guide-card:hover { transform: none; }
}
