/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f5f7;
    color: #333333;
    display: flex;
    justify-content: center;
}

/* 重点突出样式：红色加粗 */
strong {
    color: #e53935;
    font-weight: 900;
}

/* 模拟手机端容器 */
.chat-phone-container {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    background-color: #f4f5f7;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* 顶部图片 */
.top-image-box {
    width: 100%;
    /* aspect-ratio: 16 / 8;
    background-color: #e5e5e5;
    overflow: hidden; */
}

.top-image-box img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    display: block;
}

/* 聊天区域 */
.chat-flow-area {
    flex-grow: 1;
    padding: 20px 14px 40px 14px;
    display: flex;
    flex-direction: column;
}

/* 对话行基础样式 */
.chat-row {
    display: flex;
    margin-bottom: 20px;
    width: 100%;
    align-items: flex-start;
    animation: slideUp 0.4s ease-out forwards;
}

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

/* 客服靠左 */
.chat-row.bot {
    justify-content: flex-start;
}

/* 用户靠右 */
.chat-row.user {
    justify-content: flex-end;
}

/* 头像基础 */
.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 客服头像：深蓝色背景 */
.avatar-bot {
    background-color: #2b61b3;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
    border: 1px solid #1a4a93;
}

/* 用户头像：绿色背景加简易人形标志 */
.avatar-user {
    background-color: #07c160;
    color: #ffffff;
    font-size: 20px;
}

/* 气泡样式 */
.bubble {
    max-width: 73%;
    padding: 14px 16px;
    font-size: 20px; /* 大字号 */
    line-height: 1.5;
    position: relative;
    word-break: break-all;
}

/* 客服气泡：白色底、左上角微尖 */
.chat-row.bot .bubble {
    background-color: #ffffff;
    color: #222222;
    margin-left: 10px;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

/* 用户气泡：绿色底、右上角微尖 */
.chat-row.user .bubble {
    background-color: #07c160;
    color: #ffffff;
    margin-right: 10px;
    border-radius: 16px 4px 16px 16px;
    box-shadow: 0 2px 5px rgba(7, 193, 96, 0.1);
}

/* 按钮选项卡片 */
.options-box {
    margin-top: 15px;
    width: 100%;
}

/* 选项按钮基础 */
.opt-btn {
    background-color: #ffffff;
    border: 1.5px solid #07c160;
    color: #07c160;
    font-size: 19px;
    font-weight: 800;
    padding: 12px 6px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
}

.opt-btn:active {
    background-color: #e6f7ed;
}

/* 2个选项布局：一行两列并排 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* 4个选项布局：2行2列 */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
}

/* 最终动态领取按钮（带呼吸动效） */
.btn-pulsate {
    display: inline-flex;
    width: 100%;
    min-height: 64px;
    background-color: #e53935;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    margin-top: 15px;
    animation: pulsate 1.6s infinite;
}

@keyframes pulsate {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3); }
    50% { transform: scale(1.04); box-shadow: 0 6px 25px rgba(229, 57, 53, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3); }
}

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