/* 黑洞加速器官网 — 深紫青绿主题 */
:root {
    --hd-primary: #5c2d91;
    --hd-primary-dark: #3d1d62;
    --hd-accent: #14b8a6;
    --hd-accent-dark: #0d9488;
    --hd-bg: #f4f2f8;
    --hd-surface: #ffffff;
    --hd-text: #1e1b2e;
    --hd-muted: #6b6578;
    --hd-border: rgba(92, 45, 145, 0.12);
    --hd-radius: 14px;
    --hd-radius-sm: 10px;
    --hd-shadow: 0 8px 28px rgba(61, 29, 98, 0.08);
    --hd-transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.hd-site,
body.hd-inner {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--hd-text);
    line-height: 1.65;
    background: var(--hd-bg);
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hd-container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* 导航 */
.hd-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hd-border);
    padding: 0.65rem 0;
}

.hd-nav .hd-brand img {
    height: 40px;
    width: auto;
}

.hd-nav-list .nav-link {
    color: var(--hd-text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 8px;
    transition: color var(--hd-transition), background var(--hd-transition);
}

.hd-nav-list .nav-link:hover {
    color: var(--hd-primary) !important;
    background: rgba(92, 45, 145, 0.06);
}

.hd-toggler {
    border: 1px solid var(--hd-border);
    padding: 0.35rem 0.55rem;
}

.hd-nav .navbar-collapse {
    background: var(--hd-surface);
    border-radius: var(--hd-radius-sm);
    margin-top: 0.5rem;
    padding: 0.5rem;
    box-shadow: var(--hd-shadow);
}

@media (min-width: 992px) {
    .hd-nav .navbar-collapse {
        background: transparent;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
    }
}

/* 首屏 */
.hd-hero {
    background: linear-gradient(145deg, var(--hd-primary-dark) 0%, var(--hd-primary) 48%, #6b3fa8 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hd-hero::after {
    content: "";
    position: absolute;
    right: -15%;
    top: -30%;
    width: 55%;
    height: 160%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 65%);
    pointer-events: none;
}

.hd-hero .hd-container {
    position: relative;
    z-index: 1;
}

.hd-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 1rem;
}

.hd-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hd-hero-lead {
    font-size: 1.02rem;
    opacity: 0.92;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.hd-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hd-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hd-hero-img {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.2));
}

/* 按钮 */
.hd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    transition: transform var(--hd-transition), box-shadow var(--hd-transition);
    text-decoration: none;
    white-space: normal;
    line-height: 1.3;
}

.hd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(61, 29, 98, 0.18);
}

.hd-btn-light {
    background: #fff;
    color: var(--hd-primary);
}

.hd-btn-primary {
    background: var(--hd-primary);
    color: #fff;
}

.hd-btn-accent {
    background: var(--hd-accent);
    color: #fff;
}

.hd-btn-outline {
    background: transparent;
    color: var(--hd-primary);
    border: 1px solid var(--hd-primary);
}

.hd-btn-outline:hover {
    background: var(--hd-primary);
    color: #fff;
}

/* 区块通用 */
.hd-section {
    padding: 3.5rem 0;
}

.hd-section-light {
    background: var(--hd-surface);
}

.hd-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.25rem;
}

.hd-section-head h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--hd-primary-dark);
    margin-bottom: 0.6rem;
}

.hd-section-head p {
    color: var(--hd-muted);
    margin: 0;
    font-size: 0.98rem;
}

.hd-muted {
    color: var(--hd-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* Bento 特点 */
.hd-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hd-bento-item {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--hd-shadow);
    transition: border-color var(--hd-transition);
}

.hd-bento-item:hover {
    border-color: rgba(20, 184, 166, 0.35);
}

.hd-bento-item i {
    font-size: 1.5rem;
    color: var(--hd-accent);
    margin-bottom: 0.75rem;
}

.hd-bento-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--hd-primary-dark);
}

.hd-bento-item p {
    font-size: 0.9rem;
    color: var(--hd-muted);
    margin: 0;
}

.hd-bento-wide {
    grid-column: span 2;
}

@media (max-width: 575px) {
    .hd-bento {
        grid-template-columns: 1fr;
    }

    .hd-bento-wide {
        grid-column: span 1;
    }
}

/* 数据条 */
.hd-stats {
    background: linear-gradient(90deg, var(--hd-primary-dark), var(--hd-primary));
    color: #fff;
    padding: 2.5rem 0;
}

.hd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.hd-stat strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.hd-stat span {
    font-size: 0.88rem;
    opacity: 0.88;
}

@media (max-width: 767px) {
    .hd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* 下载卡片 */
.hd-dl-card {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    padding: 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--hd-shadow);
    overflow: hidden;
}

.hd-dl-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.hd-dl-head h3 {
    font-size: 1.05rem;
    margin: 0 0 0.15rem;
    font-weight: 600;
}

.hd-dl-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.hd-dl-win {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.hd-dl-android {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.hd-dl-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.15rem;
    flex: 1;
}

.hd-dl-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: var(--hd-muted);
}

.hd-dl-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hd-accent);
}

/* 知识卡片 */
.hd-knowledge-card {
    background: var(--hd-bg);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    padding: 1.25rem;
    height: 100%;
}

.hd-knowledge-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hd-primary);
    margin-bottom: 0.5rem;
}

.hd-knowledge-card p {
    font-size: 0.9rem;
    color: var(--hd-muted);
    margin: 0;
}

/* 安全卡片 */
.hd-sec-card {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    padding: 1.15rem;
    height: 100%;
    text-align: center;
}

.hd-sec-card i {
    font-size: 1.4rem;
    color: var(--hd-accent);
    margin-bottom: 0.6rem;
}

.hd-sec-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.hd-sec-card p {
    font-size: 0.82rem;
    color: var(--hd-muted);
    margin: 0;
}

/* FAQ */
.hd-faq-card {
    background: var(--hd-bg);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    padding: 1.15rem 1.2rem;
    height: 100%;
}

.hd-faq-card h5 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--hd-primary-dark);
    margin-bottom: 0.45rem;
}

.hd-faq-card p {
    font-size: 0.88rem;
    color: var(--hd-muted);
    margin: 0;
}

/* 文章卡片 */
.hd-article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hd-primary-dark);
}

.hd-article-card {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    overflow: hidden;
    transition: box-shadow var(--hd-transition);
}

.hd-article-card:hover {
    box-shadow: var(--hd-shadow);
}

.hd-article-thumb {
    display: block;
    overflow: hidden;
}

.hd-article-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.hd-article-body {
    padding: 0.75rem 0.85rem 0.9rem;
}

.hd-article-meta {
    font-size: 0.75rem;
    color: var(--hd-muted);
    margin-bottom: 0.35rem;
}

.hd-article-body h3 {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.hd-article-body h3 a {
    color: var(--hd-text);
    text-decoration: none;
}

.hd-article-body h3 a:hover {
    color: var(--hd-primary);
}

/* 页脚 */
.hd-footer {
    background: var(--hd-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.75rem 0 1.5rem;
}

.hd-footer h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.hd-footer-desc {
    font-size: 0.88rem;
    opacity: 0.8;
    margin-top: 0.75rem;
    max-width: 280px;
}

.hd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.86rem;
    display: block;
    padding: 0.2rem 0;
}

.hd-footer-links a:hover {
    color: var(--hd-accent);
}

.hd-friend-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.hd-friend-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
}

.hd-friend-links a:hover {
    color: var(--hd-accent);
}

.hd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
}

.hd-footer-bottom a {
    color: #fff;
    text-decoration: none;
}

/* 内页 / 列表页 */
.hd-inner-main {
    padding: 2rem 0 3rem;
}

.hd-panel {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    overflow: hidden;
}

.hd-panel-body {
    padding: 1.25rem 1.35rem;
}

.hd-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--hd-primary-dark);
    margin-bottom: 0.35rem;
}

.hd-sidebar-card {
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-sm);
    padding: 1.15rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--hd-shadow);
}

.hd-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hd-primary);
    margin-bottom: 0.75rem;
}

.hd-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd-sidebar-card li {
    margin-bottom: 0.45rem;
}

.hd-sidebar-card a {
    color: var(--hd-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.hd-sidebar-card a:hover {
    color: var(--hd-primary);
}

.listbox .e2 li {
    border-bottom: 1px solid var(--hd-border);
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
}

.listbox .e2 li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hd-thumb-list,
.hd-thumb-related {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
}

.hd-thumb-side {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 72px;
}

.hd-thumb-cover {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--hd-radius-sm);
}

.zb3105article-content {
    font-size: 1rem;
    line-height: 1.75;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zb3105article-content img {
    max-width: 100%;
    height: auto;
}

.zb3105meta-tags .zb3105tagitem a {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(92, 45, 145, 0.08);
    color: var(--hd-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.pagebar .pagelist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagebar .pagelist li {
    display: inline-flex;
}

/* 移动端 */
@media (max-width: 991px) {
    .hd-hero {
        padding: 2.5rem 0 3rem;
    }

    .hd-hero-visual {
        margin-top: 0.5rem;
    }

    .hd-section {
        padding: 2.75rem 0;
    }
}

@media (max-width: 767px) {
    .hd-nav {
        padding: 0.5rem 0;
    }

    .hd-nav .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }

    .hd-hero-cta {
        flex-direction: column;
    }

    .hd-hero-cta .hd-btn {
        width: 100%;
    }

    .hd-hero-img {
        max-width: 260px;
    }

    .hd-dl-head {
        flex-wrap: wrap;
    }

    .hd-sec-card {
        padding: 0.9rem 0.65rem;
    }

    .hd-sec-card p {
        font-size: 0.78rem;
    }

    .hd-article-thumb img {
        height: 96px;
    }

    .hd-thumb-list,
    .hd-thumb-related {
        height: 72px;
    }

    .hd-thumb-side {
        height: 50px;
    }

    .hd-thumb-cover {
        height: 170px;
    }

    .hd-panel-body {
        padding: 1rem;
    }

    .hd-footer .row > div {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575px) {
    .hd-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hd-article-thumb img {
        height: 88px;
    }

    .hd-thumb-list,
    .hd-thumb-related {
        height: 64px;
    }

    .hd-thumb-cover {
        height: 150px;
    }
}
