.card, .card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: transparent !important;
}
/* ===== 卡片主体 ===== */
.card {
    max-width: 780px;
    margin: 0 auto;
    background: #e8e4e0;
    border-radius: 20px;
    padding: 28px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border: 2px solid #c8c0b8;
}
/* ===== 正文区域 ===== */
.card .content {
    line-height: 1.8;
    color: #3a3530;
    margin-bottom: 24px;
}
.card .content .scene-section {
    margin-bottom: 18px;
    position: relative;
}
.card .content .scene-section:last-child {
    margin-bottom: 0;
}
.card .content em,
.card .content .whisper {
    font-style: normal !important;
    font-weight: 600 !important;
}
/* 林希 */
.card .content em.linxi-dialogue,
.card .content .whisper.linxi-dialogue {
    color: #e6738e !important;
}
/* 苏悦（妹妹） */
.card .content em.sister-dialogue,
.card .content .whisper.sister-dialogue {
    color: #7a4a8a !important;
}
/* 林雪（青梅） */
.card .content em.osana-dialogue,
.card .content .whisper.osana-dialogue {
    color: #3a6a7a !important;
}
.card .content .icon {
    color: #8a8078;
    margin-right: 8px;
    vertical-align: middle;
}
/* ===== 立绘显示 ===== */
.card img.linxi-lihui,
.card img.character-lihui {
    display: block;
    width: 250px;
    height: auto;
    margin: 12px auto;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    background-color: #e8e4e0;
}
/* ==================== LINE 可展开私信 ==================== */
.card .line-panel {
    background: #dcd8d2;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #c8c0b8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-bottom: 18px;
}
.card .line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c8c0b8;
}
.card .line-header .app-title {
    color: #06c755;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
}
.card .line-header .signal-dot {
    width: 7px;
    height: 7px;
    background: #06c755;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #06c755; }
    50% { opacity: 0.3; box-shadow: 0 0 8px #06c755; }
}
.card details.chat-thread {
    margin-bottom: 4px;
    border-radius: 10px;
    overflow: hidden;
}
.card details.chat-thread:last-child {
    margin-bottom: 0;
}
.card details.chat-thread summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    cursor: pointer;
    list-style: none;
    transition: background 0.2s;
    border-radius: 10px;
}
.card details.chat-thread summary::-webkit-details-marker {
    display: none;
}
.card details.chat-thread summary:hover {
    background: #d0cbc4;
}
.card details.chat-thread[open] summary {
    background: #d0cbc4;
    border-radius: 10px 10px 0 0;
}
.card .contact-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #b8b0a8;
    background-size: cover;
    background-position: center;
}
.card .contact-avatar.av-linxi {
    background-color: #e6738e;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="22" fill="%23f0d8c8"/><ellipse cx="50" cy="85" rx="38" ry="26" fill="%23f0d8c8"/></svg>');
}
.card .contact-avatar.av-sister {
    background-color: #7a4a8a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="22" fill="%23e0c8e8"/><ellipse cx="50" cy="85" rx="38" ry="26" fill="%23e0c8e8"/></svg>');
}
.card .contact-avatar.av-osana {
    background-color: #3a6a7a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="22" fill="%23c0dce4"/><ellipse cx="50" cy="85" rx="38" ry="26" fill="%23c0dce4"/></svg>');
}
.card .contact-info {
    flex: 1;
    min-width: 0;
}
.card .contact-name {
    font-size: 13px;
    font-weight: bold;
    color: #3a3530;
}
.card .contact-preview {
    font-size: 11px;
    color: #6b6058;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.card .contact-meta {
    text-align: right;
    flex-shrink: 0;
}
.card .contact-time {
    font-size: 10px;
    color: #8a8078;
}
.card .unread-badge {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    margin-top: 3px;
}
.card .thread-body {
    background: #f0ece8;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
}
.card .thread-time {
    text-align: center;
    font-size: 10px;
    color: #8a8078;
}
.card .thread-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}
.card .thread-msg.msg-other {
    align-self: flex-start;
    flex-direction: row;
}
.card .thread-msg.msg-other .msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #b8b0a8;
    background-size: cover;
    background-position: center;
}
.card .thread-msg.msg-other .msg-bubble {
    background: #dcd8d2;
    color: #3a3530;
    border-radius: 4px 12px 12px 12px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid #c8c0b8;
}
.card .thread-msg.msg-self {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.card .thread-msg.msg-self .msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #b8b0a8;
    background-color: #5a7a6a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="22" fill="%238cc4a0"/><ellipse cx="50" cy="85" rx="38" ry="26" fill="%238cc4a0"/></svg>');
    background-size: cover;
    background-position: center;
}
.card .thread-msg.msg-self .msg-bubble {
    background: #c8d8cc;
    color: #2a3a30;
    border-radius: 12px 4px 12px 12px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid #a0b8a4;
}
/* ==================== 同伴状态栏==================== */
.card .status-title {
    font-weight: bold;
    color: #3a3530;
    margin: 28px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #c8c0b8;
    font-size: 15px;
}
.card .status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(200,192,184,0.3);
    color: #3a3530;
    margin-bottom: 10px;
    border-left: 5px solid #8a8078;
    font-size: 14px;
    line-height: 1.6;
}
.card .status-item:last-child {
    margin-bottom: 0;
}
.card .status-item.linxi {
    border-left-color: #e6738e;
}
.card .status-item.sister {
    border-left-color: #7a4a8a;
}
.card .status-item.osana {
    border-left-color: #3a6a7a;
}
/* ==================== 幸存者匿名情报板 ==================== */
.card .forum-panel {
    background: #dcd8d2;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #c8c0b8;
    margin-top: 18px;
    margin-bottom: 18px;
}
.card .forum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #c8c0b8;
}
.card .forum-header .forum-name {
    color: #a05030;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}
.card .forum-header .online-count {
    font-size: 10px;
    color: #8a8078;
}
.card .forum-thread {
    padding: 8px 0;
    border-bottom: 1px solid #c8c0b8;
    font-size: 11px;
    color: #5a5048;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.card .forum-thread:last-child {
    border-bottom: none;
}
.card .thread-tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: bold;
    flex-shrink: 0;
}
.card .thread-tag.new { background: #a02020; color: #fdd; }
.card .thread-tag.hot { background: #b05010; color: #fdd; }
.card .thread-tag.info { background: #1a5070; color: #ddf; }
.card .thread-tag.trade { background: #1a6030; color: #dfd; }
.card .forum-thread .thread-text {
    flex: 1;
    line-height: 1.4;
}
/* ===== 选项区域 ===== */
.card .choices {
    margin-top: 26px;
}
.card .choices .choice-title {
    font-weight: bold;
    color: #3a3530;
    margin-bottom: 12px;
    font-size: 15px;
}
.card .choices button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #f5f0ec;
    border: 1px solid #c8c0b8;
    border-radius: 14px;
    color: #3a3530;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 14px;
}
.card .choices button:hover {
    background: #e8e4e0;
    border-color: #e6738e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
/* ===== 颤抖动画 ===== */
.card .tremble {
    display: inline-block;
    animation: tremble 0.7s infinite;
}
@keyframes tremble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}
/* ===== 折叠（心声/记忆区） ===== */
.card details {
    margin: 10px 0;
    background: rgba(200,192,184,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    border-left: 4px solid #8a8078;
}
.card details summary {
    font-weight: bold;
    color: #3a3530;
    cursor: pointer;
    list-style: none;
}
.card details summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.2s;
}
.card details[open] summary::before {
    transform: rotate(90deg);
}
.card details p {
    color: #5a5048;
}
/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .card {
        padding: 20px;
        border-radius: 15px;
    }
    .card img.linxi-lihui,
    .card img.character-lihui {
        width: 180px;}}