body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e; /* 深色背景 */
    color: #ffffff; /* 白色文本 */
}

.container {
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    height: 100%;
    min-height: -webkit-fill-available;
}

header {
    padding: 1rem;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 200; /* 使用极细字体 */
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 使用更纤细的字体 */
    letter-spacing: 1px; /* 增加字间距 */
    max-width: none; /* 移除最大宽度限制 */
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.user-info.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #4CAF50;
}

.user-avatar {
    width: 35px;
    height: 35px;
    min-width: 35px; /* 防止压缩 */
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
    max-width: 150px;
}

#username {
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

.dealer-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 2px;
    background-color: rgba(76, 175, 80, 0.15);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 60px;
}

.dealer-level .star {
    color: #FFD700;
    font-size: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dealer-level .star {
    animation: starTwinkle 1.5s infinite;
}

.dealer-level .star:nth-child(2) { animation-delay: 0.3s; }
.dealer-level .star:nth-child(3) { animation-delay: 0.6s; }
.dealer-level .star:nth-child(4) { animation-delay: 0.9s; }
.dealer-level .star:nth-child(5) { animation-delay: 1.2s; }

/* 移除之前的 .welcome-message 相关样式 */

.dashboard {
    display: flex;
    flex: 1;
    position: relative;
    height: calc(100% - 60px);
    overflow: hidden;
}

.menu {
    background-color: #1a1a1a; /* 更深的背景色 */
    color: #fff;
    display: flex;
    flex-direction: column;
    width: 240px; /* 固定宽度 */
    min-width: 240px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu ul {
    list-style-type: none;
    padding: 15px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px; /* 菜单项之间的间距 */
}

.menu li {
    padding: 0;
    position: relative;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu li a i {
    width: 20px;
    font-size: 16px;
    margin-right: 12px;
    text-align: center;
}

.menu li:hover a {
    color: #fff;
    background-color: rgba(76, 175, 80, 0.1);
}

.menu li.active a {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.15);
    border-left-color: #4CAF50;
}

/* 通知标记样式 */
.menu li.has-unread::after,
.menu li.has-pending::after {
    content: attr(data-count);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
    animation: notification-pulse 2s infinite;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .menu {
        width: 60px;
        min-width: 60px;
        position: relative;
        height: 100%;
    }

    .menu ul {
        height: auto;
        min-height: calc(100% - 30px);
    }

    .content {
        width: calc(100% - 60px);
    }
}

/* 通知动画 */
@keyframes notification-pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* 移动端通知动画 */
@media (max-width: 768px) {
    @keyframes notification-pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
        }
    }
}

.content {
    flex: 1;
    padding: 5px;
    background-color: #2a2a2a;
    position: relative;
    overflow: auto;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #2a2a2a;
}

/* 退出登录样式 */
.logout {
    margin-top: auto; /* 将退出登录项推到菜单底部 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: row; /* 在小屏幕上保持水平排列 */
    }
    .menu li {
        padding: 15px 10px; /* 减少内边距 */
        justify-content: center; /* 居中对齐 */
    }

    .menu li a {
        padding: 0; /* 移除内边距 */
        justify-content: center; /* 居中对齐 */
    }

    .menu li a i {
        margin-right: 0; /* 移除图标右边距 */
        width: auto; /* 自适应宽度 */
    }

    .menu-text {
        display: none; /* 隐藏文字 */
    }

    .user-info {
        max-width: 150px; /* 在小屏幕上减小最大宽度 */
    }

    #username {
        font-size: 0.8rem; /* 减小字体大小 */
    }

    .dealer-level .star {
        font-size: 7px; /* 减小星星大小 */
    }
}

@media (max-width: 576px) {
    .menu {
        width: auto; /* 在更小屏幕上自适应宽度 */
    }
}

/* 更新按钮样式 */
button {
    background: #4CAF50; /* 绿色背景 */
    color: white;
    border: none;
    border-radius: 0; /* 去掉圆角 */
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #45a049; /* 悬停时的背景色 */
}

/* 更新输入框样式 */
input {
    border-radius: 0; /* 去掉圆角 */
    border: 1px solid #ccc; /* 边框颜色 */
    padding: 10px;
    transition: border-color 0.3s; /* 添加过渡效果 */
    background-color: #333; /* 深色背景 */
    color: #ffffff; /* 白色文本 */
}

input:focus {
    border-color: #4CAF50; /* 聚焦时的边框颜色 */
    outline: none; /* 移除默认的聚焦轮廓 */
}

/* 添加模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #2a2a2a;
    color: #ffffff;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #4CAF50;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-content h2 {
    margin-top: 0;
    color: #4CAF50;
}

.modal-content p {
    margin-bottom: 20px;
}

#storeDomainInput {
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #4CAF50;
    background-color: #333;
    color: #ffffff;
    border-radius: 5px;
}

#setStoreDomainBtn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#setStoreDomainBtn:hover {
    background-color: #45a049;
}

/* 添加通知计数器样式 */
.menu li.has-unread::after,
.menu li.has-pending::after {
    content: attr(data-count);
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: #ff4757;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    animation: notification-pulse 2s infinite;
}

/* 添加通知动画 */
@keyframes notification-pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .menu li.has-unread::after,
    .menu li.has-pending::after {
        right: 5px;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
    }
    
    .menu li {
        padding-right: 30px;
    }
}

/* 添加悬停效果 */
.menu li.has-unread:hover::after,
.menu li.has-pending:hover::after {
    background: #ff6b81;
    transform: translateY(-50%) scale(1.1);
}

/* 当菜单项处于激活状态时的通知样式 */
.menu li.active.has-unread::after,
.menu li.active.has-pending::after {
    background: #ffffff;
    color: #4CAF50;
}

/* 在文件末尾添加 */
.notification-content {
    background-color: #2a2a2a;
    color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #4CAF50;
    width: 90%;
    max-width: 400px;
    border-radius: 5px;
    position: relative;
}

.notification-content h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap; /* 添加这行以支持按钮换行 */
}

.modal-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap; /* 防止按钮文字换行 */
    min-width: 100px; /* 设置最小宽度 */
}

#replyMessageBtn {
    background-color: #4CAF50;
    color: white;
    font-weight: bold; /* 加粗立即回复按钮 */
}

#closeMessageModalBtn {
    background-color: #555; /* 稍微暗一点的灰色 */
    color: #eee;
    flex-grow: 1; /* 允许按钮占据更多空间 */
    max-width: 200px; /* 限制最大宽度 */
}

.modal-buttons button:hover {
    opacity: 0.9;
}

/* 添加响应式样式 */
@media (max-width: 480px) {
    .modal-buttons {
        flex-direction: column; /* 在小屏幕上垂直排列按钮 */
    }
    
    .modal-buttons button {
        width: 100%; /* 按钮占满宽度 */
        max-width: none; /* 移除最大宽度限制 */
        margin-bottom: 8px; /* 添加按钮间距 */
    }
}

/* 更新移动端菜单样式 */
@media (max-width: 768px) {
    .menu {
        width: 60px; /* 固定宽度 */
        min-width: 60px; /* 确保最小宽度 */
    }

    .menu li {
        padding: 15px 0; /* 移除水平内边距 */
        height: 50px; /* 固定高度 */
        position: relative; /* 确保定位正确 */
        justify-content: center; /* 居中对齐 */
    }

    .menu li a {
        padding: 0;
        justify-content: center;
        width: 100%;
    }

    .menu li a i {
        margin: 0; /* 移除图标边距 */
        font-size: 20px; /* 增大图标尺寸 */
    }

    /* 移动端通知标记的新样式 */
    .menu li.has-unread::after,
    .menu li.has-pending::after {
        position: absolute;
        top: 8px; /* 固定到顶部 */
        right: 8px; /* 固定到右侧 */
        min-width: 18px; /* 最小宽度 */
        height: 18px; /* 固定高度 */
        font-size: 11px; /* 更小的字体 */
        padding: 0 4px; /* 减小内边距 */
        transform: none; /* 移除transform */
        border-radius: 9px; /* 圆形效果 */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 柔和的阴影 */
    }

    /* 移动端悬停效果 */
    .menu li.has-unread:hover::after,
    .menu li.has-pending:hover::after {
        transform: scale(1.1); /* 仅缩放效果 */
    }

    /* 移动端动画调整 */
    @keyframes notification-pulse-mobile {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
        }
    }

    .menu li.has-unread::after,
    .menu li.has-pending::after {
        animation: notification-pulse-mobile 2s infinite;
    }

    /* 处理大数字的情况 */
    .menu li.has-unread[data-count]:after,
    .menu li.has-pending[data-count]:after {
        content: attr(data-count);
        padding: 0 4px;
    }

    /* 当数字大于99时显示99+ */
    .menu li.has-unread[data-count="100"]::after,
    .menu li.has-pending[data-count="100"]::after {
        content: "99+";
        font-size: 9px;
        padding: 0 3px;
    }

    /* 活动状态的通知样式 */
    .menu li.active.has-unread::after,
    .menu li.active.has-pending::after {
        background: #ffffff;
        color: #4CAF50;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 375px) {
    .menu {
        width: 50px; /* 更窄的菜单 */
        min-width: 50px;
    }

    .menu li {
        height: 45px; /* 稍微减小高度 */
    }

    .menu li a i {
        font-size: 18px; /* 稍微减小图标 */
    }

    .menu li.has-unread::after,
    .menu li.has-pending::after {
        min-width: 16px; /* 更小的通知标记 */
        height: 16px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
}

/* 移动端菜单基础样式 */
@media (max-width: 768px) {
    .menu {
        width: 60px;
        min-width: 60px;
        background-color: #333;
    }

    .menu li {
        height: 60px; /* 增加高度使布更加宽松 */
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .menu li a {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .menu li a i {
        font-size: 22px; /* 略微增大图标 */
        margin: 0;
    }

    /* 移动端通知标记的新样式 */
    .menu li.has-unread::after,
    .menu li.has-pending::after {
        content: attr(data-count);
        position: absolute;
        top: 12px;
        right: 12px;
        min-width: 8px; /* 最小宽度更小 */
        height: 8px; /* 高度更小 */
        padding: 4px;
        background: #ff4757;
        color: white;
        font-size: 10px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        font-weight: bold;
        line-height: 1;
        transform: scale(1);
        animation: dot-pulse 2s infinite;
    }

    /* 当没有具体数字时显示为小圆点 */
    .menu li.has-unread[data-count="1"]::after,
    .menu li.has-pending[data-count="1"]::after {
        content: '';
        min-width: 8px;
        height: 8px;
        padding: 0;
    }

    /* 有具体数字时的样式 */
    .menu li.has-unread[data-count]:not([data-count="1"])::after,
    .menu li.has-pending[data-count]:not([data-count="1"])::after {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        padding: 0;
    }

    /* 数字大于99时的样式 */
    .menu li.has-unread[data-count="100"]::after,
    .menu li.has-pending[data-count="100"]::after {
        content: "99+";
        min-width: 20px;
        font-size: 9px;
    }

    /* 新的动画效果 */
    @keyframes dot-pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.2);
            opacity: 0.8;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    /* 活动状态样式 */
    .menu li.active.has-unread::after,
    .menu li.active.has-pending::after {
        background: #fff;
        color: #4CAF50;
    }

    /* 移除之前的 transform 相关样式 */
    .menu li.has-unread:hover::after,
    .menu li.has-pending:hover::after {
        transform: scale(1.1);
    }
}

/* 更小屏幕的优化 */
@media (max-width: 375px) {
    .menu {
        width: 50px;
        min-width: 50px;
    }

    .menu li {
        height: 50px;
    }

    .menu li a i {
        font-size: 20px;
    }

    /* 更小屏幕上的通知标记调整 */
    .menu li.has-unread::after,
    .menu li.has-pending::after {
        top: 8px;
        right: 8px;
        min-width: 6px;
        height: 6px;
        padding: 3px;
    }

    /* 有具体数字时的样式 */
    .menu li.has-unread[data-count]:not([data-count="1"])::after,
    .menu li.has-pending[data-count]:not([data-count="1"])::after {
        min-width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* 添加语言选择器样式 */
.language-switcher {
    position: relative;
    min-width: 120px; /* 设置最小宽度 */
}

.language-selector {
    width: 100%;
    background-color: #333;
    color: #fff;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    padding: 5px 25px 5px 10px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background-color: #444;
    border-color: #45a049;
}

.language-selector:focus {
    border-color: #45a049;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.language-switcher::after {
    content: '▼';
    font-size: 10px;
    color: #4CAF50;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 10px;
    }
    
    .language-selector {
        padding: 4px 20px 4px 8px;
        font-size: 12px;
    }
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    header {
        padding: 0.5rem;
        height: 50px; /* 减小高度 */
    }

    .logo {
        font-size: 1rem;
        max-width: 120px; /* 限制logo宽度 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-info {
        gap: 8px;
        padding: 3px;
        min-width: auto; /* 移除最小宽度限制 */
    }

    .language-switcher {
        min-width: 80px; /* 减小最小宽度 */
    }

    .language-selector {
        padding: 3px 20px 3px 5px;
        font-size: 12px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 12px;
    }

    .user-details {
        min-width: 60px;
        max-width: 100px;
    }

    #username {
        font-size: 0.8rem;
    }

    .dealer-level {
        transform: scale(0.9);
        transform-origin: left;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .logo {
        max-width: 80px;
    }

    .language-switcher {
        min-width: 60px;
    }

    .user-details {
        min-width: 50px;
        max-width: 80px;
    }

    .dealer-level {
        transform: scale(0.8);
    }
}

/* 超小屏幕的优化 */
@media (max-width: 360px) {
    .logo {
        max-width: 60px;
    }

    .user-info {
        gap: 5px;
    }

    .language-switcher {
        min-width: 50px;
    }

    .language-selector {
        padding: 2px 15px 2px 3px;
        font-size: 11px;
    }

    .user-avatar {
        width: 25px;
        height: 25px;
        min-width: 25px;
    }

    .user-details {
        display: none; /* 在超小屏幕上隐藏用户详情 */
    }
}

/* 下拉菜单样式 */
.user-dropdown {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background-color: #333;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 220px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content {
    padding: 15px;
}

.language-switcher {
    margin-bottom: 15px;
}

.language-switcher label {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 0.9em;
}

.language-selector {
    width: 100%;
    padding: 8px 12px;
    background-color: #444;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.language-selector:hover {
    background-color: #555;
}

.language-selector:focus {
    border-color: #45a049;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.1);
    margin: 12px 0;
}

#logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff4757;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

#logout-link:hover {
    background-color: rgba(255,71,87,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-dropdown {
        top: 60px;
        right: 10px;
        min-width: 180px;
    }
    
    .dropdown-content {
        padding: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .user-dropdown {
        right: 5px;
        min-width: 160px;
    }
}

/* 修改下拉箭头图标样式 */
.dropdown-arrow {
    font-size: 12px;
    color: #4CAF50;
    margin-left: 5px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

/* 当下拉菜单打开时旋转箭头 */
.user-info.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* 更新用户信息区域样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.user-info.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #4CAF50;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dropdown-arrow {
        font-size: 10px;
        margin-left: 3px;
    }
    
    .user-info {
        padding: 6px 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .dropdown-arrow {
        margin-left: 2px;
    }
    
    .user-info {
        padding: 4px 10px;
    }
}

/* 更新LOGO样式 */
.logo {
    font-size: 1.2rem;
    font-weight: 200; /* 使用极细字体 */
    font-family: 'Helvetica Neue', Arial, sans-serif; /* 使用更纤细的字体 */
    letter-spacing: 1px; /* 增加字间距 */
    max-width: none; /* 移除最大宽度限制 */
    white-space: nowrap;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .logo {
        font-size: 1rem;
        letter-spacing: 0.5px; /* 减小间距 */
    }
}

/* 添加iOS Safari的特殊处理 */
.container {
    /* 原有样式 */
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.content {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
    -webkit-overflow-scrolling: touch; /* iOS滚动优化 */
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* iOS iframe滚动优化 */
}

/* 添加iOS底部安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .dashboard {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .menu {
        padding-bottom: calc(env(safe-area-inset-bottom) + 15px);
    }
}

/* 优化iOS点击响应 */
.menu li a {
    -webkit-tap-highlight-color: transparent; /* 移除iOS点击高亮 */
    cursor: pointer;
    touch-action: manipulation; /* 优化触摸操作 */
}

/* 添加新的媒体查询样式 */
@media (max-height: 400px) {
    .menu {
        position: absolute;
        height: 100%;
        z-index: 100;
    }
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .menu {
        width: 60px;
        min-width: 60px;
        position: relative; /* 确保相对定位 */
        height: 100%; /* 保持全高 */
    }

    .menu ul {
        height: auto; /* 自适应高度 */
        min-height: calc(100% - 30px); /* 减去可的内边距 */
    }

    .content {
        width: calc(100% - 60px); /* 考虑菜单宽度 */
    }
}

/* 添加触摸事件优化 */
.menu li a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 防止iOS橡皮筋效果 */
.menu, .content {
    overscroll-behavior: none;
    -webkit-overscroll-behavior: none;
}

/* 更新图片消息相关样式 */
.notification-image-container {
    position: relative;
    width: 100%;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 10px 0;
}

.notification-image {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-image.loaded {
    opacity: 1;
}

.notification-image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
    text-align: center;
}

.notification-image-error {
    color: #ff4757;
    text-align: center;
    padding: 10px;
    background-color: rgba(255, 71, 87, 0.1);
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

/* 优化移动端显示 */
@media (max-width: 768px) {
    .notification-image-container {
        min-height: 80px;
    }
    
    .notification-image {
        max-height: 150px;
    }
    
    .notification-image-loading,
    .notification-image-error {
        font-size: 12px;
    }
}