/* 🌙 深夜墨韵主题 - 神秘优雅的夜色设计 */
.theme-midnight {
    color: #d1d5db;
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.theme-midnight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(100, 181, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 39, 176, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.theme-midnight h1,
.theme-midnight h2,
.theme-midnight h3,
.theme-midnight h4,
.theme-midnight h5,
.theme-midnight h6 {
    color: #f9fafb;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.theme-midnight h1 {
    font-size: 2.8em;
    text-align: center;
    border: none;
    margin-bottom: 2em;
    background: linear-gradient(135deg, #ffffff, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.theme-midnight h1::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -40px;
    font-size: 0.4em;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.theme-midnight h2 {
    border-left: 4px solid #64b5f6;
    padding-left: 20px;
    border-bottom: 1px solid rgba(100, 181, 246, 0.3);
    padding-bottom: 12px;
    background: linear-gradient(90deg, rgba(100, 181, 246, 0.1) 0%, transparent 100%);
    border-radius: 0 10px 10px 0;
    position: relative;
}

.theme-midnight h2::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #64b5f6, #9c27b0);
    border-radius: 2px;
}

.theme-midnight h3 {
    color: #90caf9;
    position: relative;
    padding-left: 30px;
}

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

.theme-midnight p {
    line-height: 1.8;
    text-align: justify;
    margin: 1.8em 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-midnight blockquote {
    border-left: 4px solid #9c27b0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(100, 181, 246, 0.05));
    color: #e1bee7;
    padding: 25px 30px;
    margin: 2.5em 0;
    border-radius: 0 15px 15px 0;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(156, 39, 176, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.theme-midnight blockquote::before {
    content: '💭';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.6;
}

.theme-midnight a {
    color: #64b5f6;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.theme-midnight a:hover {
    color: #90caf9;
    border-bottom-color: #64b5f6;
    text-shadow: 0 0 15px rgba(144, 202, 249, 0.8);
    transform: translateY(-1px);
}

.theme-midnight strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.theme-midnight code {
    background: rgba(100, 181, 246, 0.1);
    color: #90caf9;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(100, 181, 246, 0.2);
    text-shadow: 0 0 5px rgba(144, 202, 249, 0.3);
}

.theme-midnight .simblock-code-header {
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
    color: #e8e6e3;
    border-bottom: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 15px 15px 0 0;
    padding: 18px 25px;
    position: relative;
    backdrop-filter: blur(10px);
}

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

.theme-midnight .simblock-code-lang {
    color: #90caf9;
    font-weight: 600;
    margin-left: 35px;
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.5);
}

.theme-midnight .simblock-copy-btn {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.2), rgba(156, 39, 176, 0.2));
    color: #e8e6e3;
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 25px;
    padding: 8px 18px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.theme-midnight .simblock-copy-btn:hover {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.3), rgba(156, 39, 176, 0.3));
    border-color: rgba(100, 181, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.3);
}

.theme-midnight .simblock-code-block {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(100, 181, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-midnight .simblock-code-block pre {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #f3f4f6;
    padding: 25px;
    border: none;
    font-family: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    text-shadow: none;
    border-radius: 0 0 15px 15px;
}

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

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

.theme-midnight li::marker {
    color: #64b5f6;
}

.theme-midnight table {
    border-collapse: collapse;
    width: 100%;
    margin: 2.5em 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.theme-midnight th {
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
    color: #ffffff;
    padding: 18px 20px;
    font-weight: 600;
    text-align: left;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.theme-midnight td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
}

.theme-midnight tr:hover td {
    background: rgba(100, 181, 246, 0.05);
    box-shadow: inset 0 0 20px rgba(100, 181, 246, 0.1);
}