* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
    color: #00ff00;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 0, 0.01) 25%, rgba(0, 255, 0, 0.01) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.01) 75%, rgba(0, 255, 0, 0.01) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 0, 0.01) 25%, rgba(0, 255, 0, 0.01) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.01) 75%, rgba(0, 255, 0, 0.01) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

body>*:not(.site-header):not(#background-canvas) {
    padding-left: 20px;
    padding-right: 20px;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    filter: brightness(1.5) contrast(1.5) saturate(1.3);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.15);
    padding: 40px 50px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
    animation: terminalBoot 0.8s ease-out;
    border: 1px solid rgba(0, 255, 0, 0.4);
    margin-left: auto;
    margin-right: auto;
}

.container::before {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 11px;
    color: rgba(0, 255, 0, 0.5);
    font-family: 'Consolas', monospace;
    animation: blink 1s infinite;
}

:lang(zh-CN) .container::before {
    content: '> 系统初始化完成_';
}

:lang(en) .container::before {
    content: '> SYSTEM INITIALIZED_';
}

@keyframes terminalBoot {
    from {
        opacity: 0;
        transform: scaleY(0.01) scaleX(0);
    }

    50% {
        opacity: 1;
        transform: scaleY(0.01) scaleX(1);
    }

    to {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.site-header {
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    animation: slideDown 0.6s ease-out;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: 0 2px 20px rgba(0, 255, 0, 0.2);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    overflow: hidden;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.98);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    z-index: 2;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #00ff00;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.logo::before {
    content: '$ ';
    color: #00ff00;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px;
    border-radius: 0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #00ff00;
    transition: all 0.3s;
    position: relative;
    font-family: 'Consolas', monospace;
}

.lang-btn span {
    position: relative;
    z-index: 1;
}

.lang-btn.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5), inset 0 0 10px rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #00ff00;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    font-family: 'Consolas', monospace;
    position: relative;
    animation: electricShock 4s infinite;
}

/* 触电效果 - 从上到下逐段抖动 */
@keyframes electricShock {

    0%,
    85%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    }

    86% {
        clip-path: inset(0 0 90% 0);
        transform: translate(-3px, 0);
        text-shadow: 3px 0 rgba(255, 0, 0, 0.8), -3px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    87% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(3px, 0);
        text-shadow: -3px 0 rgba(255, 0, 0, 0.8), 3px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    88% {
        clip-path: inset(20% 0 70% 0);
        transform: translate(-2px, 0);
        text-shadow: 2px 0 rgba(255, 0, 0, 0.8), -2px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    89% {
        clip-path: inset(30% 0 60% 0);
        transform: translate(2px, 0);
        text-shadow: -2px 0 rgba(255, 0, 0, 0.8), 2px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    90% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-3px, 0);
        text-shadow: 3px 0 rgba(255, 0, 0, 0.8), -3px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    91% {
        clip-path: inset(50% 0 40% 0);
        transform: translate(3px, 0);
        text-shadow: -3px 0 rgba(255, 0, 0, 0.8), 3px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    92% {
        clip-path: inset(60% 0 30% 0);
        transform: translate(-2px, 0);
        text-shadow: 2px 0 rgba(255, 0, 0, 0.8), -2px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    93% {
        clip-path: inset(70% 0 20% 0);
        transform: translate(2px, 0);
        text-shadow: -2px 0 rgba(255, 0, 0, 0.8), 2px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    94% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(-3px, 0);
        text-shadow: 3px 0 rgba(255, 0, 0, 0.8), -3px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }

    95% {
        clip-path: inset(90% 0 0 0);
        transform: translate(3px, 0);
        text-shadow: -3px 0 rgba(255, 0, 0, 0.8), 3px 0 rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 0, 0.8);
    }
}

h1::before {
    content: '[ ';
    color: rgba(0, 255, 0, 0.6);
}

h1::after {
    content: ' ]';
    color: rgba(0, 255, 0, 0.6);
}

h2 {
    text-align: center;
    margin-bottom: 35px;
    color: rgba(0, 255, 0, 0.7);
    font-size: 1.1em;
    font-weight: 400;
    font-family: 'Consolas', monospace;
}

h2::before {
    content: '> ';
}

.alert {
    padding: 18px 22px;
    margin-bottom: 30px;
    border-radius: 0;
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-left: 4px solid #ffcc00;
    color: #ffcc00;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.1);
}

.alert::before {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    animation: warningBlink 1.5s infinite;
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.8);
}

:lang(zh-CN) .alert::before {
    content: '⚠ 警告: ';
}

:lang(en) .alert::before {
    content: '⚠ WARNING: ';
}

@keyframes warningBlink {

    0%,
    49%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 200, 0, 0.8);
    }

    50%,
    99% {
        opacity: 0.3;
        text-shadow: 0 0 5px rgba(255, 200, 0, 0.3);
    }
}

.alert strong {
    display: none;
}

.alert a {
    font-weight: 600;
    color: #ffcc00;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 200, 0, 0.5);
    transition: all 0.3s;
}

.alert a:hover {
    color: #ffff00;
    border-bottom-color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(5px);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.2);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 255, 0, 0.6);
    transition: all 0.3s;
    position: relative;
    font-family: 'Consolas', monospace;
}

.tab-btn::before {
    content: '[ ';
}

.tab-btn::after {
    content: ' ]';
}

.tab-btn.active {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 255, 0, 0.08);
    color: #00ff00;
    border-color: rgba(0, 255, 0, 0.5);
}

.tab-content {
    display: none;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 25px;
}

.difficulty-group {
    max-width: 400px;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00ff00;
    font-size: 15px;
    font-family: 'Consolas', monospace;
}

label::before {
    content: '> ';
    color: rgba(0, 255, 0, 0.6);
}

/* label::after removed */

.textarea-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.terminal-mirror {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Hidden scrollbar, synced via JS */
    color: #00ff00;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    /* Background moves to mirror */
    border: 1px solid rgba(0, 255, 0, 0.3);
    white-space: pre-wrap;
    word-break: break-all;
    z-index: 1;
    font-family: 'Consolas', 'Monaco', monospace;
    /* Match textarea padding/border */
    padding: 12px 16px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.terminal-mirror .cursor {
    display: inline-block;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-mirror .cursor.blink {
    animation: blink 1s step-end infinite;
}

.terminal-mirror .placeholder {
    color: rgba(0, 255, 0, 0.4);
}

textarea {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    background: transparent !important;
    color: transparent !important;
    caret-color: transparent !important;
    border-color: transparent !important;
    border: 1px solid transparent;
    resize: none;
    /* Resize difficult to sync with mirror */
    min-height: 200px;
    overflow-y: auto;
    box-shadow: none !important;
    /* Remove shadow from textarea, apply to mirror */
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

/* Hide the old placeholder if JS fails or loads late? No, JS hides it. */
.terminal-placeholder {
    display: none;
    /* We use mirror now */
}

textarea:focus+.terminal-mirror {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 15px rgba(0, 255, 0, 0.1);
}

textarea:focus,
input[type="file"]:focus {
    outline: none;
    /* border-color removed for textarea, handled by mirror */
    /* box-shadow removed for textarea via !important above */
}

input[type="file"]:focus {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 15px rgba(0, 255, 0, 0.1);
}

textarea::placeholder {
    color: rgba(0, 255, 0, 0.4);
}

/* 自定义滑块样式 */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 0;
    background: rgba(0, 255, 0, 0.2);
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: #00ff00;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    transition: all 0.3s;
    border: 2px solid #000;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 0, 1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: #00ff00;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    transition: all 0.3s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 0, 1);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '[ ';
}

.btn::after {
    content: ' ]';
}

.btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6), inset 0 0 15px rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.result {
    margin-top: 35px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    border: 1px solid rgba(0, 255, 0, 0.3);
    animation: slideIn 0.5s ease-out;
    backdrop-filter: blur(3px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result h2 {
    color: #00ff00;
    margin-bottom: 20px;
    text-align: left;
}

.actions {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

pre {
    background: #000000;
    color: #00ff00;
    padding: 18px;
    border-radius: 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    max-height: 450px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.05);
}

#loading,
#loading-en {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

#loading p,
#loading-en p {
    color: #00ff00;
    font-size: 18px;
    font-weight: 700;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 24px;
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    pointer-events: auto;
    border: 1px solid #00ff00;
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 255, 0, 0.2);
    border-top: 5px solid #00ff00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    pointer-events: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 错误提示窗口样式 */
.error-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease-in;
}

.error-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
    max-width: 550px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    border: 2px solid #ff0000;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.error-content h3 {
    color: #ff0000;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.error-content h3::before {
    content: '[ ERROR ] ';
}

:lang(zh-CN) .error-content h3::before {
    content: '[ 错误 ] ';
}

:lang(en) .error-content h3::before {
    content: '[ ERROR ] ';
}

.error-content p {
    margin-bottom: 20px;
    color: #ff6666;
    font-size: 15px;
    font-family: 'Consolas', monospace;
}

#close-error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 12px 28px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
}

#close-error:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.error-code {
    margin: 20px 0;
    text-align: left;
}

.error-code h4 {
    margin-bottom: 10px;
    color: #ff0000;
    font-size: 16px;
    font-family: 'Consolas', monospace;
}

.error-code pre {
    background-color: #000000;
    color: #ff6666;
    padding: 15px;
    border-left: 4px solid #ff0000;
    border-radius: 0;
    max-height: 200px;
    overflow-y: auto;
    font-size: 12px;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.1);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    color: #000000;
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Consolas', monospace;
}

.footer p {
    color: #000000;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.footer a {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer a:hover {
    color: #00ff00;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.footer img {
    transition: transform 0.3s;
}

.footer a:hover img {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(73%) sepia(97%) saturate(1352%) hue-rotate(50deg) brightness(118%) contrast(119%);
}

/* 蜘蛛动画样式 */
.spider {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.2s linear;
    filter: brightness(0) saturate(100%) invert(73%) sepia(97%) saturate(1352%) hue-rotate(50deg) brightness(118%) contrast(119%);
}

.spider-body {
    position: absolute;
    width: 10px;
    height: 14px;
    background: #00ff00;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.spider-head {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #00ff00;
    border-radius: 50%;
    left: 50%;
    top: 15%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

.spider-eye {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #000;
    border-radius: 50%;
    top: 2px;
    animation: eyeBlink 3s infinite;
}

@keyframes eyeBlink {

    0%,
    95%,
    100% {
        opacity: 1;
    }

    96%,
    98% {
        opacity: 0;
    }
}

.spider-eye.left {
    left: 1px;
}

.spider-eye.right {
    right: 1px;
}

.spider-leg {
    position: absolute;
    width: 1.5px;
    height: 10px;
    background: #00ff00;
    transform-origin: top center;
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.6);
}

.spider-leg.left1 {
    left: 2px;
    top: 7px;
    transform: rotate(-50deg);
}

.spider-leg.left2 {
    left: 1px;
    top: 10px;
    transform: rotate(-35deg);
}

.spider-leg.left3 {
    left: 1px;
    top: 13px;
    transform: rotate(-25deg);
}

.spider-leg.left4 {
    left: 2px;
    top: 16px;
    transform: rotate(-15deg);
}

.spider-leg.right1 {
    right: 2px;
    top: 7px;
    transform: rotate(50deg);
}

.spider-leg.right2 {
    right: 1px;
    top: 10px;
    transform: rotate(35deg);
}

.spider-leg.right3 {
    right: 1px;
    top: 13px;
    transform: rotate(25deg);
}

.spider-leg.right4 {
    right: 2px;
    top: 16px;
    transform: rotate(15deg);
}

/* 蜘蛛腿部动画 */
@keyframes legWalk {

    0%,
    100% {
        transform: rotate(var(--start-angle));
    }

    50% {
        transform: rotate(calc(var(--start-angle) + 10deg));
    }
}

.spider.walking .spider-leg.left1 {
    animation: legWalk 0.4s infinite;
    --start-angle: -50deg;
}

.spider.walking .spider-leg.left2 {
    animation: legWalk 0.4s infinite 0.1s;
    --start-angle: -35deg;
}

.spider.walking .spider-leg.left3 {
    animation: legWalk 0.4s infinite 0.2s;
    --start-angle: -25deg;
}

.spider.walking .spider-leg.left4 {
    animation: legWalk 0.4s infinite 0.3s;
    --start-angle: -15deg;
}

.spider.walking .spider-leg.right1 {
    animation: legWalk 0.4s infinite 0.05s;
    --start-angle: 50deg;
}

.spider.walking .spider-leg.right2 {
    animation: legWalk 0.4s infinite 0.15s;
    --start-angle: 35deg;
}

.spider.walking .spider-leg.right3 {
    animation: legWalk 0.4s infinite 0.25s;
    --start-angle: 25deg;
}

.spider.walking .spider-leg.right4 {
    animation: legWalk 0.4s infinite 0.35s;
    --start-angle: 15deg;
}

/* 蛇眼睛眨眼动画 */
@keyframes snakeEyeBlink {

    0%,
    94%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    95%,
    97% {
        opacity: 0.2;
        transform: scaleY(0.15);
    }
}

.snake-eye.left,
.snake-eye.right {
    animation: snakeEyeBlink 4s infinite;
}

/* 蛇舌头动画 */
@keyframes tongueDart {

    0%,
    80%,
    100% {
        width: 0px;
        opacity: 0;
    }

    82% {
        width: 2px;
        opacity: 0.5;
    }

    85%,
    93% {
        width: 16px;
        opacity: 1;
    }

    95% {
        width: 2px;
        opacity: 0.5;
    }

    97% {
        width: 0px;
        opacity: 0;
    }
}

.snake-tongue::before,
.snake-tongue::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 1.5px;
    background: #00ff00;
    right: -1px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

.snake-tongue::before {
    top: -3px;
    transform: rotate(-35deg);
    transform-origin: left center;
    border-radius: 0 2px 2px 0;
}

.snake-tongue::after {
    bottom: -3px;
    transform: rotate(35deg);
    transform-origin: left center;
    border-radius: 0 2px 2px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 25px 20px;
        border-radius: 0;
    }

    .site-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .logo {
        font-size: 24px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .error-content {
        padding: 20px;
    }
}

/* 添加平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.5);
    border-radius: 0;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

/* 作者联系卡片 */
.author-card {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    padding: 25px 20px;
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-right: none;
}

.author-card.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 40px));
}

.author-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.author-icon {
    font-size: 24px;
    animation: bounce 2s infinite;
    filter: brightness(0) saturate(100%) invert(73%) sepia(97%) saturate(1352%) hue-rotate(50deg) brightness(118%) contrast(119%);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.author-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #00ff00;
    font-weight: 700;
    font-family: 'Consolas', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.author-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.author-description {
    color: rgba(0, 255, 0, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
    font-family: 'Consolas', monospace;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 0;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.contact-label {
    font-weight: 600;
    color: #00ff00;
    font-size: 14px;
    font-family: 'Consolas', monospace;
}

.contact-value {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #00ff00;
    font-size: 14px;
    font-weight: 600;
    user-select: all;
}

.copy-qq-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    font-family: 'Consolas', monospace;
}

.copy-qq-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.copy-qq-btn:active {
    transform: translateY(0);
}

.copy-icon {
    font-size: 16px;
}

.toggle-card-btn {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-right: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    font-size: 20px;
    color: #00ff00;
    font-weight: bold;
}

.toggle-card-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    left: -42px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

.toggle-icon {
    transition: transform 0.3s;
    display: inline-block;
}

.author-card.collapsed .toggle-icon {
    transform: rotate(180deg);
}

/* SEO内容区域 */
.seo-content {
    margin-top: 40px;
    padding: 28px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    border: 1px solid rgba(0, 255, 0, 0.3);
    backdrop-filter: blur(3px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.seo-content h2 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: left;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.seo-content h3 {
    color: #00ff00;
    margin: 25px 0 15px;
    font-size: 1.4em;
    font-family: 'Consolas', monospace;
}

.seo-content p {
    line-height: 1.8;
    color: rgba(0, 255, 0, 0.8);
    margin-bottom: 15px;
    font-family: 'Consolas', monospace;
}

.seo-content ul,
.seo-content ol {
    line-height: 1.8;
    color: rgba(0, 255, 0, 0.8);
    margin-left: 25px;
    font-family: 'Consolas', monospace;
}

.seo-content strong {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .author-card {
        width: 240px;
        padding: 20px 15px;
    }

    .author-card.collapsed {
        transform: translateY(-50%) translateX(calc(100% - 35px));
    }

    .toggle-card-btn {
        width: 35px;
        height: 50px;
        left: -35px;
    }
}

/* History Sidebar */
.history-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    text-align: left;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 255, 0, 0.5);
    margin-bottom: 10px;
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.sidebar-title {
    color: #ffffff;
    font-family: 'Consolas', monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.blink-text {
    animation: blink-animation 2.3s ease-in-out infinite;
}

@keyframes blink-animation {

    0%,
    45% {
        opacity: 1;
    }

    50%,
    55% {
        opacity: 0.4;
    }

    60%,
    100% {
        opacity: 1;
    }
}

.history-sidebar.collapsed {
    transform: translate(-100%, -50%);
}

.sidebar-toggle {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00ff00;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    transition: all 0.3s;
}

.history-sidebar.collapsed .sidebar-toggle {
    right: -30px;
    /* Push out a bit more when collapsed so it's visible */
    background: rgba(0, 0, 0, 0.8);
}

.sidebar-toggle:hover {
    background: rgba(0, 255, 0, 0.2);
    color: #fff;
}

.history-sidebar.collapsed .toggle-icon {
    transform: rotate(180deg);
    display: inline-block;
}

.history-sidebar:hover {
    border-color: rgba(0, 255, 0, 0.5);
}

.history-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding: 8px 5px;
    cursor: pointer;
    transition: all 0.2s;
    width: 220px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    /* No rounded corners */
}

.history-item::before {
    display: none;
    /* Remove side bar effect */
}

.history-item:hover {
    background: transparent;
    /* Removed green background */
    border-bottom-color: #00ff00;
    transform: none;
    /* No movement */
    box-shadow: none;
}

.history-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.history-title {
    color: #00ff00;
    font-weight: bold;
    /* Made bold */
    font-size: 16px;
    /* Increased font size */
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Consolas', monospace;
    letter-spacing: 0.5px;
}

.history-title::before {
    content: '> ';
    margin-right: 5px;
}

.history-item:hover .history-title {
    color: #00ff00;
    text-shadow: 2px 0 #ff0000, -2px 0 #0000ff;
    /* Glitch shadow */
    animation: jitter 0.2s infinite;
    /* Faster animation */
}

@keyframes jitter {
    0% {
        transform: translate(0, 0) skew(0deg);
    }

    20% {
        transform: translate(-3px, 1px) skew(-10deg);
    }

    /* Increased movement */
    40% {
        transform: translate(3px, -1px) skew(10deg);
    }

    60% {
        transform: translate(-2px, 2px) skew(-5deg);
    }

    80% {
        transform: translate(2px, -2px) skew(5deg);
    }

    100% {
        transform: translate(0, 0) skew(0deg);
    }
}

.history-time {
    color: rgba(0, 255, 0, 0.5);
    font-size: 11px;
    display: none;
    /* Hide time for cleaner look, or keep if user wants */
    align-items: center;
    gap: 5px;
}

.history-time::before {
    content: '>';
    font-size: 10px;
}

/* TV Modal */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    perspective: 1000px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Removed dark background */
    backdrop-filter: none;
    /* Removed blur */
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: auto;
}

.history-modal.active .modal-overlay {
    opacity: 1;
}

.tv-container {
    position: relative;
    width: 900px;
    height: 600px;
    pointer-events: auto;
    transform: scale(0);
    transform-style: preserve-3d;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: #050505;
    border: 10px solid #1a1a1a;
    /* Thinner bezel */
    border-radius: 0;
    /* No rounded corners */
    box-shadow:
        0 0 0 2px #333,
        0 0 50px rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tv-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.02) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 5;
}

.tv-content {
    flex: 1;
    padding: 15px;
    /* Reduced padding */
    color: #00ff00;
    font-family: 'Consolas', 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    opacity: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 1px;
}

.terminal-title {
    font-weight: bold;
    text-transform: uppercase;
}

.terminal-date {
    color: rgba(0, 255, 0, 0.6);
    font-size: 14px;
    font-family: 'Consolas', monospace;
    margin-left: auto;
    /* Push to right */
    margin-right: 20px;
}

.terminal-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    cursor: pointer;
    transition: color 0.2s;
    font-weight: bold;
}

.control-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.terminal-body {
    flex: 1;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 18px;
    white-space: pre-wrap;
    padding-right: 0px;
    text-align: left;
    /* Ensure left alignment */
}

#modal-text-content {
    padding-left: 2em;
    /* Tab indentation */
    display: inline-block;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.05);
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 0, 0.3);
    border-radius: 0;
    /* No rounded corners */
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.5);
}

/* Animations */
@keyframes tvTurnOn {
    0% {
        transform: scaleY(0.005) scaleX(0);
        opacity: 1;
        filter: brightness(5);
    }

    40% {
        transform: scaleY(0.005) scaleX(1);
        filter: brightness(5);
    }

    60% {
        transform: scaleY(1) scaleX(1);
        filter: brightness(2);
    }

    100% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
        filter: brightness(1);
    }
}

@keyframes tvTurnOff {
    0% {
        transform: scaleY(1) scaleX(1);
        opacity: 1;
        filter: brightness(1);
    }

    40% {
        transform: scaleY(0.005) scaleX(1);
        filter: brightness(2);
    }

    60% {
        transform: scaleY(0.005) scaleX(0);
        filter: brightness(5);
    }

    100% {
        transform: scaleY(0) scaleX(0);
        opacity: 0;
    }
}

.history-modal.active .tv-container {
    animation: tvTurnOn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.history-modal.closing .tv-container {
    animation: tvTurnOff 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.history-modal.active .tv-content {
    opacity: 1;
    transition: opacity 0.3s 0.6s;
}

.history-modal.closing .tv-content {
    opacity: 0;
    transition: opacity 0.1s;
}

.cursor.blink {
    animation: blink 1s step-end infinite;
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff00;
    vertical-align: middle;
    margin-left: 2px;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    animation: scanlineScroll 10s linear infinite;
    opacity: 0.6;
}

@keyframes scanlineScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}