/* ===== 鲸数工具官网 样式 ===== */
:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #eff6ff;
    --sky: #38bdf8;
    --ink: #1e293b;
    --muted: #64748b;
    --bg: #f5f8fc;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(37, 99, 235, .10);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- 导航 ---------- */
.site-nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: .5rem 0;
}
.site-nav .nav-link {
    font-weight: 600;
    color: var(--ink);
    padding: .5rem 1rem !important;
    border-radius: 10px;
}
.site-nav .nav-link:hover { color: var(--brand); background: var(--brand-light); }
.logo-icon { width: 38px; height: 38px; }
.brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--ink);
}

/* ---------- 首页 Hero ---------- */
.hero {
    background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
    border-bottom: 1px solid #eef2f7;
    padding: 4.5rem 0 3.5rem;
}
.hero h1 {
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 1px;
}
.hero h1 .hl { color: var(--brand); }
.hero .lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34em; }
.hero-badges .badge-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
}
.hero-icons { position: relative; min-height: 260px; }
.hero-icons .float-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    font-weight: 600;
    font-size: .95rem;
}
.hero-icons .float-card img { width: 42px; height: 42px; border-radius: 10px; }
@media (max-width: 991.98px) {
    .hero-icons { min-height: 0; margin-top: 2rem; }
    .hero-icons .float-card { position: static; display: inline-flex; margin: .25rem; }
}

/* ---------- 按钮 ---------- */
.btn-brand {
    background: var(--brand);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: .7rem 1.6rem;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.btn-brand:hover, .btn-brand:focus { color: #fff; background: var(--brand-dark); }
.btn-brand-lg { padding: .9rem 2.2rem; font-size: 1.15rem; }
.btn-ghost {
    border: 1px solid #cbd5e1;
    color: var(--ink);
    font-weight: 600;
    border-radius: 10px;
    padding: .65rem 1.5rem;
    font-size: 1.05rem;
    background: #fff;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 3.5rem 0; }
.section-title { font-weight: 900; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: .5px; }
.section-sub { color: var(--muted); margin-top: .35rem; }

/* ---------- 产品卡片 ---------- */
.product-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .p-icon {
    width: 64px; height: 64px; border-radius: 14px;
    object-fit: contain; background: var(--brand-light);
    padding: 6px;
}
.product-card .p-icon-fallback {
    width: 64px; height: 64px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand);
    color: #fff; font-weight: 700; font-size: 1.3rem;
}
.product-card h3 { font-size: 1.15rem; font-weight: 800; margin: 1rem 0 .35rem; }
.product-card .p-os { color: var(--muted); font-size: .85rem; }
.product-card .p-desc {
    color: var(--muted); font-size: .95rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; flex: 1;
}
.product-card .p-actions { margin-top: 1.1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.product-card .p-actions .btn { padding: .55rem 1.2rem; font-size: .98rem; }

.badge-coming {
    background: #f59e0b;
    color: #fff; font-weight: 600;
    border-radius: 999px; padding: .3rem .8rem; font-size: .85rem;
}

/* ---------- 步骤说明 ---------- */
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-num {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand); font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #dbeafe;
}
.step-card h4 { font-weight: 700; font-size: 1.05rem; }
.step-card p { color: var(--muted); }

/* ---------- 优势 ---------- */
.adv-card {
    background: #fff; border: 1px solid #eef2f7;
    border-radius: var(--radius); padding: 1.6rem; height: 100%;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}
.adv-card .adv-ico {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .9rem;
}
.adv-card .adv-ico svg { width: 26px; height: 26px; }
.adv-card h4 { font-weight: 700; font-size: 1.08rem; }
.adv-card p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }

/* ---------- 产品详情 ---------- */
.detail-hero { background: #fff; border-bottom: 1px solid #eef2f7; padding: 2.5rem 0; }
.detail-icon { width: 88px; height: 88px; border-radius: 18px; object-fit: contain; background: var(--brand-light); padding: 8px; }
.detail-icon-fallback {
    width: 88px; height: 88px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand);
    color: #fff; font-weight: 700; font-size: 1.6rem;
}
.os-chip {
    background: var(--brand-light); color: var(--brand-dark);
    border: 1px solid #dbeafe; border-radius: 999px;
    padding: .25rem .9rem; font-size: .9rem; font-weight: 600;
}
.download-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2.6rem 1.6rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.download-box .dl-btn { min-width: 200px; }
.dl-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.1rem 1.5rem;
}
.dl-item { flex: 1 1 230px; max-width: 300px; }
.dl-tip { color: var(--muted); font-size: .9rem; }
.dl-note {
    border-top: 1px dashed #e2e8f0;
    color: var(--brand-dark);
    font-weight: 600;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.passcode {
    display: inline-block; background: #fff; border: 1px dashed var(--brand);
    color: var(--brand-dark); font-weight: 800; letter-spacing: 2px;
    border-radius: 8px; padding: .1rem .6rem; margin-left: .4rem;
}
.feature-card {
    background: #fff; border: 1px solid #eef2f7;
    border-radius: var(--radius); padding: 1.6rem; height: 100%;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card h4 {
    font-weight: 800; font-size: 1.08rem; margin-bottom: .9rem;
    display: flex; align-items: center; gap: .55rem;
}
.feature-card h4::before {
    content: "";
    width: 4px; height: 1.05rem; border-radius: 2px;
    background: var(--brand);
    flex: none;
}
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
    position: relative; padding-left: 1.65rem;
    color: #475569; margin-bottom: .45rem; line-height: 1.55;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
    content: "✓";
    position: absolute; left: 0; top: .12rem;
    width: 1.15rem; height: 1.15rem;
    background: var(--brand-light); color: var(--brand);
    border-radius: 50%; font-size: .72rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.shot-wrap { max-width: 920px; margin: 0 auto; }
.shot-frame {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: .7rem;
    box-shadow: var(--shadow);
}
.shot-bar { display: flex; gap: 6px; padding: .2rem .3rem .55rem; }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.shot-bar span:nth-child(1) { background: #fca5a5; }
.shot-bar span:nth-child(2) { background: #fcd34d; }
.shot-bar span:nth-child(3) { background: #86efac; }
.shot-frame img {
    width: 100%; display: block;
    border-radius: 10px;
    border: 1px solid #eef2f7;
}

/* ---------- 页面头 ---------- */
.page-hero { background: #fff; border-bottom: 1px solid #eef2f7; padding: 2.2rem 0 1.8rem; }

/* ---------- 联系页 ---------- */
.contact-card {
    background: #fff; border: 1px solid #eef2f7; border-radius: var(--radius);
    padding: 1.8rem; text-align: center; height: 100%;
}
.contact-card .ico svg { width: 30px; height: 30px; color: var(--brand); }
.contact-card h4 { font-weight: 800; margin: .6rem 0 .2rem; }
.contact-card p { color: var(--muted); margin: 0; word-break: break-all; }

/* --- 主客服卡片 --- */
.cs-card {
    background: #fff;
    border: 1px solid #e6ecf5;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1.6rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cs-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: .8rem; flex-wrap: wrap;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed #e6ecf5;
}
.cs-status {
    display: inline-flex; align-items: center; gap: .45rem;
    background: #ecfdf5; color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: .28rem .85rem;
    font-size: .88rem; font-weight: 700;
}
.cs-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
    animation: cs-pulse 1.8s ease-in-out infinite;
}
@keyframes cs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.85); }
}
.cs-hours { color: var(--muted); font-size: .9rem; font-weight: 600; }

.cs-main {
    display: flex; align-items: center; gap: 1.8rem;
    flex-wrap: wrap;
    padding: 1.6rem 0 1.2rem;
    flex: 1;
}
.cs-qr { text-align: center; margin: 0 auto; }
.cs-qr-frame {
    width: 210px; height: 210px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    position: relative;
}
.cs-qr-frame::after {
    content: "";
    position: absolute; inset: -5px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    pointer-events: none;
}
.cs-qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px; }
.cs-qr-tip {
    margin-top: .7rem; color: var(--brand-dark);
    font-weight: 700; font-size: .95rem;
}

.cs-info { flex: 1 1 240px; min-width: 220px; }
.cs-name {
    font-size: 1.15rem; font-weight: 800; margin-bottom: .9rem;
    display: flex; align-items: center; gap: .5rem;
}
.cs-name::before {
    content: ""; width: 4px; height: 1.05rem; border-radius: 2px; background: var(--brand);
}
.cs-row {
    display: flex; align-items: center; gap: .7rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: .7rem .9rem;
    margin-bottom: .6rem;
}
.cs-row-label { color: var(--muted); font-size: .85rem; flex: none; }
.cs-row-value {
    font-size: 1.18rem; font-weight: 800;
    color: var(--ink);
    letter-spacing: .5px;
    margin-left: auto;
    word-break: break-all;
}
.cs-copy {
    flex: none;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--brand-dark);
    font-size: .82rem; font-weight: 700;
    border-radius: 8px;
    padding: .22rem .7rem;
    transition: all .15s ease;
}
.cs-copy:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.cs-note {
    color: var(--muted); font-size: .88rem;
    margin: .8rem 0 0; line-height: 1.6;
}
.cs-tip-bar {
    border-top: 1px dashed #e6ecf5;
    padding-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
    text-align: center;
}

/* --- 右侧渠道列表 --- */
.cs-side { display: flex; flex-direction: column; gap: .9rem; height: 100%; }
.cs-mini {
    display: flex; align-items: flex-start; gap: .9rem;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    flex: 1;
}
.cs-mini.is-plain { background: #f8fafc; border-style: dashed; }
.cs-mini-ico {
    width: 40px; height: 40px; flex: none;
    border-radius: 11px;
    background: var(--brand-light); color: var(--brand);
    display: flex; align-items: center; justify-content: center;
}
.cs-mini-ico svg { width: 21px; height: 21px; }
.cs-mini-body { min-width: 0; }
.cs-mini-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.cs-mini-value {
    font-size: 1.02rem; font-weight: 800;
    word-break: break-all;
    margin: .1rem 0 .15rem;
}
.cs-mini-desc { color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* --- 复制提示 --- */
.copy-toast {
    position: fixed;
    left: 50%; bottom: 2.2rem;
    transform: translate(-50%, 1.5rem);
    background: rgba(15, 23, 42, .94);
    color: #fff;
    font-size: .92rem; font-weight: 600;
    padding: .65rem 1.3rem;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .3);
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 2000;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 767.98px) {
    .cs-main { gap: 1.2rem; }
    .cs-qr-frame { width: 180px; height: 180px; }
    .cs-row { flex-wrap: wrap; }
    .cs-row-value { margin-left: 0; width: 100%; order: 3; }
    .cs-copy { margin-left: auto; }
}

/* ---------- 页脚 ---------- */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 3rem; }
.site-footer .brand-text { color: #fff; }
.site-footer .footer-desc { font-size: .92rem; margin: 0; }
.site-footer .footer-title { color: #e2e8f0; font-weight: 700; margin-bottom: .8rem; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .45rem; }
.site-footer .footer-links a { color: #94a3b8; text-decoration: none; font-size: .92rem; }
.site-footer .footer-links a:hover { color: #60a5fa; }
.footer-qr {
    display: inline-block;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: .7rem;
    transition: transform .18s ease;
}
.footer-qr:hover { transform: translateY(-2px); }
.footer-qr img { width: 96px; height: 96px; object-fit: contain; display: block; border-radius: 6px; }
.footer-contact li { font-size: .88rem; color: #94a3b8; margin-bottom: .3rem; }
.footer-contact li strong { color: #e2e8f0; font-weight: 700; letter-spacing: .3px; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, .18); font-size: .88rem; }
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #60a5fa; }
.footer-filings { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.footer-sep { color: rgba(148, 163, 184, .45); }
/* 公安备案：徽标 + 备案号，垂直居中对齐 */
.footer-gan { display: inline-flex; align-items: center; gap: .3rem; }
.footer-gan img { width: 16px; height: 18px; flex: none; display: block; }

/* ---------- 后台 ----------
   后台样式统一维护在 wwwroot/css/admin.css */

/* ---------- 响应式微调 ---------- */
@media (max-width: 575.98px) {
    .hero { padding: 3rem 0 2.2rem; }
    .section { padding: 2.4rem 0; }
    .download-box .dl-btn { width: 100%; }
    .footer-bottom { text-align: center; }
    .footer-filings { justify-content: center; }
}
