/* ===== KCEX Custom Styles - 补充 jack_style.css 未覆盖的样式 ===== */

/* 页面容器（头部为 sticky 布局，已占文档流，无需预留 padding） */
.page-wrapper {
    min-height: calc(100vh - 80px);
}

/* ===== 通用表单样式 ===== */
.form-card {
    max-width: 480px;
    margin: 120px auto 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s;
    outline: none;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}

.form-group input::placeholder {
    color: #bfbfbf;
}

.input-with-btn {
    display: flex;
    gap: 12px;
}

.input-with-btn input {
    flex: 1;
}

.input-with-btn .btn-send-code {
    white-space: nowrap;
    padding: 0 20px;
    height: 48px;
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.input-with-btn .btn-send-code:hover {
    background: #bae7ff;
}

.input-with-btn .btn-send-code:disabled {
    background: #f0f0f0;
    color: #bfbfbf;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

.btn-submit {
    width: 100%;
    height: 48px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #096dd9;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #1890ff;
    margin: 0 8px;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 32px;
}

/* ===== Toast 提示 ===== */
.toast-mask {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.toast-mask.show {
    display: block;
}

/* ===== 用户中心 ===== */
.user-banner {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    padding: 40px 20px;
    color: #fff;
}

.user-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.user-info-text h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-info-text p {
    font-size: 14px;
    opacity: 0.85;
}

.user-balance {
    max-width: 1200px;
    margin: -20px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.balance-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.balance-amount span {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-left: 4px;
}

.balance-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.balance-actions .btn {
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.btn-recharge {
    background: #1890ff;
    color: #fff;
    border: 1px solid #1890ff;
}

.btn-recharge:hover {
    background: #096dd9;
}

.btn-withdraw {
    background: #fff;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-withdraw:hover {
    background: #e6f7ff;
}

/* 用户中心菜单 */
.user-menu {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.menu-item {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e6f7ff;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.menu-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* ===== 交易页 ===== */
.trade-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.trade-chart {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.trade-chart-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trade-symbol {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.trade-balance {
    font-size: 14px;
    color: #666;
}

.trade-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 20px;
}

.trade-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.trade-panel-row:last-child {
    border-bottom: none;
}

.trade-panel-label {
    font-size: 14px;
    color: #666;
}

.trade-panel-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.trade-amount-input {
    width: 120px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    text-align: right;
    font-size: 14px;
    outline: none;
}

.trade-amount-input:focus {
    border-color: #1890ff;
}

.time-tabs {
    display: flex;
    gap: 8px;
}

.time-tab {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    background: #f5f5f5;
    color: #666;
    transition: all 0.3s;
}

.time-tab.active {
    background: #1890ff;
    color: #fff;
}

.trade-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.btn-buy {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy-up {
    background: #f5222d;
    color: #fff;
}

.btn-buy-up:hover {
    background: #cf1322;
}

.btn-buy-down {
    background: #52c41a;
    color: #fff;
}

.btn-buy-down:hover {
    background: #389e0d;
}

/* 交易倒计时弹窗 */
.trade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.trade-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.trade-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    font-weight: 700;
    color: #1890ff;
}

.trade-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.trade-info-row .label {
    color: #666;
}

.trade-info-row .value {
    color: #333;
    font-weight: 500;
}

.trade-result-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0;
}

.trade-result-amount.positive {
    color: #f5222d;
}

.trade-result-amount.negative {
    color: #52c41a;
}

/* 交易历史 */
.trade-history {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.trade-history-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.trade-history-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.trade-history-item:last-child {
    border-bottom: none;
}

.trade-history-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trade-history-info > div {
    text-align: center;
}

.trade-history-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.trade-history-info h4 span {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.trade-history-info p {
    font-size: 12px;
    color: #999;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d9d9d9;
}

/* ===== 帮助中心 ===== */
.help-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.help-search {
    margin-bottom: 40px;
}

.help-search input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 48px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.help-search {
    position: relative;
}

.help-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

.help-search input:focus {
    border-color: #1890ff;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.help-category-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
    cursor: pointer;
}

.help-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.help-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e6f7ff;
    color: #1890ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.help-category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.help-category-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* ===== 通用内容页 ===== */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.content-page h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin: 28px 0 16px;
}

.content-page p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.content-page li {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ===== 移动端底部导航 ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    z-index: 998;
}

.mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #999;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
    color: #1890ff;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    .page-wrapper {
        padding-bottom: 56px;
    }
    
    .form-card {
        margin: 60px 16px 20px;
        padding: 24px;
    }
    
    .balance-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .trade-buttons {
        flex-direction: row;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .help-categories {
        grid-template-columns: 1fr;
    }
}

/* ===== 确认弹窗 ===== */
.confirm-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirm-mask.show {
    display: flex;
}

.confirm-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}

.confirm-dialog-content {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.confirm-dialog-btn {
    padding: 8px 32px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.confirm-dialog-btn:hover {
    background: #096dd9;
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 邀请推广 ===== */
.promo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 28px;
    margin-bottom: 20px;
}

.promo-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.promo-link-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.promo-link-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    color: #666;
}

.btn-copy {
    padding: 0 20px;
    height: 44px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #096dd9;
}

/* ===== 数据表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.data-table th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

/* ===== 状态标签 ===== */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-tag.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-tag.pending {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.status-tag.fail {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* ===== 设置菜单列表 ===== */
.setting-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    color: #1a1a2e;
    font-size: 15px;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: #f9fafb;
}

.setting-item.danger {
    color: #ff4d4f;
}

.setting-arrow {
    color: #ccc;
    font-size: 14px;
}

.setting-status {
    font-size: 13px;
    color: #999;
}

/* ===== 只读表单域 ===== */
.form-readonly {
    padding: 12px 16px;
    background: #f5f7fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    word-break: break-all;
    line-height: 1.5;
}

.form-tip {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* ===== 信息展示行 ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #6b7280;
    flex-shrink: 0;
}

.info-value {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* ===== FAQ 折叠面板 ===== */
.faq-section {
    margin-top: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question .faq-icon {
    color: #aaa;
    font-size: 12px;
    transition: transform 0.3s;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
    color: #1a1a2e;
}

.faq-answer {
    display: none;
    padding: 12px 20px 16px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

.faq-answer.show,
.faq-item.active .faq-answer {
    display: block;
}

/* ===== 记录列表 ===== */
.record-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.record-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.record-item:last-child {
    border-bottom: none;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.record-memo {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 500;
}

.record-date {
    font-size: 12px;
    color: #9ca3af;
}

.record-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-amount {
    font-size: 16px;
    font-weight: 600;
}

.record-plus {
    color: #10b981;
}

.record-minus {
    color: #ef4444;
}

.record-balance {
    font-size: 13px;
    color: #6b7280;
}

.record-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== 优惠券卡片 ===== */
.coupon-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}

.coupon-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.coupon-tab.active {
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.coupon-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.coupon-card.used {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
}

.coupon-card.expired {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.coupon-amount {
    font-size: 28px;
    font-weight: 700;
}

.coupon-amount small {
    font-size: 16px;
}

.coupon-rule {
    font-size: 13px;
    opacity: 0.9;
}

.coupon-body {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.6;
}

/* ===== 空数据 ===== */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}

.no-data i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== 邀请列表 ===== */
.invite-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.invite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.invite-item:last-child {
    border-bottom: none;
}

.invite-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invite-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
}

.invite-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.invite-level {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.invite-amount {
    font-size: 15px;
    font-weight: 600;
    color: #10b981;
}

/* ===== 玩法指南 ===== */
.guide-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.guide-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.guide-step-content p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.guide-step-content img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* ===== 文章详情 ===== */
.article-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-date {
    font-size: 13px;
    color: #9ca3af;
}

.article-body {
    padding: 20px;
    font-size: 15px;
    color: #374151;
    line-height: 1.8;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}

/* ===== 分享福利 ===== */
.share-hero {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.share-hero h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.share-hero p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.share-reward {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.share-reward-item {
    text-align: center;
}

.share-reward-item .amount {
    font-size: 28px;
    font-weight: 700;
    color: #fbbf24;
}

.share-reward-item .label {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

.share-link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 16px 0;
}

.share-link-box .url {
    flex: 1;
    font-size: 13px;
    color: #374151;
    word-break: break-all;
}

.share-link-box .btn {
    white-space: nowrap;
}

/* ===== 充值/提现 特殊 ===== */
.balance-display {
    text-align: center;
    padding: 10px 0;
}

.balance-display .label {
    font-size: 14px;
    color: #6b7280;
}

.balance-display .amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 4px;
}

.balance-display .fee-tip {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 6px;
}

.qr-wrapper {
    text-align: center;
    padding: 20px;
}

.qr-wrapper canvas,
.qr-wrapper img {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    word-break: break-all;
    line-height: 1.5;
}

.address-display .code {
    flex: 1;
}

/* ===== 市场行情表（白底） ===== */
.market-section {
    background: #fff;
    padding: 60px 0;
}
.market-table-wrap {
    overflow-x: auto;
}
.market-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}
.market-table th {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #8a919f;
    padding: 12px 16px;
    border-bottom: 1px solid #eef0f4;
}
.market-table td {
    padding: 16px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 15px;
}
.market-table .col-right {
    text-align: right;
}
.market-row {
    cursor: pointer;
    transition: background 0.2s;
}
.market-row:hover {
    background: #f8f9fb;
}
.pair-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.coin-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    overflow: hidden;
    background: #edf0f5;
}
.coin-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pair-name strong {
    color: #1a1a1a;
    font-size: 15px;
}
.pair-name span {
    color: #9aa1ad;
    font-size: 12px;
    margin-left: 2px;
}
.price-cell {
    font-weight: 600;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}
.chg-cell {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.chg-down { color: #e5484d; }
.chg-up   { color: #12b76a; }
.spark-cell svg {
    display: block;
    margin-left: auto;
}
@media (max-width: 768px) {
    .market-section { padding: 40px 0; }
    .market-table { min-width: 640px; }
}

/* ===== 公告中心 ===== */
.notice-hero {
    background: linear-gradient(135deg, #0f2236 0%, #1a3a5c 100%);
    color: #fff;
    padding: 48px 0;
    text-align: center;
}
.notice-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}
.notice-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}
.notice-section {
    margin: 40px 0;
}
.notice-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.notice-cat-card {
    display: block;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.notice-cat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.notice-cat-card .cat-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.notice-cat-card .cat-intro {
    font-size: 13px;
    color: #8a919f;
    line-height: 1.6;
    min-height: 42px;
}
.notice-cat-card .cat-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #2f7df6;
}
.notice-breadcrumb {
    font-size: 14px;
    color: #8a919f;
    margin: 24px 0;
}
.notice-breadcrumb a { color: #2f7df6; text-decoration: none; }
.notice-breadcrumb .sep { margin: 0 6px; }
.notice-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.notice-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 12px;
    position: sticky;
    top: 100px;
}
.notice-side-item {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.notice-side-item:hover { background: #f5f7fa; }
.notice-side-item.active {
    background: #2f7df6;
    color: #fff;
    font-weight: 600;
}
.notice-content { flex: 1; min-width: 0; }
.notice-list {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    overflow: hidden;
}
.notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f2f4f7;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.2s;
}
.notice-row:last-child { border-bottom: none; }
.notice-row:hover { background: #f8f9fb; }
.notice-row .notice-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 16px;
}
.notice-row .notice-date {
    font-size: 13px;
    color: #9aa1ad;
    flex-shrink: 0;
}
.notice-detail {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 32px;
}
.notice-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}
.notice-meta {
    font-size: 13px;
    color: #9aa1ad;
    padding-bottom: 16px;
    border-bottom: 1px solid #f2f4f7;
    margin-bottom: 24px;
}
.notice-meta .dot { margin: 0 8px; }
.notice-detail-body {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
}
.notice-detail-body p { margin-bottom: 16px; }
.notice-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: #2f7df6;
    text-decoration: none;
    font-size: 14px;
}
@media (max-width: 768px) {
    .notice-layout { flex-direction: column; gap: 16px; }
    .notice-sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 8px; }
    .notice-side-item { flex: 1; text-align: center; }
    .notice-detail { padding: 20px; }
    .notice-hero { padding: 32px 0; }
}

/* ===== 头部个人中心标题 ===== */
.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ===== 浮动客服按钮 ===== */
.float-cs {
    position: fixed;
    right: 16px;
    bottom: 90px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f7df6;
    font-size: 22px;
    z-index: 998;
    transition: transform 0.2s, box-shadow 0.2s;
}
.float-cs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
@media (min-width: 769px) {
    .float-cs { bottom: 32px; }
}

/* ===== 页脚手风琴 ===== */
.footer-links h4 {
    cursor: pointer;
    position: relative;
    padding-right: 24px;
    user-select: none;
}
.footer-links h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 400;
    color: #9ca3af;
    transition: transform 0.2s;
}
.footer-links.open h4::after {
    content: '\2212';
}
.footer-links ul {
    display: none;
}
.footer-links.open ul {
    display: block;
}
.footer-contact h4 { cursor: default; }

/* PC端页脚：全部默认展开，不显示手风琴图标，行距加大 */
@media (min-width: 769px) {
    .footer-links ul {
        display: block !important;
    }
    .footer-links h4 {
        cursor: default;
    }
    .footer-links h4::after {
        display: none;
    }
    .footer-links ul li {
        margin-bottom: 14px;
    }
    .footer-links ul li:last-child {
        margin-bottom: 0;
    }
}

/* ===== 交易历史条目（重构布局） ===== */
.trade-history-item.thi {
    display: block;
    padding: 14px 20px;
}
.thi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.thi-time {
    font-size: 13px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
.thi-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    gap: 8px;
}
.thi-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.thi-label {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}
.thi-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.thi-value em {
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
}
.thi-value.up { color: #16a34a; }
.thi-value.down { color: #e5484d; }
@media (max-width: 400px) {
    .thi-stats { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
}

/* ===== 页脚移动端收敛 ===== */
@media (max-width: 768px) {
    .footer { padding: 28px 0 20px; }
    .footer-top { gap: 0; margin-bottom: 20px; }
    .footer-logo { margin-bottom: 4px; }
    .footer-logo p { margin: 8px 0 12px; }
    .footer-social { margin-bottom: 4px; }
    .footer-links {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px 0;
    }
    .footer-links h4 { margin-bottom: 0; font-size: 15px; }
    .footer-links ul { margin-top: 12px; }
    .footer-links ul li { margin-bottom: 10px; }
    .footer-contact { padding-top: 14px; }
    .footer-contact h4 { margin-bottom: 12px; }
    .footer-bottom { margin-top: 8px; }
}

/* ===== 回到顶部与客服按钮错开 ===== */
.back-to-top {
    right: 84px;
}
@media (max-width: 768px) {
    .back-to-top { bottom: 88px; right: 80px; }
    .float-cs { bottom: 88px; }
}

/* ===== 语言切换器（下拉框） ===== */
.lang-switch {
    position: relative;
    margin-right: 12px;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.lang-btn:hover,
.lang-switch.open .lang-btn {
    border-color: #1890ff;
    color: #1890ff;
}
.lang-caret {
    font-size: 10px;
    transition: transform .2s;
}
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px;
    z-index: 1000;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #4b5563;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
}
.lang-menu a:hover {
    background: #f3f4f6;
    color: #1890ff;
}

/* ===== 导航下拉：长词条（德语等）自适应宽度，不溢出不换行 ===== */
.nav-dropdown {
    width: max-content;
    min-width: 120px;
    max-width: 300px;
}
.nav-dropdown a {
    white-space: nowrap;
}
.lang-menu a.active {
    background: #e6f4ff;
    color: #1890ff;
    font-weight: 500;
}
.lang-menu a.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
}
@media (max-width: 768px) {
    .lang-switch { margin-right: 8px; }
    .lang-btn { font-size: 12px; padding: 5px 8px; }
}

/* ================= 小分辨率适配 & iOS 滚动加固（2026-10-23） ================= */

/* 老 iOS Safari / 微信 WebView 的惯性滚动与手势放行 */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
}

/* —— 移动端：修正底部导航遮挡页脚 / 悬浮按钮压住底栏 —— */
@media (max-width: 768px) {
    /* footer 在 .page-wrapper 之外，需要自己让开 56px 的固定底栏 */
    .footer {
        padding-bottom: 76px;
    }

    /* 回到顶部按钮原本 bottom:30px，会压在 56px 高的底栏上 */
    .back-to-top {
        bottom: 74px;
        right: 16px;
    }
}

/* —— 小分辨率（iPhone SE / 5s 等 ≤360px）—— */
@media (max-width: 360px) {
    .user-banner {
        padding: 24px 14px;
    }

    .user-banner-inner {
        gap: 12px;
    }

    .user-balance {
        padding: 0 12px;
        margin: 12px auto;
    }

    .balance-card {
        padding: 16px;
    }

    .balance-amount {
        font-size: 26px;
    }

    .promo-card {
        padding: 14px;
    }

    .user-menu {
        padding: 0 12px;
        margin: 16px auto;
    }

    .menu-grid {
        gap: 10px;
    }

    .menu-item {
        padding: 16px 14px;
        gap: 12px;
    }

    .menu-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        flex: 0 0 40px;
    }

    .menu-text {
        font-size: 14px;
    }

    /* 两个悬浮按钮错开，避免叠在一起挡住内容 */
    .float-cs {
        width: 44px;
        height: 44px;
        right: 12px;
        bottom: 76px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        right: 12px;
        bottom: 130px;
        font-size: 16px;
    }

    .mobile-bottom-nav-item {
        font-size: 10px;
    }

    .mobile-bottom-nav-item i {
        font-size: 18px;
    }
}

/* ================= iOS 全屏 WebApp（standalone）滚动兜底（2026-10-23） ================= */
/* 从桌面图标打开时 iOS 会进入 standalone 模式，部分版本下 sticky 顶栏 + 固定底栏
   会导致页面滑不动。已移除 apple-mobile-web-app-capable，这里是旧图标仍以全屏
   打开时的兜底：放开滚动、取消顶栏吸顶。 */
@media (display-mode: standalone), (display-mode: fullscreen) {
    html,
    body {
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .header {
        position: relative;
        top: auto;
    }

    .page-wrapper {
        min-height: 0;
    }
}
