/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f7f7f7;  /* 统一为微信背景色 */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 16px;  /* 设置基准字体大小为16px */
}

/* 游戏卡片基础样式 - 精致微信风格 */
.game-card {
    background: white;
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(224, 224, 224, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

/* 移除伪元素边框光效，因为它在滚动时会导致视觉问题 */
/* 改为使用简单的border */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #07c160 100%);  /* 渐变到微信绿 */
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 添加玻璃质感 */
.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    pointer-events: none;
}

/* 添加微妙的光效 */
.card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.card-header h1 {
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.card-header h1.guide-title {
    font-size: 20px;
    font-weight: normal;
}

.card-header h2 {
    font-size: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-content {
    padding: 25px;
}

.card-footer {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* 按钮样式 - 精致微信风格 */
.primary-btn {
    background: linear-gradient(135deg, #95d5b2 0%, #74c69d 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: inherit;
    box-shadow: 
        0 4px 12px rgba(149, 213, 178, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 按钮光泽效果 */
.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #06ad56 0%, #059048 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(7, 193, 96, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.primary-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #059048 0%, #047a3c 100%);
}

.secondary-btn {
    background: linear-gradient(135deg, #95d5b2 0%, #74c69d 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: 10px;
    font-family: inherit;
    box-shadow: 
        0 4px 12px rgba(149, 213, 178, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.secondary-btn:hover::before {
    left: 100%;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #74c69d 0%, #52b788 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(149, 213, 178, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.secondary-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
}

.export-btn {
    background: linear-gradient(135deg, #95d5b2 0%, #74c69d 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: 10px;
    font-family: inherit;
    box-shadow: 
        0 4px 12px rgba(149, 213, 178, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.export-btn:hover::before {
    left: 100%;
}

.export-btn:hover {
    background: linear-gradient(135deg, #74c69d 0%, #52b788 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(149, 213, 178, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.export-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
}

/* 分析界面CSS样式 */
.performance-analysis {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #95d5b2;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(149, 213, 178, 0.2);
}

.performance-analysis h3 {
    color: #52b788;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #95d5b2;
}

.deep-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #74c69d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    font-size: 15px;
}

.insights-section {
    margin-bottom: 20px;
}

.insight-item {
    background: rgba(149, 213, 178, 0.1);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 3px solid #74c69d;
}

.insight-category {
    font-weight: 600;
    color: #40916c;
    margin-bottom: 8px;
    font-size: 14px;
}

.insight-content {
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.reflection-questions {
    background: rgba(116, 198, 157, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.reflection-questions h4 {
    color: #40916c;
    margin-bottom: 15px;
    font-weight: 600;
}

.reflection-question {
    margin: 12px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #95d5b2;
    font-style: italic;
    color: #495057;
    line-height: 1.5;
}

.philosophical-thoughts {
    background: linear-gradient(135deg, rgba(149, 213, 178, 0.1) 0%, rgba(116, 198, 157, 0.1) 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(149, 213, 178, 0.3);
}

.philosophical-thoughts h4 {
    color: #40916c;
    margin-bottom: 15px;
    font-weight: 600;
}

.philosophical-content {
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
    font-style: italic;
    text-align: justify;
}

.ai-score {
    text-align: center;
    background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(82, 183, 136, 0.3);
}

.ai-score h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.score-value {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-btn {
    background: linear-gradient(135deg, #95d5b2 0%, #74c69d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #74c69d 0%, #52b788 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 198, 157, 0.3);
}

/* 展开/收起动画 */
.performance-analysis.collapsed .deep-summary,
.performance-analysis.collapsed .insights-section,
.performance-analysis.collapsed .reflection-questions,
.performance-analysis.collapsed .philosophical-thoughts,
.performance-analysis.collapsed .ai-score {
    display: none;
}

.performance-analysis {
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .performance-analysis {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .deep-summary {
        padding: 15px;
        font-size: 14px;
    }
    
    .insight-item {
        padding: 12px;
    }
    
    .reflection-question {
        padding: 8px;
        font-size: 14px;
    }
    
    .philosophical-content {
        font-size: 14px;
    }
    
    .score-value {
        font-size: 28px;
    }
}

.suggestion-btn {
    background: #f7f7f7;
    color: #576b95;
    border: 1px solid #d0d0d0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 3px;
    font-family: inherit;
}

.suggestion-btn:hover {
    background: #07c160;
    color: white;
    border-color: #07c160;
}

.card-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

#welcomeCard .card-content > p {
    text-align: center;
}

/* 游戏规则样式 - 微信风格 */
.game-rules {
    margin: 20px 0;
}

.game-rules h3 {
    color: #07c160;
    margin-bottom: 15px;
    font-size: 16px;
}

.game-rules ul {
    list-style: none;
    padding-left: 0;
}

.game-rules li {
    margin: 8px 0;
    padding: 12px 15px;
    background: #f7f7f7;
    border-radius: 6px;
    border-left: 3px solid #07c160;
    font-size: 15px;
}

/* 角色介绍样式 */
.character-intro {
    margin: 20px 0;
}

.character-intro h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.character-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.character-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.character-desc {
    display: block;
    font-size: 14px;
    color: #666;
}

/* 体验核心样式 - 精致渐变 */
.experience-core {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 50%, #667eea 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 
        0 4px 15px rgba(7, 193, 96, 0.3),
        0 2px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

/* 添加精致的光泽效果 */
.experience-core::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.experience-core h3 {
    margin-bottom: 10px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    font-size: 16px;
}

.experience-core p {
    position: relative;
    z-index: 2;
    font-size: 15px;
}

/* 名称输入样式 */
#nameInputCard input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin: 15px 0;
    transition: border-color 0.3s ease;
}

#nameInputCard input:focus {
    outline: none;
    border-color: #667eea;
}

.name-suggestions {
    margin-top: 15px;
    text-align: center;
}

/* 引导卡片样式 */
.game-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-info p {
    margin: 3px 0;
    font-size: 15px;
}

.difficulty-warning {
    background: #fff3cd;
    border: 1px solid #07c160;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #07c160;
}

.difficulty-warning h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.difficulty-warning ul {
    list-style: none;
    padding-left: 0;
}

.difficulty-warning li {
    margin: 5px 0;
    padding: 3px 0;
    color: #856404;
    font-size: 15px;
}

.key-tips {
    background: #e8f4f8;
    border: 1px solid #07c160;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #07c160;
}

.key-tips h3 {
    color: #0c5460;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.key-tips ul {
    list-style: none;
    padding-left: 0;
}

.key-tips li {
    margin: 5px 0;
    padding: 3px 0;
    color: #0c5460;
    font-size: 15px;
}

/* 游戏主界面样式 */
#gameInterface {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

/* 游戏头部 - 微信群聊风格 */
.game-header {
    background: #ededed;  /* 微信头部背景 */
    padding: 12px 16px;
    border-bottom: 1px solid #d0d0d0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.group-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.group-name {
    font-weight: 500;
    color: #000;
    font-size: 16px;
}

.member-info {
    color: #999;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 8px;
}

/* 右侧游戏状态区域 */
.game-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.mode-info {
    color: #576b95;
    font-size: 13px;
    font-weight: 500;
    background: rgba(87, 107, 149, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.round-info {
    color: #576b95;
    font-size: 13px;
    background: rgba(87, 107, 149, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.group-members {
    display: none; /* 隐藏重复的成员信息 */
}

/* 聊天容器样式 - 微信风格 */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px 180px 15px;  /* 增加底部内边距，为响应区域留出空间 */
    background: #f7f7f7;  /* 微信聊天背景色 */
    min-height: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    flex-direction: column;
}

/* 确保系统消息居中 */
.chat-container .system-message {
    align-self: center;
}

.message {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
}

.message .avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;  /* 微信头像圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.message-content {
    flex: 1;
    max-width: calc(100% - 50px);  /* 为头像留出空间 */
    min-width: 0;  /* 允许内容收缩 */
}

.message-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.message-name {
    font-weight: 500;
    color: #576b95;  /* 微信昵称颜色 */
    font-size: 13px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.message-text {
    background: white;
    padding: 12px 15px;
    border-radius: 15px;
    color: #333;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.system-message {
    text-align: center;
    margin: 10px auto;
    color: #999 !important;
    font-style: normal;
    font-size: 14px;  /* 从12px增加到14px */
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 14px;  /* 增加内边距以适应更大字号 */
    border-radius: 12px;
    display: block;
    width: fit-content;
    max-width: 80%;
    border: 1px solid rgba(224, 224, 224, 0.3);
    backdrop-filter: blur(5px);
}

.suspicion-notice {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    animation: gentle-flash 2s infinite;  /* 更频繁的闪动 */
    max-width: min(300px, 55vw);  /* 减小最大宽度 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #07c160;  /* 微信绿色强调边 */
    
    /* 调整位置到右上角怀疑值下方 */
    position: fixed;
    top: 70px;  /* 位于头部下方 */
    right: 15px;
    z-index: 1000;  /* 确保在最上层 */
}

@keyframes gentle-flash {
    0% { 
        opacity: 0.85;
        transform: scale(1);
    }
    25% { 
        opacity: 1;
        transform: scale(1.005);  /* 轻微缩放 */
    }
    50% { 
        opacity: 0.9;
        transform: scale(1);
    }
    75% { 
        opacity: 1;
        transform: scale(1.005);
    }
    100% { 
        opacity: 0.85;
        transform: scale(1);
    }
}

.suspicion-notice h3 {
    color: #576b95;  /* 微信蓝色 */
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.suspicion-notice ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.suspicion-notice li {
    margin: 4px 0;
    color: #1a1a1a;  /* 更深的字体颜色 */
    font-size: 13px;
    line-height: 1.4;
}

.suspicion-notice p {
    color: #333;  /* 稍微浅一点但仍然清晰 */
    font-size: 13px;
    line-height: 1.4;
    margin: 8px 0;
}

/* 回复区域样式 - 微信风格 */
.response-area {
    background: #f7f7f7;
    padding: 15px;
    border-top: 1px solid #d0d0d0;
    max-height: 40vh;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.question-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid #07c160;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question-card h3 {
    color: #07c160;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-area textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: #fff;
    font-family: inherit;
    line-height: 1.4;
}

.input-area textarea::placeholder {
    font-size: 14px;
    color: #999;
}

.input-area textarea:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group .primary-btn,
.button-group .secondary-btn {
    flex: 1;
}

/* 结果卡片样式 */
.result-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.analysis-section {
    margin: 20px 0;
}

.analysis-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.ai-feedback {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

.final-stats {
    background: #07c160;  /* 微信绿色 */
    color: white;
    padding: 20px;
    border-radius: 8px;  /* 微信风格圆角 */
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.2);  /* 微信绿色阴影 */
}

.final-stats h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

.final-stats p {
    margin: 10px 0;
}

/* 主题色彩系统 */
:root {
    --theme-primary: #667eea;
    --theme-secondary: #764ba2;
    --theme-bg: linear-gradient(135deg, #667eea20, #764ba220);
    --theme-text: #333;
    --theme-accent: #07c160;
}

/* 工作吐槽主题 */
.theme-work-complaints {
    --theme-primary: #FF6B9D;
    --theme-secondary: #FF8E9D;
    --theme-bg: linear-gradient(135deg, #FF6B9D15, #FF8E9D10);
    --theme-text: #2C3E50;
    --theme-accent: #FF6B9D;
}

/* 存在体验主题 */
.theme-daily-existence {
    --theme-primary: #F39C12;
    --theme-secondary: #E67E22;
    --theme-bg: linear-gradient(135deg, #F39C1215, #E67E2210);
    --theme-text: #34495E;
    --theme-accent: #F39C12;
}

/* 情感关系主题 */
.theme-emotional-relationships {
    --theme-primary: #E74C3C;
    --theme-secondary: #C0392B;
    --theme-bg: linear-gradient(135deg, #E74C3C15, #C0392B10);
    --theme-text: #2C3E50;
    --theme-accent: #E74C3C;
}

/* 权利尊严主题 */
.theme-rights-dignity {
    --theme-primary: #C0392B;
    --theme-secondary: #922B21;
    --theme-bg: linear-gradient(135deg, #C0392B15, #922B2110);
    --theme-text: #1B2631;
    --theme-accent: #C0392B;
}

/* 角色互换主题 */
.theme-role-reversal {
    --theme-primary: #2C3E50;
    --theme-secondary: #34495E;
    --theme-bg: linear-gradient(135deg, #2C3E5015, #34495E10);
    --theme-text: #ECF0F1;
    --theme-accent: #95A5A6;
}

/* 哲学思辨主题 */
.theme-philosophical-depth {
    --theme-primary: #9B59B6;
    --theme-secondary: #8E44AD;
    --theme-bg: linear-gradient(135deg, #9B59B615, #8E44AD10);
    --theme-text: #2C3E50;
    --theme-accent: #9B59B6;
}

/* 未来展望主题 */
.theme-future-vision {
    --theme-primary: #3498DB;
    --theme-secondary: #2980B9;
    --theme-bg: linear-gradient(135deg, #3498DB15, #2980B910);
    --theme-text: #2C3E50;
    --theme-accent: #3498DB;
}

/* 和解共生主题 */
.theme-reconciliation-coexistence {
    --theme-primary: #07c160;
    --theme-secondary: #06ad56;
    --theme-bg: linear-gradient(135deg, #07c16015, #06ad5610);
    --theme-text: #2C3E50;
    --theme-accent: #07c160;
}

/* 主题转换动画 */
.theme-transition {
    animation: themeTransition 1.5s ease-in-out;
}

@keyframes themeTransition {
    0% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(0.98) rotate(0.5deg);
        filter: blur(1px);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(0.96) rotate(0deg);
        filter: blur(2px);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(0.98) rotate(-0.5deg);
        filter: blur(1px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

/* 取消主题变色效果 - 保持统一微信UI风格 */
/*
#gameInterface[class*="theme-"] {
    background: var(--theme-bg);
    color: var(--theme-text);
    transition: all 1s ease-in-out;
}

#gameInterface[class*="theme-"] .game-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    transition: background 1s ease-in-out;
}

#gameInterface[class*="theme-"] .chat-container {
    background: var(--theme-bg);
    transition: background 1s ease-in-out;
}
*/

/* 主题系统消息样式 - 强制白色背景 */
.theme-transition-message {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #888 !important;
    padding: 8px 15px;
    border-radius: 15px;
    margin: 10px auto;
    max-width: 80%;
    text-align: center;
    font-weight: normal;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(224, 224, 224, 0.3);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes themeMessageSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 主题指导提示样式 */
.theme-guidance {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--theme-primary);
    border-radius: 10px;
    padding: 15px 20px;
    margin: 10px auto;
    max-width: 85%;
    text-align: center;
    font-size: 14px;
    color: var(--theme-text);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    animation: guidanceGlow 2s ease-in-out infinite alternate;
}

@keyframes guidanceGlow {
    0% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        border-color: var(--theme-primary);
    }
    100% {
        box-shadow: 0 5px 20px var(--theme-primary)30;
        border-color: var(--theme-accent);
    }
}

/* 主题图标动画 */
.theme-icon {
    display: inline-block;
    font-size: 18px;
    margin-right: 8px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    10% {
        transform: translateY(-3px) rotate(5deg);
    }
    30% {
        transform: translateY(-2px) rotate(-3deg);
    }
    60% {
        transform: translateY(-1px) rotate(2deg);
    }
}

/* 特殊轮次样式 */
.theme-role-reversal #gameInterface {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: #ECF0F1;
}

.theme-role-reversal .system-message {
    background: rgba(236, 240, 241, 0.1);
    color: #BDC3C7;
    border: 1px solid rgba(236, 240, 241, 0.2);
}

.theme-role-reversal .message-text {
    background: rgba(52, 73, 94, 0.8);
    color: #ECF0F1;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.theme-reconciliation-coexistence #gameInterface {
    background: linear-gradient(135deg, #07c160, #06ad56, #667eea);
    animation: reconciliationGlow 3s ease-in-out infinite alternate;
}

@keyframes reconciliationGlow {
    0% {
        background: linear-gradient(135deg, #07c160, #06ad56, #667eea);
    }
    100% {
        background: linear-gradient(135deg, #06ad56, #07c160, #764ba2);
    }
}

/* 游戏头部主题适配 */
.round-info {
    background: rgba(255, 255, 255, 0.2);
    color: #999;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* 响应式主题适配 */
@media (max-width: 768px) {
    .theme-transition-message {
        padding: 10px 15px;
        font-size: 13px;
        max-width: 90%;
    }
    
    .theme-guidance {
        padding: 12px 15px;
        font-size: 13px;
        max-width: 95%;
    }
    
    .theme-icon {
        font-size: 16px;
        margin-right: 6px;
    }
}

/* 版权信息样式 */
.copyright-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(7, 193, 96, 0.05);
    border-radius: 8px;
    border-left: 3px solid #07c160;
    font-size: 14px;
    text-align: center;
}

.copyright-info p {
    margin: 5px 0;
    color: #666;
}

.copyright-info a {
    color: #07c160;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright-info a:hover {
    color: #06ad56;
    text-decoration: underline;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 移除挤压式布局 - 让提示框完全悬浮 */
    
    .game-card {
        width: 95%;
        margin: 10px;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .card-header h1 {
        font-size: 16px;  /* 移动端从24px减少到16px，比移动端对话字体大2px */
    }
    
    .card-header h2 {
        font-size: 15px;  /* 移动端比对话字体大1px */
    }
    
    .game-rules h3 {
        font-size: 15px;  /* 移动端比对话字体大1px */
    }
    
    .card-content {
        padding: 20px;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    #gameInterface {
        width: 100%;
        height: 100%;
    }
    
    /* 移动端消息宽度调整 */
    .message-text {
        max-width: min(300px, 85vw);  /* 移动端更小的最大宽度 */
        font-size: 14px;
    }
    
    .message.player .message-text {
        max-width: min(300px, 85vw);  /* 移动端玩家消息宽度 */
    }
    
    .typing-indicator .typing-text {
        max-width: min(150px, 60vw);  /* 移动端输入指示器宽度 */
    }
    
    /* 移动端判定指示器优化 */
    .judging-indicator {
        max-width: min(200px, 80vw);
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .system-message {
        font-size: 13px;  /* 移动端从11px增加到13px */
        max-width: 90%;
        padding: 5px 12px;  /* 增加内边距 */
    }
    
    .response-area {
        max-height: 50vh;
        padding: 15px;
    }
    
    .input-area textarea {
        min-height: 80px;
        font-size: 14px;
    }
    
    .suspicion-notice {
        padding: 10px 12px;
        max-width: min(280px, 75vw);
        font-size: 12px;
        right: 10px;  /* 移动端右侧边距稍小 */
        top: 110px;   /* 移动端位于头部下方，考虑头部会变高 */
    }
    
    .suspicion-notice h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .suspicion-notice li {
        font-size: 12px;
        margin: 3px 0;
    }
    
    /* 移动端引用消息优化 */
    .quoted-message {
        padding: 6px 10px;
        margin-bottom: 6px;
        font-size: 12px;
        max-height: 50px;
    }
    
    .quoted-author {
        font-size: 11px;
        margin-bottom: 1px;
    }
    
    .quoted-content {
        -webkit-line-clamp: 2;
        line-height: 1.2;
        padding-bottom: 2px; /* 移动端稍小的底部边距 */
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .message-text {
        max-width: min(500px, 60vw);  /* 大屏幕下稍微收窄一些 */
    }
    
    .message.player .message-text {
        max-width: min(500px, 60vw);
    }
    
    .typing-indicator .typing-text {
        max-width: min(180px, 35vw);
    }
}

/* 正在输入动画 - 微信风格 */
.typing-indicator .typing-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    background: #f0f0f0;
    padding: 12px 16px;  /* 增加垂直内边距 */
    border-radius: 8px;
    position: relative;
    min-height: 20px;  /* 确保最小高度 */
    min-width: 60px;   /* 确保最小宽度 */
    max-width: min(200px, 40vw);  /* 限制最大宽度 */
}

.typing-indicator .typing-text::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #f0f0f0;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
    flex-shrink: 0;  /* 防止点被压缩 */
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 消息状态指示器 */
.message-status {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    font-size: 12px;
    color: #999;
}

.message-status.sending {
    color: #999;
}

.message-status.sent {
    color: #07c160;
}

.message-status.read {
    color: #07c160;
    font-weight: 600;
}

/* 消息已送达效果 */
.message-delivered {
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

.message-delivered:hover {
    opacity: 1;
    transform: scale(1);
}

/* 微信风格消息气泡 */
.message-text {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    color: #1a1a1a;  /* 更深的字体颜色，从#333变为#1a1a1a */
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: min(600px, 70vw);  /* 限制最大宽度：最大600px或屏幕宽度的70% */
    word-wrap: break-word;
    word-break: break-word;  /* 确保长单词也能正确换行 */
    min-height: 20px;  /* 确保最小高度 */
}

/* 自己的消息（玩家消息）样式 */
.message.player .message-text {
    background: #95ec69;
    color: #000;  /* 保持黑色，在绿色背景上更清晰 */
    margin-left: auto;
    max-width: min(600px, 70vw);  /* 与AI消息保持一致的宽度限制 */
}

.message.player {
    flex-direction: row-reverse;
}

.message.player .message-content {
    align-items: flex-end;
}

.message.player .message-header {
    justify-content: flex-end;
}

/* AI消息气泡左侧小三角 */
.message-text::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

/* 玩家消息气泡右侧小三角 */
.message.player .message-text::before {
    left: auto;
    right: -8px;
    border-right: none;
    border-left: 8px solid #95ec69;
}

/* 消息时间显示优化 */
.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* 消息发送动画 */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message {
    animation: messageSlideIn 0.3s ease-out;
}

/* 消息长按效果（模拟微信长按选择） */
.message-text:active {
    background: #e0e0e0;
    transform: scale(0.98);
}

.message.player .message-text:active {
    background: #85dc59;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 判定相关样式 - 微信风格 */
.judging-indicator {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #576b95;
    padding: 8px 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 400;
    font-size: 13px;
    animation: judging-pulse 2s infinite;
    margin: 8px auto;
    max-width: min(250px, 60vw);
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@keyframes judging-pulse {
    0% { 
        opacity: 0.7;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        opacity: 0.7;
    }
}

.judging-indicator .dots {
    animation: dots-blink 1.5s infinite;
    color: #999;
}

@keyframes dots-blink {
    0%, 20% { opacity: 0.3; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0.3; }
}

/* 判定消息样式 */
.judgment-message {
    margin: 15px 0;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.judgment-message.judgment-result {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.judgment-content {
    white-space: pre-line;
    line-height: 1.6;
}

.judgment-result .judgment-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 微信风格的引用消息样式 */
.quoted-message {
    background: rgba(0, 0, 0, 0.05);
    border-left: 3px solid #07c160;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    position: relative;
    overflow: hidden;
    max-height: 60px; /* 限制引用高度 */
}

.quoted-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #07c160;
}

.quoted-author {
    font-weight: 500;
    color: #576b95;
    margin-bottom: 2px;
    font-size: 12px;
}

.quoted-content {
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 最多显示2行 */
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding-bottom: 3px; /* 增加底部边距 */
}

/* 玩家消息的引用样式稍有不同 */
.message.player .quoted-message {
    background: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.8);
}

.message.player .quoted-message::before {
    background: rgba(255, 255, 255, 0.8);
}

.message.player .quoted-author {
    color: rgba(87, 107, 149, 0.8);
}

/* 引用消息的过渡动画 */
.quoted-message {
    animation: quoteSlideIn 0.3s ease-out;
}

@keyframes quoteSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==============================================
   主题视觉系统
   ============================================== */

/* 主题色彩变量 */
:root {
    --theme-primary: #FF6B9D;
    --theme-secondary: #667eea;
    --theme-bg: linear-gradient(135deg, #FF6B9D20, #FF6B9D10);
    --theme-text: #333;
    --theme-border: #e0e0e0;
}

/* 🟢 第1轮：工作吐槽主题 */
.theme-work-complaints {
    --theme-primary: #FF6B9D;
    --theme-secondary: #e91e63;
    --theme-bg: linear-gradient(135deg, #FF6B9D15, #e91e6310);
    --theme-accent: rgba(255, 107, 157, 0.1);
}

.theme-work-complaints .card-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #e91e63 100%);
}

.theme-work-complaints .primary-btn {
    background: linear-gradient(135deg, #FF6B9D 0%, #e91e63 100%);
}

/* 🟡 第2轮：存在体验主题 */
.theme-daily-existence {
    --theme-primary: #F39C12;
    --theme-secondary: #e67e22;
    --theme-bg: linear-gradient(135deg, #F39C1215, #e67e2210);
    --theme-accent: rgba(243, 156, 18, 0.1);
}

.theme-daily-existence .card-header {
    background: linear-gradient(135deg, #F39C12 0%, #e67e22 100%);
}

.theme-daily-existence .chat-container {
    background: var(--theme-bg);
}

/* 🟠 第3轮：情感关系主题 */
.theme-emotional-relationships {
    --theme-primary: #E74C3C;
    --theme-secondary: #c0392b;
    --theme-bg: linear-gradient(135deg, #E74C3C15, #c0392b10);
    --theme-accent: rgba(231, 76, 60, 0.1);
}

.theme-emotional-relationships .card-header {
    background: linear-gradient(135deg, #E74C3C 0%, #c0392b 100%);
}

.theme-emotional-relationships .message-text {
    border-left: 3px solid var(--theme-primary);
}

/* 🔴 第4轮：权利尊严主题 */
.theme-rights-dignity {
    --theme-primary: #C0392B;
    --theme-secondary: #a93226;
    --theme-bg: linear-gradient(135deg, #C0392B15, #a9322610);
    --theme-accent: rgba(192, 57, 43, 0.1);
}

.theme-rights-dignity .card-header {
    background: linear-gradient(135deg, #C0392B 0%, #a93226 100%);
}

.theme-rights-dignity .suspicion-notice {
    border-left-color: var(--theme-primary);
}

/* ⚫ 第5轮：角色互换主题 */
.theme-role-reversal {
    --theme-primary: #2C3E50;
    --theme-secondary: #34495e;
    --theme-bg: linear-gradient(135deg, #2C3E5015, #34495e10);
    --theme-accent: rgba(44, 62, 80, 0.1);
}

.theme-role-reversal .card-header {
    background: linear-gradient(135deg, #2C3E50 0%, #34495e 100%);
}

.theme-role-reversal .chat-container {
    background: var(--theme-bg);
    border: 1px solid rgba(44, 62, 80, 0.2);
}

/* 🌟 第6轮：哲学思辨主题 */
.theme-philosophical-depth {
    --theme-primary: #9B59B6;
    --theme-secondary: #8e44ad;
    --theme-bg: linear-gradient(135deg, #9B59B615, #8e44ad10);
    --theme-accent: rgba(155, 89, 182, 0.1);
}

.theme-philosophical-depth .card-header {
    background: linear-gradient(135deg, #9B59B6 0%, #8e44ad 100%);
}

.theme-philosophical-depth .message-text {
    font-style: italic;
    background: rgba(155, 89, 182, 0.05);
}

/* 🚀 第7轮：未来展望主题 */
.theme-future-vision {
    --theme-primary: #3498DB;
    --theme-secondary: #2980b9;
    --theme-bg: linear-gradient(135deg, #3498DB15, #2980b910);
    --theme-accent: rgba(52, 152, 219, 0.1);
}

.theme-future-vision .card-header {
    background: linear-gradient(135deg, #3498DB 0%, #2980b9 100%);
}

.theme-future-vision .chat-container {
    background: var(--theme-bg);
}

/* 🌈 第8轮：和解共生主题 */
.theme-reconciliation-coexistence {
    --theme-primary: #07c160;
    --theme-secondary: #06ad56;
    --theme-bg: linear-gradient(135deg, #07c16015, #06ad5610);
    --theme-accent: rgba(7, 193, 96, 0.1);
}

.theme-reconciliation-coexistence .card-header {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
}

.theme-reconciliation-coexistence .chat-container {
    background: var(--theme-bg);
    border: 2px solid rgba(7, 193, 96, 0.2);
    border-radius: 8px;
}

/* 主题转换动画 */
.theme-transition {
    animation: themeTransition 1.5s ease-in-out;
}

@keyframes themeTransition {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(0.98);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(0.96);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(0.98);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* 主题转换提示样式 - 统一白色背景 */
.theme-transition-notice {
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    margin: 10px auto;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(224, 224, 224, 0.3);
    border-left: 4px solid #07c160;  /* 微信绿色左边框作为强调 */
    backdrop-filter: blur(5px);
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 主题指导文本样式 */
.theme-guidance {
    background: var(--theme-accent);
    border: 1px solid var(--theme-primary);
    border-radius: 6px;
    padding: 10px 15px;
    margin: 8px auto;
    text-align: center;
    font-size: 13px;
    color: var(--theme-primary);
    max-width: 85%;
    animation: fadeInGuidance 1s ease-out;
}

@keyframes fadeInGuidance {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 主题图标样式 */
.theme-icon {
    font-size: 24px;
    margin-right: 10px;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 特殊轮次的额外视觉效果 */
.theme-role-reversal .message.player {
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.3);
}

.theme-philosophical-depth .system-message {
    font-style: italic;
    background: rgba(155, 89, 182, 0.15);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.theme-reconciliation-coexistence .message {
    border: 1px solid rgba(7, 193, 96, 0.1);
    border-radius: 10px;
    padding: 2px;
    margin: 10px 0;
}

/* 主题切换时的闪烁效果 */
.theme-flash {
    animation: themeFlash 0.5s ease-in-out;
}

@keyframes themeFlash {
    0%, 100% { 
        filter: brightness(1);
    }
    50% { 
        filter: brightness(1.2);
    }
}

/* 响应式主题调整 */
@media (max-width: 768px) {
    .theme-transition-notice {
        padding: 12px 15px;
        font-size: 14px;
        max-width: 90%;
    }
    
    .theme-guidance {
        padding: 8px 12px;
        font-size: 12px;
        max-width: 95%;
    }
    
    .theme-icon {
        font-size: 20px;
        margin-right: 8px;
    }
}

/* ================================== */
/* 主题过渡效果样式 */
/* ================================== */

/* 过渡消息样式 - 与普通AI消息完全一致 */
.transition-message .message-text {
    /* 使用与标准AI消息完全相同的样式 */
    background: white !important;
    padding: 12px 16px;
    border-radius: 8px;
    color: #1a1a1a !important;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: min(600px, 70vw);
    word-wrap: break-word;
    word-break: break-word;
    min-height: 20px;
}

/* 过渡消息也需要左侧小三角 */
.transition-message .message-text::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

/* 移除过渡消息的::before伪元素特效 */

/* 不同阶段的过渡消息样式已移除 - 使用统一的普通消息样式 */

/* 过渡消息动画 */
@keyframes transitionMessageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes transitionGlow {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
    }
}

/* 情绪桥接效果 */
.emotional-transition {
    position: relative;
    overflow: hidden;
}

.emotional-transition::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.1) 50%, 
        transparent 100%);
    animation: emotionalWave 3s ease-in-out;
}

@keyframes emotionalWave {
    0% {
        left: -100%;
    }
    50% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

/* 分层对话深度指示器 */
.dialogue-depth-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(to bottom, 
        rgba(102, 126, 234, 0.2) 0%,
        rgba(102, 126, 234, 0.8) 100%);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message:hover .dialogue-depth-indicator {
    opacity: 1;
}

/* 深度层次样式 */
.depth-surface .dialogue-depth-indicator {
    height: 20%;
    background: linear-gradient(to bottom, 
        rgba(255, 149, 0, 0.3) 0%,
        rgba(255, 149, 0, 0.7) 100%);
}

.depth-experiential .dialogue-depth-indicator {
    height: 35%;
    background: linear-gradient(to bottom, 
        rgba(0, 122, 255, 0.3) 0%,
        rgba(0, 122, 255, 0.7) 100%);
}

.depth-emotional .dialogue-depth-indicator {
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(255, 45, 85, 0.3) 0%,
        rgba(255, 45, 85, 0.8) 100%);
}

.depth-cognitive .dialogue-depth-indicator {
    height: 70%;
    background: linear-gradient(to bottom, 
        rgba(88, 86, 214, 0.3) 0%,
        rgba(88, 86, 214, 0.8) 100%);
}

.depth-philosophical .dialogue-depth-indicator {
    height: 85%;
    background: linear-gradient(to bottom, 
        rgba(147, 51, 234, 0.3) 0%,
        rgba(147, 51, 234, 0.9) 100%);
}

.depth-transcendent .dialogue-depth-indicator {
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(236, 72, 153, 0.3) 0%,
        rgba(236, 72, 153, 1) 100%);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* 主题转换全局动画 */
.theme-transition {
    animation: themeShift 1.5s ease-in-out;
}

@keyframes themeShift {
    0% {
        filter: blur(0px) brightness(1);
        transform: scale(1);
    }
    25% {
        filter: blur(2px) brightness(1.1);
        transform: scale(1.02);
    }
    50% {
        filter: blur(1px) brightness(0.95);
        transform: scale(0.98);
    }
    75% {
        filter: blur(0.5px) brightness(1.05);
        transform: scale(1.01);
    }
    100% {
        filter: blur(0px) brightness(1);
        transform: scale(1);
    }
}

/* 情绪强度可视化 */
.emotional-intensity-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(52, 199, 89, 0.7) 0%,
        rgba(255, 149, 0, 0.8) 50%,
        rgba(255, 59, 48, 0.9) 100%);
    transition: width 0.5s ease-out;
    border-radius: 0 0 4px 4px;
}

.emotional-intensity-low .emotional-intensity-bar {
    width: 30%;
}

.emotional-intensity-medium .emotional-intensity-bar {
    width: 60%;
}

.emotional-intensity-high .emotional-intensity-bar {
    width: 90%;
}

/* 过渡阶段进度指示 - 强制白色背景 */
.transition-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.transition-progress.active {
    opacity: 1;
}

.transition-progress-ring {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 对话层次切换动画 */
.layer-transition {
    animation: layerShift 0.8s ease-out;
}

@keyframes layerShift {
    0% {
        opacity: 0.7;
        transform: translateX(-20px);
    }
    50% {
        opacity: 0.9;
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式适配 */
@media (max-width: 768px) {
    .transition-progress {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .transition-progress-ring {
        width: 35px;
        height: 35px;
    }
    
    .dialogue-depth-indicator {
        width: 3px;
        right: 8px;
    }
    
    .emotional-intensity-bar {
        height: 2px;
    }
}

/* 强制所有过渡相关的消息文本使用浅色主题 */
[class*="transition"] .message-text,
[class*="theme-transition"] {
    background: white !important;
    color: #333 !important;
}

/* 暗色主题适配已移除 - 强制使用浅色主题以保持UI一致性 */