/* ========================================
   统计群官网 - 微信风格样式
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #07c160;
    --primary-dark: #06ad56;
    --primary-light: #e8f8ef;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f7f7f7;
    --bg-dark: #1a1a1a;
    --border: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-white {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-white:hover {
    background: var(--bg-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ---------- 无障碍辅助类 ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Section Common ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    height: 64px;
    overflow: visible;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo svg.icon {
    color: var(--primary);
    font-size: 24px;
}

.logo-img {
    width: auto;
    height: 26px;
    display: block;
    flex: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-gray) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Hero Visual：右侧自动统计版界面预览 */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ---------- Products ---------- */
.products {
    padding: 40px 0 100px;
    background: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-light) 100%);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.product-icon.manual {
    background: #e8f0fe;
    color: #4285f4;
}

.product-icon.auto {
    background: var(--primary-light);
    color: var(--primary);
}

.product-icon.full {
    background: #eef2ff;
    color: #6366f1;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-tagline {
    font-size: 15px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.product-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-features {
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.product-features li svg.icon {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.product-price {
    margin-top: auto;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.price-unit {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* ---------- 自动统计版预览（Hero 右侧） ---------- */
.auto-preview-card {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: left;
}

.auto-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.auto-preview-head svg.icon {
    color: var(--primary);
    font-size: 18px;
}

.auto-preview-body {
    padding: 20px;
}

.auto-preview-card .preview-console {
    gap: 10px;
    padding: 0;
    background: transparent;
}

/* 浅色记录卡：与本站白底绿主色统一，三条记录完整显示不滚动 */
.preview-console .mc-list {
    gap: 10px;
    overflow: visible;
}

.preview-console .mc-item {
    padding: 10px 14px;
    border-left: 3px solid var(--primary);
    background: var(--bg-white);
    box-shadow: inset 0 0 0 1px var(--border), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 列表为空时的占位提示：20px 发光文字 + 呼吸动画，高度接近三条记录，避免发送前后卡片高度跳动 */
.preview-console .mc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 270px;
    margin: 0;
    padding: 0 16px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    animation: mc-empty-glow 2s ease-in-out infinite;
}

/* 文案下方的向下箭头：与文字同色发光，上下浮动提示往下看 */
.preview-console .mc-empty-arrow {
    font-size: 26px;
    line-height: 1;
    animation: mc-empty-arrow-bounce 1.4s ease-in-out infinite;
}

@keyframes mc-empty-glow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(7, 193, 96, 0.35), 0 0 10px rgba(7, 193, 96, 0.2);
        opacity: 0.85;
    }
    50% {
        text-shadow: 0 0 8px rgba(7, 193, 96, 0.85), 0 0 20px rgba(7, 193, 96, 0.5), 0 0 32px rgba(7, 193, 96, 0.3);
        opacity: 1;
    }
}

@keyframes mc-empty-arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .preview-console .mc-empty {
        animation: none;
        text-shadow: 0 0 8px rgba(7, 193, 96, 0.6), 0 0 18px rgba(7, 193, 96, 0.35);
    }

    .preview-console .mc-empty-arrow {
        animation: none;
    }
}

.preview-console .mc-no {
    width: 18px;
    height: 18px;
    background: var(--primary);
    font-size: 10px;
}

.preview-console .mc-sender {
    color: var(--text-primary);
    font-size: 13px;
}

.preview-console .mc-time {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
}

.preview-console .mc-amount {
    color: var(--text-light);
    font-size: 12.5px;
}

.preview-console .mc-amount b {
    color: var(--primary);
    font-size: 13px;
}

.preview-console .mc-msg {
    margin: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.preview-console .mc-msg-label {
    color: var(--text-light);
}

.preview-console .mc-flag {
    color: var(--text-light);
    font-size: 12.5px;
}

.preview-console .mc-flag--error {
    color: #ff6b6b;
}

.preview-console .mc-flag--warn {
    color: #f5a623;
}

.preview-console .mc-btn {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
}

.preview-console .mc-btn--edit {
    background: #ff8f1f;
}

.preview-console .mc-btn--edit:hover {
    background: #f07d0a;
}

.preview-console .mc-panel {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-gray);
    box-shadow: none;
}

.preview-console .mc-panel-head {
    margin-bottom: 10px;
}

.preview-console .mc-panel-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.preview-console .mc-panel-meta {
    color: var(--text-light);
    font-size: 12px;
}

.preview-console .mc-btn--mini {
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 12px;
}

.preview-console .mc-btn--mini:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.preview-console .mc-input {
    height: 70px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.6;
}

.preview-console .mc-input:focus {
    border-color: var(--primary);
}

.preview-console .mc-input::placeholder {
    color: var(--text-light);
}

.preview-console .mc-btn--send {
    padding: 9px 22px;
    border-radius: 18px;
    background: var(--primary);
    font-size: 13px;
}

.preview-console .mc-btn--send:hover {
    background: var(--primary-dark);
}

/* 发送状态提示：请求成功/失败的简短反馈 */
.preview-console .mc-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
}

.preview-console .mc-status.is-error {
    color: #e5484d;
}

/* ---------- Product Showcase ---------- */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 32px;
    margin: 60px auto 0;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.showcase-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.showcase-label svg.icon {
    color: var(--primary);
    font-size: 18px;
}

.showcase-image {
    flex: 1;
    min-height: 0;
    aspect-ratio: 8 / 5;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Showcase Mock: 识别发送界面 ---------- */
.mock-console {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: radial-gradient(120% 100% at 50% 0%, #0d1730 0%, #060b17 70%);
    overflow: hidden;
}

/* 消息记录列表：新发送的内容插到顶部，超出可滚动 */
.mc-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.mc-list::-webkit-scrollbar {
    width: 4px;
}

.mc-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
}

/* 单条记录卡片：发送方/时间/金额，消息内容，告警/错误内容与操作按钮 */
.mc-item {
    padding: 5px 8px;
    border-left: 3px solid #7c5cff;
    border-radius: 8px;
    background: linear-gradient(180deg, #17244a 0%, #111b36 100%);
    box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* 识别失败的记录：红色左边框提示需要重识别 */
.mc-item--error {
    border-left-color: #ff4d4f;
    box-shadow: inset 0 0 0 1px rgba(255, 77, 79, 0.28), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mc-head,
.mc-foot {
    display: flex;
    align-items: center;
}

.mc-head {
    gap: 6px;
}

.mc-foot {
    gap: 10px;
}

.mc-no {
    flex: none;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff 0%, #4c6bff 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
}

.mc-sender {
    color: #e3e9f7;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.mc-time {
    color: #c2cde0;
    font-size: 10px;
    white-space: nowrap;
}

.mc-amount {
    margin-left: auto;
    color: #8c98b1;
    font-size: 10px;
    white-space: nowrap;
}

.mc-amount b {
    color: #ffffff;
    font-weight: 600;
}

.mc-msg {
    margin: 4px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #c8d2e8;
    font-size: 10.5px;
    line-height: 1.55;
}

.mc-msg-label {
    color: #8c98b1;
}

.mc-foot {
    gap: 10px;
}

.mc-flag {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8c98b1;
    font-size: 10px;
    white-space: nowrap;
}

.mc-flag--error {
    color: #ff6b6b;
}

.mc-flag--warn {
    color: #f5a623;
}

.mc-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c5ce7 0%, #3b82f6 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 9.5px;
    line-height: 1.6;
    white-space: nowrap;
    cursor: pointer;
}

.mc-btn--edit {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d4df0 100%);
}

.mc-panel {
    flex: none;
    padding: 6px 9px 7px;
    border: 1px solid rgba(59, 130, 246, 0.75);
    border-radius: 10px;
    background: #0b1428;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.mc-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.mc-panel-title {
    color: #ff9f43;
    font-size: 11px;
    white-space: nowrap;
}

.mc-panel-meta {
    margin-left: auto;
    display: flex;
    gap: 6px;
    color: #ff9f43;
    font-size: 9.5px;
    white-space: nowrap;
}

.mc-btn--mini {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 9.5px;
}

.mc-panel-body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-input {
    flex: 1;
    min-width: 0;
    height: 64px;
    padding: 6px 9px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 8px;
    background: #0a1224;
    color: #c8d2e8;
    font-family: inherit;
    font-size: 10.5px;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.mc-input:focus {
    border-color: rgba(59, 130, 246, 0.8);
}

.mc-input::placeholder {
    color: #5b6a89;
}

.mc-btn--send {
    flex: none;
    padding: 7px 16px;
    border-radius: 16px;
    font-size: 10.5px;
}

.placeholder-img {
    text-align: center;
    color: var(--text-light);
}

.placeholder-img svg.icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #ccc;
}

.placeholder-img p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.placeholder-img small {
    font-size: 13px;
    color: var(--text-light);
}

/* ---------- Product Video ---------- */
.product-video {
    margin-top: 60px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

.placeholder-video {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.placeholder-video svg.icon {
    font-size: 64px;
    margin-bottom: 16px;
    color: var(--primary);
    opacity: 0.8;
}

.placeholder-video p {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.placeholder-video small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Compare ---------- */
.compare {
    padding: 100px 0;
    background: var(--bg-gray);
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 900px;
}

.compare-table th,
.compare-table td {
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-table thead th {
    background: var(--bg-gray);
    padding: 0;
}

.plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    font-weight: 700;
    font-size: 16px;
}

.plan-header svg.icon {
    font-size: 28px;
}

.plan-header.manual {
    color: #4285f4;
}

.plan-header.auto {
    color: var(--primary);
}

.plan-header.full {
    color: #6366f1;
}

.plan-header.feature {
    color: #ff9500;
}

.feature-name {
    text-align: center !important;
    font-weight: 500;
    color: var(--text-primary);
}

.compare-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.check {
    color: var(--primary);
    margin-right: 6px;
}

.cross {
    color: #ddd;
}

.price-row {
    background: var(--primary-light);
}

.price-row td {
    font-size: 18px;
    color: #ff0000;
    font-weight: 700;
    border-bottom: none;
}

/* ---------- Pricing ---------- */
.pricing {
    padding: 100px 0;
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.pricing-header {
    padding: 40px 32px 20px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.pricing-body {
    flex: 1;
    padding: 0 32px 32px;
}

.price {
    text-align: center;
    margin-bottom: 8px;
}

.currency {
    font-size: 24px;
    font-weight: 700;
    vertical-align: top;
    line-height: 1.4;
    color: #ff0000;
}

.amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: #ff0000;
}

.period {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.price-note {
    text-align: center;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 32px;
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-gray);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg.icon {
    font-size: 14px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.pricing-features li:not(.disabled) svg.icon {
    color: var(--primary);
}

.pricing-features li.disabled {
    color: var(--text-light);
}

.pricing-features li.disabled svg.icon {
    color: #ddd;
}

.pricing-footer {
    padding: 0 32px 32px;
}

/* ---------- Download ---------- */
.download {
    padding: 80px 0;
    background: var(--primary);
}

.download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.download-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.download-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.download-options {
    display: flex;
    gap: 24px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.download-item svg.icon {
    font-size: 20px;
}

.download-action {
    text-align: center;
    flex-shrink: 0;
}

.download-note {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- FAQ ---------- */
.faq {
    padding: 100px 0;
    background: var(--bg-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg.icon {
    font-size: 14px;
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question svg.icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.info-item h4,
.info-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 15px;
    color: var(--text-secondary);
}

.info-note {
    font-size: 13px !important;
    color: var(--text-light) !important;
    margin-top: 2px;
}

.info-link {
    display: inline-block;
    font-size: 15px;
    color: var(--primary);
    word-break: break-all;
}

.info-link:hover {
    text-decoration: underline;
}

/* Form */
.contact-form {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background: white;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand .logo svg.icon {
    color: var(--primary);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-links h3 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: flex;
        max-width: 600px;
        margin: 40px auto 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .product-showcase {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 60px auto 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .download-box {
        flex-direction: column;
        text-align: center;
    }

    .download-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Menu */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 24px 24px;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-top: 1px solid var(--border);
        z-index: 999;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--bg-gray);
    }

    .nav-links.active a::after {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

    /* 移动端：预览卡片与文字区交换位置，测试区域优先展示 */
    .hero-visual {
        order: -1;
        margin: 0 auto 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 16px;
    }

    .products,
    .compare,
    .pricing,
    .faq,
    .contact {
        padding: 70px 0;
    }

    .product-card {
        padding: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px 16px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-links h4,
    .footer-links h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-links ul li {
        margin-bottom: 8px;
    }

    .footer-links ul a {
        font-size: 13px;
    }

    .download-content h2 {
        font-size: 24px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    /* ===== 对比表移动端卡片化 ===== */
    .compare-table-wrapper {
        box-shadow: none;
        overflow: visible;
    }

    .compare-table {
        min-width: 0;
        background: transparent;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .compare-table thead,
    .compare-table tbody,
    .compare-table tr {
        display: block;
        width: 100%;
    }

    /* 隐藏表头 */
    .compare-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    /* 每行变成一张卡片 */
    .compare-table tbody tr {
        background: white;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .compare-table tbody tr.price-row {
        background: var(--primary-light);
    }

    /* 所有 td 统一变为 block */
    .compare-table td {
        display: block;
        border-bottom: none;
        padding: 0;
        text-align: center;
    }

    /* 功能名：占满整行，居中 */
    .compare-table td.feature-name {
        width: 100%;
        font-size: 15px;
        font-weight: 700;
        color: var(--text-primary);
        text-align: center;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .price-row td.feature-name {
        border-bottom-color: rgba(7, 193, 96, 0.2);
    }

    /* 三个数据列各占三分之一，并排 */
    .compare-table td[data-label] {
        width: 33.3333%;
        padding-top: 4px;
        font-size: 13px;
        color: var(--text-secondary);
        box-sizing: border-box;
    }

    .compare-table td[data-label]:nth-of-type(2) {
        border-right: 1px solid var(--border);
        padding-right: 8px;
    }

    .compare-table td[data-label]:nth-of-type(3) {
        border-right: 1px solid var(--border);
        padding-left: 8px;
        padding-right: 8px;
    }

    .compare-table td[data-label]:nth-of-type(4) {
        padding-left: 8px;
    }

    .price-row td[data-label] {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
    }

    /* data-label 伪元素显示版本名 */
    .compare-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 600;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
    }

    .compare-table td[data-label]:nth-of-type(2)::before {
        color: #4285f4;
    }

    .compare-table td[data-label]:nth-of-type(3)::before {
        color: var(--primary);
    }

    .compare-table td[data-label]:nth-of-type(4)::before {
        color: #6366f1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .amount {
        font-size: 44px;
    }

    .pricing-card {
        padding: 0;
    }

    .pricing-header {
        padding: 32px 24px 16px;
    }

    .pricing-body {
        padding: 0 24px 24px;
    }

    .pricing-footer {
        padding: 0 24px 24px;
    }

    /* 自动统计版预览：窄屏压缩字号并允许底部状态换行，避免横向溢出 */
    .preview-console .mc-item {
        padding: 8px 10px;
    }

    .preview-console .mc-sender {
        font-size: 11.5px;
    }

    .preview-console .mc-time {
        font-size: 10.5px;
    }

    .preview-console .mc-amount {
        font-size: 10.5px;
    }

    .preview-console .mc-amount b {
        font-size: 11px;
    }

    .preview-console .mc-msg {
        font-size: 11.5px;
    }

    .preview-console .mc-flag {
        font-size: 11px;
    }

    .preview-console .mc-btn {
        padding: 3px 9px;
        border-radius: 12px;
        font-size: 10.5px;
    }

    .preview-console .mc-foot {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .preview-console .mc-head {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

/* ========================================
   浮动客服（右侧垂直居中卡片；移动端收起为单个按钮）
   ======================================== */
.kefu-widget {
    position: fixed;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    touch-action: none;
}

.kefu-widget[hidden] {
    display: none;
}

.kefu-title {
    width: 100%;
    padding-bottom: 10px;
    text-align: center;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--bg-gray);
}

.kefu-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    color: #fff;
    background: #ff4d4f;
    border: 2px solid var(--bg-white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.kefu-close:hover {
    background: #f5222d;
    transform: scale(1.08);
}

/* 收起态的关闭按钮仅移动端使用 */
.kefu-close--collapse {
    display: none;
}

.kefu-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.kefu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kefu-item-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.kefu-item {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.kefu-item-wechat {
    background: linear-gradient(135deg, #07c160, #06ad56);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.35);
}

.kefu-item-qq {
    background: linear-gradient(135deg, #12b7f5, #0e93c9);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.32);
}

.kefu-item-telegram {
    background: linear-gradient(135deg, #26a5e4, #1d7fc0);
    box-shadow: 0 4px 12px rgba(38, 165, 228, 0.32);
}

.kefu-item-chat {
    background: linear-gradient(135deg, #3d3d3d, #1a1a1a);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kefu-item:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.08);
}

.kefu-item-caption {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    color: var(--text-secondary);
}

/* 未读消息角标 */
.kefu-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 4;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--bg-white);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.kefu-badge[hidden] {
    display: none;
}

/* 微信二维码卡片 */
.kefu-qr-pop {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);
    transform: translateY(-50%);
    width: 132px;
    padding: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.kefu-qr-pop[hidden] {
    display: none;
}

.kefu-qr-pop img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* 二维码图片缺失时的图标占位（替换 images/wechat-qr.png 后自动恢复） */
.kefu-qr-pop--empty::before {
    content: "二维码";
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 116px;
    font-size: 16px;
    color: var(--text-light);
}

.kefu-qr-pop span {
    display: block;
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* 移动端客服按钮：默认隐藏，仅移动端显示 */
.kefu-trigger-group {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.kefu-trigger {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(7, 193, 96, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.kefu-trigger:hover {
    background: var(--primary-dark);
}

.kefu-trigger-caption {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    color: var(--text-secondary);
}

.kefu-widget--expanded .kefu-trigger .kefu-badge {
    display: none;
}

/* 操作提示条（QQ 号已复制等） */
.kefu-tip {
    position: fixed;
    left: 50%;
    bottom: 110px;
    z-index: 1003;
    padding: 10px 22px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}

.kefu-tip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 客服新消息提示条 */
.kefu-msg-toast {
    position: fixed;
    top: 84px;
    right: 32px;
    z-index: 1001;
    width: min(320px, calc(100vw - 32px));
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: kefu-toast-in 0.24s ease;
}

.kefu-msg-toast[hidden] {
    display: none;
}

.kefu-msg-toast-btn {
    width: 100%;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.kefu-msg-toast-title {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.kefu-msg-toast-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

@keyframes kefu-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

/* 在线客服聊天弹窗 */
.kefu-chat-modal {
    position: fixed;
    right: 32px;
    bottom: 92px;
    z-index: 1002;
}

.kefu-chat-modal[hidden] {
    display: none;
}

.kefu-chat-modal-box {
    position: relative;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: min(448px, 64vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.kefu-chat-modal-head {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 56px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border);
}

.kefu-chat-modal-head-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
}

.kefu-chat-modal-box iframe {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    display: block;
    background: #fff;
    border: 0;
}

.kefu-chat-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    background: #ff4d4f;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.kefu-chat-modal-close:hover {
    background: #f5222d;
    transform: scale(1.05);
}

/* ---------- 浮动客服：移动端 ---------- */
@media (max-width: 768px) {
    /* 移动端落在回到顶部按钮上方，面板向上展开不被视口截断 */
    .kefu-widget {
        top: auto;
        right: 16px;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        transform: none;
        gap: 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }

    /* 桌面关闭按钮隐藏，移动端按收起/展开态各用一个 */
    .kefu-close--expand,
    .kefu-close--collapse {
        top: -10px;
        left: -10px;
        right: auto;
    }

    .kefu-close--expand {
        display: none;
    }

    .kefu-close--collapse {
        display: flex;
    }

    /* 面板浮在按钮上方，向上滑出 */
    .kefu-panel {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        z-index: 2;
        width: max-content;
        gap: 8px;
        padding: 12px 10px;
        background: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-50%);
        transform-origin: bottom center;
        transition: transform 0.24s ease, opacity 0.24s ease;
    }

    .kefu-widget--collapsed .kefu-panel {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(10px) scale(0.96);
        transition: transform 0.24s ease, opacity 0.24s ease, visibility 0s linear 0.24s;
    }

    .kefu-widget--expanded .kefu-close--expand {
        display: flex;
    }

    .kefu-widget--expanded .kefu-close--collapse {
        display: none;
    }

    .kefu-trigger-group {
        display: flex;
        z-index: 1;
    }

    .kefu-title {
        font-size: 11px;
        padding-bottom: 8px;
    }

    .kefu-items {
        gap: 10px;
    }

    .kefu-item {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: var(--radius-sm);
    }

    .kefu-item-caption,
    .kefu-trigger-caption {
        font-size: 10px;
    }

    .kefu-qr-pop {
        width: 116px;
    }

    .kefu-qr-pop--empty::before {
        height: 100px;
        font-size: 56px;
    }

    .kefu-msg-toast {
        top: 72px;
        left: 16px;
        right: 16px;
        width: auto;
    }

    .kefu-chat-modal {
        left: 50%;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
    }

    .kefu-chat-modal-box {
        width: calc(100vw - 24px);
        height: 62vh;
        border-radius: var(--radius-md);
    }

    .kefu-chat-modal-head {
        height: 48px;
        padding: 0 52px 0 12px;
        gap: 6px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kefu-msg-toast {
        animation: none;
    }
}

/* ========================================
   调整重识别弹窗（消息详情）
   ======================================== */
body.msg-modal-open {
    overflow: hidden;
}

.msg-modal {
    position: fixed;
    inset: 0;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
}

.msg-modal[hidden] {
    display: none;
}

.msg-modal-box {
    width: 560px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: msg-modal-in 0.24s ease;
}

@keyframes msg-modal-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.msg-modal-head {
    position: relative;
    flex: none;
    padding: 18px 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.msg-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.msg-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    background: #ff4d4f;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.msg-modal-close:hover {
    background: #f5222d;
    transform: scale(1.06);
}

.msg-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg-card {
    padding: 18px 20px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.msg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.msg-card-title {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.msg-card-title--accent {
    font-size: 15px;
    color: var(--primary);
}

.msg-card-head .msg-card-title {
    margin-bottom: 0;
}

.msg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.msg-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

.msg-meta--label {
    margin-top: 4px;
}

.msg-level {
    color: #ff4d4f;
    font-weight: 600;
}

.msg-level--error {
    color: #ff4d4f;
}

.msg-level--warn {
    color: #f5a623;
}

.msg-level--none {
    color: var(--text-primary);
}

.msg-tip {
    margin: 0;
    padding: 8px 12px;
    border-left: 3px solid #ff4d4f;
    border-radius: var(--radius-sm);
    background: rgba(255, 77, 79, 0.1);
    color: #ff8a8c;
    font-size: 13px;
    line-height: 1.6;
}

.msg-time {
    color: var(--primary-dark);
    font-weight: 600;
}

.msg-content {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    word-break: break-word;
}

.msg-content--pre {
    white-space: pre-wrap;
}

.msg-content--error {
    color: #ff4d4f;
}

.msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.msg-btn--primary {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.msg-btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.msg-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.msg-btn.is-loading::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: msg-spin 0.7s linear infinite;
}

@keyframes msg-spin {
    to { transform: rotate(360deg); }
}

.msg-textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.msg-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.msg-total {
    color: var(--primary);
}

.msg-result {
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* 识别结果：区域 tabs + 总金额 + 单行规则（对齐 cp-h2 收单详情） */
.msg-result-head-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.msg-result-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding: 4px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    scrollbar-width: none;
}

.msg-result-tabs[hidden] {
    display: none;
}

.msg-result-tabs::-webkit-scrollbar {
    display: none;
}

.msg-area-tab {
    flex: none;
    padding: 6px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.msg-area-tab:hover {
    color: var(--text-primary);
    background: var(--bg-white);
}

.msg-area-tab.is-active {
    color: #fff;
    background: var(--primary);
}

.msg-area-tab.is-active:hover {
    background: var(--primary-dark);
}

.msg-result-total {
    margin-left: auto;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.msg-result-head {
    padding: 8px 12px;
    background: var(--bg-gray);
    color: var(--text-light);
    font-size: 12.5px;
    border-bottom: 1px solid var(--border);
}

.msg-result-body {
    display: flex;
    flex-direction: column;
}

.msg-rule-line {
    display: flex;
    align-items: baseline;
    gap: 2px 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.msg-rule-line + .msg-rule-line {
    border-top: 1px solid var(--border);
}

.msg-rule-seq {
    flex: none;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}

.msg-rule-other {
    flex: none;
    color: var(--text-secondary);
    font-weight: 700;
}

.msg-rule-text {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 480px) {
    .msg-modal {
        padding: 12px;
    }

    .msg-modal-box {
        max-height: calc(100vh - 24px);
    }

    .msg-modal-body {
        padding: 16px;
    }

    .msg-card {
        padding: 16px;
    }

    .msg-result-head-row {
        gap: 8px;
    }

    .msg-result-tabs {
        flex: 1 1 100%;
        justify-content: center;
    }

    .msg-area-tab {
        padding: 6px 9px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msg-modal-box {
        animation: none;
    }
}

/* ---------- 下载试用弹窗 ---------- */
.dl-modal-body {
    align-items: center;
    text-align: center;
}

.dl-modal-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.dl-modal-btn {
    max-width: 240px;
}

/* ---------- 关于我们（首页） ---------- */
.about-seo {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-body {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.9;
}

.about-body p {
    margin-bottom: 20px;
}

.about-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 14px;
}

.about-body a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-body a:hover {
    color: var(--primary);
}

.about-body strong {
    color: var(--text-primary);
}

.about-list {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.about-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .about-seo {
        padding: 64px 0;
    }

    .about-body {
        font-size: 16px;
        line-height: 1.8;
    }

    .about-body h3 {
        font-size: 19px;
        margin-top: 28px;
    }
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 独立子页面 ---------- */
.page-section {
    padding-top: 140px;
}

/* ---------- 404 页面 ---------- */
.error-page {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 120px 0 100px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-gray) 100%);
}

.error-page .container {
    text-align: center;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -4px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.error-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-section {
        padding-top: 112px;
    }

    .error-page {
        min-height: 0;
        padding: 120px 0 80px;
    }

    .error-code {
        font-size: 88px;
    }

    .error-title {
        font-size: 26px;
    }
}

/* ---------- 面包屑导航 ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span[aria-current="page"] {
    color: var(--text-primary);
}

/* ========== FAQ 语义化标题与“查看全部”入口 ========== */
.faq-question-wrap {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.faq-more {
    margin-top: 28px;
    text-align: center;
}

.faq-more a {
    color: var(--primary);
    font-weight: 600;
}

.faq-more a:hover {
    text-decoration: underline;
}

/* ========== 产品/对比页 SEO 正文 ========== */
.product-guide,
.compare-notes {
    max-width: 900px;
    margin: 56px auto 0;
}

.product-guide h2,
.compare-notes h2 {
    margin: 36px 0 12px;
    color: var(--text-primary);
    font-size: 26px;
    line-height: 1.4;
}

.product-guide h3,
.compare-notes h3 {
    margin: 24px 0 8px;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.5;
}

.product-guide p,
.compare-notes p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
}

.product-guide ul {
    margin: 0 0 16px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
}

.product-guide a,
.compare-notes a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== 内联 SVG 图标（替代 Font Awesome） ========== */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}
.compare-intro {
    max-width: 900px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}
