/* ============================================
   汇创共赢-大数据查询 - 精致深色主题 v2
   玻璃拟态 + 渐变光晕 + 微交互
   ============================================ */

html, body { height: 100%; width: 100%; -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0b0d13;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(43,108,246,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(114,9,183,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255,112,10,0.04) 0%, transparent 60%);
    color: #e8ecf4;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 140px;
}

a { color: inherit; text-decoration: none; }

/* ========== 顶部品牌区 ========== */
.hero {
    padding: 32px 20px 24px;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center top, rgba(43,108,246,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.hero-logo {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, #2B6CF6, #4d94ff);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(43,108,246,0.4), 0 0 40px rgba(43,108,246,0.15);
    position: relative; z-index: 1;
}
.hero-logo svg { width: 28px; height: 28px; }
.hero-title {
    font-size: 22px; font-weight: 700; letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, #b8c4dd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    position: relative; z-index: 1;
}
.hero-sub {
    font-size: 12px; color: #6b7489; margin-top: 6px;
    position: relative; z-index: 1;
}

/* ========== 分类分区 ========== */
.zone {
    margin: 0 16px 20px;
}
.zone-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    padding-left: 4px;
}
.zone-bar {
    width: 4px; height: 18px; border-radius: 2px;
}
.zone-name {
    font-size: 16px; font-weight: 600; color: #f0f4ff;
}
.zone-tag {
    font-size: 10px; padding: 2px 8px; border-radius: 10px;
    background: rgba(255,255,255,0.06); color: #8a94a6;
}
.zone-desc {
    font-size: 11px; color: #5a6478; margin-left: auto;
}

/* 分类配色 */
.cat-judicial      .zone-bar { background: linear-gradient(180deg, #ff6b6b, #ee5a5a); }
.cat-company       .zone-bar { background: linear-gradient(180deg, #4facfe, #2B6CF6); }
.cat-personnel     .zone-bar { background: linear-gradient(180deg, #a855f7, #7c3aed); }
.cat-ip            .zone-bar { background: linear-gradient(180deg, #06b6d4, #0891b2); }
.cat-growth        .zone-bar { background: linear-gradient(180deg, #f472b6, #ec4899); }
.cat-business      .zone-bar { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.cat-listing       .zone-bar { background: linear-gradient(180deg, #6366f1, #4f46e5); }
.cat-qualification .zone-bar { background: linear-gradient(180deg, #10b981, #059669); }
.cat-graph         .zone-bar { background: linear-gradient(180deg, #e879f9, #d946ef); }
.cat-life          .zone-bar { background: linear-gradient(180deg, #fa709a, #fee140); }
.cat-free          .zone-bar { background: linear-gradient(180deg, #22d3ee, #0ea5e9); }
.cat-free          .svc-card { border-color: rgba(14,165,233,0.3); }
.free-badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    background: linear-gradient(90deg, #22d3ee, #0ea5e9);
    color: #fff; font-size: 10px; font-weight: 700;
}
.form-empty {
    padding: 32px 16px; text-align: center; color: #5a6478;
    font-size: 13px; background: rgba(255,255,255,0.02); border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.08);
}

/* ===== 滚动公告条 ===== */
.notice-bar {
    display: flex; align-items: center; gap: 10px;
    margin: 0 16px 12px; padding: 9px 12px;
    background: linear-gradient(90deg, rgba(79,172,254,0.10), rgba(124,58,237,0.08));
    border: 1px solid rgba(79,172,254,0.22);
    border-radius: 10px; overflow: hidden;
}
.notice-bar:active .notice-track { animation-play-state: paused; }
.notice-icon {
    flex-shrink: 0; width: 16px; height: 16px; color: #4facfe;
}
.notice-icon svg { width: 100%; height: 100%; }
.notice-viewport { flex: 1; min-width: 0; overflow: hidden; }
.notice-track {
    display: flex; width: max-content;
    animation: noticeMove 18s linear infinite;
    will-change: transform;
}
.notice-track span {
    white-space: nowrap; padding-right: 64px;
    font-size: 12px; color: #9cc7ff; letter-spacing: 0.3px;
}
@keyframes noticeMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== 套餐滚动列表 + 可展开卡片 ===== */
.pkg-scroll-wrap {
    max-height: 280px; overflow-y: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.pkg-scroll-wrap::-webkit-scrollbar { width: 4px; }
.pkg-scroll-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.pkg-scroll-hint {
    font-size: 11px; color: #5a6478; text-align: center;
    padding: 0 4px 8px; letter-spacing: 0.5px;
}
.pkg-list { display: flex; flex-direction: column; gap: 8px; }

.pkg-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 12px 14px;
    transition: all .25s ease;
    cursor: pointer;
}
.pkg-card:active { transform: scale(0.98); }
.pkg-card.selected {
    background: linear-gradient(135deg, rgba(79,172,254,0.10), rgba(124,58,237,0.10));
    border-color: rgba(79,172,254,0.5);
    box-shadow: 0 0 0 1px rgba(79,172,254,0.25), 0 8px 24px rgba(79,172,254,0.15);
}

.pc-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-left { flex: 1; min-width: 0; }
.pc-name {
    font-size: 14px; font-weight: 700; color: #e2e8f0;
    margin-bottom: 4px;
}
.pc-price-row { display: flex; align-items: center; gap: 8px; }
.pc-price {
    font-size: 15px; font-weight: 800;
    background: linear-gradient(90deg, #4facfe, #a855f7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc-original { font-size: 11px; color: #5a6478; text-decoration: line-through; }
.pc-save {
    font-size: 10px; padding: 2px 8px; border-radius: 8px;
    background: linear-gradient(90deg, rgba(79,172,254,0.2), rgba(124,58,237,0.2));
    color: #9cc7ff; font-weight: 700;
}
.pc-toggle-arrow {
    flex-shrink: 0; width: 24px; height: 24px;
    color: #5a6478; transition: transform .25s ease;
}
.pkg-card.selected .pc-toggle-arrow {
    transform: rotate(180deg); color: #4facfe;
}

/* 详情区：默认全部展开，点击卡片仅选中联动表单 */
.pc-detail {
    max-height: 500px; overflow: hidden;
    padding-top: 10px;
}
.pc-toggle-arrow { display: none; }
.pc-desc {
    font-size: 12px; color: #b0bacd; line-height: 1.5;
    margin-bottom: 8px;
}
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    background: rgba(79,172,254,0.15); color: #9cc7ff;
    font-size: 11px; font-weight: 600;
}

/* ========== 服务卡片网格 ========== */
.svc-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.svc-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30,36,56,0.8), rgba(22,27,44,0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px 14px 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.25s, border-color 0.2s;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.svc-card:active { transform: scale(0.96); }
.svc-card.selected {
    border-color: rgba(43,108,246,0.6);
    box-shadow: 0 0 0 2px rgba(43,108,246,0.25), 0 8px 32px rgba(43,108,246,0.2);
}

/* 图标 */
.svc-ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    position: relative;
}
.svc-ico::after {
    content: ''; position: absolute; inset: -2px; border-radius: 14px;
    background: inherit; opacity: 0.4; filter: blur(8px); z-index: -1;
}
.svc-ico svg { width: 22px; height: 22px; }

/* 图标配色方案 */
.ico-a { background: linear-gradient(135deg, rgba(43,108,246,0.25), rgba(43,108,246,0.05)); } .ico-a svg { stroke: #5b8ff9; }
.ico-b { background: linear-gradient(135deg, rgba(255,107,107,0.25), rgba(255,107,107,0.05)); } .ico-b svg { stroke: #ff8a8a; }
.ico-c { background: linear-gradient(135deg, rgba(67,233,123,0.25), rgba(67,233,123,0.05)); } .ico-c svg { stroke: #6ee7a6; }
.ico-d { background: linear-gradient(135deg, rgba(250,112,154,0.25), rgba(250,112,154,0.05)); } .ico-d svg { stroke: #ffa3c5; }
.ico-e { background: linear-gradient(135deg, rgba(255,193,7,0.25), rgba(255,193,7,0.05)); } .ico-e svg { stroke: #ffc94a; }
.ico-f { background: linear-gradient(135deg, rgba(156,39,176,0.25), rgba(156,39,176,0.05)); } .ico-f svg { stroke: #c97bd9; }

.svc-name { font-size: 13px; font-weight: 500; color: #e8ecf4; }
.svc-desc { font-size: 11px; color: #6b7489; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.svc-price { font-size: 14px; font-weight: 700; color: #2B6CF6; }
.svc-price.free { color: #43e97b; }
.svc-badge { font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255,255,255,0.08); color: #8a94a6; }

/* 选中勾 */
.svc-check {
    position: absolute; top: 10px; right: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.svc-card.selected .svc-check {
    border-color: #2B6CF6; background: #2B6CF6;
}
.svc-check svg { width: 12px; height: 12px; stroke: transparent; transition: stroke 0.15s; }
.svc-card.selected .svc-check svg { stroke: #fff; }

/* ========== 套餐卡片 ========== */
.pkg-list { display: flex; flex-direction: column; gap: 10px; }
.pkg-card {
    background: linear-gradient(145deg, rgba(30,36,56,0.8), rgba(22,27,44,0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 16px; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
    position: relative; overflow: hidden;
}
.pkg-card.selected {
    border-color: rgba(43,108,246,0.6);
    box-shadow: 0 0 0 2px rgba(43,108,246,0.25);
}
.pkg-card .pc-hd { display: flex; justify-content: space-between; align-items: flex-start; }
.pkg-card .pc-name { font-size: 15px; font-weight: 600; color: #f0f4ff; }
.pkg-card .pc-save { font-size: 10px; padding: 2px 8px; border-radius: 8px; background: linear-gradient(90deg, #ff6b6b, #ee5a5a); color: #fff; }
.pkg-card .pc-price { text-align: right; }
.pkg-card .pc-price strong { font-size: 20px; font-weight: 700; color: #2B6CF6; }
.pkg-card .pc-price small { font-size: 11px; color: #6b7489; text-decoration: line-through; margin-left: 6px; }
.pkg-card .pc-desc { font-size: 12px; color: #8a94a6; margin-top: 8px; }
.pkg-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pkg-card .pc-tags span {
    font-size: 11px; color: #8a94a6; padding: 3px 8px; border-radius: 6px;
    background: rgba(255,255,255,0.04);
}

/* ========== Tab 切换 ========== */
.tab-bar {
    display: flex; margin: 4px 16px 20px;
    background: rgba(30,36,56,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 4px;
}
.tab-item {
    flex: 1; text-align: center; padding: 10px 0;
    font-size: 13px; color: #6b7489; cursor: pointer;
    border-radius: 10px; transition: all 0.2s;
    font-weight: 500;
}
.tab-item.active {
    background: linear-gradient(135deg, #2B6CF6, #4d94ff);
    color: #fff; box-shadow: 0 4px 12px rgba(43,108,246,0.3);
}

/* ========== 表单区 ========== */
.form-zone { margin: 0 16px 100px; }
.form-hd { font-size: 16px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-hd::before { content: ''; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #2B6CF6, #4d94ff); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-item { margin-bottom: 12px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label {
    display: block; font-size: 12px; color: #6b7489; margin-bottom: 6px;
}
.form-item input, .form-item select {
    width: 100%; padding: 12px 14px;
    background: rgba(30,36,56,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; color: #e8ecf4; font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}
.form-item input:focus, .form-item select:focus {
    outline: none; border-color: #2B6CF6;
    background: rgba(30,36,56,0.8);
    box-shadow: 0 0 0 3px rgba(43,108,246,0.15);
}

.agreement {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12px; color: #6b7489; margin: 16px 0;
}
.agreement input[type=checkbox] { margin-top: 3px; accent-color: #2B6CF6; }
.agreement a { color: #2B6CF6; }

/* ========== 底部下单栏 ========== */
.bb-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 12px 16px 28px;
    background: linear-gradient(180deg, rgba(11,13,19,0) 0%, rgba(11,13,19,0.95) 30%);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; gap: 12px;
    z-index: 100;
}
.bb-info { flex: 1; }
.bb-price { font-size: 22px; font-weight: 700; color: #2B6CF6; }
.bb-price.free { color: #43e97b; }
.bb-hint { font-size: 11px; color: #6b7489; margin-top: 2px; }
.bb-btn {
    min-width: 140px; padding: 14px 28px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #2B6CF6, #4d94ff);
    color: #fff; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(43,108,246,0.4);
}
.bb-btn:active { transform: scale(0.97); }
.bb-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 56px;
    background: rgba(17,20,30,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; z-index: 99;
}
.bottom-nav .nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 10px; color: #5a6478; gap: 3px;
    text-decoration: none; transition: color 0.2s;
}
.bottom-nav .nav-item svg { width: 22px; height: 22px; }
.bottom-nav .nav-item.active { color: #2B6CF6; }

/* ========== Toast ========== */
.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: rgba(30,36,56,0.95); color: #fff;
    padding: 14px 28px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px; z-index: 999; text-align: center;
    backdrop-filter: blur(10px);
}

/* ============================================
   PC 端适配（≥768px）：居中容器 + 多列网格
   ============================================ */
@media (min-width: 768px) {
    body { font-size: 15px; padding-bottom: 150px; }

    /* 品牌区放大 */
    .hero { padding: 48px 20px 32px; }
    .hero-logo { width: 72px; height: 72px; border-radius: 20px; }
    .hero-logo svg { width: 36px; height: 36px; }
    .hero-title { font-size: 30px; letter-spacing: 4px; }
    .hero-sub { font-size: 14px; margin-top: 8px; }

    /* 居中容器 */
    .notice-bar { max-width: 1100px; margin: 0 auto 16px; }
    .tab-bar { max-width: 1100px; margin: 4px auto 24px; }
    .tab-item { font-size: 15px; padding: 12px 0; }
    #package-content, #single-content, #free-content { max-width: 1100px; margin: 0 auto; }
    .form-zone { max-width: 1100px; margin: 0 auto 120px; }

    /* 服务卡片 4 列 */
    .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .svc-card { padding: 20px 16px 16px; }
    .svc-card:hover { border-color: rgba(43,108,246,0.45); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
    .svc-name { font-size: 14px; }
    .svc-desc { font-size: 12px; white-space: normal; }

    /* 套餐 2 列 */
    .pkg-scroll-wrap { max-height: 600px; padding-right: 8px; }
    .pkg-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
    .pkg-card:hover { border-color: rgba(79,172,254,0.45); transform: translateY(-2px); }
    .zone { margin-bottom: 24px; }
    .zone-name { font-size: 18px; }
    .zone-desc { font-size: 12px; }

    /* 表单 3 列 */
    .form-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .form-item input, .form-item select { padding: 13px 14px; }

    /* 底部固定栏内容居中 */
    .bb-bar {
        padding-left: calc((100% - 1100px) / 2 + 16px);
        padding-right: calc((100% - 1100px) / 2 + 16px);
        padding-bottom: 20px;
    }
    .bb-btn { min-width: 180px; }
    .bb-btn:hover { opacity: 0.92; }
    .bottom-nav { justify-content: center; }
    .bottom-nav .nav-item { flex: none; width: 140px; }
    .bottom-nav .nav-item:hover { color: #2B6CF6; }
}
@media (min-width: 1400px) {
    .svc-grid { grid-template-columns: repeat(5, 1fr); }
}


/* ============================================
   轮播横幅（页面装修模块）
   ============================================ */
.m-banner {
    position: relative;
    margin: 0 16px 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(120,150,255,0.18);
    box-shadow: 0 10px 30px rgba(10,16,34,0.45), 0 2px 10px rgba(43,108,246,0.12);
}
.m-banner-track {
    position: relative;
    width: 100%;
    padding-top: 42.85%; /* 21:9 */
}
.m-banner-item {
    position: absolute; inset: 0;
    display: block;
    opacity: 0;
    transition: opacity .6s ease;
}
.m-banner-item.on { opacity: 1; z-index: 1; }
.m-banner-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.m-banner-dots {
    position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
    display: flex; justify-content: center; gap: 6px;
}
.m-banner-dot {
    width: 6px; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.35);
    transition: all .3s ease; cursor: pointer;
}
.m-banner-dot.on { width: 16px; background: #fff; }

@media (min-width: 768px) {
    .m-banner { max-width: 1100px; margin: 0 auto 20px; }
    .m-banner-track { padding-top: 24%; }
}
