/* =========================================================
   流量卡铺 · 前台样式（Bilibili 风格）
   主色 #FB7299 / 链接蓝 #00AEEC / 文字 #18191C
   ========================================================= */

:root {
    --pink: #FB7299;
    --pink-light: #FFECF1;
    --pink-hover: #FC8BAB;
    --blue: #00AEEC;
    --text: #18191C;
    --text2: #61666D;
    --text3: #9499A0;
    --line: #E3E5E7;
    --line2: #F1F2F3;
    --bg: #F6F7F8;
    --white: #fff;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-hover: 0 8px 24px -6px rgba(0, 0, 0, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------ 顶部导航 */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line2);
}
.nav-in {
    display: flex; align-items: center; gap: 20px;
    height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(140deg, #FB7299, #ff5c8a);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px -3px rgba(251, 114, 153, .6);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.logo-text em { font-style: normal; color: var(--pink); }

.search {
    position: relative; flex: 1; max-width: 460px; height: 40px;
    display: flex; align-items: center;
    background: #F1F2F3; border: 1px solid #E3E5E7; border-radius: 8px;
    transition: background .2s, border-color .2s;
}
.search:focus-within { background: #fff; border-color: var(--pink); }
.search svg { width: 17px; height: 17px; margin-left: 13px; color: #9499A0; flex: none; }
.search input {
    flex: 1; height: 100%; border: 0; background: none; outline: none;
    font-size: 14px; color: var(--text); padding: 0 10px; font-family: inherit;
}
.search input::placeholder { color: #A9AEB8; }
.search button {
    flex: none; width: 30px; height: 30px; margin-right: 5px; border-radius: 6px;
    background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.search button:hover { background: var(--pink-hover); }
.search button svg { width: 15px; height: 15px; margin: 0; color: #fff; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.nav-link {
    display: flex; align-items: center; gap: 5px;
    font-size: 14px; color: var(--text2); padding: 8px 4px;
    transition: color .15s;
}
.nav-link:hover { color: var(--pink); }
.nav-link svg { width: 16px; height: 16px; }
.nav-btn {
    height: 34px; padding: 0 16px; border-radius: 8px;
    background: var(--pink); color: #fff; font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 4px 12px -4px rgba(251, 114, 153, .7);
    transition: transform .15s, background .15s;
}
.nav-btn:hover { background: var(--pink-hover); }
.nav-btn:active { transform: scale(.97); }
.nav-btn svg { width: 15px; height: 15px; }

/* 描边款（申请代理商） */
.nav-btn-ghost {
    background: #fff; color: var(--pink);
    border: 1px solid #FFD0DE; box-shadow: none;
}
.nav-btn-ghost:hover { background: #FFF3F7; border-color: var(--pink); color: var(--pink); }

/* ------------------------------------------------ 分区 tab */
.tabs {
    display: flex; align-items: center; gap: 4px;
    height: 54px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative; flex: none;
    padding: 0 16px; height: 100%;
    display: flex; align-items: center;
    font-size: 15px; color: var(--text2);
    transition: color .15s;
}
.tab:hover { color: var(--blue); }
.tab.on { color: var(--pink); font-weight: 600; }
.tab.on::after {
    content: ""; position: absolute; left: 50%; bottom: 8px;
    transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 2px; background: var(--pink);
}
.tab-count { font-size: 12px; color: var(--text3); margin-left: 3px; font-weight: 400; }

/* ------------------------------------------------ 顶部宣传条 */
.hero {
    margin: 4px 0 22px;
    border-radius: 10px; overflow: hidden; position: relative;
    background: linear-gradient(110deg, #FFF0F4 0%, #FFE8F0 42%, #EAF7FE 100%);
    border: 1px solid #FFE0EA;
    padding: 22px 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero h1 { font-size: 21px; font-weight: 700; letter-spacing: .3px; margin-bottom: 6px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p { font-size: 13px; color: #7a6a72; }
.hero-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-tags span {
    font-size: 12px; color: #C1527A; background: rgba(255, 255, 255, .8);
    border: 1px solid #FFD3E0; padding: 4px 10px; border-radius: 20px;
}
.hero-main { min-width: 0; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-btn {
    height: 38px; padding: 0 20px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500; color: #fff;
    background: linear-gradient(135deg, #FB7299, #FF5C8A);
    box-shadow: 0 8px 20px -8px rgba(251, 114, 153, .9);
    transition: transform .15s, box-shadow .2s;
}
.hero-btn svg { width: 16px; height: 16px; }
.hero-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(251, 114, 153, 1); }
.hero-btn-ghost {
    background: rgba(255, 255, 255, .9); color: #C1527A;
    border: 1px solid #FFC6D8; box-shadow: none;
}
.hero-btn-ghost:hover { background: #fff; color: var(--pink); box-shadow: 0 8px 18px -10px rgba(251, 114, 153, .8); }
.hero-note { margin-top: 10px; font-size: 12px; color: #9a8a92; }
.hero-stat { text-align: right; flex: none; }
.hero-stat b { display: block; font-size: 26px; color: var(--pink); line-height: 1.1; font-weight: 800; }
.hero-stat small { font-size: 12px; color: #9a8a92; }
.hero-deco {
    position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
    border-radius: 50%; background: radial-gradient(circle, rgba(251,114,153,.22), transparent 65%);
    pointer-events: none;
}

/* ------------------------------------------------ 卡片网格 */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.section-head h2 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-head h2 svg { width: 18px; height: 18px; color: var(--pink); }
.section-head .more { font-size: 13px; color: var(--text3); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 22px 20px;
    margin-bottom: 40px;
}

.card { display: block; }
.card-cover {
    position: relative; width: 100%; aspect-ratio: 16 / 10;
    border-radius: var(--radius); overflow: hidden;
    background: #E9EAEC; box-shadow: var(--shadow);
    transition: box-shadow .22s;
}
.card:hover .card-cover { box-shadow: var(--shadow-hover); }
.card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.card:hover .card-img { transform: scale(1.035); }
/* 真实海报底部压一层渐变，让价格 / 类型角标看得清 */
.card-cover.has-img::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44%;
    background: linear-gradient(to top, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0));
    z-index: 2; pointer-events: none;
}

/* 无图时的程序化封面 */
.cover-gen {
    position: absolute; inset: 0; padding: 12px 14px;
    display: flex; flex-direction: column; justify-content: space-between;
    color: #fff; overflow: hidden;
}
.cover-gen::after {
    content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%;
    right: -50px; bottom: -70px; background: rgba(255, 255, 255, .14); filter: blur(2px);
}
.cover-gen .cg-top { display: flex; align-items: center; gap: 6px; font-size: 11px; opacity: .92; position: relative; z-index: 2; align-self: flex-end; }
.cover-gen .cg-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.cover-gen .cg-main { position: relative; z-index: 2; }
.cover-gen .cg-price { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.cover-gen .cg-price small { font-size: 13px; font-weight: 500; margin-left: 2px; letter-spacing: 0; }
.cover-gen .cg-data { font-size: 15px; font-weight: 600; margin-top: 6px; opacity: .95; }

/* hover 播放按钮（B 站同款） */
.card-play {
    position: absolute; inset: 0; z-index: 4;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
}
.card:hover .card-play { opacity: 1; }
.card-play i {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, .9);
    display: flex; align-items: center; justify-content: center; color: #fff;
    transform: scale(.9); transition: transform .2s;
}
.card:hover .card-play i { transform: scale(1); }
.card-play svg { width: 17px; height: 17px; margin-left: 1px; fill: currentColor; }

/* 封面角标 */
.cover-badge {
    position: absolute; left: 8px; top: 8px; z-index: 3;
    font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 4px;
    background: var(--pink); color: #fff; font-weight: 500;
    box-shadow: 0 2px 8px -2px rgba(251, 114, 153, .8);
}
.cover-dur {
    position: absolute; right: 6px; bottom: 6px; z-index: 3;
    font-size: 12px; line-height: 1; padding: 3px 5px; border-radius: 3px;
    background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(2px);
}
.cover-hot {
    position: absolute; right: 6px; top: 6px; z-index: 3;
    font-size: 11px; padding: 3px 6px; border-radius: 4px;
    background: rgba(0, 0, 0, .45); color: #fff; display: flex; align-items: center; gap: 3px;
}
/* 非流量卡商品（宽带 / 移动WiFi）的类型角标 */
.cover-type {
    position: absolute; left: 6px; bottom: 6px; z-index: 3;
    font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 4px;
    background: rgba(255, 255, 255, .92); color: #18191C; font-weight: 500;
    box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .35);
}

.card-title {
    margin-top: 10px; font-size: 15px; line-height: 22px; font-weight: 400;
    color: var(--text); height: 44px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .18s; word-break: break-all;
}
.card:hover .card-title { color: var(--blue); }

.card-meta {
    margin-top: 6px; display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text3); line-height: 18px;
}
.card-meta svg { width: 14px; height: 14px; flex: none; }
.card-meta .dot { width: 2px; height: 2px; background: #C9CCD0; border-radius: 50%; }
.card-meta .up { display: flex; align-items: center; gap: 4px; min-width: 0; }
.card-meta .up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta .hot { display: flex; align-items: center; gap: 3px; flex: none; }
.card-meta .hot svg { width: 13px; height: 13px; }

/* ------------------------------------------------ 空状态 */
.empty {
    padding: 80px 20px; text-align: center; background: #fff;
    border-radius: 10px; border: 1px dashed var(--line);
    margin-bottom: 40px;
}
.empty svg { width: 56px; height: 56px; color: #D8DBE0; margin: 0 auto 14px; }
.empty p { color: var(--text3); font-size: 14px; }
.empty a { color: var(--blue); }

/* ------------------------------------------------ 页脚 */
.footer {
    border-top: 1px solid var(--line2); background: #fff;
    padding: 26px 0 34px; margin-top: auto;
}
.footer-in { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.footer p { font-size: 12px; color: var(--text3); line-height: 1.9; }
.footer a:hover { color: var(--blue); }
.footer-tips { max-width: 720px; }

/* =========================================================
   详情页
   ========================================================= */
.detail-wrap { padding: 18px 0 30px; }
.crumb { font-size: 12px; color: var(--text3); margin-bottom: 14px; display: flex; gap: 6px; align-items: center; }
.crumb svg { width: 12px; height: 12px; flex: none; }
.crumb a:hover { color: var(--blue); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }

.d-hero {
    border-radius: 10px; overflow: hidden; position: relative;
    aspect-ratio: 16 / 9; max-height: 400px; background: #F1F2F3; box-shadow: var(--shadow);
}
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero .cover-gen { padding: 24px 28px; }
.d-hero .cover-gen .cg-top { align-self: flex-start; font-size: 12px; }
.d-hero .cover-gen .cg-price { font-size: clamp(42px, 4.6vw, 68px); }
.d-hero .cover-gen .cg-data { font-size: clamp(14px, 1.5vw, 20px); }
.d-hero .cover-gen::after { width: 240px; height: 240px; right: -70px; bottom: -110px; }

.d-title { font-size: 21px; font-weight: 600; line-height: 1.45; margin: 16px 0 8px; }
.d-sub { font-size: 13px; color: var(--text2); display: flex; flex-wrap: wrap; gap: 8px 14px; }
.d-sub span { display: flex; align-items: center; gap: 5px; }
.d-sub svg { width: 14px; height: 14px; color: var(--text3); }

.panel {
    background: #fff; border-radius: 10px; padding: 20px 22px;
    box-shadow: var(--shadow); margin-top: 16px;
}
.panel-title {
    font-size: 15px; font-weight: 600; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.panel-title::before {
    content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--pink);
}

.spec-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.spec {
    flex: 1 1 128px; min-width: 0;
    background: #FAFAFB; border: 1px solid var(--line2);
    border-radius: 8px; padding: 12px 14px;
}
.spec small { display: block; font-size: 12px; color: var(--text3); margin-bottom: 4px; }
.spec b { font-size: 17px; font-weight: 700; color: var(--text); }
.spec b em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text2); margin-left: 2px; }

.desc { font-size: 14px; line-height: 2; color: #3d4045; white-space: pre-wrap; word-break: break-word; }

.hl-list { display: grid; gap: 10px; }
.hl {
    display: flex; gap: 12px; padding: 13px 14px; border-radius: 8px;
    background: linear-gradient(90deg, #FFF7FA, #FAFAFB); border: 1px solid #FFEAF0;
}
.hl-ico {
    flex: none; width: 30px; height: 30px; border-radius: 8px;
    background: #fff; border: 1px solid #FFE0EA; color: var(--pink);
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.hl b { display: block; font-size: 14px; margin-bottom: 2px; }
.hl p { font-size: 12.5px; color: var(--text2); line-height: 1.6; }

/* 侧边办理卡 */
.buy {
    position: sticky; top: 80px;
    background: #fff; border-radius: 10px; padding: 20px;
    box-shadow: var(--shadow); border: 1px solid #F3F4F5;
}
.buy-price { display: flex; align-items: baseline; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.buy-price .n { font-size: 40px; font-weight: 800; color: var(--pink); line-height: 1; letter-spacing: -1px; }
.buy-price .u { font-size: 14px; color: var(--text2); }
.buy-price .tag { margin-left: auto; font-size: 11px; color: #C1527A; background: #FFF0F4; padding: 4px 8px; border-radius: 20px; }

.buy-meta { padding: 14px 0; display: grid; gap: 9px; }
.buy-meta div { display: flex; justify-content: space-between; font-size: 13px; }
.buy-meta span { color: var(--text3); }
.buy-meta b { font-weight: 500; }

.buy-btn {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 60px; border-radius: 12px;
    background: linear-gradient(135deg, #FB7299, #FF5C8A 52%, #F4568D);
    color: #fff; font-size: 17.5px; font-weight: 700; letter-spacing: .3px;
    box-shadow: 0 14px 28px -12px rgba(251, 114, 153, .95);
    transition: transform .18s cubic-bezier(.22, .61, .36, 1), box-shadow .24s, filter .24s;
    animation: buyBreath 2.8s ease-in-out infinite;
}
/* 常驻扫光：不用鼠标也知道这是主按钮 */
.buy-btn::after {
    content: ''; position: absolute; top: -25%; bottom: -25%; left: -60%; width: 42%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .48), transparent);
    transform: skewX(-18deg);
    animation: buyShine 3.6s cubic-bezier(.4, 0, .3, 1) infinite;
    pointer-events: none;
}
.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px -10px rgba(251, 114, 153, 1);
    filter: saturate(1.06);
}
.buy-btn:hover::after { animation-duration: 1.2s; }
.buy-btn:active { transform: scale(.985); }
.buy-btn svg { width: 21px; height: 21px; }
@keyframes buyBreath {
    0%, 100% { box-shadow: 0 14px 28px -14px rgba(251, 114, 153, .85); }
    50%      { box-shadow: 0 16px 30px -8px rgba(251, 114, 153, 1); }
}
@keyframes buyShine {
    0%, 52% { left: -60%; }
    100%    { left: 135%; }
}
.buy-note { margin-top: 12px; font-size: 11.5px; color: var(--text3); line-height: 1.7; text-align: center; }
.buy-note b { color: #C1527A; font-weight: 600; }

.buy-safe {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line2);
    display: flex; justify-content: space-around;
}
.buy-safe div { text-align: center; font-size: 11px; color: var(--text3); }
.buy-safe svg { width: 18px; height: 18px; color: #7BC96F; margin: 0 auto 4px; }

/* 官方「一证通查」入口 */
.check-bar {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 10px 12px;
    border-radius: 10px; border: 1px solid #E2EEFB;
    background: linear-gradient(180deg, #F8FCFF, #F1F7FE);
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.check-bar:hover {
    border-color: #BED9F6; background: #fff;
    box-shadow: 0 12px 24px -18px rgba(46, 123, 246, .95);
    transform: translateY(-1px);
}
.check-ico {
    flex: none; width: 30px; height: 30px; border-radius: 9px;
    background: #fff; border: 1px solid #DCEBFA; color: #2E7BF6;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.check-txt { min-width: 0; }
.check-txt b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.check-txt small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--text3); }
.check-go { margin-left: auto; flex: none; display: flex; color: #A6B4C8; font-size: 17px; transition: color .2s; }
.check-bar:hover .check-go { color: #2E7BF6; }
/* 首页 hero 里的一条 */
.hero .check-bar {
    max-width: 340px; margin-top: 14px;
    background: rgba(255, 255, 255, .82); border-color: #FFE0EA;
}
.hero .check-bar:hover { border-color: #FFC6D8; background: #fff; box-shadow: 0 12px 24px -18px rgba(251, 114, 153, .9); }

/* 推荐 */
.reco { margin-top: 26px; }
/* 作为 .detail-grid 的第三块：桌面落在左列下方，手机落在办理卡下方 */
.detail-grid > .reco { margin-top: 0; }
.reco .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 0; }

/* ------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
    .detail-grid { grid-template-columns: 1fr; }
    .buy { position: static; }
}
@media (max-width: 768px) {
    .wrap { padding: 0 14px; }
    .nav-in { height: 54px; gap: 12px; }
    .logo-text { font-size: 15px; }
    .nav-link, .nav-btn { display: none; }
    .search { max-width: none; height: 36px; }
    .tabs { height: 46px; }
    .tab { padding: 0 12px; font-size: 14px; }
    .hero { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
    .hero h1 { font-size: 17px; }
    .hero-stat { display: none; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .card-cover { border-radius: 5px; }
    .card-title { font-size: 13.5px; line-height: 20px; height: 40px; margin-top: 8px; }
    .cover-gen .cg-price { font-size: 26px; }
    .cover-gen .cg-data { font-size: 12px; }
    .cover-badge { font-size: 10px; padding: 3px 5px; }
    .d-title { font-size: 17px; }
    .d-hero .cover-gen .cg-price { font-size: 40px; }
    .d-hero .cover-gen .cg-data { font-size: 16px; }
    .panel { padding: 16px; }
    /* 办理按钮不吸底：留在卡片里「发货方式」下面、「提示」上面，保持 60px 大按钮 */
    .buy-btn { min-height: 60px; }
    .buy-btn:hover { transform: none; }
    .pc-only { display: none; }
}

/* =========================================================
   v1.3 交互动效 / 办理提醒弹窗
   ========================================================= */

/* ------------------------------------------------ 卡片：进入视口依次浮起 */
.card {
    --ty: 0px;
    display: block;
    transform: translateY(var(--ty));
    transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
html.anim .grid .card { opacity: 0; }
html.anim .grid .card.in { opacity: 1; }
html.anim .grid .card.in > * {
    animation: cardIn .55s cubic-bezier(.22, .61, .36, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* 封面：阴影加深 + 粉色描边光晕 + 图片微放大 */
.card-cover {
    box-shadow: 0 1px 2px rgba(24, 25, 28, .05), 0 0 0 1px rgba(24, 25, 28, .04);
    transition: box-shadow .3s ease, border-color .3s ease;
}
.card-img { transition: transform .55s cubic-bezier(.22, .61, .36, 1), filter .35s ease; }

/* 高光扫过 */
.card-cover::before {
    content: "";
    position: absolute; z-index: 6; pointer-events: none;
    top: -60%; left: -140%; width: 72%; height: 220%;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .34) 42%,
        rgba(255, 255, 255, .72) 50%,
        rgba(255, 255, 255, .34) 58%,
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(14deg);
    opacity: 0;
}
@keyframes shine {
    0%   { left: -140%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 132%; opacity: 0; }
}

/* 播放按钮：毛玻璃圆 + 外圈脉冲 */
.card-play i {
    box-shadow: 0 6px 22px -6px rgba(0, 0, 0, .6);
    transition: transform .28s cubic-bezier(.2, .9, .3, 1.1), background .2s;
}
.card:hover .card-play i { background: rgba(251, 114, 153, .88); }

/* 价格角标 / 类型角标：hover 微弹 */
.cover-dur, .cover-type, .cover-badge {
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.1), box-shadow .3s;
}

/* 只在支持悬停的精确指针设备上做 hover，避免手机端粘住 */
@media (hover: hover) and (pointer: fine) {
    .card:hover { --ty: -6px; }
    .card:hover .card-cover {
        box-shadow: 0 20px 40px -16px rgba(24, 25, 28, .32),
                    0 6px 14px -8px rgba(24, 25, 28, .14),
                    0 0 0 1px rgba(251, 114, 153, .3);
    }
    .card:hover .card-img { transform: scale(1.055); filter: saturate(1.05) brightness(1.02); }
    .card:hover .card-cover::before { animation: shine .9s ease-out .04s 1 both; }
    .card:hover .card-play i { transform: scale(1.08); }
    .card:hover .cover-dur { transform: translateY(-2px); }
    .card:hover .cover-type { transform: translateY(-2px); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
    .card:hover .cover-badge { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 16px -4px rgba(251, 114, 153, .85); }
    .card:hover .card-meta .hot { color: var(--pink); }
    .card:hover .card-title { color: var(--blue); }
}

/* 触屏轻按反馈 */
.card.tap { --ty: -2px; }

/* 详情页：面板依次浮现 */
.panel, .d-hero, .d-title, .d-sub, .buy {
    animation: panelIn .5s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.d-hero { animation-delay: 0s; }
.d-title { animation-delay: .04s; }
.d-sub { animation-delay: .08s; }
.panel:nth-of-type(1) { animation-delay: .1s; }
.panel:nth-of-type(2) { animation-delay: .14s; }
.panel:nth-of-type(3) { animation-delay: .18s; }
.buy { animation-delay: .06s; }

.spec { transition: transform .24s cubic-bezier(.22, .61, .36, 1), border-color .24s, background .24s; }
@media (hover: hover) and (pointer: fine) {
    .spec:hover { transform: translateY(-2px); border-color: #FFD9E5; background: #fff; }
    .hl { transition: transform .24s, box-shadow .24s, border-color .24s; }
    .hl:hover { transform: translateX(2px); border-color: #FFD3E2; box-shadow: 0 8px 20px -14px rgba(251, 114, 153, .9); }
    .buy:hover { box-shadow: 0 16px 40px -22px rgba(24, 25, 28, .4); }
}

/* 详情页提醒条 */
.d-tip {
    display: flex; align-items: center; gap: 8px;
    width: fit-content; max-width: 100%;
    margin-top: 14px; padding: 9px 14px;
    border-radius: 8px; font-size: 12.5px; line-height: 1.6;
    color: #B4405F;
    background: linear-gradient(90deg, #FFF4F7, #FFF9FB);
    border: 1px solid #FFE1EB;
}
.d-tip svg { width: 15px; height: 15px; flex: none; color: var(--pink); }
.d-tip b { font-weight: 600; }

/* ------------------------------------------------ 办理提醒弹窗 */
body.pop-open { overflow: hidden; }

.pop {
    position: fixed; inset: 0; z-index: 900;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.pop[hidden] { display: none; }

.pop-mask {
    position: absolute; inset: 0;
    background: rgba(9, 11, 16, .5);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    opacity: 0; transition: opacity .3s ease;
}
.pop.on .pop-mask { opacity: 1; }

.pop-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 452px;
    background: #fff; border-radius: 16px;
    padding: 28px 26px 24px;
    box-shadow: 0 32px 80px -24px rgba(9, 11, 16, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
    opacity: 0; transform: translateY(18px) scale(.94);
    transition: opacity .3s ease, transform .42s cubic-bezier(.2, .9, .3, 1.05);
    overflow: hidden;
}
.pop.on .pop-card { opacity: 1; transform: none; }
.pop-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, #FB7299, #FF9E6D, #00AEEC);
}

.pop-x {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #9499A0; background: transparent;
    transition: background .18s, color .18s, transform .18s;
}
.pop-x svg { width: 16px; height: 16px; }
.pop-x:hover { background: #F4F5F7; color: var(--text); transform: rotate(90deg); }

.pop-head { display: flex; align-items: flex-start; gap: 12px; padding-right: 26px; }
.pop-ico {
    flex: none; width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    background: linear-gradient(145deg, #FB7299, #FF5C8A);
    box-shadow: 0 10px 22px -10px rgba(251, 114, 153, .95);
}
.pop-ico svg { width: 22px; height: 22px; }
.pop-head h3 { font-size: 17.5px; font-weight: 700; line-height: 1.35; letter-spacing: .2px; }
.pop-head small {
    display: inline-block; margin-top: 5px;
    font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
    color: #B4405F; background: #FFF0F4;
    padding: 3px 7px; border-radius: 4px;
}

.pop-text {
    margin: 14px 0 16px; font-size: 13px; line-height: 1.8;
    color: #4d5158; word-break: break-word;
}

.pop-list { display: grid; gap: 10px; }
.pop-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 12px; border-radius: 10px;
    background: #FAFAFB; border: 1px solid #F1F2F3;
}
.pop-list i {
    flex: none; width: 24px; height: 24px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    background: #FFF0F4; color: var(--pink); font-size: 13px;
}
.pop-list i svg { width: 14px; height: 14px; }
.pop-list b { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.5; }
.pop-list span { display: block; font-size: 12px; color: #7b8085; line-height: 1.6; margin-top: 1px; }

.pop-once {
    position: relative; display: flex; align-items: center; gap: 7px;
    margin-top: 15px; font-size: 12.5px; color: var(--text3);
    cursor: pointer; user-select: none; width: fit-content;
}
.pop-once input { position: absolute; opacity: 0; width: 0; height: 0; }
.pop-once i {
    width: 16px; height: 16px; border-radius: 4px; flex: none;
    border: 1px solid #D5D8DC; background: #fff; color: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: background .16s, border-color .16s, color .16s;
}
.pop-once i svg { width: 10px; height: 10px; stroke-width: 3; }
.pop-once input:checked + i { background: var(--pink); border-color: var(--pink); color: #fff; }
.pop-once:hover i { border-color: var(--pink); }

.pop-acts { display: flex; gap: 10px; margin-top: 16px; }
.pop-btn {
    flex: 1; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 14px; font-weight: 600;
    transition: transform .15s, box-shadow .2s, background .18s;
}
.pop-btn svg { width: 16px; height: 16px; }
.pop-btn:active { transform: scale(.98); }
.pop-card:focus { outline: none; }
.pop-btn:focus { outline: none; }
.pop-btn:focus-visible { outline: 2px solid #FF9EBB; outline-offset: 3px; }
.pop-x:focus-visible { outline: 2px solid #FF9EBB; outline-offset: 1px; }
.pop-once input:focus-visible + i { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(251, 114, 153, .18); }
.pop-btn-main {
    color: #fff;
    background: linear-gradient(135deg, #FB7299, #FF5C8A);
    box-shadow: 0 6px 16px -10px rgba(251, 114, 153, .75);
}
.pop-btn-main:hover { box-shadow: 0 10px 22px -10px rgba(251, 114, 153, .95); transform: translateY(-1px); }
.pop-btn-ghost { color: var(--text2); background: #F4F5F7; }
.pop-btn-ghost:hover { background: #ECEEF0; color: var(--text); }

/* ------------------------------------------------ 办理跳转引导（手机端） */
.op { z-index: 950; }
.op-card { max-width: 424px; }

.op-head { display: flex; align-items: flex-start; gap: 12px; padding-right: 26px; }
.op-ico {
    flex: none; width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
    background: linear-gradient(145deg, #2AA9F0, #1B6FE0);
    box-shadow: 0 10px 22px -12px rgba(27, 111, 224, .95);
}
.op-ico svg { width: 22px; height: 22px; }
.op-head h3 { font-size: 17.5px; font-weight: 700; line-height: 1.35; letter-spacing: .2px; }
.op-head small {
    display: inline-block; margin-top: 5px;
    font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
    color: #0A6FA8; background: #EAF6FE;
    padding: 3px 7px; border-radius: 4px;
}

.op-text { margin: 14px 0 0; font-size: 13px; line-height: 1.8; color: #4d5158; }
.op-steps { margin: 12px 0 0; display: grid; gap: 8px; list-style: none; }
.op-steps li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 12.5px; line-height: 1.65; color: #5a5f66;
}
.op-steps i {
    flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
    background: #EAF6FE; color: #0A83C4;
    font-style: normal; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.op-url {
    margin-top: 14px; padding: 9px 12px 10px; border-radius: 9px;
    background: #F7F8FA; border: 1px dashed #DDE1E6;
    cursor: pointer; transition: border-color .2s, background .2s;
}
.op-url b {
    display: block; margin-bottom: 3px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .4px; color: #9aa0a6;
}
.op-url span {
    display: block; max-height: 36px; overflow: hidden;
    font-size: 11.5px; color: #6b7078; line-height: 1.55; word-break: break-all;
}
.op-url:hover { border-color: #FFC7D8; background: #FFFBFD; }
.op-url:focus-visible { outline: 2px solid #7FC6F5; outline-offset: 2px; }
.op-url.done { border-style: solid; border-color: #A8E6C8; background: #F3FCF8; }
.op-url.done span { color: #1F9D6A; }

.op-note { margin: 12px 0 0; font-size: 11px; color: #9aa0a6; text-align: center; line-height: 1.6; }
.pop-btn.done {
    background: linear-gradient(135deg, #2ECC8F, #20B57A);
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(32, 181, 122, .95);
}
.pop-btn.done:hover {
    background: linear-gradient(135deg, #2ECC8F, #20B57A);
    color: #fff;
    box-shadow: 0 8px 20px -12px rgba(32, 181, 122, .95);
}

@media (max-width: 560px) {
    .pop { align-items: flex-end; padding: 0; }
    .pop-card {
        max-width: none; border-radius: 18px 18px 0 0;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
        transition: opacity .26s ease, transform .38s cubic-bezier(.2, .9, .3, 1.02);
    }
    .pop.on .pop-card { transform: none; }
    .pop-head h3 { font-size: 16.5px; }
    .pop-list li { padding: 8px 10px; }
    .pop-acts { flex-direction: column-reverse; }
    .pop-btn { height: 46px; }
    /* 办理引导弹窗：手机端按钮加大，拇指区好点 */
    .op-card .pop-acts { gap: 12px; margin-top: 18px; }
    .op-card .pop-btn {
        height: 54px; min-height: 54px; border-radius: 13px;
        font-size: 16.5px; font-weight: 700; gap: 8px;
    }
    .op-card .pop-btn svg { width: 19px; height: 19px; }
    .op-card .pop-btn-ghost { background: #F2F4F7; border: 1px solid #E6E9EE; color: var(--text2); }
    .op-card .pop-btn-ghost:hover { background: #ECEEF0; }
    .pop-card:focus { outline: none; }
.pop-btn:focus { outline: none; }
.pop-btn:focus-visible { outline: 2px solid #FF9EBB; outline-offset: 3px; }
.pop-x:focus-visible { outline: 2px solid #FF9EBB; outline-offset: 1px; }
.pop-once input:focus-visible + i { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(251, 114, 153, .18); }
.pop-btn-main { box-shadow: 0 8px 18px -12px rgba(251, 114, 153, .9); }
}

/* ------------------------------------------------ 降低动效偏好 */
@media (prefers-reduced-motion: reduce) {
    .card, .card-cover, .card-img, .card-cover::before,
    .cover-dur, .cover-type, .cover-badge, .spec, .hl, .buy, .buy-btn, .buy-btn::after {
        transition: none !important;
        animation: none !important;
    }
    .card:hover { --ty: 0px; }
    .card:hover .card-cover::before { animation: none !important; }
    html.anim .grid .card { opacity: 1 !important; }
    html.anim .grid .card.in > * { animation: none !important; }
    .panel, .d-hero, .d-title, .d-sub, .buy { animation: none !important; }
    .pop-card, .pop-mask { transition: none !important; }
}

/* ------------------------------------------------ 滚动 / 聚焦微状态 */
.nav { transition: box-shadow .3s ease, background .3s ease, border-color .3s ease; }
.nav.scrolled {
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 2px 16px -8px rgba(24, 25, 28, .22);
    border-bottom-color: transparent;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(251, 114, 153, .13); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------------------------------------------ 静态站筛选 */
.grid .card.hide { display: none; }

/* ------------------------------------------------ 静态站：商品已下架 */
.d-gone {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    width: fit-content; max-width: 100%;
    margin-top: 14px; padding: 11px 14px;
    border-radius: 8px; font-size: 12.5px; line-height: 1.65;
    color: #8A4B12;
    background: #FFF8EE; border: 1px solid #FFE3BF;
}
.d-gone b { font-weight: 600; }
.d-gone a { color: var(--pink); font-weight: 600; }

/* 同步到下架状态后的办理按钮 */
.buy-btn.gone,
.buy-btn.gone:hover {
    background: #E9EBEE;
    color: #9AA0A6;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    filter: none;
    animation: none;
}
.buy-btn.gone::after { display: none; }
