/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Theme Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;

    --bg-primary: #f8fbff;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-panel: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: #dbeafe;
    --border-hover: #93c5fd;
    --border-focus: #2563eb;

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.12);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-panel: #111827;

    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-color: #1e3a8a;
    --border-hover: #2563eb;
    --border-focus: #60a5fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Styles */
.site-header {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.site-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

/* 移动端菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

/* 汉堡菜单线条 */
.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* 菜单打开时的动画 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.brand-logo i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.brand-logo:hover i {
    transform: rotate(10deg);
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 2.5rem;
}

.site-nav-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.nav-link i {
    font-size: 0.875rem;
}

/* Main Content */
.tool-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.tool-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.tool-section.active {
    display: block;
    animation: slideInUp 0.4s ease-out forwards;
}

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

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tool-header-content {
    flex: 1;
}

.tool-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-header h2 i {
    color: var(--primary-color);
    animation: tool-icon-pulse 2s ease-in-out infinite;
}

@keyframes tool-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

.tool-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
}

.stat-badge.success {
    background: #10b981;
}

.stat-badge.info {
    background: #06b6d4;
}

.stat-badge i {
    font-size: 1rem;
}

.usage-counter,
.validation-streak,
.conversion-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.usage-counter i,
.validation-streak i,
.conversion-counter i {
    color: var(--accent-color);
}

/* Quick Tips */
.quick-tips {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    color: #92400e;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.tip-item i {
    color: var(--accent-color);
    font-size: 1rem;
}

/* Feature Showcase */
.feature-showcase {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Format Preview */
.format-preview {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.format-option:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.format-option.selected {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.format-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.format-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.format-info span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.tool-controls {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Workflow Steps */
.workflow-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.step.active {
    color: var(--primary-color);
}

.step.completed {
    color: var(--primary-color);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    animation: pulse-step 2s infinite;
}

.step.completed .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.step-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: bold;
}

@keyframes pulse-step {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Button Enhancements */
.json-btn.pulse {
    animation: pulse-button 2s infinite;
    position: relative;
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.btn-hint {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    animation: bounce-hint 1s infinite;
}

.btn-hint::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid var(--accent-color);
}

@keyframes bounce-hint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

/* Enhanced Control Group */
.control-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Editor Info Enhancements */
.editor-info {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.next-step {
    color: var(--primary-color);
    font-weight: 600;
    animation: blink-hint 2s infinite;
}

@keyframes blink-hint {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Enhanced JSON Output */
.json-output {
    flex: 1;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--bg-panel);
    color: var(--text-secondary);
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    border-radius: 0;
}

.json-output:empty::before {
    content: "✨ Your formatted JSON will appear here!\n\n👈 Enter JSON in the left panel and click 'Format JSON'";
    color: var(--text-muted);
    font-style: italic;
}

/* Status Indicator Enhancements */
.status-indicator.success {
    color: var(--primary-color);
    animation: success-pulse 0.5s ease;
}

.status-indicator.error {
    color: #ef4444;
    animation: error-shake 0.5s ease;
}

@keyframes success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Quick Help Cards */
.quick-help {
    margin-bottom: 1rem;
}

.help-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.help-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.help-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.help-content ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.help-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Enhanced Placeholders */
.json-editor::placeholder {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* Tool-specific Enhancements */
.validator-input-hint {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    color: #92400e;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validator-input-hint i {
    color: var(--accent-color);
}

/* Success/Error States */
.tool-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.tool-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

/* Interactive Hints */
.interactive-hint {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.interactive-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--primary-color);
}

.interactive-hint.show {
    opacity: 1;
    top: -50px;
}

/* Welcome Section Styles */
.welcome-section {
    padding: 0;
    margin: 0;
}

.welcome-hero {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(16, 185, 129, 0.1) 50%,
        rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-json {
    position: relative;
    width: 100%;
    height: 100%;
}

.json-bubble {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: float-bubble 6s ease-in-out infinite;
    animation-delay: var(--delay);
    backdrop-filter: blur(10px);
}

@keyframes float-bubble {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-20px) scale(1.1); }
    50% { transform: translateY(-10px) scale(1); }
    75% { transform: translateY(-30px) scale(0.9); }
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.welcome-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.title-brand {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.title-subtitle {
    display: block;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.welcome-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.8);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-text h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-action {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.primary-action:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.primary-action:hover .btn-glow {
    left: 100%;
}

.secondary-action {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tools Preview */
.tools-preview {
    margin-top: 2rem;
}

.preview-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.preview-title i {
    color: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s;
}

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

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.tool-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-card:nth-child(1) .tool-badge {
    background: #ef4444;
}

.tool-card:nth-child(2) .tool-badge {
    background: var(--primary-color);
}

.tool-card:nth-child(3) .tool-badge {
    background: #8b5cf6;
}

.tool-card:nth-child(4) .tool-badge {
    background: #06b6d4;
}

.tool-card:nth-child(5) .tool-badge {
    background: #f59e0b;
}

.tool-card:nth-child(6) .tool-badge {
    background: #84cc16;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.json-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.json-btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.json-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.json-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.json-btn.secondary:hover {
    background: var(--border-hover);
    border-color: var(--border-hover);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Select and Input Styles */
.json-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-panel);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.json-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Checkbox Styles */
.json-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.json-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.3s ease;
}

.json-checkbox input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.json-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Workspace Layout */
.json-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.json-workspace.compare-workspace {
    margin-bottom: 1rem;
}

.json-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.json-panel:hover {
    box-shadow: var(--shadow-lg);
}

.json-panel.full-width {
    grid-column: 1 / -1;
}

.json-panel.compare-panel {
    min-height: 300px;
}

.panel-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header h3 i {
    color: var(--primary-color);
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

/* Editor Styles */
.json-editor-container {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.json-editor {
    flex: 1;
    width: 100%;
    border: none;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--bg-panel);
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.json-editor:focus {
    background: var(--bg-primary);
}

.json-output {
    flex: 1;
    padding: 1.5rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--bg-panel);
    color: var(--text-primary);
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.editor-info {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator.success {
    color: var(--primary-color);
}

.status-indicator.error {
    color: #ef4444;
}

.status-indicator.warning {
    color: var(--accent-color);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* Results Sections */
.validation-results,
.comparison-results {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.result-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.result-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-header h3 i {
    color: var(--primary-color);
}

.result-content {
    padding: 1.5rem;
    min-height: 150px;
}

/* Footer */
.json-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .brand-logo {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Validation Results */
.validation-success,
.validation-error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.validation-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.validation-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.result-icon.success {
    color: var(--primary-color);
}

.result-icon.error {
    color: #ef4444;
}

.result-message h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.error-message {
    color: #dc2626;
    font-weight: 500;
}

.error-position {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}





/* Comparison Results */
.comparison-success,
.comparison-error {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.comparison-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.comparison-results {
    padding: 1rem;
}

.result-summary {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.result-summary h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.diff-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diff-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.diff-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.diff-content {
    flex: 1;
}

.diff-path {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.diff-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* JSON Syntax Highlighting */
.json-key {
    color: #059669;
    font-weight: 600;
}

.json-string {
    color: #dc2626;
}

.json-number {
    color: #2563eb;
}

.json-keyword {
    color: #7c3aed;
    font-weight: 600;
}

.json-null {
    color: #6b7280;
    font-style: italic;
}

/* Legacy support for existing classes */
.json-output .json-key {
    color: #059669;
    font-weight: 600;
}

.json-output .json-string {
    color: #dc2626;
}

.json-output .json-number {
    color: #2563eb;
}

.json-output .json-boolean {
    color: #7c3aed;
    font-weight: 600;
}

.json-output .json-null {
    color: #6b7280;
    font-style: italic;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* PC端样式保护 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-nav-container {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        border: none !important;
        display: flex;
    }

    .site-brand {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header优化 */
    .site-header {
        padding: 0.75rem 0;
        box-shadow: var(--shadow-md);
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--bg-panel);
        backdrop-filter: blur(10px);
    }

    .site-nav {
        flex-direction: column;
        gap: 0;
        padding: 0 1rem;
        align-items: stretch;
    }

    /* Brand区域优化 */
    .site-brand {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        margin-bottom: 0;
        padding: 0.5rem 0;
    }

    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* 移动端导航容器 */
    .mobile-nav-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background: var(--bg-panel);
    }

    .mobile-nav-container.active {
        width: 100vw;
        max-height: 500px;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 导航菜单优化 */
    .nav-menu {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        min-height: 60px;
        justify-content: center;
    }

    .nav-link i {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    /* 移动端导航激活状态优化 */
    .nav-link.active {
        background: var(--primary-color);
        color: white;
        transform: none;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }

    .nav-link:hover {
        background: var(--bg-tertiary);
        transform: translateY(-1px);
    }

    .nav-link:active {
        transform: translateY(0);
    }

    /* 工具栏优化 */
    .nav-tools {
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }

    .theme-toggle {
        padding: 0.5rem;
        font-size: 1.1rem;
    }

    .tool-main {
        padding: 1rem;
    }

    .json-workspace {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }



    .diff-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tool-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Welcome Page Mobile */
    .welcome-hero {
        padding: 2rem 1rem;
    }

    .title-brand {
        font-size: 2.5rem;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
    }

    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .quick-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .json-bubble {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-hint {
        display: none !important;
    }

    /* Tool Header Mobile */
    .tool-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .tool-stats {
        align-items: center;
    }

    .quick-tips,
    .feature-showcase,
    .format-preview {
        flex-direction: column;
        align-items: center;
    }

    .tip-item,
    .feature-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .format-option {
        width: 100%;
        max-width: 250px;
    }

    /* Content Pages Mobile */
    .content-header h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tutorial-category,
    .example-category {
        padding: 1.5rem;
    }

    .code-comparison {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .api-features {
        grid-template-columns: 1fr;
    }

    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .limit-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tutorial-text pre,
    .code-example pre,
    .endpoint-content pre {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

    /* Banner Mobile */
    .banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-stats {
        justify-content: center;
        gap: 1rem;
    }

    .banner-stats .stat-number {
        font-size: 2rem;
    }

    .banner-features {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .float-item {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer-main {
        padding: 2rem 1rem;
    }

    .footer-section {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-content {
        padding: 0 1rem;
    }

    .input-group {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-btn {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .legal-links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* Content Pages Styles */
.content-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.content-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.content-header h2 i {
    color: var(--primary-color);
}

.content-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Tutorial Styles */
.tutorial-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tutorial-category {
    background: var(--bg-panel);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tutorial-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.tutorial-category h3 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tutorial-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tutorial-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tutorial-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tutorial-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty.beginner {
    background: #dcfce7;
    color: #166534;
}

.difficulty.intermediate {
    background: #fef3c7;
    color: #92400e;
}

.difficulty.advanced {
    background: #fecaca;
    color: #991b1b;
}

.duration {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.duration::before {
    content: '⏱️';
}

.tutorial-text {
    color: var(--text-primary);
    line-height: 1.7;
}

.tutorial-text h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.tutorial-text h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.tutorial-text ul,
.tutorial-text ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tutorial-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.tutorial-text pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tutorial-text code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.wrong-code,
.correct-code {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.wrong-code {
    border: 2px solid #ef4444;
}

.correct-code {
    border: 2px solid #10b981;
}

.error-label,
.success-label {
    display: block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.error-label {
    background: #ef4444;
    color: white;
}

.success-label {
    background: #10b981;
    color: white;
}

.wrong-code pre,
.correct-code pre {
    margin: 0;
    border: none;
    border-radius: 0;
}

.error-example {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.format-comparison {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 1.5rem 0;
}

.format-example {
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.format-example h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pros-cons {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pros,
.cons {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.pros {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.cons {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.database-example {
    margin: 1.5rem 0;
    background: var(--bg-panel);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.database-example h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Examples Styles */
.examples-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.example-category {
    background: var(--bg-panel);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.example-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.example-category h3 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.example-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.example-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.example-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.example-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.code-example {
    margin: 1.5rem 0;
}

.code-example pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

.example-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.example-notes h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.example-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.example-notes li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}



/* Code Copy Button */
.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-code-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Tutorial Item Expansion */
.tutorial-item.expanded {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.tutorial-item .tutorial-content {
    transition: all 0.3s ease;
}

.tutorial-item:hover .tutorial-content {
    background: rgba(16, 185, 129, 0.02);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(16, 185, 129, 0.2);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    transition: width 0.3s ease;
}

/* Enhanced Tutorial Styles */
.tutorial-text {
    animation: fadeIn 0.3s ease;
}

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

/* Improved Code Blocks */
pre {
    position: relative;
}

pre:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Content Navigation Enhancement */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::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.5s;
}

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

/* Navigation Loading Indicator */
.nav-loading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(16, 185, 129, 0.2);
    overflow: hidden;
}

.nav-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    animation: loadingProgress 0.6s ease-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Enhanced Tooltips */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Hero Banner Styles */
.hero-banner {
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(16, 185, 129, 0.05) 50%,
        rgba(245, 158, 11, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    animation: float-gentle 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(90deg); }
    50% { transform: translateY(-5px) rotate(180deg); }
    75% { transform: translateY(-20px) rotate(270deg); }
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-badge i {
    color: var(--primary-color);
}

.banner-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.banner-stats .stat-item {
    text-align: left;
}

.banner-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    display: block;
    margin-bottom: 0.25rem;
}

.banner-stats .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.banner-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.json-preview {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.preview-header {
    background: var(--bg-secondary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.preview-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.preview-actions {
    display: flex;
    gap: 0.5rem;
}

.action-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.action-dot:nth-child(1) { background: #ef4444; }
.action-dot:nth-child(2) { background: #f59e0b; }
.action-dot:nth-child(3) { background: #10b981; }

.preview-content {
    padding: 1.5rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--bg-panel);
}

.preview-content .json-key {
    color: #059669;
    font-weight: 600;
}

.preview-content .json-string {
    color: #dc2626;
}

.preview-content .json-boolean {
    color: #7c3aed;
    font-weight: 600;
}

.preview-footer {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
}

.format-indicator,
.size-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.format-indicator i {
    color: var(--primary-color);
}

.banner-cta {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Enhanced Footer Styles */
.json-footer {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-main {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-section {
    text-align: center;
    max-width: 500px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand .brand-logo {
    margin-bottom: 1rem;
    justify-content: center;
}

.brand-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-newsletter {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.newsletter-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.newsletter-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

.footer-bottom {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-legal p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}



/* Print Styles */
@media print {
    .nav-menu,
    .copy-code-btn,
    .reading-progress,
    .hero-banner,
    .footer-newsletter {
        display: none !important;
    }

    .tutorial-text {
        display: block !important;
    }

    .tutorial-item {
        break-inside: avoid;
        margin-bottom: 2rem;
    }

    pre {
        break-inside: avoid;
        font-size: 0.75rem;
    }
}

/* 小屏幕手机优化 (480px以下) */
@media (max-width: 480px) {
    /* Header进一步优化 */
    .site-header {
        padding: 0.5rem 0;
    }

    .site-nav {
        padding: 0 0.75rem;
        gap: 0;
    }

    .site-brand {
        padding: 0.4rem 0;
    }

    /* 导航菜单紧凑布局 */
    .nav-menu {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.4rem;
    }

    .nav-link {
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
        min-height: 55px;
        gap: 0.2rem;
    }

    .nav-link i {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }

    /* 工具栏紧凑化 */
    .nav-tools {
        gap: 0.75rem;
        padding-top: 0.4rem;
    }

    .theme-toggle {
        padding: 0.4rem;
        font-size: 1rem;
    }

    /* 主要内容区域 */
    .tool-main {
        padding: 0.75rem;
    }

    .tool-header {
        padding: 1rem;
    }

    .tool-header h2 {
        font-size: 1.3rem;
    }

    /* 按钮优化 */
    .json-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .json-btn i {
        font-size: 0.9rem;
    }

    /* 输入框优化 */
    .json-editor {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    /* Toast通知优化 */
    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        width: auto;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .brand-tagline{
        display: none;
    }

    .banner-visual{
        display: none;
    }

    .banner-text{
        width: 86vw;
    }
}

/* 超小屏幕优化 (360px以下) */
@media (max-width: 360px) {
    .brand-title {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.7rem;
        min-height: 50px;
        padding: 0.5rem 0.3rem;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .json-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .tool-header h2 {
        font-size: 1.2rem;
    }

    .tool-main {
        padding: 0.5rem;
    }
}
