/* 九章AI微信服务号 V2 - 全局样式 */

:root {
    --bg: #f2f2f2;
    --card: #ffffff;
    --text: #333333;
    --text-sub: #888888;
    --text-hint: #aaaaaa;
    --accent: #e8740c;
    --accent-light: #fff3e6;
    --accent-dark: #c45f00;
    --border: #e0e0e0;
    --green: #1aad19;
    --green-light: #e8f5e9;
    --red: #e74c3c;
    --red-light: #fdeaea;
    --blue: #3478f6;
    --blue-light: #e8f0fe;
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.phone-frame {
    max-width: 100%;
    margin: 0;
    background: var(--bg);
    min-height: 90vh;
    position: relative;
}

.phone-inner {
    padding: 10px 8px 70px 8px;
}

/* ===== 通用区块 ===== */
.section {
    background: var(--card);
    border-radius: 10px;
    padding: 14px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.section h2 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.section h2 i {
    color: var(--accent);
    font-size: 14px;
}

/* ===== 统计网格 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stats-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    background: var(--bg);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
}

.stat-val {
    font-size: 18px;
    font-weight: 700;
}

.stat-val.red {
    color: var(--red);
}

.stat-val.green {
    color: var(--green);
}

.stat-val.blue {
    color: var(--blue);
}

.stat-val.orange {
    color: var(--accent);
}

.stat-label {
    font-size: 10px;
    color: var(--text-sub);
    margin-top: 2px;
    line-height: 1.3;
}

/* ===== 标签栏 ===== */
.tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tab-bar .tab {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: var(--text-sub);
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 8px;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-bar .tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
}

.tab-bar .tab.disabled {
    color: #bbb;
    cursor: default;
    border-color: #eee;
    background: #fafafa;
    position: relative;
}

.tab-bar .tab .tab-badge {
    display: block;
    font-size: 9px;
    color: var(--accent);
    font-weight: 400;
    margin-top: 1px;
}

/* ===== 风格切换栏 ===== */
.style-bar {
    display: flex;
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.style-bar .style-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 6px;
}

/* 保守风格 - 蓝色系 */
.style-bar .style-tab[data-style="conservative"] {
    background: #e8f4ff;
    color: #4F9BFA;
}

.style-bar .style-tab[data-style="conservative"].active {
    background: linear-gradient(135deg, #5fa8fb, #4F9BFA);
    color: #fff;
    box-shadow: 0 2px 6px rgba(79, 155, 250, 0.3);
}

/* 积极风格 - 黄色系 */
.style-bar .style-tab[data-style="aggressive"] {
    background: #fef8e8;
    color: #d4a233;
}

.style-bar .style-tab[data-style="aggressive"].active {
    background: linear-gradient(135deg, #f9c84b, #F8BB3A);
    color: #fff;
    box-shadow: 0 2px 6px rgba(248, 187, 58, 0.3);
}

/* 兼容旧版（无data-style属性） */
.style-bar .style-tab:not([data-style]) {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.style-bar .style-tab:not([data-style]).active {
    background: var(--accent);
    color: #fff;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-primary:active {
    background: var(--accent-dark);
}

.btn-sm {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.btn-outline {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #fff;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

/* ===== 标的卡片 ===== */
.stock-card {
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 2px solid var(--accent);
    transition: all 0.2s;
}

.stock-card.style-conservative {
    border-color: #4F9BFA;
}

.stock-card.style-aggressive {
    border-color: #F8BB3A;
}

.stock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    gap: 8px;
}

.stock-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.stock-card-code {
    font-size: 12px;
    color: var(--text-sub);
    margin-left: 4px;
}

.stock-card-sub {
    font-size: 11px;
    color: var(--text-hint);
    margin-top: 2px;
}

.stock-card-style {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    margin-top: 4px;
}

.stock-card-style.style-conservative {
    background: #4F9BFA;
}

.stock-card-style.style-aggressive {
    background: #F8BB3A;
}

.signal-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.signal-badge.high {
    background: var(--green-light);
    color: var(--green);
}

.signal-badge.low {
    background: var(--red-light);
    color: var(--red);
}

/* 压力位标签 - 绿色向下箭头 */
.signal-label-high {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--green);
    font-weight: 600;
}

.signal-label-high i {
    font-size: 10px;
}

/* 支撑位标签 - 红色向上箭头 */
.signal-label-low {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--red);
    font-weight: 600;
}

.signal-label-low i {
    font-size: 10px;
}

.stock-card-body {
    display: none;
    padding: 0 12px 10px;
    border-top: 1px solid var(--border);
}

.stock-card.expanded .stock-card-body {
    display: block;
}

/* ===== 行情3列2行布局 ===== */
.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    font-size: 13px;
    text-align: center;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.quote-cell {
    padding: 6px 4px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote-cell:nth-child(3) {
    border-right: none;
}

.quote-cell:nth-child(4),
.quote-cell:nth-child(5) {
    border-bottom: none;
}

.quote-cell:nth-child(5) {
    border-right: none;
}

.quote-cell.merged {
    grid-row: 1 / 3;
    border-right: 1px solid var(--border);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-label {
    font-size: 10px;
    color: var(--text-sub);
}

.quote-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.quote-val.up {
    color: var(--red);
}

.quote-val.down {
    color: var(--green);
}

/* ===== 信号时间线 ===== */
.signal-timeline {
    padding-left: 14px;
    position: relative;
    overflow-x: auto;
}

.signal-timeline::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border);
}

.signal-header-row1,
.signal-header-row2 {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: var(--text-hint);
    padding: 2px 0;
}

.signal-header-row1 {
    border-bottom: none;
    padding-bottom: 0;
}

.signal-header-row2 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.signal-col-dot {
    width: 8px;
    flex-shrink: 0;
}

.signal-col-time {
    flex: 1;
    min-width: 0;
}

.signal-col-type {
    flex: 1;
    min-width: 0;
}

.signal-col-data {
    flex: 2.6;
    text-align: center;
    font-size: 10px;
    color: var(--text-hint);
}

.signal-col-price {
    flex: 1.3;
    min-width: 0;
    text-align: right;
}

.signal-col-change {
    flex: 1.3;
    min-width: 0;
    text-align: right;
}

.signal-col-high {
    flex: 1.2;
    min-width: 0;
    text-align: right;
}

.signal-col-low {
    flex: 1.2;
    min-width: 0;
    text-align: right;
}

.signal-item {
    display: flex;
    align-items: center;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    position: relative;
}

.signal-dot {
    position: absolute;
    left: -14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid;
    background: var(--card);
}

.signal-dot.high {
    border-color: var(--green);
}

.signal-dot.low {
    border-color: var(--red);
}

.signal-time-highlight {
    color: var(--accent);
    font-weight: 600;
    font-size: 11px;
}

.signal-type {
    font-weight: 700;
    font-size: 10px;
}

.signal-type.high {
    color: var(--green);
}

.signal-type.low {
    color: var(--red);
}

.signal-price {
    color: var(--text);
    font-weight: 500;
}

.signal-change {
    font-size: 10px;
    font-weight: 500;
}

.signal-change.up {
    color: var(--red);
}

.signal-change.down {
    color: var(--green);
}

.signal-high {
    color: var(--text-sub);
    font-size: 10px;
}

.signal-low {
    color: var(--text-sub);
    font-size: 10px;
}

/* ===== 风险提示 ===== */
.risk-notice {
    background: #fff8f0;
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: #8a6d3b;
    line-height: 1.6;
    margin: 8px 0;
}

.risk-footer {
    font-size: 10px;
    color: #999;
    text-align: justify;
    padding: 10px 4px;
    line-height: 1.6;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 6px 0 10px;
    z-index: 100;
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 10px;
}

.bottom-nav a.active {
    color: var(--accent);
}

.bottom-nav a i {
    display: block;
    font-size: 18px;
    margin-bottom: 1px;
}

/* ===== 首页 Hero 区域 ===== */
.hero-area {
    background: linear-gradient(135deg, #e8740c, #f5a623);
    padding: 20px 12px 16px;
    text-align: center;
    margin: -10px -8px 10px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

/* ===== 首页头部 ===== */
.home-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.home-header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
}

.home-header-right a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    text-decoration: none;
}

/* ===== 介绍文字 ===== */
.intro-text {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
    background: var(--accent-light);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(232, 116, 12, 0.15);
}

.intro-text strong {
    color: var(--accent);
}

/* ===== 创建流程 ===== */
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 6px;
    background: var(--accent-light);
    border-radius: 8px;
    border: 1px solid rgba(232, 116, 12, 0.2);
    flex: 1;
    min-width: 0;
}

.flow-step i {
    font-size: 18px;
    color: var(--accent);
}

.flow-step span {
    font-size: 10px;
    color: var(--text);
    white-space: nowrap;
}

.flow-arrow {
    color: var(--text-hint);
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== 我的机器人状态 ===== */
.my-robot-status {
    text-align: center;
    padding: 14px;
    background: var(--accent-light);
    border-radius: 10px;
    border: 1px solid rgba(232, 116, 12, 0.2);
}

.my-robot-status .count {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.my-robot-status .label {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 2px;
}

.my-robot-status .days {
    font-size: 13px;
    color: var(--accent);
    margin-top: 4px;
}

/* ===== 表单字段 ===== */
.field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.field-label {
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    min-width: 40px;
}

.field-input {
    flex: 1;
    padding: 8px 10px;
    font-size: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    outline: none;
}

.field-input::placeholder {
    color: var(--text-hint);
}

.field-date {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-sub);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

/* ===== 机器人选择网格 ===== */
.robot-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.robot-select-card {
    padding: 10px 4px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    background: var(--bg);
    border: 2px solid var(--border);
}

.robot-select-card.selected {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    position: relative;
}

.robot-select-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
    color: var(--accent);
}

.robot-select-card.disabled {
    background: #fafafa;
    border-color: #eee;
    color: #bbb;
    cursor: default;
}

.robot-select-card .coming-soon {
    font-size: 9px;
    color: var(--accent);
    margin-top: 2px;
}

.robot-select-card i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

/* ===== 算法展示 ===== */
.algo-showcase {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.algo-card {
    padding: 10px;
    border-radius: 8px;
    background: var(--accent-light);
    border: 1px solid rgba(232, 116, 12, 0.15);
}

.algo-card .algo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 3px;
}

.algo-card .algo-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
}

/* ===== 机器人名称展示 ===== */
.robot-name-display-lg {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
    margin: 6px 0 8px;
}

/* ===== 引擎展示 ===== */
.engine-showcase {
    padding: 14px;
    border-radius: 10px;
    background: var(--accent-light);
    border: 1px solid rgba(232, 116, 12, 0.2);
    text-align: center;
}

.engine-showcase .engine-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.engine-showcase .engine-desc {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ===== 任务项 ===== */
.task-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 6px;
    border: 2px solid var(--accent);
    gap: 8px;
    transition: all 0.2s;
}

.task-item.style-conservative {
    border-color: #4F9BFA;
}

.task-item.style-aggressive {
    border-color: #F8BB3A;
}

.task-info {
    flex: 1;
    min-width: 0;
}

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

.task-code {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 1px;
}

.task-style {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
}

.task-style.style-conservative {
    background: #4F9BFA;
}

.task-style.style-aggressive {
    background: #F8BB3A;
}

.task-del {
    padding: 3px 8px;
    font-size: 11px;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 4px;
    cursor: pointer;
}

/* ===== 机器人头部卡片 ===== */
.robot-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.robot-name-display {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.robot-date {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
}

.robot-edit-btn {
    padding: 5px 14px;
    font-size: 13px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* ===== 机器人切换 ===== */
.robot-switcher {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.robot-switch-btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-sub);
    cursor: pointer;
    text-align: center;
}

.robot-switch-btn.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== 报告区块 ===== */
.report-section {
    background: var(--card);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.report-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

/* ===== 二维码区域 ===== */
.qr-area {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
}

.qr-placeholder {
    width: 130px;
    height: 130px;
    margin: 0 auto 8px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-hint {
    font-size: 13px;
    color: var(--text-sub);
}

/* ===== 弹窗 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    width: 92%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-box h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-close {
    font-size: 22px;
    color: var(--text-sub);
    cursor: pointer;
    position: absolute;
    right: 3px;
}

/* ===== 搜索 ===== */
.search-input {
    width: 100%;
    padding: 9px 10px;
    font-size: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-hint);
}

.search-results {
    max-height: 160px;
    overflow-y: auto;
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.search-result-item {
    padding: 9px 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.search-result-item:active {
    background: var(--accent-light);
}

.search-result-item .r-name {
    font-weight: 600;
    color: var(--text);
}

.search-result-item .r-code {
    color: var(--text-sub);
    font-size: 13px;
}

.search-result-item.selected {
    background: var(--green-light);
    border-left: 3px solid var(--green);
}

/* ===== 统计汇总 ===== */
.stats-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.stats-summary-item {
    background: var(--bg);
    border-radius: 6px;
    padding: 6px;
    text-align: center;
}

.stats-summary-item .val {
    font-size: 15px;
    font-weight: 700;
}

.stats-summary-item .val.red {
    color: var(--red);
}

.stats-summary-item .val.green {
    color: var(--green);
}

.stats-summary-item .lbl {
    font-size: 10px;
    color: var(--text-sub);
    margin-top: 1px;
}

/* ===== 个人资料弹窗 ===== */
.profile-bonus-tip {
    text-align: center;
    padding: 8px 12px;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}

.profile-bonus-tip i {
    color: #f0a020;
}

.profile-bonus-tip strong {
    color: #e65100;
    font-size: 15px;
}

.profile-modal-content {
    padding: 2px;
}

.profile-modal-content .form-group {
    margin-bottom: 10px;
}

.profile-modal-content label {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 3px;
    display: block;
}

.profile-modal-content input {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    outline: none;
}

.privacy-notice {
    font-size: 11px;
    color: var(--text-sub);
    line-height: 1.5;
    background: var(--bg);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
}

.profile-btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.profile-btns button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-skip {
    background: var(--bg);
    color: var(--text-sub);
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* ===== 消息预览 ===== */
.msg-preview {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    color: #333;
    font-size: 13px;
    max-width: 300px;
    margin: 8px auto;
    border: 1px solid #eee;
}

.msg-preview .msg-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.msg-preview .msg-row {
    display: flex;
    margin-bottom: 3px;
}

.msg-preview .msg-key {
    color: #888;
    min-width: 60px;
}

.msg-preview .msg-val {
    color: #333;
    flex: 1;
}

/* ===== 备注区域 ===== */
.note-section {
    font-size: 11px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.note-section p {
    margin-bottom: 6px;
}

.note-section b {
    color: var(--text);
}

/* ===== 关于页面 ===== */
.about-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 8px;
    display: block;
}

.about-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
}

.about-text {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.8;
}

/* ===== 免责声明蒙层 ===== */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    padding: 20px;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.disclaimer-content {
    max-width: 90%;
    width: 360px;
    background: rgba(30, 30, 46, 0.95);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.disclaimer-content h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 22px;
}

.disclaimer-content p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}

.disclaimer-content a {
    color: #fdbb2d;
    text-decoration: underline;
}

.disclaimer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-direction: column;
}

/* ===== Toast 通知 ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #27ae60;
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: #3498db;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .disclaimer-content {
        padding: 25px;
    }

    .disclaimer-buttons {
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .stats-grid.four-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-step {
        padding: 6px 4px;
    }

    .flow-step i {
        font-size: 16px;
    }

    .flow-step span {
        font-size: 9px;
    }
}

/* ===== 算法原理示意图 ===== */
.algo-demo {
    margin: 16px 0;
    padding: 12px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.algo-demo-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 10px;
}

.algo-demo-chart {
    position: relative;
    height: 160px;
    background: linear-gradient(to bottom, rgba(26, 173, 25, 0.03), rgba(231, 76, 60, 0.03));
    border-radius: 4px;
    overflow: hidden;
}

.algo-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.algo-demo-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-sub);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}