/* styles.css */



body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: #333;
    overflow: hidden;
    background-color: #f8f9fa;
}

#container {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 600px; /* 添加最小宽度防止压缩 */
}

.sidebar {
    width: 280px;
    flex-shrink: 0; /* 防止侧边栏被压缩 */
    background-color: #2b303b;
    color: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 500;
}

.sidebar li {
    margin: 8px 0;
    padding: 12px 15px;
    background-color: #3a404d;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar li:hover {
    background-color: #4a90e2;
    transform: translateX(4px);
}

.sidebar li:active {
    transform: scale(0.98);
}

.content {
    flex-grow: 1;
    min-width: 300px; /* 内容区域最小宽度 */
    padding: 30px;
    background-color: #ffffff;
    overflow-y: auto;
    height: 100vh;
    box-sizing: border-box;
    overflow-x: auto; /* 内容过多时允许水平滚动 */
}

.content header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.content h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #2b303b;
}

#content-area {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
}

/* 新增点击特效 */
.sidebar li {
    position: relative;
    overflow: hidden;
}

.sidebar li::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.sidebar li:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}


.highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}
  
  