/* 慧獭进销存 官网主样式 v1.0
   品牌主标签：慧獭进销存
   设计目标：AI 爬虫友好（HTML 内联全部内容）、移动端可用、零 JS 依赖
*/

/* ========== CSS 变量 ========== */
:root {
    --huita-primary: #7c6ae6;
    --huita-primary-dark: #5e4dc7;
    --huita-accent: #00d4ff;
    --huita-warm: #ff8c6b;
    --huita-cream: #fff7f2;

    --gradient-brand: linear-gradient(135deg, #7c6ae6 0%, #00d4ff 100%);
    --gradient-hero: linear-gradient(160deg, #0c1445 0%, #1a1040 40%, #2d1b69 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 106, 230, 0.06) 0%, rgba(0, 212, 255, 0.06) 100%);

    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-light: #8888a0;
    --text-invert: #ffffff;

    --bg-body: #f8f9fd;
    --bg-card: #ffffff;
    --bg-soft: #f3f4fa;

    --border-light: rgba(124, 106, 230, 0.15);
    --border-soft: #e8eaf3;

    --shadow-card: 0 8px 32px rgba(124, 106, 230, 0.10);
    --shadow-hover: 0 16px 48px rgba(124, 106, 230, 0.18);
    --shadow-soft: 0 2px 12px rgba(20, 20, 50, 0.05);

    --header-h: 68px;
    --container: 1180px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* ========== Reset ========== */
* { margin: 0; padding: 0; box-box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--huita-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--huita-primary-dark); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.25em 0; }

/* ========== 通用结构 ========== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.compact { padding: 48px 0; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0.6em 0; }
.lead { font-size: 1.15rem; color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }

/* ========== 顶部导航 ========== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-soft);
    height: var(--header-h);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text-primary); }
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(124, 106, 230, 0.3);
    object-fit: cover;
    vertical-align: middle;
}
.brand-name { letter-spacing: 0.5px; }
.brand-name .accent { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.primary { display: flex; gap: 28px; align-items: center; }
nav.primary a {
    color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
    padding: 8px 0; border-bottom: 2px solid transparent;
}
nav.primary a:hover { color: var(--huita-primary); border-bottom-color: var(--huita-primary); text-decoration: none; }
nav.primary a.active { color: var(--huita-primary); border-bottom-color: var(--huita-primary); }

.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-brand);
    color: #fff !important; font-weight: 600;
    border-radius: 999px; box-shadow: 0 4px 14px rgba(124, 106, 230, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 106, 230, 0.45); text-decoration: none; }
.cta-btn.ghost { background: transparent; color: var(--huita-primary) !important; box-shadow: none; border: 1.5px solid var(--huita-primary); }
.cta-btn.ghost:hover { background: var(--huita-primary); color: #fff !important; }

@media (max-width: 820px) {
    nav.primary { gap: 14px; }
    nav.primary a { font-size: 0.85rem; }
    .brand-name { display: none; }
}
@media (max-width: 640px) {
    nav.primary { display: none; }
}

/* ========== Hero ========== */
.hero {
    background: var(--gradient-hero);
    color: var(--text-invert);
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 140, 107, 0.12) 0%, transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.hero h1 { color: #fff; font-size: 2.8rem; margin-bottom: 18px; }
.hero h1 .accent { background: linear-gradient(90deg, #00d4ff 0%, #7c6ae6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255, 255, 255, 0.85); font-size: 1.2rem; margin-bottom: 32px; }
.hero .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .ctas .cta-btn.ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.5); }
.hero .ctas .cta-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff !important; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.8rem; font-weight: 700; color: #00d4ff; }
.hero-stat .lbl { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }

@media (max-width: 640px) {
    .hero { padding: 64px 0 56px; }
    .hero h1 { font-size: 1.9rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero-stats { gap: 24px; }
}

/* ========== Section 通用 ========== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    color: var(--huita-primary); text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

/* ========== 卡片 ========== */
.card-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--border-light); }
.card .icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--gradient-card);
    color: var(--huita-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: 12px;
}
.card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ========== 价格表 ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); padding: 32px 28px; position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.plan.featured {
    border-color: var(--huita-primary); border-width: 2px;
    box-shadow: 0 16px 48px rgba(124, 106, 230, 0.15);
    transform: scale(1.02);
}
.plan.featured::before {
    content: "最受欢迎"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-brand); color: #fff; font-size: 0.75rem; font-weight: 600;
    padding: 4px 14px; border-radius: 999px; letter-spacing: 0.5px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .tagline { color: var(--text-light); font-size: 0.9rem; margin-bottom: 18px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 12px 0 20px; }
.plan .price .num { font-size: 2.4rem; font-weight: 700; color: var(--text-primary); }
.plan .price .unit { color: var(--text-light); font-size: 0.95rem; }
.plan .price .old { color: var(--text-light); text-decoration: line-through; font-size: 0.9rem; margin-left: 8px; }
.plan ul.feats { list-style: none; padding: 0; margin: 16px 0 24px; }
.plan ul.feats li { padding: 8px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-secondary); font-size: 0.95rem; position: relative; padding-left: 22px; }
.plan ul.feats li::before { content: "✓"; color: var(--huita-primary); font-weight: 700; position: absolute; left: 0; top: 8px; }
.plan ul.feats li:last-child { border-bottom: none; }
.plan .cta-btn { display: block; text-align: center; width: 100%; }
.plan.featured .cta-btn { background: var(--gradient-brand); color: #fff; }

/* ========== FAQ ========== */
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: var(--radius-md); margin-bottom: 12px; padding: 20px 24px;
}
.faq-item h3 { color: var(--huita-primary-dark); font-size: 1.05rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-secondary); margin: 0; }

/* ========== 表格 ========== */
.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.compare-table th { background: var(--bg-soft); font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.compare-table td { color: var(--text-secondary); font-size: 0.95rem; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .check { color: var(--huita-primary); font-weight: 700; }
.compare-table .x { color: #c0c0c8; }

/* ========== 页脚 ========== */
.site-footer {
    background: #0f1130; color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px; margin-top: 80px;
}
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-block p { font-size: 0.88rem; line-height: 1.6; margin-top: 12px; }
.site-footer .legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding-top: 20px;
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
    font-size: 0.82rem; color: rgba(255, 255, 255, 0.5);
}
.site-footer .legal a { color: rgba(255, 255, 255, 0.5); }
.site-footer .legal .icp { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .legal .icp-icon {
    width: 14px; height: 16px;
    background: url('../img/beian-badge.png') center/contain no-repeat;
    display: inline-block;
}

/* ========== 杂项 ========== */
.badge {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(124, 106, 230, 0.12); color: var(--huita-primary);
}
.badge.warn { background: rgba(255, 140, 107, 0.15); color: #d35a2e; }
.badge.ok { background: rgba(40, 180, 120, 0.12); color: #1c8a55; }

.alert {
    background: var(--huita-cream); border-left: 4px solid var(--huita-warm);
    padding: 16px 20px; border-radius: var(--radius-sm);
    color: #6a3a1a; font-size: 0.95rem; margin: 16px 0;
}

.kbd {
    background: #2a2d3e; color: #fff; padding: 2px 8px; border-radius: 4px;
    font-family: ui-monospace, monospace; font-size: 0.85em;
}

.soft-section { background: var(--bg-soft); }
