/* 确保所有元素可见 */
* {
    visibility: visible !important;
    opacity: 1 !important;
}

/* 防止初始隐藏 */
.page {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.page:not(.active) {
    display: none !important;
}

.page.active {
    display: block !important;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 暗色主题变量 */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #2d2d2d;
    --bg-modal: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --border-color: #404040;
    --accent-color: #667eea;
    --positive-color: #4caf50;
    --negative-color: #f44336;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* 暗色主题样式 */
body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body.dark-theme * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page {
    display: none;
    height: 100vh;
    overflow: hidden;
}

.page.active {
    display: block;
}

/* 应用内消息提示系统 */
.message-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.message-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.message-toast.success {
    background: #4caf50;
    color: white;
    border-left: 4px solid #2e7d32;
}

.message-toast.error {
    background: #f44336;
    color: white;
    border-left: 4px solid #c62828;
}

.message-toast.info {
    background: #2196f3;
    color: white;
    border-left: 4px solid #1565c0;
}

.message-toast.warning {
    background: #ff9800;
    color: white;
    border-left: 4px solid #ef6c00;
}

body.dark-theme .message-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 登录页面样式 */
.login-container {
    padding: 2rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-theme .login-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.app-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: bold;
}

body.dark-theme .app-title {
    color: var(--text-primary);
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body.dark-theme .login-form {
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
    color: #333;
}

body.dark-theme .form-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-theme .form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

body.dark-theme .form-input:focus {
    border-color: var(--accent-color);
    background: #252525;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

body.dark-theme .btn-primary:disabled {
    background: #444;
    color: #666;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

body.dark-theme .btn-secondary {
    background: #555;
    color: var(--text-primary);
}

body.dark-theme .btn-secondary:active {
    background: #666;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

body.dark-theme .login-links a {
    color: var(--accent-color);
}

/* 注册和忘记密码页面 */
.register-container,
.forgot-password-container {
    height: 100vh;
    background: white;
    overflow-y: auto;
}

body.dark-theme .register-container,
body.dark-theme .forgot-password-container {
    background: var(--bg-primary);
}

.page-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

body.dark-theme .page-header {
    background: var(--bg-secondary);
    border-bottom-color: #333;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    color: #333;
}

body.dark-theme .back-btn {
    color: var(--text-primary);
}

.page-header h2 {
    font-size: 1.3rem;
}

.register-form,
.forgot-password-form {
    padding: 2rem 1.5rem;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.sms-btn {
    white-space: nowrap;
    padding: 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.sms-btn:disabled {
    background: #ccc;
}

/* === 主界面样式 === */

/* 状态栏布局 */
.status-bar {
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

body.dark-theme .status-bar {
    background: var(--bg-secondary);
    border-bottom-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    flex-shrink: 0;
}

body.dark-theme .menu-btn {
    color: var(--text-primary);
}

.app-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-name {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

.market-status {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
    line-height: 1.2;
}

body.dark-theme .market-status {
    color: var(--text-muted);
}

.market-status.open {
    color: #27ae60;
    font-weight: bold;
}

body.dark-theme .market-status.open {
    color: var(--positive-color);
}

.market-status.closed {
    color: #e74c3c;
    font-weight: bold;
}

body.dark-theme .market-status.closed {
    color: var(--negative-color);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.user-info {
    text-align: right;
    min-width: 0;
}

.username {
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.2;
}

.balance {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
    line-height: 1.2;
}

body.dark-theme .balance {
    color: var(--text-muted);
}

.logout-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: background-color 0.2s;
}

body.dark-theme .logout-btn {
    background: #555;
    color: var(--text-primary);
}

.logout-btn:active {
    background: #5a6268;
    transform: scale(0.95);
}

body.dark-theme .logout-btn:active {
    background: #666;
}

/* 市场信息新布局 */
.market-info {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 1rem;
}

body.dark-theme .market-info {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.market-index-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.market-index {
    text-align: left;
    width: 100%;
}

.market-index-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

body.dark-theme .market-index-label {
    color: var(--text-muted);
}

.index-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

body.dark-theme .index-value {
    color: var(--text-primary);
}

.index-change {
    font-size: 0.9rem;
    line-height: 1.2;
}

.index-change.positive {
    color: #e74c3c;
}

body.dark-theme .index-change.positive {
    color: var(--positive-color);
}

.index-change.negative {
    color: #27ae60;
}

body.dark-theme .index-change.negative {
    color: var(--negative-color);
}

.market-controls-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.form-select {
    padding: 0.8rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 120px;
    height: auto;
    color: #333;
}

body.dark-theme .form-select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
}

body.dark-theme .form-select:focus {
    border-color: var(--accent-color);
}

/* 内容区域 - 修复Dock栏遮挡 */
.content-area {
    height: calc(100vh - 120px);
    overflow-y: auto;
    background: #f8f9fa;
    padding-bottom: 80px;
}

body.dark-theme .content-area {
    background: var(--bg-primary);
}

.content-page {
    display: none;
    min-height: 100%;
    position: relative;
}

.content-page.active {
    display: block;
}

/* 图表区域 */
.chart-section {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .chart-section {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-select {
    padding: 0.5rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
}

body.dark-theme .chart-select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.chart-container {
    height: 200px;
    position: relative;
}

/* 公司列表 - 修复底部间距 */
.companies-list {
    display: grid;
    gap: 1rem;
    padding: 0 1rem 2rem 1rem;
}

.company-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .company-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.company-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.company-price {
    font-size: 1.2rem;
    font-weight: bold;
}

body.dark-theme .company-price {
    color: var(--text-primary);
}

.company-change {
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.company-change.positive {
    color: #e74c3c;
}

body.dark-theme .company-change.positive {
    color: var(--positive-color);
}

.company-change.negative {
    color: #27ae60;
}

body.dark-theme .company-change.negative {
    color: var(--negative-color);
}

.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

body.dark-theme .company-info {
    color: var(--text-muted);
}

.company-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.buy-btn,
.sell-btn,
.primary-sell-btn,
.secondary-sell-btn,
.trade-btn {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.buy-btn {
    background: #e74c3c;
    color: white;
}

body.dark-theme .buy-btn {
    background: var(--negative-color);
}

.sell-btn {
    background: #27ae60;
    color: white;
}

body.dark-theme .sell-btn {
    background: var(--positive-color);
}

.primary-sell-btn {
    background: #27ae60;
    color: white;
}

body.dark-theme .primary-sell-btn {
    background: var(--positive-color);
}

.secondary-sell-btn {
    background: #3498db;
    color: white;
}

body.dark-theme .secondary-sell-btn {
    background: #2196f3;
}

.trade-btn {
    background: #f39c12;
    color: white;
}

body.dark-theme .trade-btn {
    background: #ff9800;
}

.buy-btn:disabled,
.sell-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

body.dark-theme .buy-btn:disabled,
body.dark-theme .sell-btn:disabled {
    background: #444;
    color: #666;
}

/* 资产页面 */
.assets-header {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .assets-header {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.total-assets {
    font-weight: bold;
    color: #667eea;
}

body.dark-theme .total-assets {
    color: var(--accent-color);
}

.holdings-list {
    display: grid;
    gap: 1rem;
    padding: 0 1rem 2rem 1rem;
}

.holding-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .holding-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* 盈亏样式 */
.profit {
    color: #27ae60;
    font-weight: bold;
}

body.dark-theme .profit {
    color: var(--positive-color);
}

.loss {
    color: #e74c3c;
    font-weight: bold;
}

body.dark-theme .loss {
    color: var(--negative-color);
}

/* 二级市场标签页 */
.market-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 0.5rem;
    border: none;
    background: #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
    color: #333; /* 亮色模式未选中为黑色 */
    transition: all 0.3s ease;
}

body.dark-theme .tab-btn {
    background: #333;
    color: var(--text-primary); /* 暗色模式未选中为白色 */
}

.tab-btn.active {
    background: #667eea;
    color: white; /* 选中状态始终为白色 */
}

body.dark-theme .tab-btn.active {
    background: var(--accent-color);
    color: white; /* 暗色模式选中也为白色 */
}

.tab-content {
    display: none;
    padding-bottom: 2rem;
}

.tab-content.active {
    display: block;
}

.orders-list {
    display: grid;
    gap: 1rem;
    padding: 0 1rem;
}

.order-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .order-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.order-company {
    font-weight: bold;
    font-size: 1.1rem;
}

.order-price {
    font-size: 1.2rem;
    font-weight: bold;
}

body.dark-theme .order-price {
    color: var(--text-primary);
}

/* 挂单表单 */
.order-form {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .order-form {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.order-form .input-group {
    margin-bottom: 1.5rem;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

body.dark-theme .order-form label {
    color: var(--text-primary);
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

body.dark-theme .order-summary {
    background: #252525;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-item.total {
    font-weight: bold;
    border-top: 1px solid #e1e5e9;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

body.dark-theme .summary-item.total {
    border-top-color: var(--border-color);
}

/* === 侧边栏样式 === */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

body.dark-theme .sidebar {
    background: var(--bg-secondary);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-theme .sidebar-header {
    border-bottom-color: #333;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

body.dark-theme .sidebar-close {
    color: var(--text-muted);
}

.sidebar-content {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-item {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    transition: background-color 0.2s;
    color: #333;
}

body.dark-theme .sidebar-item {
    color: var(--text-primary);
}

.sidebar-item:hover {
    background-color: #f5f5f5;
}

body.dark-theme .sidebar-item:hover {
    background-color: var(--bg-card);
}

.sidebar-icon {
    font-size: 1.2rem;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

body.dark-theme .sidebar-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-overlay.active {
    display: block;
}

/* Dock栏 - 修复位置 */
.dock-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e1e5e9;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 0.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

body.dark-theme .dock-bar {
    background: var(--bg-secondary);
    border-top-color: #333;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.dock-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: #666;
}

body.dark-theme .dock-btn {
    color: var(--text-muted);
}

.dock-btn.active {
    color: #667eea;
}

body.dark-theme .dock-btn.active {
    color: var(--accent-color);
}

.dock-icon {
    font-size: 1.2rem;
}

.dock-label {
    font-size: 0.7rem;
}

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

body.dark-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.8);
}

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

.modal-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

body.dark-theme .modal-content {
    background: var(--bg-modal);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

body.dark-theme .modal-header {
    border-bottom-color: var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

body.dark-theme .modal-close {
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e1e5e9;
}

body.dark-theme .modal-footer {
    border-top-color: var(--border-color);
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    flex: 1;
}

/* 实名认证样式 */
.verification-complete {
    text-align: center;
    padding: 2rem 1rem;
}

.verification-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #27ae60;
}

body.dark-theme .verification-success-icon {
    color: var(--positive-color);
}

.verification-complete-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

body.dark-theme .verification-complete-message {
    color: var(--text-primary);
}

.verification-complete-name {
    font-weight: bold;
    color: #667eea;
}

body.dark-theme .verification-complete-name {
    color: var(--accent-color);
}

/* 身份证号错误样式 */
.form-input.error {
    border-color: #e74c3c;
}

body.dark-theme .form-input.error {
    border-color: var(--negative-color);
    background: #332;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    border-left: 3px solid #c33;
}

body.dark-theme .error-message {
    background: #332;
    color: var(--negative-color);
    border-left-color: var(--negative-color);
}

/* 实名认证状态提示 */
.verification-status {
    background: #e3f2fd;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-theme .verification-status {
    background: #1a1a2e;
    color: #2196f3;
}

.verification-status.verified {
    background: #e8f5e8;
    color: #2e7d32;
}

body.dark-theme .verification-status.verified {
    background: #1a2e1a;
    color: var(--positive-color);
}

.verification-status-icon {
    font-size: 1.2rem;
}

/* 筛选状态提示 */
.filter-status {
    background: #e3f2fd;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #1976d32;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-theme .filter-status {
    background: #1a1a2e;
    color: #2196f3;
}

.clear-filter {
    background: none;
    border: 1px solid #1976d2;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

body.dark-theme .clear-filter {
    border-color: #2196f3;
    color: #2196f3;
}

.clear-filter:hover {
    background: #1976d2;
    color: white;
}

body.dark-theme .clear-filter:hover {
    background: #2196f3;
}

/* === 投资页面样式 === */

/* 活期余额卡片 */
.treasure-bowl-current {
    padding: 1rem;
}

.current-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-theme .current-balance-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.balance-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.yield-rate {
    font-size: 0.9rem;
    opacity: 0.9;
}

.balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.balance-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

body.dark-theme .balance-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-actions .btn-secondary:active {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .balance-actions .btn-secondary:active {
    background: rgba(255, 255, 255, 0.2);
}

/* 计划部分 */
.plans-section,
.my-deposits-section {
    padding: 0 1rem 1rem 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

body.dark-theme .section-title {
    color: var(--text-primary);
}

/* 计划网格 */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #e1e5e9;
}

body.dark-theme .plan-card {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.plan-header {
    margin-bottom: 0.8rem;
}

.plan-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}

body.dark-theme .plan-name {
    color: var(--text-primary);
}

.plan-duration {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
}

body.dark-theme .plan-duration {
    color: var(--text-muted);
}

.plan-yield {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: bold;
}

body.dark-theme .plan-yield {
    color: var(--negative-color);
}

.buy-plan-btn {
    width: 100%;
    padding: 0.6rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-theme .buy-plan-btn {
    background: var(--accent-color);
}

.buy-plan-btn:active {
    transform: scale(0.98);
    background: #5a6fd8;
}

body.dark-theme .buy-plan-btn:active {
    background: #5a6fd8;
}

/* 我的定期存款 */
.deposits-list {
    display: grid;
    gap: 1rem;
}

.deposit-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

body.dark-theme .deposit-card {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-color);
}

.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.deposit-title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

body.dark-theme .deposit-title {
    color: var(--text-primary);
}

.deposit-days-left {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

body.dark-theme .deposit-days-left {
    background: var(--negative-color);
}

.deposit-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.detail-label {
    color: #666;
    font-size: 0.8rem;
}

body.dark-theme .detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: #333;
    font-weight: 500;
}

body.dark-theme .detail-value {
    color: var(--text-primary);
}

.deposit-status {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.8rem;
    color: #666;
}

body.dark-theme .deposit-status {
    border-top-color: var(--border-color);
    color: var(--text-muted);
}

/* 支付方式选择 */
.payment-methods {
    margin: 1.5rem 0;
}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-theme .payment-btn {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.payment-btn.active {
    border-color: #667eea;
    background: #f0f4ff;
}

body.dark-theme .payment-btn.active {
    border-color: var(--accent-color);
    background: #1a1a2e;
}

.payment-icon {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.payment-btn span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
}

/* 计划详情 */
.plan-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

body.dark-theme .plan-details {
    background: #252525;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.detail-item.total {
    font-weight: bold;
    border-top: 1px solid #e1e5e9;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    font-size: 1rem;
}

body.dark-theme .detail-item.total {
    border-top-color: var(--border-color);
}

.available-balance {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

body.dark-theme .available-balance {
    color: var(--text-muted);
}

/* === 二级市场准入遮罩样式 === */
.market-access-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .market-access-overlay {
    background: rgba(30, 30, 30, 0.95);
}

.access-denied-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 2px solid #e74c3c;
    max-width: 300px;
    z-index: 101;
    position: relative;
}

body.dark-theme .access-denied-content {
    background: var(--bg-card);
    border: 2px solid var(--negative-color);
}

.access-denied-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.access-denied-message {
    color: #333;
    line-height: 1.5;
}

body.dark-theme .access-denied-message {
    color: var(--text-primary);
}

.access-denied-message div:first-child {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.access-denied-message div:last-child {
    color: #666;
    font-size: 0.9rem;
}

body.dark-theme .access-denied-message div:last-child {
    color: var(--text-muted);
}

/* 当有遮罩时，二级市场内容模糊化 */
.secondary-market-blurred .market-tabs,
.secondary-market-blurred .tab-content {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* 手续费显示样式 */
.fee-display {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.fee-rate {
    color: #666;
    font-size: 0.9em;
}

body.dark-theme .fee-rate {
    color: var(--text-muted);
}

.fee-amount {
    font-weight: bold;
}

/* 交易摘要中的手续费样式 */
.trade-summary .summary-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* 挂单表单中的手续费样式 */
.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* 可用余额警告状态 */
.available-balance.warning {
    color: #e74c3c;
    font-weight: bold;
}

body.dark-theme .available-balance.warning {
    color: var(--negative-color);
}

/* 按钮防重复点击 */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 转账进行中样式 */
.transfer-in-progress {
    position: relative;
}

.transfer-in-progress::after {
    content: '处理中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* 交易详情样式 */
.trade-details {
    padding: 0.5rem 0;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-theme .trade-item {
    border-bottom-color: var(--border-color);
}

.trade-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

body.dark-theme .trade-summary {
    background: #252525;
    border: 1px solid var(--border-color);
}

/* === 钱包页面样式 === */

/* 钱包标签页 */
.wallet-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem;
    margin-bottom: 1rem;
}

/* 充值表单样式 */
.recharge-form,
.withdraw-form {
    padding: 0 1rem;
}

.recharge-summary-card,
.withdraw-summary-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid #e1e5e9;
}

body.dark-theme .recharge-summary-card,
body.dark-theme .withdraw-summary-card {
    background: #252525;
    border: 1px solid var(--border-color);
}

.payment-warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #ffeaa7;
}

body.dark-theme .payment-warning {
    background: #332;
    color: #ff9800;
    border: 1px solid #665;
}

.password-warning {
    background: #d1ecf1;
    color: #0c5460;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #bee5eb;
}

body.dark-theme .password-warning {
    background: #223;
    color: #2196f3;
    border: 1px solid #334;
}

/* 充值成功样式 */
.recharge-success {
    padding: 0 1rem;
}

.qr-code-container {
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .qr-code-container {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.qr-code-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wallet-info {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .wallet-info {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.wallet-address {
    word-break: break-all;
    margin-bottom: 0.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #667eea;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #333;
}

body.dark-theme .wallet-address {
    background: #252525;
    border: 1px dashed var(--accent-color);
    color: var(--text-primary);
}

.wallet-address:active {
    background: #e3f2fd;
}

body.dark-theme .wallet-address:active {
    background: #1a1a2e;
}

.network-type {
    color: #666;
    font-size: 0.9rem;
}

body.dark-theme .network-type {
    color: var(--text-muted);
}

.recharge-details {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .recharge-details {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
    border: 1px solid #c3e6cb;
}

body.dark-theme .success-message {
    background: #232;
    color: var(--positive-color);
    border: 1px solid #334;
}

/* 记录筛选样式 */
.records-filter {
    display: flex;
    gap: 0.5rem;
    margin: 1rem;
    margin-bottom: 1rem;
}

.records-filter .form-select {
    flex: 1;
}

/* 支付记录卡片样式 */
.payment-records-list,
.transaction-records-list {
    display: grid;
    gap: 1rem;
    padding: 0 1rem 2rem 1rem;
}

.payment-record-card,
.transaction-record-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark-theme .payment-record-card,
body.dark-theme .transaction-record-card {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-theme .record-header {
    border-bottom-color: var(--border-color);
}

.record-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

body.dark-theme .record-title {
    color: var(--text-primary);
}

.record-status {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

body.dark-theme .status-pending {
    background: #332;
    color: #ff9800;
}

.status-approved {
    background: #d1edff;
    color: #0c5460;
}

body.dark-theme .status-approved {
    background: #223;
    color: #2196f3;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

body.dark-theme .status-rejected {
    background: #322;
    color: var(--negative-color);
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

body.dark-theme .status-completed {
    background: #232;
    color: var(--positive-color);
}

.record-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    font-size: 0.85rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

body.dark-theme .detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: #333;
    font-weight: 500;
    text-align: right;
}

body.dark-theme .detail-value {
    color: var(--text-primary);
}

/* 提现密码设置样式 */
.withdraw-password-setup {
    padding: 0 1rem;
}

/* 垂直布局的记录详情 */
.record-details-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-theme .detail-item-vertical {
    border-bottom-color: var(--border-color);
}

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

.detail-item-vertical .detail-label {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-theme .detail-item-vertical .detail-label {
    color: var(--text-muted);
}

.detail-item-vertical .detail-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

body.dark-theme .detail-item-vertical .detail-value {
    color: var(--text-primary);
}

/* 充值成功额外提示 */
.recharge-details .payment-warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #ffeaa7;
}

body.dark-theme .recharge-details .payment-warning {
    background: #332;
    color: #ff9800;
    border: 1px solid #665;
}

/* 提现按钮上传状态 */
.btn-primary:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

body.dark-theme .btn-primary:disabled {
    background: #444 !important;
}

/* 网格布局的记录详情 */
.record-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

body.dark-theme .detail-item-grid {
    background: #252525;
    border: 1px solid var(--border-color);
}

.detail-item-grid .detail-label {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

body.dark-theme .detail-item-grid .detail-label {
    color: var(--text-muted);
}

.detail-item-grid .detail-value {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    word-break: break-word;
}

body.dark-theme .detail-item-grid .detail-value {
    color: var(--text-primary);
}

/* 充值成功界面的垂直布局 */
.recharge-details .detail-item-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-theme .recharge-details .detail-item-vertical {
    border-bottom-color: var(--border-color);
}

.recharge-details .detail-item-vertical:last-child {
    border-bottom: none;
}

.recharge-details .detail-item-vertical .detail-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

body.dark-theme .recharge-details .detail-item-vertical .detail-label {
    color: var(--text-muted);
}

.recharge-details .detail-item-vertical .detail-value {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

body.dark-theme .recharge-details .detail-item-vertical .detail-value {
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 360px) {
    .dock-label {
        font-size: 0.6rem;
    }
    
    .market-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.3rem;
    }
    
    .market-info {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .status-bar {
        padding: 0.8rem;
    }
    
    .status-right {
        gap: 0.5rem;
    }
    
    .logout-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .payment-buttons {
        grid-template-columns: 1fr;
    }
    
    .current-balance-card {
        padding: 1rem;
    }
    
    .balance-amount {
        font-size: 1.8rem;
    }
}

/* 工具类 */
.text-positive {
    color: #e74c3c;
}

body.dark-theme .text-positive {
    color: var(--positive-color);
}

.text-negative {
    color: #27ae60;
}

body.dark-theme .text-negative {
    color: var(--negative-color);
}

.coming-soon {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

body.dark-theme .coming-soon {
    color: var(--text-muted);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

body.dark-theme .loading {
    color: var(--text-muted);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #c33;
}

body.dark-theme .error-message {
    background: #332;
    color: var(--negative-color);
    border-left: 4px solid var(--negative-color);
}

.success-message {
    background: #efe;
    color: #363;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #363;
}

body.dark-theme .success-message {
    background: #232;
    color: var(--positive-color);
    border-left: 4px solid var(--positive-color);
}

/* 禁用状态的二级市场卖出按钮 */
.secondary-sell-btn:disabled {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

body.dark-theme .secondary-sell-btn:disabled {
    background: #444 !important;
    color: #666 !important;
}

/* 隐藏的Dock按钮 */
.dock-btn.hidden {
    display: none !important;
}

/* 调整Dock栏布局当二级市场隐藏时 */
.dock-bar:has(#secondary-market-dock-btn[style*="display: none"]) {
    grid-template-columns: repeat(5, 1fr);
}

/* 响应式调整 */
@media (max-width: 360px) {
    .dock-bar:has(#secondary-market-dock-btn[style*="display: none"]) {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 资产页面持股卡片样式调整 */
.holding-card .company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #666;
}

body.dark-theme .holding-card .company-info {
    color: var(--text-muted);
}

/* 盈亏信息突出显示 */
.holding-card .company-info div:nth-last-child(2),
.holding-card .company-info div:last-child {
    font-weight: 500;
}

/* 确保公司名称和价格在一行显示良好 */
.holding-card .company-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.holding-card .company-name {
    font-weight: bold;
    font-size: 1.1rem;
    flex: 1;
    margin-right: 1rem;
}

.holding-card .company-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

body.dark-theme .holding-card .company-price {
    color: var(--text-primary);
}

/* 按钮容器调整 */
.holding-card .company-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 响应式调整 */
@media (max-width: 360px) {
    .holding-card .company-info {
        grid-template-columns: 1fr;
        font-size: 0.8rem;
    }
    
    .holding-card .company-name {
        font-size: 1rem;
    }
    
    .holding-card .company-price {
        font-size: 1.1rem;
    }
    
    .holding-card .company-actions {
        grid-template-columns: 1fr;
    }
}
/* 输入框后缀样式 */
.input-with-suffix {
    display: flex;
    align-items: center;
    position: relative;
}

.input-with-suffix .form-input {
    padding-right: 30px;
    flex: 1;
}

.input-with-suffix .input-suffix {
    position: absolute;
    right: 10px;
    color: #666;
    pointer-events: none;
}

/* 暗色主题适配 */
.dark-theme .input-with-suffix .input-suffix {
    color: #a0a0a0;
}
/* 下载APP按钮样式 */
#download-app-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

#download-app-btn:active {
    transform: scale(0.95);
}

body.dark-theme #download-app-btn {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 上传进度提示样式 */
.upload-progress-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2001;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #2196f3;
    color: white;
    border-left: 4px solid #1565c0;
    transform: translateX(120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.upload-progress-toast.show {
    transform: translateX(0);
    opacity: 1;
}

body.dark-theme .upload-progress-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: var(--accent-color);
    border-left: 4px solid #5a6fd8;
}
/* 图片权限错误提示样式 */
#image-permission-error {
    margin-top: 0.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
    font-size: 0.9rem;
}

body.dark-theme #image-permission-error {
    background: #332;
    color: var(--negative-color);
    border-left-color: var(--negative-color);
}

/* 上传进度样式 */
.upload-progress {
    text-align: center;
}

.progress-text {
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

body.dark-theme .progress-bar {
    background: #333;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

body.dark-theme .progress-fill {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

body.dark-theme .progress-stats {
    color: var(--text-muted);
}

/* 提现等待界面样式 */
.withdraw-waiting {
    display: none;
    padding: 2rem 1rem;
    text-align: center;
}

.waiting-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

body.dark-theme .waiting-content {
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.waiting-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333;
}

body.dark-theme .waiting-title {
    color: var(--text-primary);
}

.waiting-progress {
    margin: 2rem 0;
}

.progress-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

body.dark-theme .progress-text {
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

body.dark-theme .progress-bar {
    background: #333;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.waiting-note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
}

body.dark-theme .waiting-note {
    color: var(--text-muted);
}
/* 在CSS文件中添加 */
.app-buttons {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    margin: 1rem auto 0;
}

.app-buttons .btn-primary {
    margin: 0;
}