#guidgen-x9b7f2e {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* 控制面板 */
.control-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    padding: 20px;
}

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

.control-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.control-field label {
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

#guidgen-count {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

#guidgen-count:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 1px rgba(77, 171, 247, 0.2);
}

.field-hint {
    color: #868e96;
    font-size: 12px;
    white-space: nowrap;
}

.control-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.option-item label {
    font-weight: normal;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #495057;
}

/* 按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 8px 20px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.btn-primary {
    background: #339af0;
    color: white;
    border-color: #339af0;
}

.btn-primary:hover {
    background: #228be6;
    border-color: #228be6;
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 结果面板 */
.result-panel {
    background: white;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.result-count {
    font-weight: normal;
    color: #868e96;
    font-size: 13px;
}

#guidgen-output {
    width: 100%;
    min-height: 150px;
    padding: 20px;
    border: none;
    resize: vertical;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: white;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
}

#guidgen-output:focus {
    outline: none;
    background: #fafafa;
}

/* 状态提示 */
.status-message {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    border: 1px solid transparent;
    display: none;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
    display: block;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    border-color: #ffcdd2;
    display: block;
}

/* 信息面板 */
.info-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.info-section h4 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 8px 0;
}

.info-section p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.info-section ul {
    margin: 8px 0 16px 0;
    padding-left: 20px;
}

.info-section li {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.info-section strong {
    color: #495057;
    font-weight: 600;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .control-field {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .control-options {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: row;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        min-width: 0;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    #guidgen-output {
        min-height: 120px;
        padding: 15px;
        font-size: 12px;
    }
    
    .info-panel {
        padding: 15px;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .control-row {
        gap: 15px;
    }
    
    .control-options {
        gap: 15px;
    }
    
    .action-buttons {
        gap: 10px;
    }
}