* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Header样式更新 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-text {
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
}

.manual-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.manual-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.tool-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tool-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-height: 500px;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.sub-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.sub-nav-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sub-nav-btn:hover {
    background: #f0f0f0;
    border-color: #6c5ce7;
}

.sub-nav-btn.active {
    background: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

.generator-content {
    display: none;
}

.generator-content.active {
    display: block;
}

.tool-panel h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.age-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-range input {
    flex: 1;
    width: auto;
}

.age-range span {
    color: #666;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.generate-btn,
.convert-btn,
.copy-btn,
.clear-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.generate-btn:hover,
.convert-btn:hover,
.copy-btn:hover,
.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.result-area {
    margin-top: 25px;
}

.result-area textarea {
    min-height: 150px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.converter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.converter-section h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.result-display {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 2px solid #e0e0e0;
    min-height: 50px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

#text-input {
    min-height: 200px;
    resize: vertical;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tool-nav {
        gap: 5px;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .tool-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .manual-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* 文本对比工具样式 */
.compare-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

.option-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.compare-section h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.compare-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.compare-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.text-info {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.compare-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.compare-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.compare-result h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    font-weight: 600;
    color: #555;
}

.summary-value {
    font-weight: bold;
    color: #667eea;
}

.diff-display {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.diff-hint {
    color: #999;
    text-align: center;
    font-style: italic;
}

.diff-line {
    padding: 2px 5px;
    margin: 1px 0;
    border-radius: 3px;
    white-space: pre-wrap;
    word-break: break-all;
}

.diff-same {
    background: #f8f9fa;
    color: #333;
}

.diff-added {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.diff-removed {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.diff-modified {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.line-number {
    display: inline-block;
    width: 40px;
    color: #999;
    font-size: 0.8rem;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .compare-container {
        grid-template-columns: 1fr;
    }
    
    .compare-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
    }
}

.copy-success {
    background: #28a745 !important;
    color: white !important;
}

/* 正则表达式测试工具样式 */
.regex-container {
    display: flex;
    gap: 20px;
    height: 600px;
}

.regex-input-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.regex-result-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.regex-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.regex-delimiter {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

#regex-pattern {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

#regex-flags {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
}

.regex-flags-help {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.regex-flags-help span {
    font-size: 12px;
    color: #666;
}

.flag-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.2s;
}

.flag-btn:hover {
    background: #e9ecef;
}

.flag-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

#test-text {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    min-height: 200px;
}

.regex-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.regex-info {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-weight: 500;
    color: #666;
}

.status-valid {
    color: #28a745;
    font-weight: 500;
}

.status-invalid {
    color: #dc3545;
    font-weight: 500;
}

/* JSON数据对比工具样式 */
.json-compare-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.json-input-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.json-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.json-input-group {
    display: flex;
    flex-direction: column;
}

.json-input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.json-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.json-input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.json-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.compare-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.json-result-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.json-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-weight: 600;
    color: #495057;
}

.differences-container,
.structure-container,
.summary-container {
    min-height: 200px;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
}

.differences-display h4,
.structure-display h4,
.summary-display h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-item span:last-child {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.difference-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    border-radius: 4px;
}

.difference-added {
    border-left-color: #28a745;
    background: #f0fff4;
}

.difference-modified {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.difference-removed {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.json-path {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
}

.json-value {
    font-family: 'Courier New', monospace;
    padding: 2px 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    margin: 0 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .json-inputs {
        grid-template-columns: 1fr;
    }
    
    .json-status {
        grid-template-columns: 1fr;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compare-actions {
        flex-direction: column;
        align-items: center;
    }
}

.result-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: white;
    border-bottom-color: #007bff;
    font-weight: 500;
}

.tab-content {
    flex: 1;
    overflow: hidden;
}

.tab-panel {
    display: none;
    height: 100%;
    padding: 15px;
    overflow-y: auto;
}

.tab-panel.active {
    display: block;
}

.matches-display {
    margin-bottom: 20px;
}

.highlighted-text {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
}

.regex-match {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    padding: 1px 3px;
    margin: 0 1px;
}

.matches-container,
.groups-container {
    max-height: 250px;
    overflow-y: auto;
}

.match-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.match-index {
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.match-text {
    background: #fff3cd;
    padding: 4px 6px;
    border-radius: 3px;
    word-break: break-all;
}

.match-position {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
}

.group-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
}

.group-header {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.group-content {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.group-text {
    background: #e7f3ff;
    padding: 4px 6px;
    border-radius: 3px;
    word-break: break-all;
    margin-bottom: 4px;
}

.replace-output {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

.placeholder-text {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

.help-icon {
    display: inline-block;
    margin-left: 5px;
    color: #666;
    font-size: 14px;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.help-icon:hover {
    opacity: 1;
    color: #007bff;
}

/* 正则工具响应式设计 */
@media (max-width: 768px) {
    .regex-container {
        flex-direction: column;
        height: auto;
    }
    
    .regex-result-section {
        min-height: 400px;
    }
    
    .regex-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .regex-flags-help {
        justify-content: center;
    }
}

/* 时间处理工具样式 */
.time-convert-section,
.date-calc-section,
.date-diff-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.convert-row,
.calc-row,
.diff-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.convert-row input,
.convert-row select,
.calc-row input,
.calc-row select,
.diff-row input {
    flex: 1;
    min-width: 120px;
}

.convert-arrow {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c5ce7;
    margin: 0 5px;
}

.time-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row span {
    color: #555;
    font-size: 0.9rem;
}

.special-dates {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.calc-btn {
    padding: 8px 16px;
    background: #74b9ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.calc-btn:hover {
    background: #0984e3;
}

/* 时间工具响应式设计 */
@media (max-width: 768px) {
    .convert-row,
    .calc-row,
    .diff-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .convert-row input,
    .convert-row select,
    .calc-row input,
    .calc-row select,
    .diff-row input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .convert-arrow {
        text-align: center;
        margin: 5px 0;
    }
    
    .table-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .special-dates {
        flex-direction: column;
    }
    
    .calc-btn {
        width: 100%;
    }
}

/* 日志分析工具样式 */
.log-preview {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 15px;
}

.log-preview h3 {
    margin: 0;
    padding: 15px;
    background: #e9ecef;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    color: #495057;
}

.preview-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    background: white;
}

.file-info {
    margin-top: 10px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 4px;
    font-size: 14px;
    color: #0066cc;
}

.stats-overview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.analysis-charts {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.chart-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.chart-item h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.chart-display {
    background: white;
    padding: 15px;
    border-radius: 4px;
    min-height: 150px;
    border: 1px solid #dee2e6;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.filter-options,
.search-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-row,
.search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-group,
.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin: 0;
}

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

.search-options-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin: 0;
}

.filter-actions,
.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.filtered-results,
.search-results {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.search-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.log-line {
    padding: 5px 10px;
    margin: 2px 0;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
}

.log-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.log-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.log-info {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.log-debug {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.log-normal {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    color: #495057;
}

.highlight-match {
    background: #ffeb3b;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

.log-timestamp {
    color: #6c757d;
    font-weight: 500;
}

.log-level {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.level-error {
    background: #dc3545;
    color: white;
}

.level-warning {
    background: #ffc107;
    color: #212529;
}

.level-info {
    background: #28a745;
    color: white;
}

.level-debug {
    background: #17a2b8;
    color: white;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.chart-label {
    width: 80px;
    font-size: 12px;
    color: #495057;
}

.chart-bar-fill {
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    margin-right: 10px;
    min-width: 2px;
}

.chart-value {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

/* 日志分析工具响应式设计 */
@media (max-width: 768px) {
    .chart-container {
        grid-template-columns: 1fr;
    }
    
    .filter-row,
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group,
    .search-group {
        min-width: auto;
        width: 100%;
    }
    
    .checkbox-group,
    .search-options-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-actions,
    .search-actions {
        flex-direction: column;
    }
    
    .filter-actions button,
    .search-actions button {
        width: 100%;
    }
}

/* 使用手册模态框样式 */
.manual-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
    background: #e9ecef;
    border-radius: 50%;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

/* 图片格式转换工具样式 */
.image-upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-area p {
    margin: 10px 0;
    color: #666;
}

.upload-hint {
    font-size: 0.9rem;
    color: #999;
}

.upload-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    pointer-events: all;
}

.upload-btn:hover {
    background: #0056b3;
}

/* 压缩功能样式 */
.size-target-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.size-target-controls input[type="number"] {
    width: 100px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.size-target-controls select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

.auto-compress-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.auto-compress-btn:hover {
    background: #218838;
}

.compression-progress {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.compression-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.image-preview-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 20px;
    align-items: start;
}

.original-image, .converted-image {
    text-align: center;
}

.original-image h3, .converted-image h3 {
    margin-bottom: 15px;
    color: #333;
}

.image-info {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.image-info canvas {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.image-details {
    text-align: left;
    font-size: 0.9rem;
}

.image-details p {
    margin: 5px 0;
    color: #666;
}

.image-details span {
    font-weight: bold;
    color: #333;
}

.conversion-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #ddd;
}

.conversion-controls h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.conversion-controls .form-group {
    margin-bottom: 20px;
}

.conversion-controls label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.conversion-controls select,
.conversion-controls input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.conversion-controls input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

#quality-value {
    font-weight: bold;
    color: #007bff;
}

.size-controls {
    margin-top: 10px;
}

.size-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.size-inputs input[type="number"] {
    width: 80px;
    flex: none;
}

.size-inputs span {
    font-weight: bold;
    color: #666;
}

.size-inputs label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    margin: 0;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.download-btn:hover {
    background: #218838;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .conversion-controls {
        order: -1;
    }
}

/* 编码处理工具样式 */
.encoding-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.input-section,
.output-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.input-section h3,
.output-section h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.encoding-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: #fff;
    transition: border-color 0.3s ease;
}

.encoding-section textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 密钥输入区域样式 */
.key-section {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.key-section h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.key-section input,
.key-section textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.key-section input:focus,
.key-section textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.key-section input {
    height: 36px;
}

.key-section textarea {
    min-height: 80px;
    resize: vertical;
}

.encoding-section textarea[readonly] {
    background: #f8f9fa;
    color: #495057;
}

.encoding-actions,
.output-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.encoding-actions button,
.output-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.encoding-actions .generate-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.encoding-actions .generate-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea080);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.encoding-actions .clear-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.encoding-actions .clear-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.encoding-actions .copy-btn,
.output-actions .copy-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.encoding-actions .copy-btn:hover,
.output-actions .copy-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.output-actions .download-btn {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
    color: white;
}

.output-actions .download-btn:hover {
    background: linear-gradient(135deg, #e8590c, #dc5200);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(253, 126, 20, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .encoding-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .encoding-actions,
    .output-actions {
        justify-content: center;
    }
    
    .encoding-actions button,
    .output-actions button {
        flex: 1;
        min-width: 0;
    }
}

/* 编码处理工具样式结束 */