/* 官网首页（企业风格） */
:root {
    --bg0: #0b1220;
    --bg1: #3b4cc0;
    --brand: #4f46e5;
    --brand2: #2563eb;
    --text: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 18px 60px rgba(2, 6, 23, 0.18);
}

.home-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(1200px 600px at 20% -20%, rgba(79, 70, 229, 0.55), transparent 60%),
        radial-gradient(900px 480px at 85% 10%, rgba(37, 99, 235, 0.45), transparent 55%),
        linear-gradient(180deg, #070b18 0%, #0b1220 48%, #0b1220 100%);
    color: #fff;
    align-items: stretch;
}

/* 顶部导航（背景铺满左右边缘） */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(14px);
    background: rgba(7, 11, 24, 0.82);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.site-header-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-sizing: border-box;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #fff;
}
.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(37, 99, 235, 1));
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38);
}
.brand-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.02em;
}
.brand-badge {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: 0.02em;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.site-nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}
.site-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.site-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.site-actions .btn-primary,
.site-actions .btn-ghost {
    padding: 14px 28px;
    font-size: 16px;
    min-height: 50px;
    min-width: 110px;
    justify-content: center;
}
.site-actions .btn-ghost {
    min-width: 96px;
}

/* 按钮（官网专用，不影响后台/登录页） */
.btn-primary,
.btn-ghost,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.btn-lg {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 15px;
}
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(37, 99, 235, 1));
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover {
    filter: brightness(1.05);
}
.btn-ghost {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}
.btn-outline {
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* 主体布局 */
.home-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 72px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero */
.hero {
    padding: 56px 0 28px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: center;
    justify-items: stretch;
}
.hero-kicker {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.hero-title {
    margin: 0 0 14px;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.hero-desc {
    margin: 0 0 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    max-width: 56ch;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero-highlights {
    display: grid;
    gap: 10px;
    padding-top: 6px;
}
.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.dot-blue { background: #60a5fa; }
.dot-purple { background: #a78bfa; }
.dot-slate { background: #94a3b8; }

.hero-panel .panel-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
}
.panel-title {
    font-weight: 800;
    font-size: 14px;
}
.panel-pill {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.22);
    border: 1px solid rgba(79, 70, 229, 0.35);
    color: rgba(255, 255, 255, 0.92);
}
.panel-body {
    padding: 12px 12px 6px;
    display: grid;
    gap: 10px;
}
.panel-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
}
.panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
}
.panel-meta { min-width: 0; }
.panel-name {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
}
.panel-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.6;
}
.panel-foot {
    padding: 12px 16px 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

/* Section */
.section {
    padding: 48px 0;
}
.section-alt {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-left: none;
    border-right: none;
}
.section-head {
    margin-bottom: 18px;
}
.section-head-center {
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.section-head-center .section-subtitle {
    text-align: center;
}
.section-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.98);
}
.section-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.8;
}

/* 能力卡片 */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.cap-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 18px 16px 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cap-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.cap-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.22);
    border: 1px solid rgba(79, 70, 229, 0.30);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}
.cap-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
}
.cap-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

/* 场景 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}
.solution-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}
.solution-card-1::before { background: linear-gradient(180deg, #60a5fa, #3b82f6); }
.solution-card-2::before { background: linear-gradient(180deg, #a78bfa, #8b5cf6); }
.solution-card-3::before { background: linear-gradient(180deg, #34d399, #10b981); }
.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    border-color: rgba(148, 163, 184, 0.35);
}
.solution-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.95);
}
.solution-card-1 .solution-icon { background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(59, 130, 246, 0.25)); }
.solution-card-2 .solution-icon { background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(139, 92, 246, 0.25)); }
.solution-card-3 .solution-icon { background: linear-gradient(135deg, rgba(52, 211, 153, 0.35), rgba(16, 185, 129, 0.25)); }
.solution-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.01em;
}
.solution-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.72;
}

/* 安全 */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.security-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 18px 16px;
}
.security-title {
    font-weight: 900;
    margin-bottom: 8px;
    font-size: 15px;
}
.security-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

/* CTA */
.home-cta {
    padding: 36px 0 20px;
}
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.85), rgba(30, 58, 95, 0.75));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}
.cta-copy {
    min-width: 0;
}
.cta-copy h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.98);
}
.cta-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: stretch;
}
.cta-actions .btn-primary,
.cta-actions .btn-outline {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cta-actions .btn-outline {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.45);
}
.cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* FAQ（与产品能力、应用场景等模块统一） */
.faq {
    margin-top: 28px;
    display: grid;
    gap: 16px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.28);
}
.faq-item[open] {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    outline: none;
    padding: 18px 20px 18px 48px;
    position: relative;
    list-style: none;
    color: rgba(255, 255, 255, 0.95);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::before {
    transform: translateY(-50%) rotate(-135deg);
}
.faq-q {
    display: block;
}
.faq-body {
    padding: 0 20px 20px 48px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.78;
}
.faq-item[open] .faq-body {
    padding-top: 4px;
}

/* Footer（背景铺满左右边缘） */
.site-footer {
    width: 100%;
    margin-top: 64px;
    padding: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(7, 11, 24, 0.75);
}
.site-footer-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 20px 28px;
    box-sizing: border-box;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.footer-brand {
    max-width: 320px;
}
.footer-logo {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.98);
}
.footer-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.7;
}
.footer-nav {
    display: flex;
    gap: 48px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
}
.footer-icp {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    text-decoration: none;
}
.footer-icp:hover {
    color: rgba(255, 255, 255, 0.9);
}
.footer-copy {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 980px) {
    .site-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .cap-grid,
    .solution-grid,
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand { max-width: none; margin: 0 auto; }
    .footer-nav { justify-content: center; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; padding-top: 20px; }
}
/* 手机端：导航只显示 JD，隐藏「极速下载器」「企业版」 */
@media (max-width: 768px) {
    .site-header-inner .brand-text,
    .site-header-inner .brand-badge {
        display: none;
    }
    .site-header-inner .brand {
        gap: 0;
    }
}
@media (max-width: 560px) {
    .site-header-inner { padding: 16px 12px; gap: 16px; }
    .brand-mark { width: 44px; height: 44px; font-size: 15px; }
    .site-header-inner .brand-text,
    .site-header-inner .brand-badge {
        display: none;
    }
    .site-actions .btn-primary,
    .site-actions .btn-ghost { padding: 12px 20px; font-size: 14px; min-height: 44px; }
    .home-main { padding: 0 16px 48px; }
    .hero { padding: 36px 0 20px; }
    .hero-title { font-size: 28px; line-height: 1.2; }
    .hero-desc { font-size: 15px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-primary,
    .hero-cta .btn-outline { width: 100%; justify-content: center; }
    .cap-grid,
    .solution-grid,
    .security-grid { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; align-items: stretch; padding: 28px 20px; }
    .cta-card .btn-primary,
    .cta-card .btn-outline { width: 100%; justify-content: center; }
    .site-footer-inner { padding: 32px 16px 24px; }
    .footer-bottom { padding-top: 16px; }
}
@media (max-width: 380px) {
    .site-header-inner { padding: 12px 10px; }
    .brand-mark { width: 38px; height: 38px; font-size: 13px; }
    .brand-text { font-size: 16px; }
    .hero-title { font-size: 24px; }
    .home-main { padding: 0 12px 40px; }
    .section-title { font-size: 20px; }
}

/* 首页滚动条：圆角、细窄，不显块状 */
.home-page {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}
.home-page::-webkit-scrollbar {
    width: 8px;
}
.home-page::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}
.home-page::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.home-page::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.ref-home .activate-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 28px;
    max-width: 600px;
    margin: 0 auto;
}
.ref-home .activate-card .form-group { margin-bottom: 18px; }
.ref-home .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(0,0,0,.85);
    margin-bottom: 8px;
}
.ref-home .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    color: rgba(0,0,0,.85);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ref-home .form-input:focus {
    border-color: var(--primary, #1890ff);
    box-shadow: 0 0 0 3px rgba(24,144,255,.1);
}
.ref-home .form-input::placeholder { color: rgba(0,0,0,.45); }
.ref-home .btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary, #1890ff);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.ref-home .btn-submit:hover { opacity: .85; }
.ref-home .btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.ref-home .form-row {
    display: flex;
    gap: 8px;
}
.ref-home .form-row .form-input { flex: 1; }
.ref-home .btn-code {
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--primary, #1890ff);
    color: var(--primary, #1890ff);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.ref-home .btn-code:hover { background: var(--primary, #1890ff); color: #fff; }
.ref-home .btn-code:disabled { background: #fafafa; border-color: #e8e8e8; color: rgba(0,0,0,.45); cursor: not-allowed; }

.ref-home .type-tabs {
    display: flex;
    background: #fafafa;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 16px;
}
.ref-home .type-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    color: rgba(0,0,0,.65);
    transition: all .2s;
}
.ref-home .type-tab.active { background: #fff; color: var(--primary, #1890ff); box-shadow: 0 1px 3px rgba(0,0,0,.06); }

.ref-home .result-card {
    margin-top: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    background: #fafafa;
}
.ref-home .result-card.warning { border-color: #f59e0b; background: #fffbeb; }
.ref-home .result-card.error { border-color: #ef4444; background: #fef2f2; }
.ref-home .result-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ref-home .result-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #52c41a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.ref-home .result-card.warning .result-icon { background: #f59e0b; }
.ref-home .result-card.error .result-icon { background: #ef4444; }
.ref-home .result-title { font-size: 16px; font-weight: 600; color: rgba(0,0,0,.85); }
.ref-home .result-list { display: flex; flex-direction: column; gap: 8px; }
.ref-home .result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}
.ref-home .result-item-label { font-size: 13px; color: rgba(0,0,0,.45); }
.ref-home .result-item-value { font-size: 14px; color: rgba(0,0,0,.85); font-weight: 500; }
.ref-home .result-item-value.success { color: #52c41a; }
.ref-home .result-item-value.error { color: #ef4444; }
.ref-home .bot-list { display: flex; flex-direction: column; gap: 8px; }
.ref-home .bot-item {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}
.ref-home .bot-item-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ref-home .bot-item-qq { font-size: 14px; font-weight: 500; }
.ref-home .bot-item-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.ref-home .bot-item-status.active { background: #dcfce7; color: #15803d; }
.ref-home .bot-item-status.expired { background: #fee2e2; color: #b91c1c; }
.ref-home .bot-item-info { display: flex; justify-content: space-between; font-size: 12px; color: rgba(0,0,0,.45); }

.ref-home .category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}
.ref-home .category-tab {
    padding: 6px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    color: rgba(0,0,0,.65);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.ref-home .category-tab:hover { border-color: var(--primary, #1890ff); color: var(--primary, #1890ff); }
.ref-home .category-tab.active { background: var(--primary, #1890ff); border-color: var(--primary, #1890ff); color: #fff; }

.ref-home .articles-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.ref-home .article-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
    display: block;
}
.ref-home .article-card:hover { border-color: var(--primary, #1890ff); box-shadow: 0 2px 8px rgba(24,144,255,.06); }
.ref-home .article-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ref-home .article-card-title { font-size: 16px; font-weight: 600; color: rgba(0,0,0,.85); margin: 0; flex: 1; min-width: 0; }
.ref-home .article-badge { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.ref-home .article-badge.top { background: #fef3c7; color: #b45309; }
.ref-home .article-badge.category { background: rgba(24,144,255,.1); color: #1890ff; }
.ref-home .article-card-summary { font-size: 13px; color: rgba(0,0,0,.65); line-height: 1.6; margin: 0 0 10px; }
.ref-home .article-card-meta { display: flex; gap: 14px; color: rgba(0,0,0,.45); font-size: 12px; flex-wrap: wrap; }

.ref-home .changelog-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 28px; max-width: 800px; margin: 0 auto; }
.ref-home .version-list { position: relative; }
.ref-home .timeline-line { position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px; background: #e8e8e8; }
.ref-home .version-item { position: relative; padding: 12px 0 12px 48px; }
.ref-home .timeline-dot { position: absolute; left: 11px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary, #1890ff); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--primary, #1890ff); }
.ref-home .version-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ref-home .version-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(24,144,255,.1);
    color: var(--primary, #1890ff);
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}
.ref-home .version-tag svg { width: 12px; height: 12px; }
.ref-home .version-date { font-size: 13px; color: rgba(0,0,0,.45); }
.ref-home .version-content { font-size: 14px; color: rgba(0,0,0,.65); line-height: 1.7; white-space: pre-wrap; }

.ref-home .empty-state { text-align: center; padding: 40px 20px; color: rgba(0,0,0,.45); }
.ref-home .empty-state-icon { font-size: 36px; margin-bottom: 12px; }

.ref-home .admin-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.ref-home .admin-modal { background: #fff; border-radius: 8px; width: 90%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.ref-home .admin-modal-header { padding: 16px 20px; border-bottom: 1px solid #e8e8e8; }
.ref-home .admin-modal-header h3 { font-size: 16px; font-weight: 600; color: rgba(0,0,0,.85); margin: 0; }
.ref-home .admin-modal-body { padding: 20px; }
.ref-home .success-info { text-align: center; }
.ref-home .success-icon {
    width: 56px;
    height: 56px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.ref-home .success-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.ref-home .success-desc { font-size: 13px; color: rgba(0,0,0,.45); margin-bottom: 16px; }
.ref-home .success-details { background: #fafafa; border-radius: 6px; padding: 12px; margin-top: 12px; }
.ref-home .detail-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.ref-home .detail-row:last-child { border-bottom: none; }
.ref-home .detail-label { color: rgba(0,0,0,.45); }
.ref-home .detail-value { color: rgba(0,0,0,.85); font-weight: 500; }
.ref-home .detail-value.highlight { color: var(--primary, #1890ff); font-weight: 600; }
.ref-home .confirm-details { background: #fafafa; border-radius: 6px; padding: 12px; }
.ref-home .confirm-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.ref-home .confirm-item:last-child { border-bottom: none; }
.ref-home .confirm-label { color: rgba(0,0,0,.45); }
.ref-home .confirm-value { color: rgba(0,0,0,.85); font-weight: 500; }
.ref-home .admin-modal-actions { padding: 14px 20px; border-top: 1px solid #e8e8e8; display: flex; justify-content: flex-end; gap: 8px; }
.ref-home .admin-modal-actions .btn { padding: 6px 14px; border-radius: 4px; font-size: 13px; border: none; cursor: pointer; transition: opacity .2s; }
.ref-home .admin-modal-actions .btn-primary { background: var(--primary, #1890ff); color: #fff; }
.ref-home .admin-modal-actions .btn-secondary { background: #fff; border: 1px solid #d9d9d9; color: rgba(0,0,0,.65); }
.ref-home .admin-modal-actions .btn:hover { opacity: .85; }

.ref-home .admin-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    animation: homeToastIn .3s ease;
}
.ref-home .admin-toast.success { background: #10b981; color: #fff; }
.ref-home .admin-toast.error { background: #ef4444; color: #fff; }
@keyframes homeToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .ref-home .form-row { flex-direction: column; }
    .ref-home .form-row .btn-code { width: 100%; padding: 10px; }
    .ref-home .version-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}
