/* ==========================================================================
   赏帮赚官网 - 全站样式（在 Bootstrap 5 基础上做品牌化定制）
   目录：
   1. 变量与基础排版
   2. 站点头部 / 导航
   3. 首页各区块
   4. 内页：面包屑、侧栏、文章正文
   5. 列表页（栏目页）
   6. 页脚
   7. 响应式微调（375px 优先保证）
   ========================================================================== */

/* 1. 变量与基础排版 ------------------------------------------------ */
:root {
    --brand: #ff6b35;
    --brand-dark: #e2551f;
    --brand-soft: #fff3ee;
    --ink: #1f2430;
    --ink-2: #4a5364;
    --ink-3: #6b7484;
    --line: #e6e9ef;
    --bg: #f7f8fa;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
        "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.85;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #c8461a;
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.45;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

.section {
    padding: 56px 0;
}

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

.section-title {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.section-desc {
    color: var(--ink-3);
    margin-bottom: 28px;
    max-width: 720px;
}

.lead-text {
    color: var(--ink-2);
    font-size: 1.0625rem;
}

/* 按钮 */
.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .65rem 1.75rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand-dark);
    border-color: var(--brand);
    border-radius: 999px;
    font-weight: 600;
    padding: .6rem 1.5rem;
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: #fff;
}

/* 2. 站点头部 ------------------------------------------------------ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.15rem;
}

.site-header .navbar-brand img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.site-header .nav-link {
    color: var(--ink-2);
    font-size: .95rem;
    padding: .5rem .85rem;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--brand-dark);
}

.site-header .navbar-toggler {
    border-color: var(--line);
}

/* 3. 首页区块 ------------------------------------------------------ */
.hero {
    background: linear-gradient(160deg, #fff6f1 0%, #f4f7ff 60%, #fff 100%);
    padding: 56px 0 48px;
}

.hero h1 {
    font-size: 2rem;
    letter-spacing: -.5px;
}

.hero .hero-sub {
    color: var(--ink-2);
    margin: 14px 0 20px;
    font-size: 1.0625rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 24px;
}

.hero-badges span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8125rem;
    color: var(--ink-2);
    padding: .25rem .75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

.hero-qr {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem 1rem;
}

.hero-qr img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.hero-qr span {
    font-size: .8125rem;
    color: var(--ink-3);
    line-height: 1.6;
}

.hero-shot {
    max-width: 100%;
    border-radius: 16px;
}

.app-shot-wrap {
    text-align: center;
}

.app-shot {
    width: 100%;
    max-width: 300px;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(31, 36, 48, .16);
}

/* 数据条 */
.stat-strip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 10px;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--line);
    padding: 6px 4px;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;
    font-size: 1.25rem;
    color: var(--brand-dark);
}

.stat-item span {
    font-size: .8125rem;
    color: var(--ink-3);
}

/* 通用卡片 */
.card-soft {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
    transition: box-shadow .18s ease, transform .18s ease;
}

.card-soft:hover {
    box-shadow: 0 10px 28px rgba(31, 36, 48, .08);
    transform: translateY(-2px);
}

.card-soft h3 {
    font-size: 1.0625rem;
    margin-bottom: .5rem;
}

.card-soft p {
    color: var(--ink-2);
    font-size: .9375rem;
    margin-bottom: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 14px;
}

/* 任务类型 */
.task-tag {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
}

.task-tag strong {
    display: block;
    font-size: .9375rem;
    margin-bottom: .25rem;
}

.task-tag span {
    font-size: .8125rem;
    color: var(--ink-3);
}

/* 步骤流程 */
.step-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
}

.step-num {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .8125rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 公告 / 更新记录 */
.notice-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.notice-list li {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: .9375rem;
}

.notice-list li:last-child {
    border-bottom: 0;
}

.notice-list time {
    color: var(--ink-3);
    font-size: .8125rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 4. 内页面包屑 / 文章 -------------------------------------------------- */
.breadcrumb-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: .8125rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--ink-3);
}

.page-head {
    padding: 36px 0 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.page-head h1 {
    font-size: 1.75rem;
    margin-bottom: .5rem;
}

.page-meta {
    font-size: .8125rem;
    color: var(--ink-3);
}

.page-meta span + span::before {
    content: "·";
    margin: 0 .5rem;
}

/* 文章正文排版 */
.article-body {
    font-size: 1rem;
    color: #2c3342;
}

.article-body h2 {
    font-size: 1.3125rem;
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--brand);
}

.article-body h3 {
    font-size: 1.0625rem;
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 14px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 16px 1.2rem;
    padding-left: .6rem;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 22px;
    font-size: .9375rem;
}

.article-body th,
.article-body td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.article-body th {
    background: var(--bg);
    font-weight: 600;
}

.article-body blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--bg);
    border-left: 3px solid var(--brand);
    color: var(--ink-2);
    font-size: .9375rem;
}

.article-body code {
    background: var(--bg);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .875em;
    color: #b02e0c;
}

/* 【待核】占位标红，交付前方便逐条核对 */
.tbd {
    color: #b02e0c;
    background: #fff1ec;
    border-radius: 4px;
    padding: 0 4px;
    font-size: .9375em;
    font-weight: 600;
}

/* 侧栏 */
.side-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.side-box h2 {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.side-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-box li {
    margin-bottom: 10px;
    font-size: .9375rem;
    line-height: 1.6;
}

.side-box li:last-child {
    margin-bottom: 0;
}

.side-cta {
    background: linear-gradient(150deg, #fff6f1, #f5f8ff);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.side-cta p {
    font-size: .875rem;
    color: var(--ink-2);
    margin: 10px 0 14px;
}

/* 相关阅读 */
.related-box {
    margin-top: 36px;
    padding: 22px;
    background: var(--bg);
    border-radius: var(--radius);
}

.related-box h2 {
    font-size: 1.0625rem;
    margin-bottom: 14px;
}

.related-box ul {
    margin: 0;
    padding-left: 1.1rem;
}

.related-box li {
    margin-bottom: 8px;
    font-size: .9375rem;
}

/* 5. 列表页 -------------------------------------------------------- */
.list-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.list-item:first-child {
    padding-top: 0;
}

.list-item h2 {
    font-size: 1.125rem;
    margin-bottom: .4rem;
    line-height: 1.5;
}

.list-item h2 a {
    color: var(--ink);
}

.list-item h2 a:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.list-item p {
    color: var(--ink-2);
    font-size: .9375rem;
    margin-bottom: .4rem;
}

.list-item .item-meta {
    font-size: .8125rem;
    color: var(--ink-3);
}

/* 栏目卡（首页指向各栏目） */
.channel-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    height: 100%;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease;
}

.channel-card:hover {
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(31, 36, 48, .08);
    transform: translateY(-2px);
}

.channel-card strong {
    display: block;
    font-size: 1.0625rem;
    margin-bottom: .35rem;
    color: var(--ink);
}

.channel-card p {
    font-size: .875rem;
    color: var(--ink-3);
    margin-bottom: 0;
}

/* 6. 页脚 ---------------------------------------------------------- */
.site-footer {
    background: #1f2430;
    color: #b9c0cd;
    padding: 46px 0 22px;
    margin-top: 56px;
    font-size: .875rem;
}

.site-footer h2 {
    color: #fff;
    font-size: .9375rem;
    margin-bottom: 14px;
}

.site-footer a {
    color: #b9c0cd;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 9px;
}

.footer-bottom {
    border-top: 1px solid #333a49;
    margin-top: 30px;
    padding-top: 18px;
    font-size: .8125rem;
    color: #8b93a3;
}

.footer-brand p {
    margin-bottom: 10px;
}

/* 6.5 右下角悬浮按钮（回到顶部 + 联系客服） ----------------------- */
.float-actions {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    padding: 0;
    font-size: .6875rem;
    line-height: 1;
}

.float-btn:hover,
.float-btn:focus-visible {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    outline: none;
    transform: translateY(-1px);
}

.float-btn svg {
    flex: 0 0 auto;
}

.float-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .15s ease, color .15s ease;
}

.float-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-service {
    opacity: 1;
    visibility: visible;
}

/* 7. 响应式（375px 优先） ------------------------------------------- */
@media (max-width: 767.98px) {
    .hero {
        padding: 34px 0 30px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 38px 0;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .page-head {
        padding: 24px 0 18px;
    }

    .page-head h1 {
        font-size: 1.375rem;
    }

    .article-body {
        font-size: .9688rem;
    }

    .article-body h2 {
        font-size: 1.1875rem;
        margin-top: 28px;
    }

    .article-body table {
        font-size: .875rem;
    }

    .app-shot {
        max-width: 230px;
        margin-top: 24px;
    }

    .hero-qr img {
        width: 78px;
        height: 78px;
    }

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 10px 4px;
    }

    .stat-item:nth-last-child(-n+1) {
        border-bottom: 0;
    }

    .site-footer {
        padding: 34px 0 18px;
    }
}
