/* ==========================================================
   站点A 前台样式 —— 深黑底 + 橙色强调（简洁卡片风）
   ========================================================== */
:root {
    --bg: #08080a;
    --bg-soft: #0c0c0e;
    --panel: #111113;
    --panel-2: #17171a;
    --line: #232327;
    --line-soft: #1b1b1f;
    --text: #f4f4f6;
    --muted: #8e8e99;
    --dim: #64646e;
    --brand: #ff6b1a;
    --brand-2: #ff4d1a;
    --brand-soft: rgba(255, 107, 26, .12);
    --radius: 12px;
    --shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(900px 460px at 50% -12%, rgba(255, 107, 26, .10), transparent 62%),
        var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* -------------------- 顶部导航 -------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 8, 10, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, #ff7a2f, #f04406);
    box-shadow: 0 6px 16px rgba(255, 90, 20, .28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
}

.logo-text small {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--dim);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 6px;
}

.nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #9a9aa4;
    transition: color .18s, background .18s;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }

.nav a.active { color: #fff; }

.nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 18px;
    height: 2px;
    margin-left: -9px;
    border-radius: 2px;
    background: var(--brand);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
}

.top-search input {
    width: 168px;
    padding: 9px 14px;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-size: 13px;
}

.top-search input::placeholder { color: var(--dim); }

.top-search button {
    padding: 9px 16px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    background: var(--brand);
}

.top-search button:hover { background: var(--brand-2); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    font-size: 18px;
    padding: 4px 10px;
    cursor: pointer;
}

/* -------------------- 公告条 -------------------- */
.notice-bar {
    background: rgba(255, 107, 26, .07);
    border-bottom: 1px solid rgba(255, 107, 26, .16);
    color: #eeb497;
    font-size: 13px;
    padding: 9px 0;
}

/* -------------------- 按钮 -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff7a2f, #f04a0c);
    box-shadow: 0 10px 24px rgba(255, 90, 20, .22);
}

.btn-primary:hover { box-shadow: 0 14px 30px rgba(255, 90, 20, .32); }

.btn-ghost {
    color: #d9d9e0;
    background: rgba(255, 255, 255, .04);
    border-color: #2a2a30;
}

.btn-ghost:hover { border-color: #3a3a42; }

.btn-line {
    color: #ffb997;
    background: transparent;
    border-color: rgba(255, 107, 26, .42);
}

.btn-line:hover { border-color: var(--brand); color: #fff; }

.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* -------------------- 首屏 -------------------- */
.hero { padding: 54px 0 30px; }

.hero-inner {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 44px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .5px;
    color: #ffb894;
    background: rgba(255, 107, 26, .1);
    border: 1px solid rgba(255, 107, 26, .26);
}

.hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(31px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.18;
    color: #fff;
}

.hero-copy > p {
    max-width: 540px;
    color: var(--muted);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.hero-stats {
    display: flex;
    gap: 44px;
    margin-top: 32px;
}

.hero-stats div { display: flex; flex-direction: column; }

.hero-stats strong {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.hero-stats span { font-size: 12px; color: var(--dim); letter-spacing: 1px; }

.hero-panel { position: relative; }

.notice-card {
    position: relative;
    padding: 24px 24px 28px;
    border-radius: 14px;
    background: linear-gradient(165deg, #1a1a1e, #101012 70%);
    border: 1px solid #2a2a30;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.notice-card::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 2px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 26, .55), transparent);
}

.notice-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid #303036;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.notice-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 10px rgba(255, 107, 26, .8);
}

.notice-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.notice-lines p {
    margin: 0;
    color: #dcdce3;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.65;
    word-break: break-word;
}

/* -------------------- 区块 -------------------- */
.section { padding: 48px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018), transparent); }
.section-tight { padding-top: 20px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #ff7a2f;
    margin-bottom: 6px;
}

.section-head h2 { font-size: 27px; font-weight: 800; letter-spacing: .5px; }

.more-link { font-size: 13px; color: var(--muted); transition: .2s; }
.more-link:hover { color: var(--brand); }

/* -------------------- 工具卡片 -------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .22s, border-color .22s, box-shadow .22s;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 26, .4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.tool-cover {
    position: relative;
    display: grid;
    place-items: center;
    height: 178px;
    font-size: 60px;
    font-weight: 800;
    color: rgba(255, 255, 255, .95);
    letter-spacing: 2px;
    overflow: hidden;
}

.tool-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, .16), transparent 58%);
}

.tool-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(122deg, rgba(255, 255, 255, .055) 0 2px, transparent 2px 18px);
}

.tool-cover span { position: relative; z-index: 1; text-shadow: 0 10px 26px rgba(0, 0, 0, .4); }

.tool-cover .cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 2;
}

.tool-cover .tag { z-index: 3; }

.tool-cover.small { width: 112px; height: 84px; flex-shrink: 0; font-size: 26px; border-radius: 10px; }
.tool-cover.large { width: 240px; height: 176px; flex-shrink: 0; font-size: 64px; border-radius: 12px; }

.tag {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, .34);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
}

.cover-0 { background: linear-gradient(135deg, #f0801f, #9c3c05); }
.cover-1 { background: linear-gradient(135deg, #8a1fc0, #46096b); }
.cover-2 { background: linear-gradient(135deg, #1f6fd8, #0b2c66); }
.cover-3 { background: linear-gradient(135deg, #1f7a4c, #093f26); }
.cover-4 { background: linear-gradient(135deg, #d61b45, #76091f); }
.cover-5 { background: linear-gradient(135deg, #0f8f96, #05454d); }

.tool-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.tool-body h3 { font-size: 16.5px; font-weight: 600; color: #fff; }
.tool-body p { color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }

.tool-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.tool-meta .price { color: #ff7a2f; font-weight: 700; font-size: 15px; }

.tool-meta .cat {
    padding: 3px 10px;
    font-size: 11.5px;
    color: #8b8b95;
    background: #0d0d0f;
    border: 1px solid #26262a;
    border-radius: 999px;
    white-space: nowrap;
}

/* -------------------- 工具列表行 -------------------- */
.tool-list { display: flex; flex-direction: column; gap: 12px; }

.tool-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s, background .2s;
}

.tool-row:hover { border-color: rgba(255, 107, 26, .35); background: var(--panel-2); }

.tool-row-body { flex: 1; min-width: 0; }
.tool-row-body h3 { font-size: 16px; }
.tool-row-body h3 a:hover { color: #ff9a63; }
.tool-row-body p { color: var(--muted); font-size: 13px; margin-top: 3px; }

.tool-row-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--dim); }

.tool-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* -------------------- 资讯卡片 -------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.news-grid.wide { grid-template-columns: repeat(3, 1fr); }

.news-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .2s, border-color .2s;
}

.news-card:hover { transform: translateY(-3px); border-color: rgba(255, 107, 26, .35); }

.news-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.news-card p { color: var(--muted); font-size: 13px; flex: 1; }

.news-cat {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    color: #ffb491;
    background: rgba(255, 107, 26, .09);
    border: 1px solid rgba(255, 107, 26, .22);
}

.news-meta { display: flex; gap: 16px; font-size: 12px; color: var(--dim); }

/* -------------------- 页面头 / 面包屑 -------------------- */
.page-head {
    padding: 40px 0 20px;
    background: linear-gradient(180deg, rgba(255, 107, 26, .05), transparent);
    border-bottom: 1px solid var(--line-soft);
}

.page-head h1 { font-size: 30px; font-weight: 800; margin: 4px 0 4px; }
.page-head p { color: var(--muted); font-size: 13px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb em { font-style: normal; color: #fff; }
.breadcrumb a:hover { color: var(--brand); }

/* -------------------- 筛选 -------------------- */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--muted);
    border: 1px solid var(--line);
    background: var(--panel);
    transition: .2s;
}

.chip:hover { color: #fff; border-color: rgba(255, 107, 26, .4); }

.chip.active {
    color: #fff;
    border-color: transparent;
    background: var(--brand);
}

.filter-search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    background: var(--panel);
}

.filter-search input {
    padding: 9px 14px;
    width: 200px;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    font-size: 13px;
}

.filter-search input::placeholder { color: var(--dim); }

.filter-search button {
    padding: 0 18px;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
    background: var(--brand);
}

/* -------------------- 分页 -------------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }

.pagination a {
    min-width: 38px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    font-size: 13px;
    color: var(--muted);
}

.pagination a:hover { color: #fff; border-color: rgba(255, 107, 26, .45); }
.pagination a.active { color: #fff; background: var(--brand); border-color: transparent; }

/* -------------------- 详情页 -------------------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.tool-hero {
    display: flex;
    gap: 24px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

.tool-hero-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tool-hero-info h1 { font-size: 26px; font-weight: 800; margin-top: 2px; }
.tool-hero-info > p { color: var(--muted); font-size: 14px; }
.tool-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--dim); margin-top: 4px; }
.tool-hero-meta .price { color: #ff7a2f; font-weight: 700; font-size: 16px; }
.tool-hero-actions { display: flex; gap: 12px; margin-top: 10px; }

.article-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: 28px; font-weight: 800; margin: 12px 0 10px; }

.prose {
    margin-top: 22px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    color: #d3d3da;
    font-size: 15px;
    line-height: 1.95;
}

.prose h2 { font-size: 20px; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--brand); }
.prose p + p { margin-top: 16px; }
.prose .content-figure { margin: 18px 0; }
.prose .content-figure img { display: block; width: 100%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); }

.detail-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }

.aside-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

.aside-card h3 { font-size: 15px; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--brand); }

.aside-list { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.aside-list li + li { margin-top: 6px; }

.aside-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dashed var(--line);
}

.aside-link:first-of-type { border-top: 0; }
.aside-link:hover strong { color: #ff9a63; }
.aside-link strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.aside-link small { color: var(--dim); font-size: 11px; }

.dot { width: 10px; height: 10px; border-radius: 4px; margin-top: 6px; flex-shrink: 0; }
.dot-0 { background: #f0801f; } .dot-1 { background: #8a1fc0; } .dot-2 { background: #1f6fd8; }
.dot-3 { background: #1f7a4c; } .dot-4 { background: #d61b45; } .dot-5 { background: #0f8f96; }

/* -------------------- 搜索 -------------------- */
.search-hero {
    display: flex;
    max-width: 560px;
    margin: 18px 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
}

.search-hero input { flex: 1; padding: 13px 18px; border: 0; background: transparent; color: var(--text); outline: none; }

.search-hero button {
    padding: 0 26px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    background: var(--brand);
}

.search-hero button:hover { background: var(--brand-2); }

.search-group-title { font-size: 18px; font-weight: 700; margin: 26px 0 14px; }

/* -------------------- 页脚 -------------------- */
.site-footer {
    margin-top: 36px;
    padding-top: 44px;
    border-top: 1px solid var(--line-soft);
    background: #060608;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1fr;
    gap: 40px;
    padding-bottom: 34px;
}

.footer-about p { color: var(--muted); font-size: 13px; margin-top: 14px; }
.footer-tip { font-size: 12px; color: #55555f; }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4, .footer-contact h4 { font-size: 14px; margin-bottom: 6px; color: #fff; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
.footer-contact p { font-size: 13px; color: var(--muted); }
.footer-contact strong { color: #ff9a63; font-size: 16px; }

.footer-qq {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    background: var(--brand);
}

.footer-qq:hover { background: var(--brand-2); }

.footer-bottom {
    border-top: 1px solid var(--line-soft);
    padding: 16px 0;
    font-size: 12px;
    color: #55555f;
}

.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.float-qq {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a2f, #f04406);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 90, 20, .35);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    animation: qqPulse 2.6s infinite;
}

.float-qq small { font-size: 10px; font-weight: 400; opacity: .85; }

@keyframes qqPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* -------------------- 空态 -------------------- */
.empty {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    font-size: 14px;
}

.empty a { color: var(--brand); }

/* -------------------- 响应式 -------------------- */
@media (max-width: 1040px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-panel { max-width: 420px; }
    .top-search { display: none; }
}

@media (max-width: 860px) {
    .nav {
        position: absolute;
        top: 68px;
        right: 4%;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 12px;
        background: var(--panel);
        border: 1px solid var(--line);
        display: none;
        min-width: 180px;
    }
    .nav.open { display: flex; }
    .nav a.active::after { display: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .header-inner { gap: 12px; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .tool-hero { flex-direction: column; }
    .tool-cover.large { width: 100%; height: 180px; }
    .news-grid, .news-grid.wide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 38px 0 22px; }
    .hero-stats { gap: 22px; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .tool-cover { height: 150px; font-size: 48px; }
    .news-grid, .news-grid.wide { grid-template-columns: 1fr; }
    .tool-row { flex-wrap: wrap; }
    .tool-cover.small { width: 100%; height: 90px; }
    .tool-row-actions { width: 100%; }
    .tool-row-actions .btn { flex: 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .filter-search input { width: 140px; }
    .hero-actions { flex-wrap: wrap; }
    .float-qq { width: 52px; height: 52px; font-size: 11px; }
}

/* -------------------- 下载提示弹窗 -------------------- */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .74);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.modal-mask.open { display: flex; }

.dl-modal {
    position: relative;
    width: min(452px, 100%);
    max-width: 100%;
    min-width: 0;
    padding: 32px 28px 26px;
    border-radius: 18px;
    border: 1px solid #2b2b31;
    background:
        radial-gradient(420px 220px at 50% -30%, rgba(255, 107, 26, .14), transparent 68%),
        #16161a;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .72);
    animation: dlPop .22s ease-out;
}

@keyframes dlPop {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.dl-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #2f2f36;
    background: rgba(255, 255, 255, .03);
    color: #8e8e99;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
}

.dl-modal-close:hover { color: #fff; border-color: #4a4a54; background: rgba(255, 255, 255, .08); }

.dl-modal-title {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
    color: #fff;
}

.dl-modal-sub {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.dl-modal-pw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    font-size: 15px;
    color: #b9b9c4;
}

.dl-modal-pw strong {
    padding: 2px 4px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.2;
    color: #ff2f62;
    text-shadow: 0 0 16px rgba(255, 47, 98, .75), 0 0 42px rgba(255, 47, 98, .4);
    cursor: pointer;
    user-select: all;
}

.dl-modal-pw strong.is-copied { color: #4ade80; text-shadow: 0 0 18px rgba(74, 222, 128, .5); }

.dl-modal-tip {
    margin-top: 8px;
    font-size: 12px;
    color: var(--dim);
    text-align: center;
}

.dl-modal-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.dl-modal-actions .btn {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}

.dl-modal-actions .btn-go { flex: 1.4; font-family: inherit; }

.dl-modal-actions .btn-close {
    font-family: inherit;
    color: #e6e6ea;
    background: #1b1b20;
    border: 1px solid #33333b;
}

.dl-modal-actions .btn-close:hover { background: #232329; border-color: #45454f; }

@media (max-width: 480px) {
    .dl-modal { padding: 28px 20px 22px; }
    .dl-modal-title { font-size: 21px; }
    .dl-modal-pw strong { font-size: 25px; }
    .dl-modal-actions { flex-direction: column-reverse; }
    .dl-modal-actions .btn { flex: none; width: 100%; }
}

/* -------------------- 首页公告弹窗 -------------------- */
.notice-modal {
    --nm-pad: 30px;
    position: relative;
    width: min(560px, 100%);
    max-width: 100%;
    min-width: 0;
    padding: 18px 0 20px;
    border-radius: 16px;
    border: 1px solid #2b2b31;
    background:
        radial-gradient(520px 260px at 50% -20%, rgba(255, 107, 26, .10), transparent 70%),
        #141417;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .72);
    animation: dlPop .22s ease-out;
}

.notice-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 var(--nm-pad) 10px;
}

.notice-modal-head h3 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.notice-modal-close {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 1px solid #2f2f36;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
    color: #a9a9b4;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
}

.notice-modal-close:hover { color: #fff; border-color: #4a4a54; background: rgba(255, 255, 255, .08); }

.notice-modal-body {
    max-height: 56vh;
    padding: 12px 0 2px;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 2.05;
    color: #f2f2f5;
}

.notice-modal-body p { margin: 0; }

/* 每段整体居中，段内各行左对齐（与后台文本框排版一致） */
.notice-group {
    display: inline-block;
    max-width: 100%;
    padding: 0 var(--nm-pad);
    text-align: left;
    vertical-align: top;
}

.notice-modal-body .notice-link {
    color: #fff;
    border-bottom: 1px dashed rgba(255, 255, 255, .45);
    transition: color .18s, border-color .18s;
}

.notice-modal-body .notice-link:hover { color: var(--brand); border-color: var(--brand); }

.notice-hr {
    height: 3px;
    margin: 14px 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff2d55 0%, #ff8a00 22%, #ffd60a 40%, #32d74b 58%, #0a84ff 78%, #bf5af2 100%);
}

.notice-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding: 0 var(--nm-pad);
}

.notice-modal-actions .btn {
    min-width: 118px;
    height: 46px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 15.5px;
    font-weight: 700;
}

.notice-btn-ok {
    color: #e6e6ea;
    background: #1e1e23;
    border: 1px solid #35353d;
}

.notice-btn-ok:hover { background: #27272e; border-color: #45454f; }

@media (max-width: 480px) {
    .notice-modal { --nm-pad: 20px; padding: 14px 0 16px; }
    .notice-modal-head h3 { font-size: 16px; }
    .notice-modal-body { font-size: 15px; line-height: 1.95; }
    .notice-modal-actions .btn { min-width: 0; flex: 1; height: 44px; padding: 0 14px; font-size: 15px; }
}
