* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主题颜色变量 */
/* 浅色主题（默认） */
:root:not(.theme-dark) {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e0e0e0;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --accent-color: #0e639c;
    --hover-bg: #f0f0f0;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    /* 图表涨跌颜色 */
    --chart-up-color: #ff0000;
    --chart-down-color: #399239;
    /* 渐变色相关变量 */
    --gradient-start-color: rgba(255,255,255,0.8);
    --gradient-alpha: 0.2;
}

/* 深色主题 */
.theme-dark:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3c3c3c;
    --text-primary: #cccccc;
    --text-secondary: #999999;
    --text-muted: #666666;
    --border-color: #3c3c3c;
    --accent-color: #4a90e2;
    --hover-bg: #3c3c3c;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    /* 图表涨跌颜色 */
    --chart-up-color: #ff0000;
    --chart-down-color: #00ffff;
    /* 渐变色相关变量 */
    --gradient-start-color: rgba(30,30,30,0.8);
    --gradient-alpha: 0.4;
}

/* 登录对话框样式 */
.modal {
    display: block; /* 默认显示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 15% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header {
    padding: 20px 25px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 15px 25px;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.modal-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#login-btn {
    background-color: var(--accent-color);
    color: white;
}

#login-btn:hover {
    background-color: #1976d2;
}

#cancel-login-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

#cancel-login-btn:hover {
    background-color: #545b62;
}

#token {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    min-height: 80px;
    margin-bottom: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* 登录对话框输入框滚动条样式 */
#token::-webkit-scrollbar {
    width: 8px;
}

#token::-webkit-scrollbar-track {
    background-color: var(--bg-secondary);
}

#token::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

#token::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

/* 登录对话框输入框调整大小手柄样式 */
#token::-webkit-resizer {
    background-color: var(--bg-tertiary);
}

.form-group {
    margin-bottom: 0;
}

#login-error {
    display: none;
    margin: 5px 0;
    color: var(--danger-color);
    font-size: 14px;
}

#token:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.25);
}

.error-message {
    color: var(--danger-color);
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

/* 加载遮罩样式 */
.loading-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body.dark-theme .loading-overlay {
    background-color: rgba(0,0,0,0.8);
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2196f3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-message {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 主内容样式 */
.container {
    display: none; /* 初始隐藏 */
    margin: 0 auto;
    width: 100%;
    height: calc(100% - 52px); /* 减去header的高度(30px)和状态栏的高度(22px) */
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: center;
    height: 30px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.site-logo {
    height: 16px;
    width: auto;
    display: block;
}

/* VSCode风格菜单栏 */
.menu-bar {
    display: flex;
    flex: 1;
}

.menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
    margin-right: 1px;
}

.menu-link {
    display: block;
    padding: 6px 10px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-link:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.menu-link.active {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    padding: 4px 0;
    display: none;
    z-index: 1000;
}

.menu-item:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 6px 12px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 右侧状态指示器 */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-right: 10px;
    border-right: 1px solid var(--border-color);
}

.user-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-right: 10px;
}

.expire-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 主题下拉菜单样式 */
.theme-dropdown {
    position: relative;
    display: inline-block;
}

.theme-dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: pointer;
    height: 30px;
    line-height: 30px;
    transition: background-color 0.2s;
}

.theme-dropdown-toggle:hover {
    background-color: var(--hover-bg);
}

.theme-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 100px;
    padding: 4px 0;
    display: none;
    z-index: 1000;
}

.theme-dropdown:hover .theme-dropdown-menu {
    display: block;
}

.theme-dropdown-item {
    display: block;
    padding: 6px 12px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.theme-dropdown-item:hover {
    background-color: var(--accent-color);
    color: white;
}

.status-indicator {
    padding: 0 10px;
    color: var(--text-primary);
    font-size: 12px;
}

/* VSCode风格状态栏 */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 22px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.scroll-message-bar {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    overflow: hidden;
    height: 22px;
    position: relative;
}

.message-container {
    white-space: nowrap;
    position: absolute;
    left: 100%;
    animation: scroll-left 20s linear infinite;
}

.message-text {
    display: inline-block;
    padding: 0 12px;
    margin-right: 12px;
    height: 18px;
    line-height: 18px;
    color: var(--text-primary);
    font-size: 12px;
}

/* 滚动消息中的链接样式 - 默认与文本一致，悬停时显示下划线 */
.scroll-message-link {
    color: inherit;
    text-decoration: none;
}

.scroll-message-link:hover {
    text-decoration: underline;
}

@keyframes scroll-left {
    0% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

.beian-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
}

.beian-info a {
    color: var(--text-primary);
    font-size: 11px;
    text-decoration: none;
}

.beian-info a:hover {
    text-decoration: underline;
}

.beian-info img {
    vertical-align: middle;
}

.connection-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.status-item {
    display: flex;
    align-items: center;
    margin: 0 4px;
    padding: 0 8px;
    cursor: pointer;
    height: 18px;
    line-height: 18px;
    transition: background-color 0.2s;
}

.status-item:hover {
    background-color: var(--hover-bg);
}

.status-icon {
    margin-right: 4px;
}

.status-text {
    white-space: nowrap;
}

.site-logo {
    height: 32px;
    width: auto;
    display: block;
}

main {
    display: flex;
    gap: 5px;
    width: 100%;
    height: 100%;
    /* 移除flex-wrap: wrap，确保容器始终并排显示 */
}

/* 容器布局样式 */
.stock-list-container {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.stock-list {
    overflow-y: auto;
    margin-top: 0;
    margin-bottom: 0;
    flex: 1; /* 自动填充剩余空间 */
    padding-right: 5px;
    box-sizing: border-box;
}

.stock-details-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 0; /* 移除底部间距，由.section-header的margin-bottom控制总间隙 */
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* 操作按钮组样式 */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    z-index: 10; /* 确保按钮在图表上方 */
    position: relative; /* 启用z-index */
}

.action-buttons div {
    flex: 1; /* 让按钮等分空间 */
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

/* 输入与发送行样式 */
.action-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.action-input #action-send {
    flex: 0 0 auto;
    min-width: 80px;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    background-color: #e3f2fd;
    color: #2196f3;
}

.action-input #action-send:hover {
    background-color: #bbdefb;
}

/* 全撤按钮特殊颜色 */
#btn-cancel-all {
    background-color: #ffebee;
    color: #d32f2f;
}

#btn-cancel-all:hover {
    background-color: #ffcdd2;
}

/* 全平按钮特殊颜色 */
#btn-close-all {
    background-color: #e8f5e8;
    color: #388e3c;
}

#btn-close-all:hover {
    background-color: #c8e6c9;
}

/* 暂停开仓按钮颜色 */
#btn-pause-open {
    background-color: #fff3e0;
    color: #ef6c00;
}
#btn-pause-open:hover {
    background-color: #ffe0b2;
}

/* 暂停交易按钮颜色 */
#btn-pause-trade {
    background-color: #ede7f6;
    color: #5e35b1;
}
#btn-pause-trade:hover {
    background-color: #d1c4e9;
}

/* 暂停态样式（按钮切换时加深提示） */
.action-buttons div.paused {
    filter: saturate(1.2) brightness(0.95);
}

/* 调整股票列表与搜索框的间距 */
.stock-list {
    overflow-y: auto; /* 显示垂直滚动条 */
    margin-top: 0; /* 设置上边距为0，与.section-header的margin-bottom:5px形成总间隙5px */
    margin-bottom: 0; /* 设置下边距为0 */
    flex: 1; /* 自动填充剩余空间，利用容器的padding实现底部5px间隙 */
}

/* 滚动条样式 */
.stock-list::-webkit-scrollbar {
    width: 8px;
}

.stock-list::-webkit-scrollbar-track {
    background-color: var(--bg-secondary);
}

.stock-list::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary);
    border-radius: 4px;
}

.stock-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    height: auto;
    min-height: 60px;
}

.stock-item:hover {
    background-color: var(--hover-bg);
}

.stock-item.selected {
    background-color: rgba(74, 144, 226, 0.1); /* 使用与主题相关的半透明背景色 */
    border-left: 3px solid var(--accent-color);
    color: var(--text-primary);
}

.stock-item-info {
    flex: 1;
    min-width: 0; /* 允许flex项缩小 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.stock-item-name {
    font-weight: normal;
    color: var(--text-primary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 添加自动缩小文字功能 */
    font-size: clamp(11px, 1.8vw, 14px); /* 最小11px，基于视窗宽度自动调整，最大14px */
    margin-bottom: 2px;
}

.stock-item-code {
    color: var(--text-secondary);
    font-size: clamp(9px, 1.2vw, 12px); /* 最小9px，基于视窗宽度自动调整，最大12px */
}

.stock-item-price {
    text-align: right;
    min-width: fit-content; /* 确保价格信息不会被压缩 */
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-items: flex-end;
}

.price-value {
    font-weight: bold;
    font-size: clamp(11px, 1.8vw, 14px); /* 最小11px，基于视窗宽度自动调整，最大14px */
}

.price-up {
    color: var(--danger-color);
}

.price-down {
    color: var(--success-color);
}

.price-change {
    font-size: clamp(9px, 1.2vw, 12px); /* 最小9px，基于视窗宽度自动调整，最大12px */
    margin-left: 0;
    margin-top: 2px;
}

/* 右侧股票详情样式 */
.stock-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.stock-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
    flex: 1; /* 占据剩余空间，实现左对齐 */
}

.stock-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

#stock-current-price {
    font-size: 28px;
    font-weight: bold;
}

/* 详情内容的左右两列布局 */
.details-content {
    display: flex;
    gap: 5px;
    width: 100%;
    flex: 1; /* 自动填充剩余空间 */
    background-color: var(--bg-primary);
}

/* 左侧图表列 */
.chart-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 右侧操作和列表列 */
.right-column {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow-y: auto;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1; /* 确保图表容器层级正确 */
}

/* TradingView图表容器样式 */
#tv_chart_container {
    width: 100% !important;
    height: 100% !important; /* 确保图表填满整个容器 */
}

.chart-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.chart-type-btn, .toggle-column-btn {
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.toggle-column-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-type-btn:hover {
    background-color: #f8f9fa;
}

.chart-type-btn.active {
    background-color: #2196f3;
    color: white;
    border-color: #2196f3;
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.3);
}

/* 委托下单表单样式 */
.order-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-form h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.order-type {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.order-type-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.order-type-btn.active {
    background-color: #2196f3;
    color: white;
    border-color: #2196f3;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.quick-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.quick-amount-btn {
    flex: 1;
    padding: 8px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.quick-amount-btn:hover {
    background-color: #f0f0f0;
}

.submit-order-btn {
    width: 100%;
    padding: 12px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-order-btn:hover {
    background-color: #1976d2;
}

/* 委托和成交列表的并列布局容器 */
.lists-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

/* 委托列表样式 - 移除固定高度和滚动条，改为自适应内容 */
.orders-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
}

/* 移除订单项容器的滚动功能 */
.orders-list {
    flex: none;
    overflow-y: visible;
    min-height: auto;
}

.orders-container h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.orders-list {
    flex: none;
    overflow-y: visible;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.order-item-info {
    flex: 1;
}

.order-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 10px;
}

.order-buy {
    background-color: #e3f2fd;
    color: #1976d2;
}

.order-sell {
    background-color: #ffebee;
    color: #d32f2f;
}

.order-price, .order-quantity, .order-status {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
}

.cancel-order-btn {
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.cancel-order-btn:hover {
    background-color: #d32f2f;
}

/* 成交列表样式 - 移除固定高度和滚动条，改为自适应内容 */
.trades-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 0;
}

.trades-container h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.trades-list {
    flex: none;
    overflow-y: visible;
    min-height: auto;
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.trade-item-info {
    flex: 1;
}

.trade-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 10px;
}

.trade-buy {
    background-color: #e3f2fd;
    color: #1976d2;
}

.trade-sell {
    background-color: #ffebee;
    color: #d32f2f;
}

.trade-price, .trade-quantity, .trade-time {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
}

/* 隐藏TradingView logo和水印 */
.chart-container .logo,
.tv-logo-container,
.tv-watermark,
.chart-container .watermark,
.tradingview-widget-copyright,
.chart-markup-table .watermark,
#tv_chart_container .logo,
#tv_chart_container .watermark,
.tv-chart-container__logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: -1 !important;
}
