/* 重置一些默认样式 */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background-color: #f4f4f4; color: #333; line-height: 1.6; } /* 容器样式 */ .container { width: 80%; margin: 50px auto; text-align: center; } /* 标题 */ h1, h2 { color: #444; font-size: 24px; margin-bottom: 20px; } /* 按钮样式 */ button { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; cursor: pointer; font-size: 16px; margin-top: 10px; border-radius: 5px; } button:hover { background-color: #45a049; } /* 输入框样式 */ textarea, select, input[type="number"], input[type="checkbox"] { width: 100%; padding: 10px; margin: 10px 0; border-radius: 5px; border: 1px solid #ddd; font-size: 16px; } /* 表格样式 */ table { width: 100%; border-collapse: collapse; margin-top: 20px; } table, th, td { border: 1px solid #ddd; } th, td { padding: 10px; text-align: left; } th { background-color: #f2f2f2; } /* 页面内容区 */ #settings-page, #manual-detect-page, #auto-detect-toggle, #intercept-logs-page, #system-logs-page { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); margin-top: 20px; } /* 结果展示区域 */ #manual-result, #auto-detect-toggle, #intercept-logs-page, #system-logs-page { margin-top: 20px; font-size: 18px; } /* 间距与对齐 */ label { font-size: 16px; display: block; margin-top: 10px; } input[type="number"], select, textarea { max-width: 300px; margin: 10px auto; display: block; } /* 开关样式 */ input[type="checkbox"] { width: 20px; height: 20px; } /* 手动检测文本框 */ textarea { height: 120px; } /* 日志页面内容 */ #intercept-logs-page, #system-logs-page { overflow-y: auto; max-height: 300px; } #intercept-logs-page table, #system-logs-page table { margin-top: 10px; }