/* 基本样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}







/*红字*/
.highlight {
  color: #ff0000;  /* 红色 */
  font-weight: bold;  /* 可选：使文字加粗 */
}

/* 头部 */
.header {
    text-align: center;
    padding: 30px 0;
    background-color: #b71c1c;
    color: white;
    border-radius: 5px;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.header p {
    margin-bottom: 10px;
}

.btn-start {
    background-color: white;
    color: #b71c1c;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}

.btn-start:hover {
    background-color: #f0f0f0;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.left-panel, .right-panel {
    flex: 1;
    min-width: 300px;
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #b71c1c;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.examples {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
}

.examples div {
    padding: 5px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

/* 生成器区域 */
.generator {
    height: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox {
    margin-bottom: 10px;
}

.checkbox input {
    margin-right: 8px;
}

.threads-control {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.btn-sm {
    width: 30px;
    height: 30px;
    background-color: #b71c1c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-generate, .btn-stop, .btn-export {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-generate {
    background-color: #b71c1c;
    color: white;
    flex: 1;
}

.btn-stop {
    background-color: #757575;
    color: white;
    flex: 1;
}

.btn-export {
    background-color: #2196f3;
    color: white;
    margin-top: 15px;
}

.btn-generate:hover {
    background-color: #9b1717;
}

.btn-stop:hover {
    background-color: #616161;
}

.btn-export:hover {
    background-color: #0c7cd5;
}

.btn-generate:disabled, .btn-stop:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* 统计信息 */
.stats {
    margin-top: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: bold;
}

.progress-container {
    margin-top: 15px;
}

.progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress {
    height: 100%;
    background-color: #b71c1c;
    width: 0%;
}

/* 结果表格 */
.results {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.results h3 {
    margin-bottom: 15px;
    color: #b71c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

table td {
    font-family: monospace;
    word-break: break-all;
}

.table-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.table-btn:hover {
    background-color: #0c7cd5;
}

/* 底部 */
.footer {
    text-align: center;
    margin-top: 30px;
    color: #757575;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
}