/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 25%, #f1f5f9 50%, #ffffff 75%, #f8fafc 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #334155;
    line-height: 1.7;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 32px rgba(59, 130, 246, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1d4ed8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 3px 6px rgba(59, 130, 246, 0.25));
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
}

.nav-brand::first-letter {
    color: initial;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.nav-brand:hover {
    transform: scale(1.08) translateY(-1px);
    filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.35));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 24px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    margin: 0 6px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.nav-link.active {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(29, 78, 216, 0.08));
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #666;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
}

/* 页面内容区域 */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页样式 */
.hero {
    text-align: center;
    margin-bottom: 60px;
    color: #334155;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 25%, #1e40af 50%, #1e3a8a 75%, #172554 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.25));
    animation: titleGlow 4s ease-in-out infinite alternate;
    text-align: center;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.25));
        transform: translateY(0px);
    }
    100% {
        filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.35));
        transform: translateY(-2px);
    }
}

.hero p {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
    text-align: center;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.01em;
}

.author-info {
    margin-top: 30px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(200%);
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.author-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af, #1e3a8a);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.author-info:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.author-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #334155;
}

.author-info strong {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .author-info {
        padding: 16px;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 10px;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .author-info {
        padding: 12px;
        margin-top: 20px;
    }
    
    .author-info p {
        font-size: 1rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 16px;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(200%);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 64px rgba(59, 130, 246, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 20px 16px;
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 工具页面样式 */
.tool-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(200%);
    border-radius: 28px;
    padding: 48px;
    margin-bottom: 48px;
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.03), transparent);
    transition: left 1s ease;
}

.tool-container:hover::before {
    left: 100%;
}

.tool-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(59, 130, 246, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .tool-container {
        padding: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .tool-container {
        padding: 20px;
        margin-bottom: 16px;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.tool-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.tool-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e40af;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.tool-header h2::first-letter {
    color: initial;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

@media (max-width: 768px) {
    .tool-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .tool-header h2 {
        font-size: 1.5rem;
    }
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #334155;
}

.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 16px rgba(59, 130, 246, 0.08);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .form-control {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-control {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.form-control::placeholder {
    color: #999;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25), 0 2px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a8a 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-right: 6px;
        margin-bottom: 6px;
    }
}

.btn-secondary {
    background: #64748b;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: #475569;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* 搜索功能样式 */
.search-container {
    margin-top: 20px;
    margin-bottom: 12px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(200%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 16px rgba(59, 130, 246, 0.12);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #334155;
    padding: 8px 12px;
    font-family: inherit;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* JSON代码显示样式 */
.json-code-container {
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.json-code-header {
    background: rgba(59, 130, 246, 0.05);
    padding: 8px 16px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.json-code-content {
    display: flex;
    max-height: 500px;
    overflow: auto;
}

.json-line-numbers {
    background: rgba(59, 130, 246, 0.03);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
    padding: 12px 8px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
    user-select: none;
    min-width: 50px;
    text-align: right;
}

.json-code-lines {
    flex: 1;
    padding: 12px 16px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
    white-space: pre;
    overflow-x: auto;
}

/* JSON语法高亮样式 */
.json-key {
    color: #0066cc;
    font-weight: 600;
}

.json-string {
    color: #22863a;
}

.json-number {
    color: #005cc5;
    font-weight: 500;
}

.json-boolean {
    color: #d73a49;
    font-weight: 600;
}

.json-null {
    color: #6f42c1;
    font-weight: 600;
    font-style: italic;
}

.json-bracket {
    color: #24292e;
    font-weight: 700;
}

.json-comma {
    color: #586069;
}

/* 编码转换结果样式 */
.encode-result {
    margin-top: 1rem;
}

.encode-result h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.encode-result .result-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

/* 哈希生成结果样式 */
.hash-result {
    margin-top: 1rem;
}

.hash-result h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.hash-value {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: #495057;
    letter-spacing: 0.5px;
}

.hash-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* UUID生成结果样式 */
.uuid-result {
    margin-top: 1rem;
}

.uuid-result h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.uuid-list {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.uuid-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.uuid-item:last-child {
    margin-bottom: 0;
}

.uuid-index {
    color: #6c757d;
    font-weight: bold;
    margin-right: 0.5rem;
    min-width: 30px;
}

.uuid-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
    letter-spacing: 0.5px;
    flex: 1;
}

.uuid-info {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6c757d;
}

.json-search-highlight {
    background: rgba(255, 235, 59, 0.6);
    border-radius: 2px;
    padding: 1px 2px;
}

.json-search-current {
    background: rgba(255, 152, 0, 0.8);
    border-radius: 2px;
    padding: 1px 2px;
    color: #fff;
    font-weight: 600;
}

/* 结果显示区域 */
.result {
    margin-top: 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(200%);
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.15);
    min-height: 60px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #1e40af);
    opacity: 0.7;
}

.result.error {
    background: rgba(254, 242, 242, 0.85);
    backdrop-filter: blur(20px) saturate(200%);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.result.error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
}

.result.success {
    background: rgba(240, 253, 244, 0.85);
    backdrop-filter: blur(20px) saturate(200%);
    border-color: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.result.success::before {
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
}

@media (max-width: 768px) {
    .result {
        padding: 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .result {
        padding: 12px;
        font-size: 11px;
    }
}

.result.success::before {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.result pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 字符串对比样式 */
.diff-container {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 8px;
    overflow: hidden;
}

.diff-added {
    background-color: rgba(40, 167, 69, 0.15);
    color: #155724;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 4px;
}

.diff-removed {
    background-color: rgba(220, 53, 69, 0.15);
    color: #721c24;
    padding: 2px 4px;
    margin: 1px 0;
    border-radius: 4px;
}

.diff-unchanged {
    color: #6c757d;
    padding: 2px 4px;
    margin: 1px 0;
}

/* 时间戳转换特殊样式 */
.timestamp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-link {
        padding: 20px 40px;
        font-size: 1.1rem;
        width: 200px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-container {
        padding: 25px 20px;
    }
    
    .timestamp-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tool-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 6px;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(29, 78, 216, 0.8));
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 1));
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    border-top-color: #0ea5e9;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 页脚样式 */
.footer {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(200%);
    border-top: 2px solid rgba(59, 130, 246, 0.15);
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
    color: #64748b;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #1d4ed8, #1e40af, transparent);
    animation: footerShimmer 4s ease-in-out infinite;
}

@keyframes footerShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

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

.footer-content p {
    margin: 8px 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content p:first-child {
    font-weight: 600;
    color: #334155;
}

.footer-content p:last-child {
    opacity: 0.8;
    font-size: 0.9rem;
}