/* ============================================================
 * PHP离线加密 - 首页深色科技风（homepage.css）
 * 覆盖 t5 模板默认样式，不改原 style.css
 * 主色：#5E44FF（霓虹紫）、#00E5FF（霓虹青）
 * ============================================================ */

/* ---- 基础重置 ---- */
html, body { background: #0a0e1a !important; color: #e4e6ef !important; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
a { color: #e4e6ef; transition: color .2s; }
a:hover { color: #5E44FF; }

/* ---- 隐藏 t5 自带的 preloader ---- */
.preloader { display: none !important; }

/* ============================================================
 * NAVIGATION - 深色固定顶栏
 * ============================================================ */
.navbar-area {
    position: fixed !important; top: 0; left: 0; width: 100%;
    background: rgba(8, 12, 22, 0.96) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(94, 68, 255, 0.2);
    padding: 12px 0 !important;
    box-shadow: 0 2px 24px rgba(0,0,0,0.5);
    transition: box-shadow .3s, border-color .3s, background .3s;
    /* 顶掉 t5 的 z-index: 999999 */
    z-index: 9999999 !important;
}
/* 滚动后 t5 main.js 会加 .is-sticky，必须全部覆盖回深色 */
.navbar-area.is-sticky {
    position: fixed !important;
    background: rgba(8, 12, 22, 0.98) !important;
    border-bottom-color: rgba(94, 68, 255, 0.3);
    box-shadow: 0 4px 32px rgba(0,0,0,0.6);
    -webkit-animation: none !important;
    animation: none !important;
    padding: 10px 0 !important;
}
/* scrollY>40 时的增强阴影（与 .is-sticky 并行） */
.navbar-area.nav-scrolled,
.navbar-area.is-sticky.nav-scrolled {
    box-shadow: 0 6px 40px rgba(0,0,0,0.8);
    border-bottom-color: rgba(94, 68, 255, 0.4);
}
.plamb-responsive-nav { display: none !important; }
.plamb-nav { box-shadow: none !important; background: transparent !important; padding: 0 !important; }
.plamb-nav.navbar { padding: 0 !important; }
.navbar { padding: 0 !important; }

/* logo 始终白色，即使 t5 .is-sticky 会切换 */
.navbar-brand img.white-logo { height: 40px !important; filter: drop-shadow(0 0 8px rgba(94,68,255,.4)); display: block !important; }
.navbar-brand img.black-logo { display: none !important; }
.navbar-area.is-sticky .navbar-brand .white-logo { display: block !important; }
.navbar-area.is-sticky .navbar-brand .black-logo { display: none !important; }

/* 导航链接：始终浅色，覆盖 t5 .is-sticky 的深色 */
.navbar-nav .nav-item .nav-link {
    color: #c8cad8 !important; font-weight: 500; padding: 8px 20px !important;
    position: relative;
}
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item .nav-link.active,
.navbar-area.is-sticky .navbar-nav .nav-item .nav-link,
.navbar-area.is-sticky .navbar-nav .nav-item .nav-link:hover,
.navbar-area.is-sticky .navbar-nav .nav-item .nav-link.active {
    color: #fff !important;
}
.navbar-nav .nav-item .nav-link.active::after,
.navbar-nav .nav-item .nav-link:hover::after {
    content: ''; position: absolute; bottom: -2px; left: 20px; right: 20px;
    height: 2px; background: linear-gradient(90deg, #5E44FF, #00E5FF); border-radius: 2px;
}
.navbar-area.is-sticky .navbar-nav .nav-item .nav-link.active::after,
.navbar-area.is-sticky .navbar-nav .nav-item .nav-link:hover::after {
    display: block;
}

/* 右侧按钮区 */
.other-option { display: flex; gap: 12px; align-items: center; }
.other-option .default-btn {
    background: linear-gradient(135deg, #5E44FF 0%, #7C3AED 100%);
    border: none; color: #fff !important; font-size: 14px; padding: 10px 22px;
    border-radius: 8px; font-weight: 600; position: relative; overflow: hidden;
    box-shadow: 0 4px 20px rgba(94, 68, 255, 0.4);
    transition: transform .2s, box-shadow .2s;
}
.other-option .default-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(94, 68, 255, 0.6); color: #fff !important; }
.other-option .default-btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,.3); color: #e4e6ef !important;
    box-shadow: none;
}
.other-option .default-btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); box-shadow: none; color: #fff !important; }

/* ============================================================
 * HERO - 全屏深色渐变 + 网格背景
 * ============================================================ */
.main-banner-three {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a1440 0%, #0a0e1a 60%) !important;
    overflow: hidden;
    padding: 140px 0 80px !important;
    margin: 0;
}
/* 网格背景 */
.main-banner-three::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(94, 68, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 68, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
/* 光晕 */
.main-banner-three::after {
    content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(94,68,255,0.25) 0%, transparent 60%);
    pointer-events: none;
}
/* 青色光晕 */
.hero-glow-right {
    position: absolute; top: 40%; right: -200px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.d-table, .d-table-cell { display: block; }
.main-banner-content { position: relative; z-index: 2; padding: 40px 0; }
.main-banner-content h1 {
    font-size: 60px; font-weight: 800; line-height: 1.15; margin-bottom: 24px;
    letter-spacing: -1px;
}
.main-banner-content h1 .gradient-text {
    background: linear-gradient(135deg, #5E44FF 0%, #00E5FF 50%, #5E44FF 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.main-banner-content p {
    font-size: 18px; color: #a0a4b8; line-height: 1.7; margin-bottom: 40px;
    max-width: 600px;
}
.banner-btn { display: flex; gap: 16px; flex-wrap: wrap; }
.banner-btn .default-btn {
    background: linear-gradient(135deg, #5E44FF 0%, #7C3AED 100%);
    border: none; color: #fff !important; font-size: 16px; padding: 14px 32px;
    border-radius: 10px; font-weight: 600;
    box-shadow: 0 4px 24px rgba(94, 68, 255, 0.5);
    transition: transform .2s, box-shadow .2s;
}
.banner-btn .default-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(94, 68, 255, 0.7); color: #fff !important; }
.banner-btn .default-btn-one {
    background: transparent; border: 1px solid rgba(94, 68, 255, 0.5); color: #c4b8ff !important;
    box-shadow: none;
}
.banner-btn .default-btn-one:hover {
    background: rgba(94, 68, 255, 0.1); border-color: #5E44FF; color: #fff !important; box-shadow: 0 4px 20px rgba(94,68,255,.3);
}

/* Hero 右侧：装饰性代码窗口 */
.hero-visual { position: relative; z-index: 2; }
.code-window {
    background: #0f1322;
    border: 1px solid rgba(94, 68, 255, 0.25);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(94, 68, 255, 0.1);
    overflow: hidden;
}
.code-window-header {
    display: flex; gap: 6px; margin-bottom: 14px;
}
.code-window-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-window-header .dot.r { background: #ff5f57; }
.code-window-header .dot.y { background: #febc2e; }
.code-window-header .dot.g { background: #28c840; }
.code-window-header .title { margin-left: 12px; font-size: 12px; color: #6b7089; font-family: Menlo, Monaco, monospace; }
.code-window pre {
    margin: 0; font-family: Menlo, Monaco, 'Courier New', monospace; font-size: 13px; line-height: 1.7;
    color: #a0a4b8; white-space: pre-wrap;
}
.code-window .kw { color: #C792EA; }
.code-window .fn { color: #82AAFF; }
.code-window .str { color: #C3E88D; }
.code-window .cm { color: #546e7a; font-style: italic; }
.code-window .num { color: #F78C6C; }
.code-window .var { color: #EEFFFF; }
.code-window .op { color: #89DDFF; }

/* Hero 右下：加密计数徽标 */
.hero-badge {
    position: absolute; bottom: -30px; right: -10px;
    background: rgba(15, 19, 34, 0.95);
    border: 1px solid rgba(94, 68, 255, 0.3);
    border-radius: 12px; padding: 18px 24px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-badge .badge-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, #5E44FF, #00E5FF);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}
.hero-badge .badge-num {
    font-size: 26px; font-weight: 800; color: #fff; line-height: 1;
}
.hero-badge .badge-label { font-size: 12px; color: #8891a8; margin-top: 4px; }

/* 隐藏 t5 原有的装饰性图片 */
.banner-image, .creative-shape, .shape-img1, .shape-img2 { display: none !important; }

/* ============================================================
 * FEATURES - 核心特性卡片
 * ============================================================ */
.features-section {
    padding: 120px 0 80px; position: relative;
}
.section-title { margin-bottom: 60px; }
.section-title h4 {
    font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: #5E44FF; margin-bottom: 12px;
}
.section-title h2 {
    font-size: 38px; font-weight: 700; color: #fff; margin-bottom: 16px;
}
.section-title p { color: #8891a8; max-width: 600px; margin: 0 auto; }
.feature-card {
    background: rgba(15, 19, 34, 0.6);
    border: 1px solid rgba(94, 68, 255, 0.15);
    border-radius: 14px; padding: 36px 32px;
    height: 100%;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(94, 68, 255, 0.5);
    box-shadow: 0 12px 40px rgba(94, 68, 255, 0.15);
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(94,68,255,0.2), rgba(0,229,255,0.15));
    border: 1px solid rgba(94, 68, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #00E5FF; margin-bottom: 24px;
}
.feature-card h3 { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.feature-card p { color: #8891a8; line-height: 1.7; font-size: 15px; }

/* ============================================================
 * METHODS - 加密方式对比（两列卡片）
 * ============================================================ */
.methods-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0e1a 0%, #101428 50%, #0a0e1a 100%);
}
.method-card {
    background: rgba(15, 19, 34, 0.8);
    border: 1px solid rgba(94, 68, 255, 0.2);
    border-radius: 16px; padding: 40px;
    height: 100%; position: relative; overflow: hidden;
    transition: transform .3s, border-color .3s;
}
.method-card:hover { transform: translateY(-4px); border-color: rgba(94, 68, 255, 0.5); }
.method-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #5E44FF, #00E5FF);
}
.method-card.api::before { background: linear-gradient(90deg, #FF6B35, #F7B733); }
.method-card h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.method-card .level { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.level.basic { background: rgba(94,68,255,0.15); color: #c4b8ff; }
.level.pro { background: rgba(0,229,255,0.15); color: #00E5FF; }
.level.api { background: rgba(255,107,53,0.15); color: #FF6B35; }
.method-card p { color: #a0a4b8; line-height: 1.8; margin-bottom: 24px; }
.method-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.method-card ul li {
    padding: 8px 0; color: #c8cad8; font-size: 14px;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    padding-left: 20px; position: relative;
}
.method-card ul li::before {
    content: '✓'; position: absolute; left: 0; color: #00E5FF; font-weight: 700;
}
.method-card .btn-more {
    display: inline-block; padding: 10px 26px; border-radius: 8px;
    background: linear-gradient(135deg, #5E44FF, #7C3AED); color: #fff !important;
    font-weight: 600; font-size: 14px;
    box-shadow: 0 4px 16px rgba(94,68,255,0.4);
    transition: transform .2s, box-shadow .2s;
}
.method-card .btn-more:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(94,68,255,0.6); color: #fff !important; }

/* ============================================================
 * STATS - 加密计数条
 * ============================================================ */
.stats-section { padding: 60px 0; }
.stats-card {
    background: rgba(15, 19, 34, 0.6);
    border: 1px solid rgba(94, 68, 255, 0.2);
    border-radius: 14px; padding: 32px;
    display: flex; align-items: center; gap: 24px;
}
.stats-icon {
    width: 64px; height: 64px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(94,68,255,0.25), rgba(0,229,255,0.2));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
}
.stats-num { font-size: 42px; font-weight: 800; color: #fff; line-height: 1; }
.stats-label { color: #8891a8; margin-top: 6px; font-size: 15px; }

/* ============================================================
 * CTA - 底部行动号召
 * ============================================================ */
.cta-section {
    padding: 80px 0; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(94,68,255,0.15), rgba(0,229,255,0.08));
    border-top: 1px solid rgba(94, 68, 255, 0.2);
    border-bottom: 1px solid rgba(94, 68, 255, 0.2);
}
.cta-section::before {
    content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(94,68,255,0.2), transparent 60%); pointer-events: none;
}
.cta-section h3 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; position: relative; z-index: 2; }
.cta-section p { color: #a0a4b8; margin-bottom: 28px; position: relative; z-index: 2; }
.cta-section .default-btn {
    background: linear-gradient(135deg, #5E44FF, #00E5FF); border: none;
    padding: 14px 36px; font-size: 16px; font-weight: 600; border-radius: 10px;
    color: #fff !important;
    box-shadow: 0 4px 24px rgba(94, 68, 255, 0.5);
    transition: transform .2s, box-shadow .2s; position: relative; z-index: 2;
}
.cta-section .default-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(94,68,255,0.7); color: #fff !important; }

/* ============================================================
 * FOOTER - 深色
 * ============================================================ */
.footer-section {
    background: #080c16 !important; padding: 80px 0 30px !important;
    border-top: 1px solid rgba(94, 68, 255, 0.15);
}
.footer-section h3 { color: #fff !important; font-size: 16px !important; font-weight: 600 !important; margin-bottom: 20px !important; }
.footer-section p { color: #6b7089 !important; font-size: 14px; line-height: 1.8; }
.footer-quick-links { list-style: none !important; padding: 0; margin: 0; }
.footer-quick-links li { margin-bottom: 10px; }
.footer-quick-links li a { color: #8891a8; font-size: 14px; }
.footer-quick-links li a:hover { color: #00E5FF; }
.footer-info-contact { margin-bottom: 16px; }
.footer-info-contact h3 { font-size: 13px !important; color: #8891a8 !important; font-weight: 500 !important; margin-bottom: 4px !important; }
.footer-info-contact span { color: #c8cad8; font-size: 14px; }
.lines, .partner-shape-img1 { display: none !important; }

.copyright-area {
    background: #080c16 !important; border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 0 !important;
}
.copyright-area p { color: #6b7089 !important; font-size: 13px; margin: 0; }
.copyright-area ul { list-style: none; padding: 0; margin: 0; text-align: right; }
.copyright-area ul li { display: inline-block; margin-left: 16px; color: #6b7089; font-size: 13px; }

/* ============================================================
 * 返回顶部按钮（右下角悬浮，独立于 t5 .go-top）
 * ============================================================ */
.fab-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5E44FF 0%, #00E5FF 100%);
    box-shadow: 0 6px 20px rgba(94, 68, 255, 0.55), 0 0 0 1px rgba(255,255,255,0.05);
    z-index: 9999999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, box-shadow .2s ease;
}
.fab-back-top i {
    color: #fff;
    font-size: 17px;
    margin: 0;
}
.fab-back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(94, 68, 255, 0.75), 0 0 0 1px rgba(255,255,255,0.08);
}
.fab-back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 991.98px) {
    .main-banner-content h1 { font-size: 40px; }
    .hero-badge { position: static; margin-top: 24px; }
    .navbar { display: flex; justify-content: space-between; align-items: center; }
    .navbar-collapse { display: none !important; }
    .container, .container-fluid { max-width: 96%; }
}
@media (max-width: 767.98px) {
    .main-banner-content h1 { font-size: 32px; }
    .banner-btn { gap: 10px; }
    .banner-btn .default-btn { padding: 10px 20px; font-size: 14px; }
    .section-title h2 { font-size: 26px; }
    .cta-section h3 { font-size: 24px; }
}
