/* 🌲 森林绿意主题 - 清新自然的森林氛围 */
.theme-forest {
    color: #1f2937;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 
        0 12px 40px rgba(34, 197, 94, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(134, 239, 172, 0.4);
}

.theme-forest::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(34, 139, 34, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.theme-forest::after {
    content: '🌿';
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 28px;
    opacity: 0.4;
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.theme-forest h1,
.theme-forest h2,
.theme-forest h3,
.theme-forest h4,
.theme-forest h5,
.theme-forest h6 {
    color: #22543d;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(34, 84, 61, 0.1);
    position: relative;
}

.theme-forest h1 {
    font-size: 2.8em;
    text-align: center;
    border: none;
    margin-bottom: 2em;
    background: linear-gradient(135deg, #22543d, #38a169, #48bb78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.theme-forest h1::before {
    content: '🌳';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    opacity: 0.6;
}

.theme-forest h1::after {
    content: '🌳';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    opacity: 0.6;
}

.theme-forest h2 {
    border-left: 6px solid #48bb78;
    padding-left: 25px;
    border-bottom: 2px solid rgba(72, 187, 120, 0.3);
    padding-bottom: 15px;
    background: linear-gradient(90deg, rgba(72, 187, 120, 0.08) 0%, transparent 100%);
    border-radius: 0 15px 15px 0;
    position: relative;
}

.theme-forest h2::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #48bb78, #38a169, #22543d);
    border-radius: 3px;
}

.theme-forest h3 {
    color: #38a169;
    position: relative;
    padding-left: 35px;
}

.theme-forest h3::before {
    content: '🍃';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.theme-forest p {
    line-height: 1.9;
    text-align: justify;
    margin: 1.8em 0;
    color: #2d3748;
}

.theme-forest blockquote {
    border-left: 5px solid #38a169;
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.05), rgba(72, 187, 120, 0.03));
    color: #22543d;
    padding: 25px 30px;
    margin: 2.5em 0;
    border-radius: 0 18px 18px 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.12);
    font-style: italic;
}

.theme-forest blockquote::before {
    content: '🌱';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.7;
}

.theme-forest blockquote::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(180deg, rgba(56, 161, 105, 0.08), transparent);
    border-radius: 0 18px 18px 0;
}

.theme-forest a {
    color: #2f855a;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.theme-forest a:hover {
    color: #22543d;
    border-bottom-color: #38a169;
    text-shadow: 0 2px 4px rgba(47, 133, 90, 0.3);
    transform: translateY(-1px);
}

.theme-forest strong {
    color: #22543d;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(34, 84, 61, 0.2);
}

.theme-forest code {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.theme-forest .simblock-code-header {
    background: linear-gradient(135deg, #38a169, #22543d);
    color: white;
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    padding: 18px 25px;
    position: relative;
}

.theme-forest .simblock-code-header::before {
    content: '🌲';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.theme-forest .simblock-code-lang {
    color: white;
    font-weight: 600;
    margin-left: 40px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.theme-forest .simblock-copy-btn {
    background: rgba(255,255,255,0.25);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 25px;
    padding: 8px 18px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.theme-forest .simblock-copy-btn:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

.theme-forest .simblock-code-block {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(56, 161, 105, 0.15);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.theme-forest .simblock-code-block pre {
    background: linear-gradient(135deg, #f7fee7, #f0fdf4);
    color: #166534;
    padding: 25px;
    border: none;
    font-family: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    border-radius: 0 0 18px 18px;
}

.theme-forest ul,
.theme-forest ol {
    padding-left: 2.5em;
}

.theme-forest li {
    margin: 1em 0;
    line-height: 1.7;
}

.theme-forest li::marker {
    color: #38a169;
}

.theme-forest table {
    border-collapse: collapse;
    width: 100%;
    margin: 2.5em 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.12);
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.theme-forest th {
    background: linear-gradient(135deg, #38a169, #22543d);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.theme-forest td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(72, 187, 120, 0.1);
    background: rgba(240, 255, 244, 0.7);
}

.theme-forest tr:hover td {
    background: rgba(72, 187, 120, 0.08);
    transform: translateX(3px);
    transition: all 0.3s ease;
}