/* ============================================
   一、全局基础样式
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    position: relative;
}

/* 隐藏滚动条但保持滚动功能 */
::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 允许对话内容选择文字 */
.chat-messages,
.message-bubble,
.message-content {
    user-select: text;
    -webkit-user-select: text;
}

/* ============================================
   二、流体抽象背景 + 噪点纹理
   ============================================ */
.fluid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(245, 245, 245, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(240, 240, 240, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(250, 250, 250, 0.7) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(235, 235, 235, 0.5) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(248, 248, 248, 0.6) 0%, transparent 45%),
        linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.fluid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================
   三、登录设置页面样式
   ============================================ */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: 
        radial-gradient(circle at 30% 40%, rgba(20, 20, 20, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(15, 15, 15, 0.85) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 20rem;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 200, 200, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(200, 220, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* 微信环境限制提示页 */
.wechat-only-overlay {
    z-index: 2000;
}

.wechat-only-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 20rem;
    text-align: center;
    color: #fff;
}

.wechat-only-title {
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.wechat-only-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.login-card h2 {
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-input {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
    outline: none;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.login-input:focus {
    border-bottom-color: #666;
}

.contact-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.contact-btn:active {
    transform: scale(0.96);
}

/* ============================================
   四、主界面样式
   ============================================ */
#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.main-container {
    width: 100%;
    height: 100vh;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.main-title {
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 2rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.main-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.settings-icon {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-icon:active {
    transform: scale(0.9);
}

.settings-icon::before,
.settings-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #1a1a1a;
    border-radius: 50%;
}

.settings-icon::before {
    width: 1.2rem;
    height: 1.2rem;
    border-top-color: transparent;
    border-right-color: transparent;
}

.settings-icon::after {
    width: 0.6rem;
    height: 0.6rem;
    border-width: 1.5px;
    background: #1a1a1a;
}

/* ============================================
   五、功能模块卡片样式
   ============================================ */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.module-card:first-child {
    grid-column: 1 / -1;
}

.module-card {
    position: relative;
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-card:active {
    transform: scale(0.98);
}

/* 朋友圈嘴替 - 橙色/玫瑰色 */
.module-card:nth-child(1) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 150, 150, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 180, 200, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 200, 180, 0.2) 0%, rgba(255, 180, 200, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 活动策划 - 靛蓝色 */
.module-card:nth-child(2) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(100, 150, 255, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(80, 130, 240, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(120, 160, 255, 0.2) 0%, rgba(90, 140, 250, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 皮肤诊断大师 - 肉粉色 */
.module-card:nth-child(3) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 200, 180, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 180, 160, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 220, 200, 0.2) 0%, rgba(255, 200, 180, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 成分大师 - 祖母绿/青色 */
.module-card:nth-child(4) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(100, 200, 180, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(80, 190, 170, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(120, 210, 190, 0.2) 0%, rgba(90, 200, 180, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 小红书复刻机 - 红色/深红 */
.module-card:nth-child(5) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 80, 80, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(220, 60, 60, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(230, 70, 70, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 销冠教练 - 金黄色/米黄色 */
.module-card:nth-child(6) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 220, 100, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 200, 80, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 230, 120, 0.2) 0%, rgba(255, 210, 90, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 爆款短视频 - 紫色/深紫色 */
.module-card:nth-child(7) {
    background: 
        radial-gradient(circle at 30% 30%, rgba(180, 120, 255, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(160, 100, 240, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(200, 140, 255, 0.2) 0%, rgba(170, 110, 250, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.module-title {
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

.module-desc {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
}

/* ============================================
   六、对话界面样式
   ============================================ */
.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fafafa;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.back-icon {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.back-icon:active {
    transform: scale(0.9);
}

.back-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.6rem;
    height: 0.6rem;
    border-left: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    transform: translate(-30%, -50%) rotate(45deg);
}

.chat-header-title {
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 1.125rem;
    color: #1a1a1a;
    flex: 1;
    text-align: center;
    margin: 0 0.5rem;
}

.trash-icon {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.trash-icon:active {
    transform: scale(0.9);
}

.trash-icon::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 0.9rem;
    height: 0.7rem;
    border: 2px solid #ff4444;
    border-top: none;
    border-radius: 0 0 0.15rem 0.15rem;
}

.trash-icon::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 0.3rem;
    height: 0.15rem;
    background: #ff4444;
    border-radius: 0.1rem 0.1rem 0 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
    position: relative;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message-bubble.user {
    align-self: flex-end;
    background: #1a1a1a;
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.message-bubble.ai {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-content {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-time {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
}

.copy-icon-btn {
    position: absolute;
    bottom: -1.5rem;
    left: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon-btn:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

/* 复制图标：两个重叠的方框 */
.copy-icon-btn::before {
    content: '';
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    border: 1.5px solid #666;
    border-radius: 0.15rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-icon-btn::after {
    content: '';
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    border: 1.5px solid #666;
    border-radius: 0.15rem;
    top: 55%;
    left: 55%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 复制成功状态：显示对勾 */
.copy-icon-btn.copied::before {
    width: 0.6rem;
    height: 0.3rem;
    border: none;
    border-left: 2px solid #4caf50;
    border-bottom: 2px solid #4caf50;
    transform: translate(-50%, -70%) rotate(-45deg);
    border-radius: 0;
}

.copy-icon-btn.copied::after {
    display: none;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

.add-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-btn:active {
    transform: scale(0.9);
}

.add-btn::before {
    content: '+';
    line-height: 1;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    min-height: 2.5rem;
    max-height: 6rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 1.25rem;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.9375rem;
    color: #333;
    resize: none;
    outline: none;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.chat-input:focus {
    border-color: #999;
    background: #fff;
}

.upload-preview {
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.875rem;
    color: #666;
}

.send-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.send-btn.active {
    background: #1a1a1a;
}

.send-btn:active {
    transform: scale(0.9);
}

/* 向上箭头 */
.send-btn::before {
    content: '';
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(-45deg) translate(0.15rem, 0.15rem);
}

.send-btn.active::before {
    border-color: #fff;
}

/* ============================================
   七、弹窗和提示样式
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-dialog {
    width: 100%;
    max-width: 18rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-dialog-title {
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: 1.125rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.confirm-btn,
.cancel-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-btn {
    background: #1a1a1a;
    color: #fff;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.confirm-btn:active,
.cancel-btn:active {
    transform: scale(0.96);
}

.upload-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-menu-item {
    padding: 1rem;
    border: none;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    text-align: left;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.upload-menu-item:active {
    background: #f5f5f5;
}

.upload-menu-item + .upload-menu-item {
    margin-top: 0.5rem;
}

/* ============================================
   八、动画效果
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.page-enter {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-exit {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) reverse;
}

/* ============================================
   九、响应式适配
   ============================================ */
/* 基准尺寸：375px */
@media screen and (min-width: 375px) {
    html {
        font-size: 16px;
    }
}

/* 小屏适配 */
@media screen and (max-width: 374px) {
    html {
        font-size: 14px;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .module-title {
        font-size: 1.125rem;
    }
}

/* 大屏适配 */
@media screen and (min-width: 414px) {
    html {
        font-size: 17px;
    }
}

/* 超大屏适配 */
@media screen and (min-width: 768px) {
    html {
        font-size: 18px;
    }
    
    .main-container {
        max-width: 414px;
        margin: 0 auto;
    }
    
    .chat-container {
        max-width: 414px;
        margin: 0 auto;
    }
}

