/* ==========================================================================
   JCMS 前台设计系统 v2（重新设计版）
   设计令牌 + 全局布局 + 共享组件（页头/导航/页脚/按钮/表单/弹窗/分页/徽标等）

   【组件目录】（页面样式禁止重复定义以下组件类）
   - 设计令牌：:root 变量（--c-* 色 / --r-* 圆角 / --shadow-* / --container 等）
   - 布局：.container .section .section-head .section-title .section-sub .section-more
   - 页头：.header .header-top .header-main .logo .logo-mark .search-box .header-user
            .user-link .lang-switch .nav .nav-dropdown .mobile-nav*
   - 面包屑：.breadcrumb-nav
   - 按钮：.btn .btn-primary .btn-outline .btn-default .btn-danger .btn-success
           .btn-block .btn-lg .btn-sm .btn-group
   - 表单：.form-group .form-help
   - 徽标：.badge .badge-success .badge-danger .badge-warning .badge-primary .badge-muted
   - 文章卡片/列表：.article-grid .article-card* .article-list* 
   - 分页：.pagination .page-btn
   - 引流卡片：.promo-card .promo-card-body .promo-card-text .promo-card-title .promo-card-desc
               .promo-card-btn .promo-card-qr（.side 窄版修饰）
   - 变现组件：.reward-card .reward-modal .reward-pay-options .reward-pay-option .reward-qr-big
               .ad-container .ad-sidebar（打赏按钮/选择支付方式/放大扫码 / 页脚与侧边栏广告容器）
   - 空状态：.empty-state
   - 弹窗：.modal .modal-content .modal-header .modal-body .modal-footer
   - 状态：.spinner .success-icon .fail-icon .status-icon(.sm) .order-info*
   - 提示：.toast(.success/.error)
   - 页脚：.footer*
   - 浮动侧边栏：.float-sidebar .sidebar-item .item-popup .online-service-modal

   【约定】
   1. 页面 css（index/article/category/search/member/page/service/subscribe/workflow/error.css）
      只写页面特有布局，禁止重复定义本文件已有组件类。
   2. 视觉差异用「页面上下文选择器 + 局部修饰」表达（例：.workflow-container .btn-group .btn），
      不复制组件定义；全局通用差异才回收到本文件。
   3. 新增页面先查本目录，缺组件时再评估上收（单页组件留在页面 css，避免加重所有页面负担）。
   ========================================================================== */

:root {
    /* 品牌色 */
    --c-primary: #1890ff;
    --c-primary-dark: #0e76d8;
    --c-primary-deep: #096dd9;
    --c-primary-light: #e6f4ff;
    --c-primary-lighter: #f0f8ff;

    /* 语义色 */
    --c-success: #52c41a;
    --c-success-light: #f6ffed;
    --c-warning: #faad14;
    --c-warning-light: #fffbe6;
    --c-danger: #ff4d4f;
    --c-danger-light: #fff1f0;

    /* 中性色 */
    --c-text: #2b333d;
    --c-text-2: #5c6672;
    --c-text-3: #8a94a3;
    --c-border: #e6eaf0;
    --c-border-2: #d7dde6;
    --c-bg: #f4f6fa;
    --c-card: #ffffff;

    /* 页脚 */
    --c-footer: #14213a;
    --c-footer-2: #1d2f4d;

    /* 圆角 */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-pill: 999px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(16, 34, 60, .06);
    --shadow-md: 0 8px 24px rgba(16, 34, 60, .08);
    --shadow-lg: 0 18px 48px rgba(16, 34, 60, .16);

    /* 布局 */
    --container: 1200px;
    --header-h: 66px;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* 无障碍跳转链接 */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    background: var(--c-primary); color: #fff; padding: 8px 16px;
    border-radius: 0 0 var(--r-sm) 0; font-size: 14px;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   页头
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 900; background: var(--c-card); box-shadow: var(--shadow-sm); }

.header-top {
    background: var(--c-footer);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    padding: 7px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header-top a { color: rgba(255, 255, 255, .85); }
.header-top a:hover { color: #fff; }
.header-contact { display: flex; gap: 20px; }

.header-main { background: var(--c-card); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

/* Logo */
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 21px; font-weight: 700; color: var(--c-text); letter-spacing: -.3px;
    white-space: nowrap;
}
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #2bb673 0%, #1da562 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; box-shadow: 0 4px 10px rgba(43, 182, 115, .28);
}
.logo:hover .logo-mark { box-shadow: 0 6px 16px rgba(43, 182, 115, .4); }

/* 搜索框 */
.search-box { display: flex; align-items: stretch; }
.search-box input {
    width: 220px; height: 38px; padding: 0 14px;
    border: 1px solid var(--c-border-2); border-radius: var(--r-pill) 0 0 var(--r-pill);
    font-size: 14px; background: #f7f9fc; color: var(--c-text); outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.search-box input:focus { border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(24, 144, 255, .12); }
.search-box button {
    height: 38px; padding: 0 18px; border: none; cursor: pointer;
    background: var(--c-primary); color: #fff; font-size: 14px; font-weight: 500;
    border-radius: 0 var(--r-pill) var(--r-pill) 0; transition: background var(--transition);
}
.search-box button:hover { background: var(--c-primary-dark); }

/* 页头右侧操作区 */
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-user { display: flex; align-items: center; gap: 6px; }
.user-welcome { color: var(--c-text-3); font-size: 13px; }
.user-name { color: var(--c-primary); font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    border: 1px solid var(--c-border-2); border-radius: var(--r-pill); color: var(--c-text-2);
    font-size: 13px; background: #fff; transition: all var(--transition);
}
.user-link:hover { border-color: var(--c-primary); color: var(--c-primary); }
.user-link.primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.user-link.primary:hover { background: var(--c-primary-dark); color: #fff; }

/* 语言切换 */
.lang-switch {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px;
    background: #f0f3f8; border-radius: var(--r-pill); font-size: 13px;
}
.lang-switch a { padding: 3px 10px; border-radius: var(--r-pill); color: var(--c-text-3); line-height: 1.4; }
.lang-switch a:hover { color: var(--c-primary); }
.lang-switch a.active { background: #fff; color: var(--c-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.lang-sep { display: none; }

/* 汉堡按钮 */
.mobile-menu-btn { display: none; border: none; background: none; cursor: pointer; padding: 8px; flex-shrink: 0; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 5px 0; border-radius: 2px; transition: all .25s; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 主导航 */
.header-bottom { background: var(--c-card); border-top: 1px solid var(--c-border); }
.header-bottom .container { display: flex; align-items: center; min-height: 48px; }
.nav { display: flex; align-items: stretch; gap: 4px; flex: 1; }
.nav > a,
.nav > .nav-item > a {
    position: relative; display: flex; align-items: center; gap: 5px;
    padding: 0 16px; color: var(--c-text); font-size: 15px; font-weight: 500;
    line-height: 48px; transition: color var(--transition);
}
.nav > a:hover, .nav > .nav-item > a:hover { color: var(--c-primary); }
.nav > a::after, .nav > .nav-item > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
    background: var(--c-primary); border-radius: 3px 3px 0 0; transform: scaleX(0);
    transform-origin: center; transition: transform var(--transition);
}
.nav > a:hover::after, .nav > .nav-item:hover > a::after { transform: scaleX(1); }

.nav-item { position: relative; }
.nav-item-has-children > a::after {
    content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--c-text-3);
    border-bottom: 1.5px solid var(--c-text-3); transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition), border-color var(--transition);
}
.nav-item-has-children:hover > a::after { transform: rotate(225deg) translateY(-1px); border-color: var(--c-primary); }

.nav-dropdown {
    position: absolute; top: 100%; left: 8px; min-width: 200px; padding: 8px;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); z-index: 900; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all var(--transition);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-item a {
    display: block; padding: 9px 12px; border-radius: var(--r-sm);
    color: var(--c-text-2); font-size: 14px; font-weight: 400; line-height: 1.5;
}
.nav-dropdown-item a:hover { background: var(--c-primary-lighter); color: var(--c-primary); }

/* 移动端抽屉导航 */
.mobile-nav { display: none; position: fixed; inset: 0; background: rgba(10, 20, 36, .5); z-index: 1000; }
.mobile-nav.active { display: flex; }
.mobile-nav-content {
    width: 300px; max-width: calc(100vw - 48px); height: 100%; overflow-y: auto;
    background: #fff; transform: translateX(-100%); transition: transform .28s ease;
    display: flex; flex-direction: column;
}
.mobile-nav.active .mobile-nav-content { transform: translateX(0); }
.mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--c-border);
}
.mobile-nav-header .logo { font-size: 17px; }
.mobile-nav-close { font-size: 26px; line-height: 1; background: none; border: none; cursor: pointer; color: var(--c-text-3); padding: 4px; }
.mobile-nav-close:hover { color: var(--c-text); }
.mobile-nav-search { padding: 12px 16px; border-bottom: 1px solid var(--c-border); display: flex; gap: 8px; }
.mobile-nav-search input {
    flex: 1; height: 38px; padding: 0 14px; border: 1px solid var(--c-border-2);
    border-radius: var(--r-pill); font-size: 14px; outline: none;
}
.mobile-nav-search input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24, 144, 255, .12); }
.mobile-nav-search button {
    height: 38px; padding: 0 16px; border: none; border-radius: var(--r-pill);
    background: var(--c-primary); color: #fff; font-size: 14px; cursor: pointer;
}
.mobile-nav-list { padding: 6px 16px 24px; }
.mobile-nav-list > a,
.mobile-nav-list .has-submenu > a { display: block; padding: 13px 0; color: var(--c-text); font-size: 15px; border-bottom: 1px solid var(--c-border); }
.mobile-nav-list > a:last-child { border-bottom: none; }
.mobile-nav-group { border-bottom: 1px solid var(--c-border); }
.mobile-nav-list .has-submenu { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mobile-nav-list .has-submenu > a { flex: 1; min-width: 0; border-bottom: none; }
.mobile-nav-list .submenu-toggle {
    width: 30px; height: 30px; flex-shrink: 0; border: none; background: var(--c-primary-lighter);
    color: var(--c-primary); border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
}
.mobile-nav-submenu { display: none; padding: 2px 0 10px 12px; }
.mobile-nav-submenu.show { display: block; }
.mobile-nav-submenu a { display: block; padding: 9px 4px; font-size: 14px; color: var(--c-text-2); }
.mobile-nav-submenu a:hover { color: var(--c-primary); }

/* ==========================================================================
   面包屑
   ========================================================================== */
.breadcrumb-nav { background: #fff; border-bottom: 1px solid var(--c-border); padding: 12px 0; }
.breadcrumb-nav .container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--c-text-3); }
.breadcrumb-nav a { color: var(--c-text-2); }
.breadcrumb-nav a:hover { color: var(--c-primary); }
.breadcrumb-nav .sep { color: var(--c-border-2); }
.breadcrumb-nav .current { color: var(--c-text); font-weight: 500; }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border: 1px solid transparent; border-radius: var(--r-md);
    font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer;
    text-align: center; transition: all var(--transition); white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(24, 144, 255, .25); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(24, 144, 255, .35); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.btn-outline:hover { background: var(--c-primary-lighter); color: var(--c-primary); }
.btn-default { background: #f2f5f9; color: var(--c-text-2); border-color: var(--c-border); }
.btn-default:hover { background: var(--c-border); color: var(--c-text); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #e64545; color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: #46a314; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 34px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--r-sm); }

/* 按钮组（工作流整改 / 支付结果等横排按钮容器） */
.btn-group { display: flex; gap: 12px; }

/* ==========================================================================
   表单
   ========================================================================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--c-text); font-size: 14px; font-weight: 500; }
.form-group label .req { color: var(--c-danger); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--c-border-2); border-radius: var(--r-md);
    font-size: 14px; color: var(--c-text); background: #fff; outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(24, 144, 255, .14); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--c-text-3); }
.form-help { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }

/* ==========================================================================
   徽标 / 标签
   ========================================================================== */
.badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
    border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1.5;
}
.badge-success { background: var(--c-success-light); color: var(--c-success); border: 1px solid #b7eb8f; }
.badge-danger { background: var(--c-danger-light); color: var(--c-danger); border: 1px solid #ffccc7; }
.badge-warning { background: var(--c-warning-light); color: #d48806; border: 1px solid #ffe58f; }
.badge-primary { background: var(--c-primary-light); color: var(--c-primary); border: 1px solid #91caff; }
.badge-muted { background: #f2f5f9; color: var(--c-text-3); border: 1px solid var(--c-border); }

/* ==========================================================================
   区块 / 标题
   ========================================================================== */
.section { padding: 56px 0; }
.section.alt { background: var(--c-card); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px; }
.section-title {
    font-size: 24px; font-weight: 700; color: var(--c-text); letter-spacing: -.3px;
    position: relative; padding-left: 14px; line-height: 1.3;
}
.section-title::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
    background: var(--c-primary); border-radius: 4px;
}
.section-sub { color: var(--c-text-3); font-size: 14px; }
.section-more { margin-left: auto; color: var(--c-primary); font-size: 14px; }
.section-more:hover { text-decoration: underline; }

/* ==========================================================================
   文章卡片
   ========================================================================== */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.article-card {
    display: flex; flex-direction: column; background: var(--c-card);
    border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden;
    transition: all var(--transition);
}
.article-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.article-card-thumb { position: relative; height: 200px; overflow: hidden; background: linear-gradient(135deg, var(--c-primary) 0%, #40a9ff 100%); }
.article-card-thumb a { display: block; width: 100%; height: 100%; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card-thumb img { transform: scale(1.06); }
.article-card-tag {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: rgba(24, 144, 255, .92); color: #fff; font-size: 12px; font-weight: 600;
    padding: 4px 12px; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.article-card-tag.recommend { background: rgba(255, 107, 107, .92); }
.article-card-thumb.no-cover { display: flex; align-items: center; justify-content: center; padding: 22px; text-align: center; }
.article-card-thumb.no-cover .no-cover-title { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.article-card-body h3 { font-size: 17px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.article-card-body h3 a { color: var(--c-text); }
.article-card-body h3 a:hover { color: var(--c-primary); }
.article-card-summary {
    color: var(--c-text-2); font-size: 14px; line-height: 1.7; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px;
}
.article-card-meta { display: flex; align-items: center; gap: 16px; color: var(--c-text-3); font-size: 13px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.article-card-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.article-card-meta .meta-item .icon { font-size: 14px; line-height: 1; }
.article-card-meta .meta-cat { color: var(--c-primary); font-weight: 500; }

/* 单行列表布局 */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-list-item {
    display: flex; gap: 22px; background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-lg); padding: 18px; transition: all var(--transition);
}
.article-list-item:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-list-thumb { width: 220px; height: 138px; flex-shrink: 0; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--c-primary) 0%, #40a9ff 100%); }
.article-list-thumb a { display: block; width: 100%; height: 100%; }
.article-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-list-item:hover .article-list-thumb img { transform: scale(1.04); }
.article-list-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-list-content h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.45; }
.article-list-content h3 a { color: var(--c-text); }
.article-list-content h3 a:hover { color: var(--c-primary); }
.article-list-summary { color: var(--c-text-2); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; flex: 1; }
.article-list-meta { display: flex; align-items: center; gap: 16px; color: var(--c-text-3); font-size: 13px; }
.article-list-tag { display: inline-block; background: var(--c-primary-light); color: var(--c-primary); font-size: 12px; padding: 3px 10px; border-radius: var(--r-pill); margin-right: 8px; font-weight: 500; }

/* ==========================================================================
   分页
   ========================================================================== */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.pagination-info { color: var(--c-text-3); font-size: 14px; }
.pagination-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
    min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-border-2); border-radius: var(--r-md); background: #fff;
    color: var(--c-text-2); font-size: 14px; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; box-shadow: 0 4px 10px rgba(24, 144, 255, .28); }
.page-btn.disabled { opacity: .5; cursor: not-allowed; }
.page-btn.disabled:hover { border-color: var(--c-border-2); color: var(--c-text-2); }
.page-ellipsis { min-width: 28px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-3); }

/* ==========================================================================
   引流卡片（平台引流引导位：免费内容 + 第三方平台代收；后台 cms_config 控制显隐）
   ========================================================================== */
.promo-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--c-primary-lighter); border: 1px solid var(--c-primary-light);
    border-radius: var(--r-md); padding: 18px 20px; margin: 24px 0;
}
.promo-card-body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.promo-card-text { min-width: 0; flex: 1 1 200px; }
.promo-card-title { font-size: 16px; font-weight: 600; color: var(--c-primary-deep); margin-bottom: 4px; }
.promo-card-desc { font-size: 13px; color: var(--c-text-2); line-height: 1.6; }
.promo-card-btn { flex-shrink: 0; }
.promo-card-qr { flex-shrink: 0; }
.promo-card-qr img {
    width: 84px; height: 84px; object-fit: contain; display: block;
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--r-sm); padding: 4px;
}
/* 侧边栏窄版（.promo-card.side） */
.promo-card.side { display: block; padding: 14px 16px; margin: 0 0 16px; }
.promo-card.side .promo-card-body { display: block; }
.promo-card.side .promo-card-text { margin-bottom: 10px; }
.promo-card.side .promo-card-btn { width: 100%; text-align: center; }
.promo-card.side .promo-card-qr { margin-top: 10px; text-align: center; }
@media (max-width: 560px) {
    .promo-card { padding: 14px 16px; }
    .promo-card-qr img { width: 72px; height: 72px; }
}

/* ==========================================================================
   变现组件（打赏卡片与打赏模态 / 广告容器；个人合规变现第二梯队，后台 cms_config 控制显隐）
   ========================================================================== */
.reward-card .promo-card-body { justify-content: flex-start; }
.ad-container { text-align: center; padding: 4px 0 0; overflow: hidden; }
.ad-sidebar { margin-bottom: 16px; text-align: center; overflow: hidden; }
/* 打赏模态：选择支付方式 → 放大扫码（复用 .modal 组件） */
.reward-modal .modal-content { width: 380px; text-align: center; }
.reward-modal-tip { font-size: 13px; color: var(--c-text-2); margin-bottom: 16px; }
.reward-pay-options { display: flex; gap: 14px; justify-content: center; }
.reward-pay-option {
    flex: 1 1 0; max-width: 150px; border: 1px solid var(--c-border); border-radius: var(--r-md);
    background: var(--c-card); padding: 14px 10px; cursor: pointer; text-align: center;
    transition: border-color .2s, box-shadow .2s;
}
.reward-pay-option:hover { border-color: var(--c-primary); box-shadow: 0 4px 12px rgba(24, 144, 255, .18); }
.reward-pay-option img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 8px; }
.reward-pay-option span { font-size: 14px; color: var(--c-text); font-weight: 600; }
.reward-qr-big {
    width: 300px; max-width: 100%; height: auto; object-fit: contain; display: block; margin: 0 auto 12px;
    background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 8px;
}
.reward-modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
/* 收款码全屏放大层（点击弹层内大图触发，再点任意处关闭） */
.reward-zoom-layer {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .92);
    z-index: 1300; align-items: center; justify-content: center; padding: 20px;
}
.reward-zoom-layer.show { display: flex; }
.reward-zoom-layer img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
@media (max-width: 560px) {
    .reward-qr-big { width: 260px; }
}

/* ==========================================================================
   空状态
   ========================================================================== */
.empty-state { text-align: center; padding: 70px 20px; color: var(--c-text-3); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .7; }
.empty-state p { font-size: 16px; margin-bottom: 20px; }

/* ==========================================================================
   弹窗
   ========================================================================== */
.modal { display: none; position: fixed; inset: 0; background: rgba(10, 20, 36, .55); backdrop-filter: blur(3px); z-index: 1200; justify-content: center; align-items: center; padding: 20px; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: var(--r-lg); width: 440px; max-width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { padding: 18px 24px; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { cursor: pointer; font-size: 24px; line-height: 1; color: var(--c-text-3); background: none; border: none; padding: 2px 6px; border-radius: var(--r-sm); }
.modal-close:hover { color: var(--c-text); background: #f2f5f9; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: 12px; }

/* 加载动画 / 支付状态 */
.spinner { width: 56px; height: 56px; border: 4px solid var(--c-border); border-top-color: var(--c-primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 18px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-icon, .fail-icon {
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 18px auto; color: #fff; font-size: 30px; font-weight: 700;
}
.success-icon { background: linear-gradient(135deg, var(--c-success) 0%, #389e0d 100%); }
.fail-icon { background: linear-gradient(135deg, var(--c-danger) 0%, #d9363e 100%); }

/* 状态结果图标（支付结果 / 订阅状态 / 审批结果页共用；尺寸差异用 .sm 变体与页面局部边距修饰） */
.status-icon {
    width: 84px; height: 84px; border-radius: 50%; margin: 0 auto;
    background: linear-gradient(135deg, var(--c-success) 0%, #389e0d 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(82, 196, 26, .3);
}
.status-icon svg { width: 42px; height: 42px; fill: #fff; }
.status-icon .status-icon-mark { font-size: 40px; line-height: 1; }
.status-icon.sm { width: 64px; height: 64px; box-shadow: 0 8px 20px rgba(82, 196, 26, .3); }
.status-icon.sm .status-icon-mark { font-size: 30px; }
.order-info { background: #f7f9fc; padding: 16px; border-radius: var(--r-md); margin-bottom: 20px; }
.order-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.order-info-label { color: var(--c-text-2); }
.order-info-value { color: var(--c-text); font-weight: 500; }
.order-info-price { color: var(--c-danger); font-size: 18px; font-weight: 700; }
.order-info-mini { background: #f7f9fc; padding: 12px; border-radius: var(--r-md); margin: 15px 0; text-align: left; }
.payment-modal { text-align: center; padding: 20px; }

/* Toast */
.toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(10px);
    background: rgba(20, 33, 58, .92); color: #fff; padding: 10px 24px; border-radius: var(--r-pill);
    font-size: 14px; z-index: 9999; opacity: 0; pointer-events: none; transition: all .25s ease; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(82, 196, 26, .95); }
.toast.error { background: rgba(255, 77, 79, .95); }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer { background: var(--c-footer); color: #b9c3d2; padding: 56px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1.3fr 0.9fr; gap: 40px; padding-bottom: 36px; }
.footer h3, .footer h4 { color: #fff; font-weight: 600; }
.footer h4 { font-size: 15px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; background: var(--c-primary); border-radius: 3px; }
.footer-about h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-about .logo-mark { width: 32px; height: 32px; font-size: 16px; }
.footer-about > p { color: #9aa7b8; font-size: 13.5px; line-height: 1.9; }
.footer-credentials { margin-top: 16px; }
.footer-credentials > p { color: #7f8ca0; font-size: 12.5px; margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.footer-icp a { color: #9aa7b8; }
.footer-icp a:hover { color: var(--c-primary); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #9aa7b8; font-size: 13.5px; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact p { color: #9aa7b8; font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.footer-contact .icon { color: #6b7a90; width: 16px; text-align: center; flex-shrink: 0; }
.footer-contact a { color: #9aa7b8; }
.footer-contact a:hover { color: #fff; }
.footer-qrcode { text-align: center; }
.footer-qrcode img { width: 110px; height: 110px; border-radius: var(--r-md); background: #fff; padding: 6px; }
.footer-qrcode span { display: block; margin-top: 10px; font-size: 12.5px; color: #8a97aa; }
.footer-links-block { display: block; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 12.5px; color: #7f8ca0;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #9aa7b8; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   浮动侧边栏 / 在线咨询
   ========================================================================== */
.float-sidebar { position: fixed; right: 22px; bottom: 70px; z-index: 950; display: flex; flex-direction: column; gap: 10px; }
.sidebar-item {
    width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--c-text-2); font-size: 18px; cursor: pointer; position: relative;
    border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); transition: all var(--transition); text-decoration: none;
}
.sidebar-item:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(24, 144, 255, .35); }
.sidebar-item.wechat { color: #07c160; }
.sidebar-item.wechat:hover { background: #07c160; color: #fff; border-color: #07c160; }
.sidebar-item.kf { color: #07c160; }
.sidebar-item.kf:hover { background: #07c160; color: #fff; border-color: #07c160; }
.sidebar-item.back-to-top { opacity: 0; visibility: hidden; transform: translateY(10px); }
.sidebar-item.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.item-icon { line-height: 1; }
.item-popup { position: absolute; right: 54px; top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: all var(--transition); pointer-events: none; }
.sidebar-item:hover .item-popup { opacity: 1; visibility: visible; right: 58px; }
.popup-content { background: #fff; padding: 8px 14px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); white-space: nowrap; position: relative; }
.popup-content p { font-size: 13px; font-weight: 600; color: var(--c-text); }
.popup-content span { font-size: 12px; color: var(--c-text-3); }
.popup-arrow { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 6px solid #fff; }
.wechat-popup .popup-content { padding: 10px; text-align: center; }
.wechat-popup img { width: 84px; height: 84px; border-radius: var(--r-sm); margin-bottom: 6px; display: block; }
.wechat-popup p { margin: 0; font-size: 12px; color: var(--c-text-2); font-weight: 400; }

/* 在线咨询弹窗 */
.online-service-modal { position: fixed; inset: 0; background: rgba(10, 20, 36, .55); backdrop-filter: blur(3px); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; }
.online-service-modal.show { display: flex; }
.modal-box { background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 420px; overflow: hidden; box-shadow: var(--shadow-lg); animation: modalIn .25s ease; }
.modal-header { padding: 18px 22px; background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-deep) 100%); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.modal-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.modal-header .modal-close { color: rgba(255, 255, 255, .85); }
.modal-header .modal-close:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.modal-body { padding: 22px; }
.service-intro { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--c-primary-lighter); border-radius: var(--r-md); margin-bottom: 18px; }
.service-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; background: #fff; border: 1px solid var(--c-border); }
.service-info h4 { font-size: 15px; color: var(--c-text); margin-bottom: 2px; }
.service-info p { font-size: 12px; color: var(--c-text-3); margin: 0; }
/* 在线咨询提交按钮：复用 .btn 体系，仅保留全宽/尺寸修饰 */
.online-service-modal .btn { width: 100%; padding: 13px; font-size: 15px; font-weight: 600; }

/* 微信客服弹层（standalone/PWA 环境入口）：复用 .online-service-modal 骨架，
   当前页面弹窗内嵌客服页 iframe，用户始终在应用内，关闭弹窗即返回 */
.kf-qr-modal .modal-box { max-width: 420px; }
.kf-qr-modal .modal-title .item-icon { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.kf-qr-iframe-wrap { padding: 0; }
.kf-qr-iframe { width: 100%; height: 480px; display: block; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; }
.kf-qr-tip { font-size: 11px; color: var(--c-text-3); text-align: center; margin: 10px 0 12px; }
.kf-qr-actions { display: flex; gap: 10px; }
.kf-qr-actions .btn { flex: 1; padding: 11px; font-size: 14px; font-weight: 600; }
.kf-qr-actions .btn-primary { background: #07c160; border-color: #07c160; }
.kf-qr-actions .btn-primary:hover { background: #06ad56; border-color: #06ad56; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .container { padding: 0 16px; }
    .header-top { display: none; }
    .header-main .container { min-height: 58px; gap: 10px; }
    .logo { font-size: 18px; }
    .logo-mark { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
    .search-box, .header-user, .header-bottom, .lang-switch { display: none; }
    .mobile-menu-btn { display: block; }
    .section { padding: 40px 0; }
    .section-title { font-size: 20px; }
    .article-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .article-card-thumb { height: 170px; }
    .article-list-item { flex-direction: column; gap: 12px; padding: 14px; }
    .article-list-thumb { width: 100%; height: 160px; }
    .pagination { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer { padding-top: 44px; }
    .footer-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-links-block { grid-column: 1 / -1; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-qrcode { grid-column: 1 / -1; }
    .footer-qrcode img { width: 90px; height: 90px; }
    .footer-bottom { flex-direction: column; text-align: center; padding-bottom: 70px; }
    .float-sidebar {
        right: 0; bottom: 0; left: 0; flex-direction: row; justify-content: space-around;
        background: #fff; padding: 8px 6px; box-shadow: 0 -2px 14px rgba(16, 34, 60, .1);
        gap: 4px;
    }
    .sidebar-item { width: auto; height: auto; border: none; box-shadow: none; background: none; padding: 4px 14px; border-radius: var(--r-sm); flex-direction: column; gap: 2px; font-size: 14px; }
    .sidebar-item:hover { background: var(--c-primary-lighter); transform: none; box-shadow: none; }
    .sidebar-item .item-icon { font-size: 16px; }
    .sidebar-item.wechat:hover { background: #e6f9ef; color: #07c160; }
    .sidebar-item.kf:hover { background: #e6f9ef; color: #07c160; }
    .item-popup { display: none; }
    .sidebar-text { display: block; font-size: 10px; color: var(--c-text-3); }
    .sidebar-item:hover .sidebar-text { color: var(--c-primary); }
    .mobile-nav-search { display: flex; }
}

@media (max-width: 480px) {
    .article-card-body { padding: 16px; }
    .article-card-body h3 { font-size: 16px; }
    .modal-content { border-radius: var(--r-md); }
    .btn { padding: 9px 18px; }
}

@media (min-width: 769px) {
    .mobile-nav-search { display: none; }
    .sidebar-text { display: none; }
}
