@charset "utf-8";

/* ==========================================================================
   前台会员区样式（会员中心 / 修改昵称 / 会员入口引导页 / 操作跳转页）
   与首页 assets/css/index.css 共用同一套蓝金主题，保证视觉统一。

   引用位置：
     - application/index/view/layout/default.html（会员中心、修改昵称、引导页）
     - application/index/view/dispatch_jump.tpl（前台操作跳转页）
   ========================================================================== */

:root {
    --brand: #2b7de9;
    --brand-deep: #1d4fa8;
    --brand-light: #4094f5;
    --gold: #f0b429;
    --ink: #1f2d3d;
    --ink-2: #61738a;
    --ink-3: #9aa9bd;
    --line: #e6edf6;
    --card: #ffffff;
    --danger: #d64541;
    --ok: #27a35a;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "PingFang SC", "SF Pro SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background-color: #f4f8ff;
    background-image: radial-gradient(circle at 12% 0%, #e2edff 0%, rgba(226, 237, 255, 0) 55%),
                      radial-gradient(circle at 92% 6%, #eaf3ff 0%, rgba(234, 243, 255, 0) 45%);
    background-repeat: no-repeat;
    background-size: 100% 620px;
    min-height: 100%;
}

/* 会员页带固定顶栏，给内容让出高度（优先于 frontend.css 的 body padding-top） */
body.fx-member {
    padding-top: 52px;
}

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

/* ---------- 顶部固定栏（替换原 bootstrap 白底导航） ---------- */
.fx-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 52px;
    background: linear-gradient(135deg, #1d4fa8 0%, #2b7de9 58%, #4094f5 100%);
    -webkit-box-shadow: 0 2px 12px rgba(29, 79, 168, 0.22);
    box-shadow: 0 2px 12px rgba(29, 79, 168, 0.22);
}

.fx-topbar-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    max-width: 560px;
    height: 52px;
    margin: 0 auto;
    padding: 0 16px;
}

.fx-topbar-brand {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-topbar-brand:hover,
.fx-topbar-brand:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.fx-topbar-link {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    max-width: 150px;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    -webkit-transition: background 0.25s;
    transition: background 0.25s;
}

.fx-topbar-link:hover,
.fx-topbar-link:focus {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
}

.fx-topbar-link i {
    margin-right: 5px;
    font-size: 14px;
}

.fx-topbar-link span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- 页面容器 ---------- */
.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 18px 16px 30px;
}

/* ---------- 通用卡片 ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 16px;
    -webkit-box-shadow: 0 4px 16px rgba(28, 74, 148, 0.05);
    box-shadow: 0 4px 16px rgba(28, 74, 148, 0.05);
}

.card-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    letter-spacing: 1px;
}

.card-sub {
    margin: 0 0 20px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.7;
}

/* ---------- 圆形图标 ---------- */
.icon-badge {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eaf2fe;
    color: var(--brand);
    font-size: 27px;
}

.icon-badge-gold {
    background: #fef5e2;
    color: var(--gold);
}

/* ---------- 会员中心：身份区（蓝色渐变卡） ---------- */
.profile-card {
    position: relative;
    padding: 26px 20px 22px;
    margin-bottom: 16px;
    border-radius: 18px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #1d4fa8 0%, #2b7de9 58%, #4094f5 100%);
    -webkit-box-shadow: 0 10px 24px rgba(43, 125, 233, 0.22);
    box-shadow: 0 10px 24px rgba(43, 125, 233, 0.22);
    overflow: hidden;
}

.profile-card::after {
    content: "";
    position: absolute;
    width: 156px;
    height: 156px;
    right: -56px;
    top: -66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
    font-size: 28px;
    color: #fff;
}

.profile-nick {
    position: relative;
    z-index: 1;
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    word-break: break-all;
}

.profile-sub {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.86;
}

/* ---------- 信息行 ---------- */
.rows {
    margin: 0;
}

.row-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.row-item:last-child {
    border-bottom: 0;
}

.row-item .k {
    color: var(--ink-2);
}

.row-item .v {
    color: var(--ink);
    font-weight: 500;
}

/* ---------- 步骤 ---------- */
.steps {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.steps li {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.step-no {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 26px;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-right: 12px;
    border-radius: 50%;
    background: #eaf2fe;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}

.step-txt {
    display: block;
    font-size: 14px;
    line-height: 1.65;
}

.step-txt span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--ink-2);
}

/* 关键词高亮 */
.kw {
    display: inline-block;
    padding: 0 8px;
    border-radius: 4px;
    background: #eaf2fe;
    color: var(--brand);
    font-style: normal;
    font-weight: 600;
}

/* ---------- 二维码 ---------- */
.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.qr-box img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.qr-tip {
    margin: 12px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
}

/* ---------- 提示条 ---------- */
.alert {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.75;
    background: #fdf1f0;
    border: 1px solid #f7d6d3;
    color: var(--danger);
    text-align: left;
}

.alert-note {
    background: #f1f7ff;
    border-color: #d6e7ff;
    color: var(--brand-deep);
}

/* ---------- 按钮 ---------- */
.btn-main {
    display: block;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2b7de9 0%, #1d4fa8 100%);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    -webkit-box-shadow: 0 6px 18px rgba(43, 125, 233, 0.28);
    box-shadow: 0 6px 18px rgba(43, 125, 233, 0.28);
    -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn-main:hover,
.btn-main:focus {
    color: #fff;
    text-decoration: none;
    opacity: 0.94;
}

.btn-main:active {
    -webkit-transform: scale(0.985);
    transform: scale(0.985);
}

.btn-line {
    display: block;
    width: 100%;
    margin-top: 11px;
    padding: 12px 0;
    border-radius: 12px;
    border: 1px solid #cddff8;
    background: #fff;
    color: var(--brand);
    text-align: center;
    font-size: 15px;
    text-decoration: none;
    -webkit-transition: background 0.25s, border-color 0.25s;
    transition: background 0.25s, border-color 0.25s;
}

.btn-line:hover,
.btn-line:focus {
    background: #f3f8ff;
    border-color: var(--brand);
    color: var(--brand);
    text-decoration: none;
}

/* ---------- 表单 ---------- */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d8e3f2;
    border-radius: 10px;
    background: #fbfdff;
    color: var(--ink);
    font-size: 15px;
    outline: none;
    -webkit-transition: border-color 0.25s, background 0.25s;
    transition: border-color 0.25s, background 0.25s;
}

.form-input:focus {
    border-color: var(--brand);
    background: #fff;
}

.form-counter {
    margin: 7px 0 0;
    text-align: right;
    font-size: 12px;
    color: var(--ink-3);
}

.form-tip {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
}

.back-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
}

.back-link:hover,
.back-link:focus {
    color: var(--brand);
    text-decoration: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
    padding: 6px 16px 30px;
    text-align: center;
    font-size: 12px;
    line-height: 1.9;
    color: var(--ink-3);
}

.site-footer p {
    margin: 0;
}

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

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

/* ==========================================================================
   操作跳转页（dispatch_jump）—— 独立整页，无顶栏
   ========================================================================== */
body.fx-jump {
    padding-top: 0;
}

.jump-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 56px 20px 40px;
}

.jump-card {
    padding: 34px 24px 28px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    text-align: center;
    -webkit-box-shadow: 0 8px 26px rgba(28, 74, 148, 0.08);
    box-shadow: 0 8px 26px rgba(28, 74, 148, 0.08);
}

.jump-icon {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
}

.jump-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.jump-icon.is-success {
    background: #e8f8ee;
    color: var(--ok);
}

.jump-icon.is-error {
    background: #fdf1f0;
    color: var(--danger);
}

.jump-icon.is-info {
    background: #eaf2fe;
    color: var(--brand);
}

.jump-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.6;
    word-break: break-all;
}

.jump-count {
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--ink-2);
}

.jump-count b {
    color: var(--brand);
    font-weight: 600;
}

.jump-actions {
    margin: 0;
}

.jump-actions .btn-line {
    margin-top: 11px;
}

@media (min-width: 768px) {
    .jump-wrap {
        padding-top: 76px;
    }

    .jump-card {
        padding: 40px 30px 32px;
    }

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

/* ---------- 大屏微调 ---------- */
@media (min-width: 768px) {
    .page {
        padding-bottom: 40px;
    }

    .card {
        padding: 26px 24px;
    }

    .profile-card {
        padding: 30px 24px 26px;
    }

    .qr-box {
        width: 196px;
        height: 196px;
    }
}

/* ==========================================================================
   攒股收息工具（2026-09-12 新增）
   全部为新增类，不改动上面任何已有类
   ========================================================================== */

/* ---------- 底部导航 ---------- */
body.fx-member {
    padding-bottom: 62px;
}

.fx-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    height: 54px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.fx-tab {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: var(--ink-3);
    font-size: 11px;
    text-decoration: none;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.fx-tab i {
    font-size: 19px;
    margin-bottom: 2px;
}

.fx-tab.is-active {
    color: var(--brand);
    font-weight: 600;
}

.fx-tab:hover,
.fx-tab:focus {
    color: var(--brand);
    text-decoration: none;
}

/* ---------- 板块页头 ---------- */
.pool-head {
    padding: 6px 0 16px;
}

.pool-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ink);
}

.pool-sub {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
}

.pool-sub b {
    color: var(--brand);
}

.pool-fresh {
    font-size: 12px;
    color: var(--ink-3);
}

/* ---------- 搜索 ---------- */
.pool-search {
    margin-bottom: 12px;
}

.search-row {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 21px;
    background: #fff;
    border: 1px solid var(--line);
}

.search-row i {
    margin-right: 9px;
    color: var(--ink-3);
    font-size: 14px;
}

.search-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    outline: none;
}

/* ---------- 筛选 chips ---------- */
.pool-filters {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.fchip {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 6px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13px;
    text-decoration: none;
}

.fchip em {
    margin-left: 5px;
    font-style: normal;
    font-size: 11px;
    color: var(--ink-3);
}

.fchip.is-on {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 500;
}

.fchip.is-on em {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- 排序 chips ---------- */
.pool-sorts {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
}

.sort-lbl {
    color: var(--ink-3);
}

.schip {
    color: var(--ink-2);
    text-decoration: none;
}

.schip.is-on {
    color: var(--brand);
    font-weight: 600;
}

/* ---------- 板块分组 ---------- */
.ind-group {
    margin-bottom: 22px;
}

.ind-head {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 10px;
}

.ind-line {
    width: 3px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--brand);
}

.ind-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.5px;
}

.ind-cnt {
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-3);
}

/* ---------- 股票行 ---------- */
.stock-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    -webkit-box-shadow: 0 3px 12px rgba(28, 74, 148, 0.04);
    box-shadow: 0 3px 12px rgba(28, 74, 148, 0.04);
}

.stock-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.stock-row:last-child {
    border-bottom: 0;
}

.stock-row:active,
.stock-row:hover {
    background: #f7fbff;
    text-decoration: none;
    color: var(--ink);
}

/* ---------- 鱼池行高亮（2026-09-16） ----------
   规则：股息率 > 5% 或 水位 > 80 → 黄色底；两者同时满足 → 淡紫色底。
   必须写在这两条 hover 规则之后：选择器权重相同，靠顺序才能盖住 hover 的浅蓝底。
   阈值改一次要同步改三处：本段注释、pool.html 的 class 条件、（线上）前台样式文件。 */
.stock-row.is-hot-one {
    background: #fff8d9;
}

.stock-row.is-hot-one:active,
.stock-row.is-hot-one:hover {
    background: #fdf0bd;
}

.stock-row.is-hot-both {
    background: #f1e9fd;
}

.stock-row.is-hot-both:active,
.stock-row.is-hot-both:hover {
    background: #e6d8fa;
}

.sr-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.sr-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-code {
    margin-right: 6px;
    font-style: normal;
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ---------- 用户提交标记（2026-09-20） ----------
   口径：fa_stock_pool.submitter > 0 = 用户提交补充的股票（后台录入的恒为 0）。
   名字右上角一个小星号；鱼池全景图上是同一个位置、同一个颜色。
   ★ 颜色要与 public/assets/js/backend/stock/poolcard.js 里的 USER_MARK 保持一致，
     改一处必须同步改另一处（两处的颜色不一致会让人以为是两种标记）。 */
.sr-user-mark {
    margin-left: 2px;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    color: #c98a10;
    vertical-align: super;
}

/* 搜索下拉里的同一标记（带文字，下拉宽度有限所以用「★ 用户提交」） */
.sri-user {
    color: #c98a10;
}

/* 页脚图例里的星号（前面加个小星号 + 间隔） */
.pool-foot-note .sr-user-mark {
    margin-right: 4px;
}

/* ---------- 分红覆盖倍数（2026-09-26） ----------
   口径：实业股 = 自由现金流 ÷ 现金分红；银行/保险 = 归母净利润 ÷ 现金分红（带 *）。
   小于 1 → 加 is-under，用橙色提示「分红超出了经营挣回来的现金」。
   ★ 负值是合法值（自由现金流为负，如大秦铁路 2025 年资本开支同比 +500%），
     照原样显示，**不要**截断成 0。
   ★ 颜色要与 public/assets/js/backend/stock/poolcard.js 里的 COVER_UNDER 保持一致，
     改一处必须同步改另一处（两处不一致会让人以为是两种含义）。 */
.sr-cover {
    color: var(--ink-2);
}

.sr-cover.is-under {
    color: #b2540a;
    font-weight: 500;
}

/* 页脚图例里那颗星（与行内的 * 同色，但行内那个是纯文本，不需要单独样式） */
.pool-foot-note .sr-cover-star {
    margin-right: 4px;
    font-style: normal;
    color: #b2540a;
    font-weight: 500;
}

/* ---------- 股息率历史分位（2026-09-27） ----------
   口径：把当前股息率放进过去 3 年的历史序列里算分位（严格小于的样本占比）。
   分位高 = 当前股息率相对历史高 = 相对便宜 → is-high 用暖色；分位低 = 相对贵 → is-low 用冷色。
   ★ 与「水位」用的同一套语义（高=好），但两者是不同指标：水位看价格位置，分位看股息率位置。
   ★ 颜色要与 public/assets/js/backend/stock/poolcard.js 保持一致，改一处同步改另一处。 */
.sr-pctile {
    color: var(--ink-2);
}

.sr-pctile.is-high {
    color: #b2540a;
    font-weight: 500;
}

.sr-pctile.is-low {
    color: var(--ink-3);
}

.sr-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--ink-2);
}

.sr-price {
    color: var(--ink);
    font-weight: 500;
}

.sr-water.is-low {
    color: var(--ok);
}

.sr-water.is-high {
    color: var(--danger);
}

.sr-right {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding-left: 12px;
    text-align: right;
}

.sr-yield {
    font-size: 17px;
    font-weight: 600;
    color: var(--danger);
    line-height: 1.2;
}

.sr-yield em {
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
}

.sr-yield-lbl {
    margin-top: 1px;
    font-size: 11px;
    color: var(--ink-3);
}

.pool-foot-note {
    margin: 4px 0 0;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--ink-3);
}

.pool-foot-note i {
    margin-right: 4px;
}

/* ---------- 涨跌配色（A股口径：红涨绿跌） ---------- */
.is-up {
    color: var(--danger) !important;
}

.is-down {
    color: var(--ok) !important;
}

.is-gold {
    color: var(--gold) !important;
}

/* ---------- 详情页 ---------- */
.detail-card {
    padding: 22px 20px 20px;
}

.detail-code {
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.85;
}

.my-hold-card {
    background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
    border-color: #d6e7ff;
}

.my-hold-head {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-deep);
}

.my-hold-head i {
    margin-right: 6px;
}

.mini-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.mini-grid.three .mini-item {
    -webkit-flex: 0 0 33.33%;
    flex: 0 0 33.33%;
}

.mini-item {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50%;
    flex: 0 0 50%;
    margin-bottom: 12px;
    text-align: center;
}

.mini-item .mi-v {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.mini-item .mi-k {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--ink-3);
}

.sec-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.5px;
}

.sec-title i {
    margin-right: 6px;
    color: var(--brand);
}

.sec-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ink-3);
    text-align: center;
}

.empty-tip {
    margin: 0;
    padding: 22px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-3);
}

.detail-tip {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f9fd;
    font-size: 12px;
    line-height: 1.75;
    color: var(--ink-2);
}

.detail-tip i {
    margin-right: 5px;
    color: var(--brand);
}

/* ---------- 分红表 ---------- */
.div-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.div-table th {
    padding: 8px 6px;
    text-align: left;
    font-weight: 500;
    color: var(--ink-3);
    font-size: 12px;
    border-bottom: 1px solid var(--line);
}

.div-table td {
    padding: 10px 6px;
    color: var(--ink);
    border-bottom: 1px solid #f2f6fc;
}

.div-table tr:last-child td {
    border-bottom: 0;
}

.div-table .strong {
    font-weight: 600;
    color: var(--brand-deep);
}

.div-table .ta-r {
    text-align: right;
}

/* ---------- 手机端：宽表格转卡片列表 ----------
   流水/分红/红利税这类表有 6~8 列，手机上必然挤成一团，
   最后一列（删除按钮）会被裁掉。这里把每行拆成一张卡：
   表头隐藏，字段名用 td 的 data-label 显示在左侧，值右对齐。 */
@media (max-width: 767px) {
    .div-table,
    .div-table tbody,
    .div-table tfoot,
    .div-table tr,
    .div-table td {
        display: block;
        width: 100%;
    }

    .div-table thead {
        display: none;
    }

    /* 表格不加内边距：行卡片的外边距由外层 card 提供，避免双重留白 */
    .div-table {
        padding: 0;
    }

    .div-table tr {
        border: 1px solid var(--line);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 4px 0;
        background: #fff;
    }

    .div-table tfoot tr {
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 0;
        font-weight: 600;
    }

    .div-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
        padding: 5px 12px;
        border-bottom: 0;
        text-align: right;
    }

    .div-table td::before {
        content: attr(data-label);
        flex: none;
        color: var(--ink-3);
        font-size: 12px;
        text-align: left;
    }

    /* 没写 data-label 的单元格（操作列等）不显示标签 */
    .div-table td:not([data-label])::before {
        content: none;
    }

    .div-table td.ta-r {
        text-align: right;
    }

    /* 操作列：按钮靠右，别被标签挤到 */
    .div-table td.td-act {
        justify-content: flex-end;
        padding-top: 2px;
        padding-bottom: 8px;
    }

    .div-table tfoot td {
        width: auto;
        padding: 0;
        border-bottom: 0;
    }

    .div-table tfoot td::before {
        content: none;
    }
}

/* ---------- 持有页 ---------- */
.stat-card {
    padding: 22px 20px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4fa8 0%, #2b7de9 58%, #4094f5 100%);
    color: #fff;
    -webkit-box-shadow: 0 8px 22px rgba(43, 125, 233, 0.22);
    box-shadow: 0 8px 22px rgba(43, 125, 233, 0.22);
}

.stat-main {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
}

.stat-lbl {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 5px;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-sub {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    padding-top: 14px;
}

.stat-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    text-align: center;
}

.stat-item .si-k {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.stat-item .si-v {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.hold-list {
    margin-bottom: 20px;
}

.hold-card {
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    -webkit-box-shadow: 0 3px 12px rgba(28, 74, 148, 0.04);
    box-shadow: 0 3px 12px rgba(28, 74, 148, 0.04);
}

.hold-top {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-bottom: 13px;
}

.hold-name {
    font-size: 15px;
    font-weight: 500;
}

.hold-code {
    margin-right: 6px;
    font-style: normal;
    font-size: 11px;
    color: var(--ink-3);
    font-weight: 400;
}

.hold-profit {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
}

.hold-profit em {
    display: block;
    margin-top: 1px;
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
}

.hold-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid #f2f6fc;
    border-bottom: 1px solid #f2f6fc;
}

.hg-item {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50%;
    flex: 0 0 50%;
    margin-bottom: 8px;
    font-size: 12px;
}

.hg-item:nth-child(3),
.hg-item:nth-child(4) {
    margin-bottom: 0;
}

.hg-k {
    margin-right: 6px;
    color: var(--ink-3);
}

.hg-v {
    color: var(--ink);
    font-weight: 500;
}

.hold-foot {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding-top: 11px;
    font-size: 12px;
    color: var(--ink-2);
}

.hold-foot b {
    font-weight: 600;
    color: var(--ink);
}

/* ---------- 收息页 ---------- */
.upcoming-list {
    margin: 0;
}

.up-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.up-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.up-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.up-name {
    font-size: 14px;
    font-weight: 500;
}

.up-meta {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-2);
}

.up-date {
    color: var(--brand);
}

.up-right {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding-left: 12px;
    text-align: right;
}

.up-cash {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}

.up-lbl {
    margin-top: 2px;
    font-size: 11px;
    color: var(--ink-3);
}

.year-block {
    margin-bottom: 20px;
}

.year-block:last-child {
    margin-bottom: 0;
}

.year-head {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
    align-items: baseline;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.year-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.year-sum {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
}

.badge-pending {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #fef5e2;
    color: #c98a10;
    font-size: 10px;
    vertical-align: 1px;
}

/* 收息明细里系统写的异常备注
   （例：删了买入流水后，已到账记录的「登记日持股为 0，请核对实际到账」） */
.remark-warn {
    display: block;
    margin-top: 3px;
    color: #c0392b;
    font-size: 11px;
    line-height: 16px;
}

/* ---------- 我的页 ---------- */
.quota-bar {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    background: #f7fbff;
    border: 1px solid #e3eefc;
}

.quota-num {
    margin-bottom: 9px;
    font-size: 13px;
    color: var(--ink-2);
}

.quota-num b {
    color: var(--brand);
    font-size: 15px;
}

.quota-track {
    height: 7px;
    border-radius: 4px;
    background: #e3eefc;
    overflow: hidden;
}

.quota-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #4094f5 0%, #2b7de9 100%);
    -webkit-transition: width 0.4s;
    transition: width 0.4s;
}

.quota-tip {
    margin-top: 8px;
    font-size: 11px;
    color: var(--ink-3);
}

.mine-links {
    margin: 0;
}

.mine-link {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.mine-link:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mine-link:first-child {
    padding-top: 0;
}

.mine-link:hover,
.mine-link:focus {
    text-decoration: none;
    color: var(--brand);
}

.mine-link i {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 22px;
    flex: 0 0 22px;
    width: 22px;
    margin-right: 10px;
    color: var(--brand);
    font-size: 16px;
}

.mine-link > span {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

.mine-link .sub {
    margin-right: 8px;
    font-style: normal;
    font-size: 12px;
    color: var(--ink-3);
}

.mine-link .arrow {
    font-style: normal;
    font-size: 18px;
    color: var(--ink-3);
    line-height: 1;
}

/* ---------- 费率设置页 ---------- */
.radio-row {
    margin-top: 6px;
}

.radio-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 11px 14px;
    margin-bottom: 9px;
    border: 1px solid #d8e3f2;
    border-radius: 10px;
    background: #fbfdff;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
}

.radio-item input {
    margin-right: 9px;
}

.radio-item span {
    line-height: 1.5;
}

@media (min-width: 768px) {
    .fx-tabbar {
        max-width: 560px;
        margin: 0 auto;
        border-radius: 14px 14px 0 0;
    }
}

/* ==========================================================
   用户自建鱼池（2026-09-13）
   新增：额度标签 / 搜索添加下拉 / 补充新股票表单 / 兑换页
   只新增类，不改上面任何已有类
   ========================================================== */

/* ---------- 额度附加信息 ---------- */
.quota-extra {
    color: var(--brand);
    font-weight: 500;
}

.quota-full {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    background: #fdf1f0;
    border: 1px solid #f7d6d3;
    color: var(--danger);
    font-size: 11px;
    font-weight: 400;
}

.quota-tags {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.qv-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    line-height: 1.7;
    white-space: nowrap;
}

.qv-base {
    background: #eaf2fe;
    border: 1px solid #d6e7ff;
    color: var(--brand-deep);
}

.qv-perm {
    background: #eaf7ee;
    border: 1px solid #d3eedb;
    color: #2e8b57;
}

.qv-temp {
    background: #fef7e6;
    border: 1px solid #f7e3b8;
    color: #b98310;
}

.quota-act {
    margin-top: 12px;
}

.quota-act .btn-line {
    display: inline-block;
    width: auto;
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.quota-bar-flat {
    margin-bottom: 4px;
}

.alert-warn {
    background: #fef7e6;
    border-color: #f7e3b8;
    color: #b98310;
}

/* ---------- 搜索添加区 ---------- */
.add-bar {
    position: relative;
    margin-bottom: 18px;
    z-index: 30;
}

.search-row .btn-search {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 0 16px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #2b7de9 0%, #1d4fa8 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.search-row .btn-search:disabled {
    background: #c3d4e8;
    cursor: not-allowed;
}

.search-input:disabled {
    background: #f4f7fb;
    color: var(--ink-3);
}

.add-tip {
    margin: 8px 2px 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--ink-3);
}

.add-tip i {
    margin-right: 4px;
}

.add-tip.is-full {
    color: var(--danger);
}

/* ---------- 搜索结果下拉 ---------- */
.sr-drop {
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0 8px 24px rgba(28, 74, 148, 0.12);
    box-shadow: 0 8px 24px rgba(28, 74, 148, 0.12);
}

.sr-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f2f6fc;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.sr-item:last-child {
    border-bottom: 0;
}

.sr-item:active,
.sr-item:hover {
    background: #f7fbff;
}

.sri-left {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
}

.sri-name {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sri-code {
    margin-right: 6px;
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-3);
    letter-spacing: 0.3px;
}

.sri-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--ink-2);
}

.sri-right {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding-left: 10px;
    text-align: right;
}

.sri-yield {
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
    line-height: 1.3;
}

.sri-btn {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 10px;
    border-radius: 20px;
    background: #eaf2fe;
    border: 1px solid #d6e7ff;
    color: var(--brand);
    font-size: 11px;
    white-space: nowrap;
}

.sri-btn.is-done {
    background: #f4f7fb;
    border-color: var(--line);
    color: var(--ink-3);
}

/* ---------- 补充新股票 ---------- */
.submit-panel {
    padding: 16px 15px 18px;
}

.submit-panel .sec-note {
    margin-bottom: 4px;
}

.form-item {
    margin-top: 13px;
}

.form-item .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--ink-2);
}

.form-item .form-label em {
    color: var(--danger);
    font-style: normal;
}

.btn-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-row .btn-main {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    padding: 12px 0;
    font-size: 15px;
}

.btn-row .btn-line {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    padding: 12px 20px;
    font-size: 14px;
}

/* ---------- 自选行：可点击区 + 删除按钮 ---------- */
.sr-hit {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}

.sr-hit:hover,
.sr-hit:focus,
.sr-hit:active {
    text-decoration: none;
    color: var(--ink);
}

.sr-del {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #c2ccd9;
    font-size: 13px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-transition: background 0.2s, color 0.2s;
    transition: background 0.2s, color 0.2s;
}

.sr-del:hover,
.sr-del:active {
    background: #fdf1f0;
    color: var(--danger);
}

.mini-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    vertical-align: 1px;
    white-space: nowrap;
}

.mini-badge.is-pending {
    background: #fef5e2;
    color: #c98a10;
}

.mini-badge.is-rejected {
    background: #f4f7fb;
    color: var(--ink-3);
}

.sr-todo {
    color: var(--ink-3);
    font-size: 11px;
}

/* ---------- 空状态（带图标） ---------- */
.empty-tip i {
    display: block;
    margin-bottom: 10px;
    font-size: 34px;
    color: #cfdae8;
}

.empty-tip p {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
}

.empty-tip span {
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ---------- 兑换页 ---------- */
.redeem-box {
    margin-top: 12px;
}

.redeem-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfdff;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: var(--ink);
    outline: 0;
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.redeem-input:focus {
    border-color: var(--brand);
    background: #fff;
}

.hist-code {
    font-size: 12.5px;
    color: var(--ink);
    background: #f4f7fb;
    padding: 1px 6px;
    border-radius: 4px;
}

.hist-time {
    font-style: normal;
    font-size: 11px;
    color: var(--ink-3);
}

/* ============================================================
   持有 / 收息板块（记一笔、流水、单股详情、收息看板、待确认）
   ============================================================ */

/* ---------- 股票选择下拉 ---------- */
.stock-pick {
    position: relative;
}

.stock-pick .sr-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    -webkit-box-shadow: 0 8px 24px rgba(31, 45, 61, 0.13);
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.13);
}

.stock-pick .sr-item {
    border-bottom: 1px solid var(--line);
}

.stock-pick .sr-item:last-child {
    border-bottom: 0;
}

/* ---------- 买卖标签 ---------- */
.tt-buy,
.tt-sell {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 18px;
}

.tt-buy {
    background: rgba(214, 58, 58, 0.1);
    color: #d63a3a;
}

.tt-sell {
    background: rgba(31, 146, 87, 0.1);
    color: #1f9257;
}

/* ---------- 状态 / 链接 ---------- */
.is-error {
    color: #d63a3a;
}

.link-gold {
    color: var(--gold);
    text-decoration: underline;
}

.alert-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.alert-link:active {
    opacity: 0.86;
}

.badge-done {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(31, 146, 87, 0.1);
    color: #1f9257;
    font-size: 11px;
}

/* ---------- 表格内的小按钮 / 链接 ---------- */
.td-stock {
    color: inherit;
    text-decoration: none;
}

.trade-del {
    padding: 3px 10px;
    border: 1px solid #f0c4c4;
    border-radius: 5px;
    background: #fff;
    color: #d63a3a;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.trade-del:active {
    background: #fdf2f2;
}

/* ---------- 交易流水「加载更多」（游标分页） ---------- */
.trade-more {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin-top: 12px;
}

.trade-more .btn-line {
    min-width: 140px;
}

.trade-more .btn-line[disabled],
.trade-more .btn-line.is-done {
    opacity: 0.6;
    cursor: default;
}

.trade-more-tip {
    margin-top: 7px;
    font-size: 12px;
    color: var(--ink-3);
}

.trade-more-tip b {
    color: var(--ink-2);
    font-weight: 500;
}

/* ---------- 收息记录操作按钮（撤销确认 / 删除） ---------- */
.dv-op {
    padding: 3px 10px;
    border: 1px solid #cddff8;
    border-radius: 5px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.dv-op:hover,
.dv-op:active {
    background: #f3f8ff;
}

.dv-op-danger {
    border-color: #f0c4c4;
    color: #d63a3a;
}

.dv-op-danger:hover,
.dv-op-danger:active {
    background: #fdf2f2;
}

.dv-op + .dv-op {
    margin-left: 8px;
}

/* ---------- 持有卡片可点击 ---------- */
a.hold-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.hold-card:active {
    opacity: 0.92;
}

.hold-go {
    color: var(--ink-3);
    font-size: 12px;
}

/* ---------- 收息看板四宫格 ---------- */
.stat-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.stat-grid .stat-box {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.stat-box .sb-k {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
}

.stat-box .sb-v {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.stat-box .sb-v.is-gold {
    color: var(--gold);
}

/* ---------- 近 5 年收息柱状图 ---------- */
.bar-chart {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    align-items: flex-end;
    height: 160px;
    padding-top: 6px;
}

.bar-col {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    height: 100%;
}

.bar-col .bar-val {
    height: 16px;
    font-size: 11px;
    line-height: 16px;
    color: var(--ink-2);
}

.bar-col .bar-track {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    width: 58%;
}

.bar-col .bar-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 2px;
    border-radius: 4px 4px 0 0;
    background: -webkit-linear-gradient(top, var(--gold), #f8d888);
    background: linear-gradient(180deg, var(--gold), #f8d888);
}

.bar-col .bar-lbl {
    margin-top: 6px;
    font-size: 11px;
    color: var(--ink-3);
}

/* ---------- 收息明细：年度折叠 ---------- */
details.year-block > summary.year-head {
    cursor: pointer;
    list-style: none;
    outline: 0;
}

details.year-block > summary.year-head::-webkit-details-marker {
    display: none;
}

details.year-block > summary.year-head::after {
    content: '\25BE';
    margin-left: 6px;
    font-size: 11px;
    color: var(--ink-3);
}

details.year-block[open] > summary.year-head::after {
    content: '\25B4';
}

/* ---------- 待确认收息卡片 ---------- */
.dv-card {
    padding: 16px;
}

.dv-top {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.dv-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.dv-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
}

.dv-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-3);
}

.dv-calc {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #f5f8fc;
    font-size: 13px;
    color: var(--ink-2);
}

.dv-act {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 14px;
}

.dv-act .btn-main {
    display: inline-block;
    width: auto;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 14px;
    letter-spacing: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.dv-hint {
    margin-left: 10px;
    font-size: 12px;
    color: var(--ink-3);
}

/* ---------- 收息计算器页 ---------- */
/* 输入框 + 单位切换（每年/每月）或后缀的一行排布 */
.calc-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
}

.calc-row .form-input {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.calc-row .seg {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    gap: 6px;
}

/* .fchip 原本是给 <a> 用的，这里当 <button> 用，补上按钮该有的重置 */
.calc-row button.fchip {
    margin: 0;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.calc-row button.fchip:active {
    opacity: 0.85;
}

.calc-unit-lbl {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--ink-3);
}

/* 重点结果块（金色） */
.calc-hl {
    margin-top: 16px;
    padding: 16px 14px;
    border: 1px solid #f2e2bd;
    border-radius: 12px;
    background: #fffcf3;
    text-align: center;
}

.calc-hl-k {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
}

.calc-hl-v {
    display: block;
    margin: 6px 0 8px;
    font-size: 23px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.35;
    word-break: break-all;
}

.calc-hl-s {
    display: block;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.8;
    word-break: break-all;
}

.calc-hl-s em {
    font-style: normal;
    color: var(--ink-3);
}

.calc-hl-s b {
    color: var(--brand);
}


