@charset "utf-8";
/* ==========================================================================
   提桶软件 · 站点公共样式(首页 / 订阅页共用)
   色调参考: 浅蓝渐变 + 白底卡片, 主色 #2b6cf6, 行动按钮用 LOGO 同色系橙
   ========================================================================== */

:root {
    --brand: #2b6cf6;
    --brand-dark: #1b53d1;
    --brand-light: #eef4ff;
    --brand-line: #c9dbff;
    --ink: #1d2734;
    --ink-2: #5b6a7d;
    --ink-3: #8d9aab;
    --line: #e6ebf3;
    --page: #f6f9fd;
    --cta: #ff9a3c;
    --cta-2: #f5700a;
    --radius: 12px;
    --shadow: 0 10px 26px rgba(24, 60, 120, .10);
    --maxw: 1200px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* 内容不足一屏时, 让页脚仍然贴在底部 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main,
.sub-main {
    flex: 1 0 auto;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .18s;
}

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

img {
    border: 0;
    max-width: 100%;
}

h1, h2, h3, h4, p {
    margin: 0;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

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

/* ------------------------------------------------------------------ 顶部菜单 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .bar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand img {
    height: 38px;
    width: auto;
    display: block;
}

.brand .slogan {
    padding-left: 12px;
    border-left: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.3;
    letter-spacing: .5px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 46px;
}

.site-nav a {
    position: relative;
    font-size: 15px;
    color: var(--ink-2);
    padding: 4px 0;
}

.site-nav a:hover {
    color: var(--brand);
}

.site-nav a.active {
    color: var(--brand);
    font-weight: 600;
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ------------------------------------------------------------------ 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: all .18s;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 14px rgba(43, 108, 246, .25);
}

.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: #fff;
    color: var(--ink-2);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--brand);
    border-color: var(--brand-line);
    background: #f9fbff;
}

.btn-cta {
    background: linear-gradient(135deg, var(--cta), var(--cta-2));
    color: #fff;
    box-shadow: 0 8px 16px rgba(245, 112, 10, .26);
}

.btn-cta:hover {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btn[disabled],
.btn.is-disabled {
    background: #f2f5fa;
    color: var(--ink-3);
    border-color: var(--line);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* 已登录时的用户块 */
.user-chip {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-size: 14px;
}

.user-chip .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.guest-only {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ------------------------------------------------------------------ 介绍图(200px) */
.intro-banner {
    position: relative;
    width: 100%;
    height: 200px;
    background: url("/static/images/intro_banner.png") center center / cover no-repeat,
    linear-gradient(100deg, #dbe8fc 0%, #f2f7ff 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.intro-banner .bar {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    min-width: 0;
}

.intro-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    margin-bottom: 10px;
    border-radius: 3px;
    background: rgba(43, 108, 246, .10);
    border: 1px solid rgba(43, 108, 246, .22);
    color: var(--brand);
    font-size: 12px;
    letter-spacing: .5px;
}

.intro-title {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #102a5c;
    letter-spacing: .5px;
}

.intro-sub {
    margin-top: 8px;
    font-size: 14px;
    color: #4d678f;
}

/* ------------------------------------------------------------------ 页脚 */
.site-footer {
    margin-top: 56px;
    padding: 26px 0 30px;
    background: #fff;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--ink-3);
    font-size: 13px;
}

.site-footer a {
    color: var(--ink-3);
}

.site-footer a:hover {
    color: var(--brand);
}

.site-footer .split {
    margin: 0 6px;
    color: #d7dee9;
}

/* ------------------------------------------------------------------ 通用块 */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty-tip {
    padding: 46px 20px;
    text-align: center;
    color: var(--ink-3);
    font-size: 14px;
}

/* ------------------------------------------------------------------ 小屏适配 */
@media (max-width: 860px) {
    .site-header .bar {
        height: 58px;
        padding: 0 16px;
    }

    .brand img {
        height: 32px;
    }

    .brand .slogan {
        display: none;
    }

    .site-nav {
        gap: 18px;
        margin-left: 18px;
    }

    .site-nav a {
        font-size: 14px;
    }

    .site-nav a.active::after {
        bottom: -19px;
    }

    .btn {
        height: 32px;
        padding: 0 14px;
        font-size: 13px;
    }

    .intro-banner {
        height: 200px;
    }

    .intro-banner .bar {
        padding: 0 16px;
    }

    .intro-title {
        font-size: 22px;
    }

    .intro-sub {
        font-size: 13px;
    }

    .wrap {
        padding: 0 16px;
    }

    .site-footer {
        margin-top: 36px;
        font-size: 12px;
        line-height: 1.9;
    }
}

/* 窄屏手机: 顶部菜单进一步压缩, 保证 LOGO + 两个按钮不换行 */
@media (max-width: 600px) {
    .site-header .bar {
        height: 54px;
        padding: 0 12px;
    }

    .brand img {
        height: 28px;
    }

    .site-nav {
        margin-left: 10px;
        gap: 12px;
        flex: 0 1 auto;
        overflow: hidden;
    }

    .site-nav a {
        font-size: 13px;
        white-space: nowrap;
    }

    .site-nav a.active::after {
        bottom: -17px;
    }

    .header-right {
        gap: 6px;
    }

    .header-right .btn {
        height: 30px;
        padding: 0 11px;
        font-size: 13px;
    }

    .guest-only {
        gap: 6px;
    }

    .intro-title {
        font-size: 20px;
    }

    .intro-sub {
        font-size: 12px;
    }
}
