/* 全局样式重置和基础设置 */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --info-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: white !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* 主体内容样式 */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 2.5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 工具卡片网格布局 */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 工具卡片样式 */
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.tool-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.tool-card p {
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 16px;
}

.tool-card .btn {
    align-self: center;
    padding: 8px 20px;
}

.tool-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* 算法信息样式 */
.algorithm-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.algorithm-info h4 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.algorithm-info p {
    margin-bottom: 10px;
    color: #495057;
    font-size: 0.95rem;
}

.algorithm-info .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 5px;
}

.badge-symmetric { background: #d4edda; color: #155724; }
.badge-asymmetric { background: #d1ecf1; color: #0c5460; }
.badge-hash { background: #fff3cd; color: #856404; }
.badge-encode { background: #e2e3e5; color: #383d41; }

/* 加密工具部分样式 */
.tool-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-section h2 i {
    color: var(--primary-color);
}

/* 结果显示样式 */
.result {
    margin-top: 20px;
    padding: 15px;
    padding-top: 55px; /* 为复制按钮留出空间 */
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    display: none;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
}

.result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* 加载动画样式 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 历史记录样式 */
.history-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border-left: 4px solid #6c757d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.history-section h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.history-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
    overflow: hidden;
}

.history-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-input,
.history-output {
    word-break: break-word;
    font-size: 0.95rem;
}

.history-output {
    color: #666;
    font-style: italic;
}

.history-item .algorithm {
    font-weight: 600;
    color: #667eea;
    display: inline-block;
    margin-right: 10px;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.history-item .time {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 13px;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* 加载动画增强 */
.result-info {
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* 卡片悬停效果增强 */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* 算法信息卡片样式增强 */
.algorithm-info {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.algorithm-info:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.algorithm-info h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.2rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .copy-btn {
        position: relative;
        margin-bottom: 10px;
        top: auto;
        right: auto;
        width: 100%;
    }
    
    .result {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* 表单增强样式 */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 自定义复选框和单选框 */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 全局样式重置和基础设置 */
* {
    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;
    line-height: 1.6;
}

/* 滚动条样式美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 主内容区域样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 工具卡片样式 */
.tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.tool-card i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #667eea;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tool-card p {
    color: #666;
    margin-bottom: 20px;
}

/* 工具区域样式 */
.tool-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tool-section:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.tool-section h2 {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #4a5568;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
}

.tool-section h2 i, .tool-section h2 svg {
    margin-right: 12px;
    color: #667eea;
}

/* 表单样式增强 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #a0aec0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式美化 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

/* 算法信息样式 */
.algorithm-info {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.algorithm-info:hover {
    border-color: #667eea;
}

.algorithm-info h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.algorithm-info p {
    margin-bottom: 8px;
    color: #4a5568;
}

.algorithm-info .algorithm-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* 结果显示样式 */
.result-container {
    margin-top: 24px;
    transition: all 0.3s ease;
}

.result-area {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    min-height: 120px;
    transition: all 0.3s ease;
}

.result-area:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* 历史记录样式 */
.history {
    max-height: 400px;
    overflow-y: auto;
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.history-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item .operation {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.history-item .details {
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.history-item .time {
    font-size: 0.85rem;
    color: #a0aec0;
    text-align: right;
}

.history-empty {
    text-align: center;
    color: #a0aec0;
    padding: 40px 20px;
    font-style: italic;
}

/* HTTP测试工具特定样式 */
.response-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.status-code {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.status-code.success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-code.error {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-code.loading {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.response-body {
    background: #1e1e2f;
    border-radius: 12px;
    padding: 24px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
    color: #e2e8f0;
    border: 1px solid #2d3748;
    transition: all 0.3s ease;
}

.response-body:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.history-item .url {
    margin: 8px 0;
    color: #4a5568;
    font-size: 0.95rem;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
}

/* 优化HTTP请求页面的间距和布局 */
#requestUrl {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

/* 响应结果高亮样式 */
.response-body json-key {
    color: #ff79c6;
}

.response-body json-string {
    color: #50fa7b;
}

.response-body json-number {
    color: #bd93f9;
}

.response-body json-boolean {
    color: #ff5555;
}

/* 加载动画样式 */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 自定义复选框和单选框样式 */
.form-check {
    margin-bottom: 12px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #667eea;
}

.form-check-label {
    margin-left: 8px;
    font-weight: normal;
    color: #4a5568;
}

/* 工具按钮组样式 */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 复制按钮样式 */
.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid #667eea;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #667eea;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 16px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .tool-section {
        padding: 20px;
    }
    
    .tool-cards {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #43aa8b, #277da1);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #277da1, #43aa8b);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #48cae4, #023e8a);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #023e8a, #48cae4);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #b5179e, #f72585);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* 工具部分样式 */
.tool-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
}

.tool-section h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* 结果显示样式 */
.result {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    word-break: break-all;
    position: relative;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.result-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.copy-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 历史记录样式 */
.history-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--box-shadow);
}

.history-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.history-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* 算法信息样式 */
.algorithm-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--info-color);
}

.algorithm-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.algorithm-feature {
    background: var(--info-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* HTTP工具样式 */
.request-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--info-color);
}

.response-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--success-color);
}

.response-headers {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.response-body {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--dark-color), #1d1e33);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-text {
    margin: 0;
    opacity: 0.9;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-section, .tool-card {
    animation: fadeIn 0.5s ease-out;
}

/* 工具行布局 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .tool-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .tool-section, .request-section, .response-section {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tool-section h2 {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}