/* 通用样式 */ body { font-family: sans-serif; line-height: 1.6; margin: 0; padding: 20px; background-color: #f4f4f4; color: #333; } .container { max-width: 900px; margin: auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } h1, h2 { color: #0056b3; } h1 { text-align: center; margin-bottom: 20px; } .status-section { margin-bottom: 20px; padding: 15px; border: 1px solid #ddd; border-radius: 5px; } .status-section h2 { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; color: #007bff; } /* 配置信息和令牌状态样式 */ #config-info p, #token-status p { margin: 5px 0; } #config-info strong, #token-status strong { display: inline-block; width: 120px; /* 固定宽度以便对齐 */ } /* 日志摘要样式 */ #log-summary { background-color: #e9e9e9; padding: 10px; border-radius: 4px; white-space: pre-wrap; /* 保留换行符和空格 */ font-family: monospace; max-height: 300px; /* 限制高度并添加滚动条 */ overflow-y: auto; } /* 表格样式 */ #available-tokens-table { width: auto; /* 调整宽度为内容自适应 */ border-collapse: collapse; /* 合并边框 */ margin-top: 10px; margin-bottom: 10px; /* 增加底部外边距 */ } #available-tokens-table th, #available-tokens-table td { border: 1px solid #ddd; /* 添加边框 */ padding: 8px 12px; /* 增加内边距,左右稍大 */ text-align: left; /* 左对齐文本 */ } #available-tokens-table th { background-color: #e9e9e9; /* 表头背景色 */ font-weight: bold; color: #555; /* 表头文字颜色 */ } #available-tokens-table tbody tr:nth-child(even) { background-color: #f9f9f9; /* 交替行背景色 */ } #available-tokens-table tbody tr:hover { background-color: #e0e0e0; /* 鼠标悬停背景色 */ } #available-tokens-table td:last-child { text-align: center; /* 可用数量列居中对齐 */ }