/* ═════════════════════════════════════════════════════════════
   AI_SOUL_DETECTOR - 新年特别版 (复古纸张风格)
   ═════════════════════════════════════════════════════════════ */

/* 强制禁用暗色模式 */
:root {
    color-scheme: light;
}

*,
*::before,
*::after {
    color-scheme: light;
}

/* 强制覆盖浏览器暗色模式扩展 */
html,
body {
    color-scheme: light !important;
    forced-color-adjust: none;
}

/* 防止暗色模式扩展覆盖颜色 */
body,
.terminal,
.terminal-body,
.screen,
.modal-content,
.share-card,
.gift-card {
    background-color: var(--paper-bg) !important;
    color: var(--paper-text) !important;
}

:root {
    /* 纸张复古配色 */
    --paper-bg: #f5f0e6;
    --paper-dark: #e8e0d0;
    --paper-text: #2c2416;
    --paper-text-light: #5c4d3c;
    --paper-border: #d4c8b0;
    --paper-shadow: rgba(44, 36, 22, 0.15);

    /* 新年点缀色 */
    --seal-red: #c41e3a;
    --seal-red-light: #e63950;
    --ink-black: #1a1a1a;
    --gold-accent: #c9a227;

    /* 窗口按钮 */
    --window-btn-close: #c41e3a;
    --window-btn-min: #d4a017;
    --window-btn-max: #2e8b57;
    
    /* 字体 */
    --pixel-font: 'VT323', monospace;
    --system-font: 'Noto Sans SC', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏图片加载时的默认样式 */
img {
    background: transparent;
}

img[loading] {
    background: var(--paper-dark);
    border-radius: 4px;
}

/* ─── 基础背景 ─── */
body {
    background: var(--paper-bg);
    color: var(--paper-text);
    font-family: var(--system-font);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y pan-x;
    -webkit-tap-highlight-color: transparent;
}

/* 纸张纹理效果 */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 119, 101, 0.03) 2px,
            rgba(139, 119, 101, 0.03) 4px
        );
}

/* 隐藏原来的canvas */
.matrix-bg {
    display: none;
}

/* 扫描线效果改为淡纹理 */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(139, 119, 101, 0.02),
        rgba(139, 119, 101, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.5;
}

/* ─── 主卡片容器（纸张卡片风格） ─── */
.terminal {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 40px auto;
    background: #fffef8;
    border: 1px solid var(--paper-border);
    border-radius: 4px;
    box-shadow:
        0 1px 3px var(--paper-shadow),
        0 4px 12px var(--paper-shadow),
        inset 0 0 60px rgba(139, 119, 101, 0.05);
    overflow: hidden;
    touch-action: pan-y pan-x;
}

/* 纸张边缘效果 */
.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--seal-red) 0%, 
        var(--seal-red) 20%,
        var(--gold-accent) 20%,
        var(--gold-accent) 40%,
        var(--seal-red) 40%,
        var(--seal-red) 60%,
        var(--gold-accent) 60%,
        var(--gold-accent) 80%,
        var(--seal-red) 80%,
        var(--seal-red) 100%
    );
    opacity: 0.8;
}

/* 窗口标题栏 */
.terminal-header {
    background: var(--paper-dark);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--paper-border);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(0,0,0,0.1);
}

.window-controls .close { background: var(--window-btn-close); }
.window-controls .minimize { background: var(--window-btn-min); }
.window-controls .maximize { background: var(--window-btn-max); }

.window-title {
    flex: 1;
    text-align: center;
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--paper-text-light);
    letter-spacing: 1px;
}

.window-version {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--paper-text-light);
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 终端内容区 */
.terminal-body {
    min-height: 500px;
    padding: 30px;
    position: relative;
}

/* ─── 屏幕切换 ─── */
section {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

section.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── 启动画面 ─── */
.boot-screen {
    text-align: center;
    padding: 40px 20px;
}

.boot-text {
    font-family: var(--pixel-font);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--paper-text);
}

.boot-text .line {
    display: block;
    margin-bottom: 4px;
}

.boot-text .loading-bar {
    color: var(--seal-red);
    letter-spacing: 2px;
}

.boot-text .success {
    color: var(--seal-red);
    font-weight: bold;
}

.boot-text .highlight {
    color: var(--seal-red);
    font-size: 22px;
    margin: 20px 0 10px;
    font-weight: bold;
}

.boot-text .prompt {
    margin-top: 20px;
}

.cursor {
    display: inline-block;
    color: var(--seal-red);
    font-weight: bold;
}

/* 像素按钮 */
.pixel-btn {
    background: transparent;
    border: 2px solid var(--paper-text);
    color: var(--paper-text);
    padding: 12px 24px;
    font-family: var(--pixel-font);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fffef8;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.pixel-btn:hover {
    background: var(--paper-text);
    color: #fffef8;
    box-shadow: 0 4px 12px var(--paper-shadow);
}

.start-btn {
    border-color: var(--seal-red);
    color: var(--seal-red);
    background: #fffef8;
}

.start-btn:hover {
    background: var(--seal-red);
    color: white;
}

.btn-icon {
    font-size: 14px;
}

/* ─── 测试界面 ─── */
.quiz-screen {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-header {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: var(--pixel-font);
}

.progress-info .label {
    color: var(--paper-text-light);
    font-size: 14px;
}

.progress-info .counter {
    color: var(--seal-red);
    font-size: 18px;
    letter-spacing: 2px;
}

.progress-bar {
    height: 4px;
    background: var(--paper-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--seal-red);
    transition: width 0.3s ease;
    width: 0%;
}

/* 问题框 */
.question-box {
    background: #fffef8;
    border: 1px solid var(--paper-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(139, 119, 101, 0.05);
}

.question-box::before {
    content: '// QUESTION_' attr(data-num);
    position: absolute;
    top: -10px;
    left: 15px;
    background: #fffef8;
    padding: 0 10px;
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--paper-text-light);
    border: 1px solid var(--paper-border);
}

.question-emoji {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.question-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--paper-text);
    line-height: 1.5;
}

/* 选项框 */
.options-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: #fffef8;
    border: 2px solid var(--paper-border);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--seal-red);
    background: rgba(196, 30, 58, 0.03);
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--paper-shadow);
}

.option-btn .opt-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.option-btn .opt-text {
    font-size: 16px;
    color: var(--paper-text);
    line-height: 1.4;
}

.option-btn .opt-key {
    margin-left: auto;
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--paper-text-light);
    background: var(--paper-dark);
    padding: 4px 8px;
    border-radius: 4px;
}

.quiz-footer {
    margin-top: 20px;
    text-align: center;
}

.quiz-footer .hint {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--paper-text-light);
}

/* ─── 分析中界面 ─── */
.analyzing-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.analyze-box {
    text-align: center;
}

.pixel-spinner {
    font-size: 48px;
    margin-bottom: 30px;
    height: 60px;
    color: var(--seal-red);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-spinner .frame {
    position: absolute;
    animation: spin 1s steps(4) infinite;
    opacity: 0;
    left: 50%;
    transform: translateX(-50%);
}

.pixel-spinner .frame:nth-child(1) { animation-delay: 0s; }
.pixel-spinner .frame:nth-child(2) { animation-delay: 0.25s; }
.pixel-spinner .frame:nth-child(3) { animation-delay: 0.5s; }
.pixel-spinner .frame:nth-child(4) { animation-delay: 0.75s; }

@keyframes spin {
    0%, 25% { opacity: 1; }
    26%, 100% { opacity: 0; }
}

.analyze-text {
    font-family: var(--pixel-font);
    font-size: 16px;
    line-height: 2;
    color: var(--paper-text);
}

.analyze-text .code {
    color: var(--paper-text-light);
    padding-left: 20px;
}

/* ─── 结果界面 ─── */
.result-screen {
    max-width: 600px;
    margin: 0 auto;
}

.result-card {
    background: #fffef8;
    border: 1px solid var(--paper-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 30px rgba(139, 119, 101, 0.05);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--seal-red);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--pixel-font);
    font-size: 14px;
    margin-bottom: 20px;
}

.result-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.ai-icon-box {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--paper-border);
    box-shadow: 0 2px 8px var(--paper-shadow);
}

.ai-icon-box img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.ai-titles {
    flex: 1;
}

.ai-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--paper-text);
    margin-bottom: 4px;
}

.ai-title {
    font-family: var(--pixel-font);
    font-size: 16px;
    color: var(--seal-red);
}

.catchphrase-box {
    background: rgba(196, 30, 58, 0.05);
    border-left: 3px solid var(--seal-red);
    padding: 15px 20px;
    margin-bottom: 25px;
    font-style: italic;
}

.quote-mark {
    color: var(--seal-red);
    font-size: 20px;
}

.catchphrase {
    color: var(--paper-text);
    font-size: 15px;
}

/* 通用盒子样式 */
.box-header {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--paper-text-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.description-box {
    background: var(--paper-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--paper-border);
}

.description {
    color: var(--paper-text);
    font-size: 14px;
    line-height: 1.8;
}

.traits-box {
    margin-bottom: 20px;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait-tag {
    background: white;
    border: 1px solid var(--paper-border);
    color: var(--paper-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--pixel-font);
    font-size: 14px;
    box-shadow: 0 1px 3px var(--paper-shadow);
}

.compatibility-box {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid var(--gold-accent);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.match-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.match-name {
    color: var(--seal-red);
    font-weight: 700;
    font-size: 16px;
}

.match-reason {
    color: var(--paper-text-light);
    font-size: 13px;
}

.share-box {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08), rgba(201, 162, 39, 0.08));
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    border: 1px dashed var(--paper-border);
}

.share-line {
    color: var(--paper-text);
    font-size: 14px;
}

/* 操作按钮 */
.action-box {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.share-btn {
    border-color: var(--seal-red);
    color: var(--seal-red);
    background: #fffef8;
}

.share-btn:hover {
    background: var(--seal-red);
    color: white;
}

.restart-btn {
    border-color: var(--paper-text-light);
    color: var(--paper-text-light);
    background: #fffef8;
}

.restart-btn:hover {
    background: var(--paper-text);
    color: white;
}

/* 礼物推荐区域 */
.gift-section {
    background: var(--paper-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--paper-border);
    margin-top: 20px;
}

.gift-content {
    width: 100%;
}

.gift-link {
    display: block;
    text-decoration: none;
    color: inherit;
    touch-action: manipulation;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 8px;
    padding: 20px 15px;
    border: 1px solid var(--paper-border);
    transition: all 0.3s ease;
    text-align: center;
}

.gift-link:hover .gift-card {
    border-color: var(--seal-red);
    box-shadow: 0 4px 12px var(--paper-shadow);
    transform: translateY(-2px);
}

.gift-info {
    width: 100%;
}

.gift-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--paper-text);
    margin-bottom: 8px;
}

.gift-subtitle {
    font-size: 13px;
    color: var(--seal-red);
    font-weight: 500;
}

.gift-image {
    width: 100%;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}

.gift-footer {
    text-align: center;
    font-size: 12px;
    color: var(--paper-text-light);
    margin-top: 10px;
}

/* ─── 终端底部 ─── */
.terminal-footer {
    background: var(--paper-dark);
    border-top: 1px solid var(--paper-border);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--pixel-font);
    font-size: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--window-btn-max);
}

.status-text {
    color: var(--paper-text-light);
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.year-badge {
    color: var(--seal-red);
    font-weight: 700;
    font-size: 14px;
}

.disclaimer {
    color: var(--paper-text-light);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.copyright {
    color: var(--paper-text-light);
}

/* ─── 分享弹窗 ─── */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 22, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fffef8;
    border: 1px solid var(--paper-border);
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 36, 22, 0.3);
    position: relative;
    z-index: 2001;
    touch-action: manipulation;
}

.modal-header {
    background: var(--paper-dark);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--paper-border);
}

.modal-title {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--paper-text-light);
}

.modal-close {
    background: none;
    border: none;
    color: var(--paper-text-light);
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--seal-red);
}

.share-card {
    background: #fffef8;
    margin: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--paper-border);
    box-shadow: 0 4px 12px var(--paper-shadow);
}

.card-header {
    background: var(--seal-red);
    padding: 15px;
    text-align: center;
    color: white;
}

.card-icon {
    font-size: 24px;
}

.card-title {
    font-weight: 700;
    margin-left: 8px;
}

.card-body {
    padding: 25px;
    text-align: center;
}

.card-result {
    margin-bottom: 15px;
}

.card-emoji {
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 8px;
}

.card-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-ai {
    font-size: 20px;
    font-weight: 700;
    color: var(--paper-text);
}

.card-traits {
    color: var(--paper-text-light);
    font-size: 13px;
    margin-bottom: 20px;
}

.fake-qr {
    background: rgba(196, 30, 58, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed var(--seal-red);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.card-blessing {
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--seal-red);
    font-weight: 500;
}

.card-footer {
    background: var(--paper-dark);
    padding: 10px;
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--paper-text-light);
    text-align: center;
}

.modal-hint {
    text-align: center;
    padding: 15px;
    color: var(--paper-text-light);
    font-size: 13px;
}

.share-website-btn {
    text-align: center;
    padding: 10px 15px;
    color: var(--seal-red);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px dashed var(--seal-red);
    transition: opacity 0.2s ease;
    user-select: none;
}

.share-website-btn:hover {
    opacity: 0.7;
}

/* 分享图片圆角 */
#shareImage {
    border-radius: 16px;
    overflow: hidden;
}

/* ─── 响应式 - 移动端优化 ─── */
@media (max-width: 600px) {
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        background: var(--paper-bg);
    }
    
    .terminal {
        margin: 5rem auto;
        border-radius: 4px;
        border: 1px solid var(--paper-border);
        min-height: calc(100vh - 40px);
        min-height: -webkit-fill-available;
        display: flex;
        flex-direction: column;
    }
    
    .terminal::before {
        height: 3px;
    }
    
    .terminal-body {
        padding: 20px 15px;
        flex: 1;
        min-height: auto;
    }
    
    .boot-screen {
        padding: 30px 10px;
    }
    
    .boot-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .pixel-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* 问题页 */
    .quiz-screen {
        padding: 10px 0;
    }
    
    .quiz-header {
        margin-bottom: 20px;
    }
    
    .question-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .question-emoji {
        font-size: 36px;
    }
    
    .question-text {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .option-btn {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .option-btn .opt-icon {
        font-size: 28px;
    }
    
    .option-btn .opt-text {
        font-size: 14px;
    }
    
    .option-btn .opt-key {
        display: none;
    }
    
    .quiz-footer .hint {
        font-size: 11px;
    }
    
    /* 分析页 */
    .analyzing-screen {
        min-height: 300px;
    }
    
    .pixel-spinner {
        font-size: 36px;
    }
    
    .analyze-text {
        font-size: 14px;
    }
    
    /* 结果页 */
    .result-screen {
        padding: 0;
    }
    
    .result-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .result-identity {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ai-icon-box {
        width: 64px;
        height: 64px;
        margin: 0 auto;
    }
    
    .ai-icon-box img {
        width: 48px;
        height: 48px;
    }
    
    .ai-name {
        font-size: 22px;
    }
    
    .ai-title {
        font-size: 14px;
    }
    
    .catchphrase-box {
        padding: 12px 15px;
    }
    
    .catchphrase {
        font-size: 13px;
    }
    
    .description-box {
        padding: 15px;
    }
    
    .description {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .traits-list {
        gap: 8px;
    }
    
    .trait-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .action-box {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .pixel-btn {
        width: 100%;
        justify-content: center;
    }

    /* 礼物推荐区域 */
    .gift-section {
        padding: 15px;
    }

    .gift-card {
        padding: 15px 12px;
        gap: 12px;
    }

    .gift-title {
        font-size: 16px;
    }

    .gift-subtitle {
        font-size: 12px;
    }

    .gift-image {
        max-width: 160px;
    }

    /* 底部 */
    .terminal-footer {
        padding: 10px 15px;
        font-size: 10px;
    }
    
    .year-badge {
        font-size: 12px;
    }

    .disclaimer {
        font-size: 9px;
    }
    
    /* 弹窗 */
    .modal-content {
        margin: 10px;
    }
    
    .share-card {
        margin: 15px;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .card-emoji {
        width: 48px;
        height: 48px;
    }
    
    .card-ai {
        font-size: 16px;
    }
    
    /* 扫描线效果减弱 */
    .scanlines {
        opacity: 0.3;
    }
}

/* ─── 动画类 ─── */
.glitch {
    animation: glitch 0.3s ease;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
