/* 玩家回复框基础样式 */
.rounded-tr-2xl {
    padding: 15px !important;
}

.text-gray-100\/90 {
    color: transparent !important;
}

.css-6usgop, .w-2 {
    display: none !important;
}

.border-\[\#F1CBCB\] {
    border-color: transparent !important;
}

.bg-gray-100\/90:not(.chat-answer-container .bg-gray-100\/90) {
    background: #fff5f7 !important;
    border: 3px solid #ffb6c1 !important;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-family: "Segoe UI", "Meiryo", sans-serif;
    color: #5a3d5a;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    animation: sakuraPulse 6s infinite alternate;
}

.markdown-body, .bg-gray-100\/90 {
    background-color: transparent !important;
}

.py-3, .px-4 {
    padding: 0 !important;
}

/* Galgame樱花粉主题样式 */
.galgame-container {
    background: linear-gradient(135deg, #fff0f5 0%, #fff5fa 100%);
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    padding: 20px;
    color: #5a3d5a;
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.2);
    position: relative;
    overflow: hidden;
}

.galgame-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 Q50,5 70,10 Q95,20 90,40 Q85,65 50,85 Q15,65 10,40 Q5,20 30,10" fill="none" stroke="rgba(255,182,193,0.1)" stroke-width="1"/></svg>');
    background-size: 150px 150px;
    opacity: 0.5;
    pointer-events: none;
}

.header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #d35d8a;
}

.character-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #d35d8a;
}

.separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb6c1, transparent);
    margin: 15px 0;
}

.narrative-content {
    font-size: 16px;
    line-height: 1.8;
    color: #5a3d5a;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 3px solid #ffb6c1;
}

.status-section, .memory-section {
    margin: 15px 0;
}

.status-details, .memory-details {
    background: rgba(255, 240, 245, 0.8);
    border: 1px solid #ffb6c1;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.status-details summary, .memory-details summary {
    font-weight: bold;
    color: #d35d8a;
    cursor: pointer;
    padding: 5px;
    outline: none;
}

.details-content {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.action-options {
    margin-top: 20px;
}

.option-header {
    font-weight: bold;
    color: #d35d8a;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
}

.option-item {
    background: rgba(255, 240, 245, 0.9);
    border: 1px solid #ffb6c1;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.option-item:hover {
    background: #ffb6c1;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(211, 93, 138, 0.3);
}

/* 动画效果 */
@keyframes sakuraPulse {
    0% {
        box-shadow: 0 0 0 2px #fff0f5, 
                    inset 0 0 10px rgba(255, 182, 193, 0.3), 
                    0 5px 15px rgba(255, 182, 193, 0.2),
                    0 0 20px rgba(255, 182, 193, 0.2);
    }
    100% {
        box-shadow: 0 0 0 2px #fff0f5, 
                    inset 0 0 10px rgba(255, 182, 193, 0.3), 
                    0 5px 15px rgba(255, 182, 193, 0.2),
                    0 0 30px rgba(255, 182, 193, 0.4);
    }
}

@keyframes sakuraFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.galgame-container {
    animation: sakuraFloat 5s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-info, .character-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .galgame-container {
        padding: 15px;
    }
    
    .narrative-content {
        font-size: 15px;
    }
    
    .option-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ffb6c1;
    border-radius: 4px;
}

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

/* 细节装饰 */
.protagonist::before, .interactive-char::before {
    content: "🌸 ";
}

.date::before {
    content: "📅 ";
}

.location::before {
    content: "🗺️ ";
}

.details-content strong {
    color: #d35d8a;
}

/* 状态标签特效 */
.status-details[open] summary, 
.memory-details[open] summary {
    color: #ff1493;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.5);
}