/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #b91c1c;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 页面容器 ==================== */
.page {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background-color: #b91c1c;
    overflow: hidden;
}

/* ==================== 通用区块 ==================== */
section {
    width: 100%;
    position: relative;
    line-height: 0;
    font-size: 0;
}

section img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}

section a {
    display: block;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* ==================== 顶部主视觉区 ==================== */
.hero-section {
    background-color: #b91c1c;
}

/* 免费领取按钮：覆盖在 gp_01.jpg 原按钮位置 */
.btn-get-free {
    position: absolute;
    left: 50%;
    bottom: 5.5%;
    transform: translateX(-50%);
    width: 68%;
    z-index: 2;
    transition: transform 0.15s ease;
}

.btn-get-free img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-get-free:active {
    transform: translateX(-50%) scale(0.96);
}

/* ==================== 中部问题区 ==================== */
.problems-section {
    background-color: #b91c1c;
}

/* ==================== 底部了解详情区 ==================== */
.footer-section {
    background-color: #ff6a00;
}

.footer-section a {
    width: 100%;
}

.footer-section a:active img {
    opacity: 0.92;
}

/* ==================== 对话聊天页 ==================== */
/* 落地页容器 */
#landing-page {
    width: 100%;
}

/* 对话页容器 */
.chat-page {
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
    display: none;
}

/* 对话页顶部横幅 */
.chat-header {
    width: 100%;
    background: linear-gradient(180deg, #ff4d4d 0%, #d32f2f 100%);
    color: #fff;
    text-align: center;
    padding: 18px 16px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 1px;
}

.chat-header .highlight {
    color: #ffeb3b;
}

/* 对话内容区 */
.chat-body {
    padding: 16px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.chat-message .avatar {
    width: 46px;
    height: 46px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 10px;
    background-color: #fff;
}

.chat-message .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.message-info {
    flex: 1;
    max-width: calc(100% - 60px);
}

.teacher-name {
    color: #4a90e2;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.message-bubble {
    display: inline-block;
    background-color: #fff;
    color: #d32f2f;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    word-break: break-word;
}

/* 用户回复消息（右侧对齐） */
.chat-message.user-message {
    justify-content: flex-end;
}

.user-message .message-info {
    text-align: right;
    margin-left: auto;
    max-width: calc(100% - 60px);
}

.user-message .message-bubble {
    background-color: #95ec69;
    color: #333;
    text-align: left;
}

/* 选项按钮 */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 56px;
    margin-top: 6px;
}

.option-btn {
    background: linear-gradient(180deg, #ff4d4d 0%, #d32f2f 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 26px;
    font-size: 15px;
    cursor: pointer;
    outline: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.option-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* 领取按钮 */
.claim-section {
    margin-bottom: 18px;
}

.claim-btn {
    display: none;
    width: 86%;
    margin: 0 auto 18px;
    background: linear-gradient(180deg, #ff4d4d 0%, #d32f2f 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.claim-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}
