/* 现代化立体风格和动画 */
body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    min-height: 100vh;
}
.json-app {
    display: flex;
    height: 100vh;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 18px;
    overflow: hidden;
    margin: 24px auto;
    max-width: 1200px;
    background: rgba(255,255,255,0.04);
}
.sidebar {
    width: 280px;
    background: rgba(44, 62, 80, 0.95);
    color: #fff;
    padding: 32px 16px 16px 16px;
    box-shadow: 2px 0 16px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}
.file-list li {
    padding: 12px 18px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.file-list li:hover, .file-list li.active {
    background: linear-gradient(90deg,#00c6ff,#0072ff);
    color: #fff;
    transform: scale(1.04);
}
.main-view {
    flex: 1;
    background: rgba(255,255,255,0.12);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}
.viewer-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}
.current-file {
    font-size: 1rem;
    color: #0072ff;
    font-weight: 500;
    background: rgba(255,255,255,0.18);
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.viewer-content {
    display: flex;
    gap: 32px;
    flex: 1;
    min-height: 0;
}
.json-tree {
    flex: 1.2;
    background: rgba(255,255,255,0.13);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    overflow-y: auto;
    font-size: 1rem;
    animation: fadeInUp 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}
.json-raw {
    flex: 1;
    background: rgba(44,62,80,0.13);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    overflow-y: auto;
    font-size: 0.98rem;
    animation: fadeInUp 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}
.json-raw h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #0072ff;
    font-weight: 600;
}
.notification {
    position: fixed;
    top: 32px;
    right: 32px;
    background: linear-gradient(90deg,#00c6ff,#0072ff);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 99;
}
.notification.show {
    opacity: 1;
    pointer-events: auto;
}
/* 动画 */
@keyframes slideInLeft {
    0% {transform: translateX(-60px); opacity: 0;}
    100% {transform: translateX(0); opacity: 1;}
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
@keyframes fadeInUp {
    0% {transform: translateY(30px); opacity: 0;}
    100% {transform: translateY(0); opacity: 1;}
}
/* JSON树样式 */
.json-key {
    color: #00c6ff;
    font-weight: 600;
}
.json-value-string {
    color: #ffb86c;
}
.json-value-number {
    color: #50fa7b;
}
.json-value-boolean {
    color: #8be9fd;
}
.json-value-null {
    color: #f8f8f2;
}
.json-toggle {
    cursor: pointer;
    margin-right: 6px;
    color: #0072ff;
    font-size: 1.1em;
    transition: transform 0.2s;
}
.json-toggle.collapsed {
    transform: rotate(-90deg);
}
