/* DNFFZ Neon · 暗黑霓虹前台样式 */
:root {
    --bg: #06090f;
    --bg-2: #0b111b;
    --panel: rgba(14, 22, 34, .86);
    --panel-solid: #0e1622;
    --line: rgba(100, 140, 185, .18);
    --text: #dbe6f5;
    --muted: #8595ab;
    --cyan: #33e1ff;
    --pink: #ff2e88;
    --lime: #9dff5c;
    --radius: 16px;
    --shadow: 0 18px 44px rgba(0, 0, 0, .42);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; display: block; }
button { font-family: inherit; }

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    z-index: -1;
    pointer-events: none;
}
.bg-glow-a { width: 420px; height: 420px; background: rgba(51, 225, 255, .16); top: -120px; left: -120px; }
.bg-glow-b { width: 460px; height: 460px; background: rgba(255, 46, 136, .13); bottom: -160px; right: -140px; }

.wrap { width: 1180px; max-width: calc(100% - 32px); margin: 0 auto; }

/* 顶栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 9, 15, .78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    color: #041018;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.5px;
    box-shadow: 0 0 24px rgba(51, 225, 255, .28);
}
.brand-img { height: 40px; width: auto; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: .2s;
    white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(51, 225, 255, .08); }
.nav a.on { color: #05121a; background: linear-gradient(135deg, var(--cyan), #7af5ff); font-weight: 700; }
.topbar-cta {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 46, 136, .5);
    color: #ff9dc4;
    font-size: 13px;
    transition: .2s;
    flex: none;
}
.topbar-cta:hover { background: rgba(255, 46, 136, .12); color: #fff; }

/* 首页英雄区 */
.hero {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1.45fr .9fr;
    gap: 20px;
}
.hero-main {
    position: relative;
    padding: 40px 38px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 46, 136, .16), transparent 42%),
        radial-gradient(circle at 8% 92%, rgba(51, 225, 255, .15), transparent 45%),
        linear-gradient(150deg, #0d1724, #0a1019);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-main::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(80, 140, 190, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 140, 190, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(51, 225, 255, .32);
    background: rgba(51, 225, 255, .08);
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: .5px;
}
.hero-main h1 {
    position: relative;
    margin: 18px 0 12px;
    font-size: 46px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 1px;
}
.hero-main h1 span {
    background: linear-gradient(100deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc { position: relative; color: var(--muted); max-width: 520px; margin-bottom: 24px; }
.hero-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #19b7d8);
    color: #04121a;
    box-shadow: 0 10px 26px rgba(51, 225, 255, .24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(51, 225, 255, .34); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 46, 136, .5); color: #ff9dc4; }
.hero-stats { position: relative; display: flex; gap: 30px; margin-top: 30px; }
.hero-stats div b { display: block; font-size: 26px; color: #fff; }
.hero-stats div span { color: var(--muted); font-size: 12px; }

.hero-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}
.hero-card-head {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.hero-card-head .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 12px var(--pink);
}
.hero-card-body { padding: 14px 0; color: #c6d4e6; font-size: 13px; overflow: auto; max-height: 230px; }
.hero-card-body p { margin-bottom: 7px; }
.hero-card-body b { color: var(--cyan); }
.hero-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.hero-card-foot b { color: var(--pink); }

/* 滚动公告 */
.marquee {
    margin-top: 16px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 196, 0, .22);
    background: rgba(255, 196, 0, .06);
    border-radius: 12px;
    overflow: hidden;
}
.marquee-label {
    flex: none;
    padding: 9px 16px;
    background: linear-gradient(135deg, #ffb300, #ff7a00);
    color: #1b1200;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
}
.marquee-track { padding: 9px 16px; color: #ffd166; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 主体布局 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin: 26px auto 40px; align-items: start; }
.content-col { min-width: 0; }

/* 分区标签 */
.tabs-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}
.tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.tab-btn {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    transition: .2s;
}
.tab-btn:hover { color: var(--text); background: rgba(51, 225, 255, .07); }
.tab-btn.on {
    color: #04121a;
    background: linear-gradient(135deg, var(--cyan), #6ef0ff);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(51, 225, 255, .2);
}
.tab-pane { display: none; padding: 18px; }
.tab-pane.on { display: block; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* 商品卡片 */
.pcard {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(20, 31, 46, .92), rgba(11, 17, 27, .92));
    padding: 12px;
    transition: .22s;
}
.pcard:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 225, 255, .45);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(51, 225, 255, .08);
}
.pcard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pcard-ico {
    flex: none;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(51, 225, 255, .22), rgba(255, 46, 136, .22));
    color: #fff; font-weight: 700; font-size: 14px;
    overflow: hidden;
}
.pcard-ico img { width: 100%; height: 100%; object-fit: cover; }
.pcard-title {
    flex: 1; min-width: 0;
    font-weight: 700; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-title:hover { color: var(--cyan); }
.pcard-hot {
    flex: none;
    font-size: 11px;
    color: #ffb0cf;
    border: 1px solid rgba(255, 46, 136, .45);
    border-radius: 999px;
    padding: 1px 7px;
}
.pcard-cover {
    position: relative;
    height: 132px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: radial-gradient(circle at 50% 30%, rgba(51, 225, 255, .22), transparent 62%), linear-gradient(135deg, #101b2a, #0a0f18);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-letter { font-size: 30px; font-weight: 800; color: rgba(255, 255, 255, .9); line-height: 1; }
.cover-sub { margin-top: 5px; font-size: 10px; letter-spacing: 3px; color: rgba(51, 225, 255, .65); }
.pcard-meta { list-style: none; font-size: 12px; color: var(--muted); display: grid; gap: 4px; margin-bottom: 10px; }
.pcard-meta li { display: flex; gap: 8px; }
.pcard-meta li span { flex: none; color: #6e8098; }
.pcard-meta b { color: #ffd166; font-weight: 700; }
.pcard-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.pbtn {
    flex: 1;
    min-width: 64px;
    text-align: center;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid transparent;
    transition: .2s;
}
.pbtn-buy { background: linear-gradient(135deg, var(--pink), #d6006a); color: #fff; }
.pbtn-buy:hover { filter: brightness(1.08); }
.pbtn-info { border-color: rgba(51, 225, 255, .32); color: var(--cyan); background: rgba(51, 225, 255, .05); }
.pbtn-info:hover { background: rgba(51, 225, 255, .12); }
.pbtn-down { border-color: rgba(157, 255, 92, .3); color: var(--lime); background: rgba(157, 255, 92, .04); }
.pbtn-down:hover { background: rgba(157, 255, 92, .1); }
.pbtn.big { flex: none; padding: 11px 26px; font-size: 14px; border-radius: 10px; }

.dl-mask {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(3, 10, 16, .68);
}

.dl-modal {
    width: 100%;
    max-width: 360px;
    padding: 24px 22px 20px;
    border-radius: 14px;
    background: #fff;
    color: #16202b;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.dl-modal-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.dl-modal-product { font-size: 14px; line-height: 1.55; color: #5b6674; margin-bottom: 10px; word-break: break-word; }
.dl-modal-pass { font-size: 14px; color: #39424e; margin-bottom: 18px; }
.dl-modal-pass b { color: var(--pink); }
.dl-modal-actions { display: flex; gap: 10px; }

.dl-ok, .dl-cancel {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.dl-ok { border: 0; background: var(--cyan); color: #04141c; font-weight: 700; }
.dl-ok:hover { filter: brightness(.92); }
.dl-cancel { border: 1px solid #d8dee6; background: #fff; color: #5b6674; }
.dl-cancel:hover { background: #f3f6f9; }

.empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 12px;
}

/* 侧栏 */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.side-head {
    padding: 13px 16px;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(90deg, rgba(51, 225, 255, .1), transparent);
    border-bottom: 1px solid var(--line);
}
.side-body { padding: 14px; }
.side-kefu {
    display: block;
    text-align: center;
    padding: 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pink), #c10060);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
}
.side-kefu:hover { filter: brightness(1.08); }
.side-kefu-group { background: linear-gradient(135deg, var(--cyan), #0099c4); }
.side-qr { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.side-note { color: var(--muted); font-size: 12px; text-align: center; }
.side-list { list-style: none; }
.side-list li { border-bottom: 1px dashed rgba(100, 140, 185, .14); }
.side-list li:last-child { border-bottom: 0; }
.side-list a {
    display: block;
    padding: 9px 14px;
    color: #c6d4e6;
    font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: .2s;
}
.side-list a:hover { color: var(--cyan); background: rgba(51, 225, 255, .06); }

/* 列表页 */
.page-head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 4px 2px 14px;
}
.page-head h1 { font-size: 22px; letter-spacing: .5px; }
.page-head span { color: var(--muted); font-size: 12px; }
.list-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 10px; }
.lrow {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px dashed rgba(100, 140, 185, .14);
    transition: .2s;
}
.lrow:last-of-type { border-bottom: 0; }
.lrow:hover { background: rgba(51, 225, 255, .04); }
.lrow-thumb {
    flex: none;
    width: 62px; height: 62px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #12202f, #0a1019);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    overflow: hidden;
}
.lrow-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lrow-main { flex: 1; min-width: 0; }
.lrow-title { font-weight: 700; font-size: 15px; }
.lrow-title:hover { color: var(--cyan); }
.lrow-main p { color: var(--muted); font-size: 12px; margin: 3px 0 6px; }
.lrow-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: #7f91a8; }
.lrow-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.lrow-tags .price { color: #ffd166; border-color: rgba(255, 209, 102, .3); }
.lrow-actions { flex: none; display: flex; gap: 6px; }
.lrow-actions .pbtn { flex: none; min-width: 58px; }

.pager { display: flex; justify-content: center; gap: 6px; padding: 18px 0 8px; flex-wrap: wrap; }
.pager a {
    min-width: 34px; text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.pager a:hover { color: var(--text); border-color: rgba(51, 225, 255, .4); }
.pager a.on { background: linear-gradient(135deg, var(--cyan), #19b7d8); border-color: transparent; color: #04121a; font-weight: 700; }

/* 详情 */
.crumb { margin: 26px 0 -6px; color: var(--muted); font-size: 12px; }
.crumb a:hover { color: var(--cyan); }
.crumb i { margin: 0 7px; font-style: normal; color: #3d4c60; }
.detail-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 26px; }
.detail-card h1 { font-size: 26px; line-height: 1.4; margin-bottom: 8px; }
.detail-sub { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-info {
    display: flex;
    gap: 20px;
    padding: 18px;
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}
.detail-cover {
    flex: none;
    width: 132px; height: 132px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 30%, rgba(51, 225, 255, .2), transparent 60%), linear-gradient(135deg, #12202f, #0a1019);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 800; color: #fff;
    overflow: hidden;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { list-style: none; flex: 1; min-width: 0; display: grid; gap: 8px; }
.detail-meta li { display: flex; gap: 14px; font-size: 13px; }
.detail-meta li span { flex: none; width: 70px; color: var(--muted); }
.detail-meta b { color: #ffd166; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-body { line-height: 2; font-size: 14px; color: #cbd9ea; word-break: break-word; }
.detail-body p { margin-bottom: 8px; }
.detail-body img { border-radius: 10px; margin: 8px 0; }
.prevnext {
    margin-top: 26px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    font-size: 13px;
    display: grid;
    gap: 6px;
    color: var(--muted);
}
.prevnext a { color: var(--cyan); }
.back-link { margin-top: 20px; color: var(--muted); font-size: 13px; }
.back-link a:hover { color: var(--cyan); }

/* 资讯时间线 */
.timeline { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 8px 18px; }
.tl-item { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px dashed rgba(100, 140, 185, .14); }
.tl-item:last-child { border-bottom: 0; }
.tl-date {
    flex: none; width: 90px;
    color: var(--cyan); font-size: 12px;
    border-right: 1px solid var(--line);
    display: flex; align-items: center;
}
.tl-body { min-width: 0; }
.tl-body a { font-weight: 700; font-size: 15px; }
.tl-body a:hover { color: var(--cyan); }
.tl-body p { color: var(--muted); font-size: 12px; margin-top: 3px; }

/* 404 */
.error-box { margin: 70px auto; max-width: 520px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 46px 30px; }
.error-code { font-size: 64px; font-weight: 800; background: linear-gradient(120deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-box p { color: var(--muted); margin: 12px 0 24px; }

/* 页脚 */
.footer { border-top: 1px solid var(--line); background: rgba(7, 11, 18, .9); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.footer-about p { color: var(--muted); font-size: 12px; }
.footer-copy { margin-top: 4px; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.footer-label { color: #6e8098; }
.footer-links a:hover { color: var(--cyan); }
.footer-links em { font-style: normal; color: #6e8098; }

@media (max-width: 1000px) {
    .wrap { width: 100%; padding: 0 14px; }
    .hero { grid-template-columns: 1fr; }
    .hero-main h1 { font-size: 34px; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .side-card { flex: 1 1 280px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav { display: none; }
    .topbar-inner { height: 62px; }
    .topbar-cta { margin-left: auto; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero-main { padding: 26px 22px; }
    .hero-main h1 { font-size: 28px; }
    .hero-stats { gap: 16px; }
    .lrow { flex-wrap: wrap; }
    .lrow-actions { width: 100%; }
    .lrow-actions .pbtn { flex: 1; }
    .detail-info { flex-direction: column; }
    .detail-cover { width: 100%; height: 160px; }
    .footer-inner { flex-direction: column; }
}
