@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap');

body {
    background-color: #ffffff;
    color: #31333F;
    font-family: 'Noto Sans TC', sans-serif;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- 核心：熱門問題佈局 --- */
#scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 4px;
    scroll-snap-type: x mandatory; /* 滑動自動對齊 */
}

.scroll-item {
    flex: 0 0 85%; /* 手機端：占 85% 寬度，看起來非常寬大舒服 */
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

/* 電腦版恢復 2x2 網格 */
@media (min-width: 640px) {
    #scroll-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        scroll-snap-type: none;
    }
    .scroll-item {
        width: 100% !important;
        flex: none !important;
    }
}

.scroll-item:hover {
    border-color: #ff4b4b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 75, 75, 0.1);
}

/* --- 對話樣式 --- */
.bubble-user {
    background-color: #f0f2f6;
    border-radius: 18px 18px 2px 18px;
    padding: 12px 18px;
}

.bubble-ai {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 18px 18px 18px 2px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.thought-section {
    border-left: 4px solid #ff4b4b;
    background-color: #fff9f9;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #7a7a7a;
}

/* --- 紅字重點修正 --- */
.prose strong, .prose b {
    color: #ff4b4b !important;
    font-weight: 700 !important;
}

/* --- 動畫 --- */
@keyframes wiggle {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-15px); }
    40% { transform: translateX(10px); }
}
.animate-wiggle { animation: wiggle 0.8s ease-in-out; }