:root{
    --primary-color: #003DA8;
    --secondary-color: #0088FF;
    --accent-color: #22EE22;
    --bg-color: #f5f7fa;
    --menu-bg-color: #1a2438;
    --font-color: #333;
    --menu-font-color: #e6e9f0;
    --active-font-color: #fff;
    --active-bg-color: #0088FF;
    --card-bg-color: #fff;
    --border-color: #e1e5eb;
    --shadow-color: rgba(0, 61, 168, 0.1);
}

body{
    margin: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--font-color);
}

.home {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.menu {
    width: 240px;
    background-color: var(--menu-bg-color);
    color: var(--menu-font-color);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.menu-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.menu-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px 0;
}

.menu-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.menu-item {
    padding: 12px 20px;
    margin: 5px 10px;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    color: var(--menu-font-color);
}

.menu-item > a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.menu-item:hover {
    background-color: rgba(0, 136, 255, 0.15);
    transform: translateX(5px);
}

.menu-item.active {
    background-color: var(--active-bg-color);
    color: var(--active-font-color);
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.3);
}

.menu-item:before {
    content: "•";
    margin-right: 10px;
    font-size: 20px;
    opacity: 0.7;
}

.example {
    flex: 1;
    overflow-y: auto;
    margin-left: 240px;
    padding: 30px;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.example-section {
    margin-bottom: 40px;
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease;
}

.example-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 61, 168, 0.15);
}

.example-title-h1 {
    font-size: 26px;
    margin: 0 0 25px 0;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    position: relative;
}

.example-title-h1:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--accent-color);
}

.contentChild {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.example-item {
    background: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 280px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 61, 168, 0.15);
    border-color: var(--secondary-color);
}

.example-title {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-bottom: 1px solid var(--border-color);
}

.example-item > div:nth-child(2) {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.example-item:hover > div:nth-child(2) {
    transform: scale(1.05);
}

.warning-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.warning-banner h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.warning-banner p {
    margin: 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .menu {
        width: 200px;
    }
    
    .example {
        margin-left: 200px;
        padding: 20px;
    }
    
    .contentChild {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu {
        width: 60px;
        padding: 20px 0;
    }
    
    .menu-header,
    .menu-item > a > span {
        display: none;
    }
    
    .menu-item {
        padding: 15px;
        justify-content: center;
    }
    
    .menu-item:before {
        margin: 0;
    }
    
    .example {
        margin-left: 60px;
        padding: 15px;
    }
    
    .contentChild {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}