* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

/* 微信直播间样式 */
.wechat-live {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 70px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 公众号信息 */
.account-info {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: 10px;
    gap: 10px;
}

.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.account-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.verified-icon {
    width: 18px;
    height: 18px;
    background-color: #1296db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(18, 150, 219, 0.5);
    margin-left: 5px;
}

/* 关注按钮 */
.follow-btn {
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 17px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    min-width: 80px;
}

.follow-btn:hover {
    background-color: #05a650;
    transform: scale(1.05);
}

.follow-btn.following {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* 导航操作按钮 */
.nav-actions {
    display: flex;
    align-items: center;
}

.close-btn {
    font-size: 24px;
}

/* 全屏按钮样式 */
.fullscreen-btn {
    font-size: 22px;
}

/* 全屏模式下的样式 */
.live-room.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

/* 全屏模式下的顶部导航栏 */
.live-room.fullscreen .top-nav {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 全屏模式下的底部控制栏 */
.live-room.fullscreen .bottom-controls {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

/* 直播间主体区域 */
.room-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.video-container {
    flex: 1;
    width: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

#camera {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
}

.curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: #333;
    z-index: 5;
}

.curtain.hidden {
    display: none;
}

/* 弹幕区域 */
.danmu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 150px);
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.danmu {
    position: absolute;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    animation: danmu-move 8s linear forwards;
    z-index: 6;
    border-radius: 20px;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* 链接弹幕样式 */
.link-danmu {
    background-color: rgba(69, 183, 209, 0.4) !important;
    border: 2px solid #45b7d1;
    box-shadow: 0 0 15px rgba(69, 183, 209, 0.6);
}

.link-danmu a {
    color: #45b7d1 !important;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.link-danmu a:hover {
    color: #66c7e0 !important;
    text-decoration: underline;
    pointer-events: all;
}

@keyframes danmu-move {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

/* 面包屑导航 */
.breadcrumb {
    position: absolute;
    bottom: 260px;
    left: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* 看过人数显示 */
.watched-info {
    position: absolute;
    top: 10px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 15px;
    z-index: 10;
}

.watched-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* 粉丝数量显示 */
.fans-info {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    border-radius: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fans-icon {
    font-size: 16px;
    color: #ffb347;
}

.fans-number {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* 直播主题区域 */
.live-theme {
    position: absolute;
    bottom: 220px;
    left: 20px;
    width: 60%;
    max-width: 800px;
    z-index: 10;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.theme-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.theme-description {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
    max-height: 5.6em; /* 确保只显示四行 */
}

/* 总点赞数显示 */
.total-like-info {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
}

.total-like-number {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 通知区域 */
.notification-area {
    position: absolute;
    bottom: 150px;
    left: 20px;
    width: 60%;
    max-width: 800px;
    z-index: 10;
}

.welcome-info {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 12px;
    border-left: 4px solid #07c160;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.welcome-title {
    color: #07c160;
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.welcome-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    max-height: 6em; /* 确保只显示四行 */
}

/* 优化弹幕样式 */
.danmu {
    position: absolute;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    animation: danmu-move 8s linear forwards;
    z-index: 6;
    padding: 0;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    letter-spacing: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 链接弹幕样式 */
.link-danmu {
    background-color: transparent !important;
    border: none;
    box-shadow: none;
    font-weight: 500;
    color: #45b7d1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 弹幕动画优化 */
@keyframes danmu-move {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

/* 左上角主播信息 */
.top-left-info {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.avatar-container {
    position: relative;
    margin: 0;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar-upload {
    display: none;
}

.avatar-upload-label {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background-color: #07c160;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    opacity: 0;
}

.avatar-container:hover .avatar-upload-label {
    opacity: 1;
    transform: translateY(-2px);
}

/* 底部控制栏 */
.bottom-controls {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    height: 70px;
    gap: 15px;
    justify-content: space-between;
    min-width: 320px;
}

/* 确保控制按钮组有足够的空间 */
.control-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 130px;
}

/* 聊一聊输入框 */
.chat-input-container {
    flex: 1;
    position: relative;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 180px);
}

#danmu-input {
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    padding-right: 10px;
}

#danmu-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.action-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 底部控制按钮 */
.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn .btn-icon {
    font-size: 28px;
    margin-bottom: 2px;
}

.like-btn {
    position: relative;
}

.like-btn.active .btn-icon {
    color: #f53d3d;
    animation: like-pulse 0.6s ease;
}

@keyframes like-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

@keyframes like-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* 关闭按钮 */
.close-btn {
    font-size: 24px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 导航操作按钮容器 */
.nav-actions {
    display: flex;
    align-items: center;
}

/* 三点菜单按钮优化 */
.more-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1000;
    /* 增加触摸目标大小 */
    touch-action: manipulation;
    /* 确保在放大后仍然容易点击 */
    -webkit-tap-highlight-color: transparent;
}

/* 后台控制面板 */
.admin-controls {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 12px;
    z-index: 200;
    max-height: 80vh;
    overflow-y: auto;
    min-width: 400px;
}

.admin-controls.visible {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-controls .control-btn {
    width: 80px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* 产品链接管理样式 */
.product-link-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* 头像修改控制样式 */
.avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* 直播间介绍控制样式 */
.introduction-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.control-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.introduction-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-upload-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.product-input:focus {
    border-color: #07c160;
    background-color: rgba(255, 255, 255, 0.15);
}

.product-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 产品描述输入框样式 */
.product-description {
    resize: vertical;
    min-height: 80px;
}

/* 产品列表中的价格和描述样式 */
.product-item-price {
    color: #07c160;
    font-size: 14px;
    font-weight: 600;
    margin: 3px 0;
}

.product-item-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.4;
    margin: 3px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 产品列表中的图片样式 */
.product-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.add-product-btn {
    align-self: flex-start;
    width: auto;
    padding: 8px 20px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-product-btn:hover {
    background-color: #05a650;
    transform: translateY(-1px);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-item-info {
    flex: 1;
}

.product-item-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.product-item-link {
    color: #07c160;
    font-size: 12px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.product-item-link:hover {
    text-decoration: underline;
}

.remove-product-btn {
    background-color: rgba(245, 61, 61, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-product-btn:hover {
    background-color: #f53d3d;
}

/* 产品卡片展示区域 */
.product-cards-container {
    position: fixed;
    bottom: 180px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    max-width: 280px;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    border-color: #07c160;
}

.product-card-name {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 产品卡片中的价格和描述样式 */
.product-card-price {
    color: #e63946;
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.product-card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 产品卡片中的图片样式 */
.product-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.02);
}

.product-card-link {
    color: #07c160;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.product-card-link:hover {
    text-decoration: underline;
}

.product-card-link::after {
    content: '🔗';
    font-size: 12px;
}

/* 链接分享样式 */
.link-share-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.link-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.link-input:focus {
    border-color: #07c160;
    background-color: rgba(255, 255, 255, 0.15);
}

.link-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.link-btn {
    width: 100%;
    height: 50px;
    margin-top: 5px;
}

.admin-controls.visible {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 自动弹幕控制样式 */
.auto-danmu-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.auto-danmu-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auto-danmu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.auto-danmu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.danmu-text {
    color: #fff;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-danmu-btn {
    width: 24px;
    height: 24px;
    background-color: rgba(255, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.remove-danmu-btn:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

/* 自动点赞控制样式 */
.auto-like-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.people-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.people-input-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.people-input-item label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    min-width: 80px;
}

.set-count-btn {
    align-self: flex-start;
    width: auto;
    padding: 8px 15px;
    background-color: #07c160;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.set-count-btn:hover {
    background-color: #05a650;
    transform: translateY(-1px);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.notification-info {
    background-color: rgba(7, 193, 96, 0.9);
}

.notification-error {
    background-color: rgba(245, 61, 61, 0.9);
}

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

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

/* 平板设备优化 (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 平板设备特定样式 */
    
    /* 直播主题和通知区域 */
    .live-theme {
        width: 70%;
        max-width: 600px;
    }
    
    .notification-area {
        width: 70%;
        max-width: 600px;
    }
    
    /* 产品卡片 */
    .product-cards-container {
        max-width: 320px;
    }
}

/* 手机设备优化 (481px - 768px) */
@media (max-width: 768px) {
    /* 顶部导航栏优化 */
    .top-nav {
        height: 70px;
        padding: 10px 15px;
    }
    
    .account-avatar {
        width: 36px;
        height: 36px;
    }
    
    .account-name {
        font-size: 13px;
        max-width: 120px;
    }
    
    .account-type {
        font-size: 11px;
    }
    
    .verified-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .follow-btn {
        padding: 4px 12px;
        font-size: 12px;
        min-width: 70px;
    }
    
    /* 面包屑导航优化 */
    .breadcrumb {
        bottom: 240px;
        font-size: 13px;
        background-color: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        padding: 5px 10px;
        border-radius: 8px;
    }
    
    /* 直播主题区域优化 */
    .live-theme {
        bottom: 200px;
        padding: 8px 12px;
        width: 95%;
        max-width: none;
    }
    
    .theme-title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .theme-description {
        font-size: 12px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        max-height: 4.2em;
    }
    
    /* 总点赞数显示优化 */
    .total-like-info {
        top: 80px;
        padding: 6px 12px;
    }
    
    /* 通知区域优化 */
    .notification-area {
        bottom: 90px;
        width: 95%;
        max-width: none;
    }
    
    .welcome-info {
        padding: 10px 14px;
    }
    
    .welcome-title {
        font-size: 14px;
    }
    
    .welcome-text {
        font-size: 13px;
    }
    
    /* 弹幕优化 */
    .danmu {
        font-size: 16px;
    }
    
    /* 底部控制栏优化 */
    .bottom-controls {
        padding: 10px 15px;
        gap: 10px;
        height: 70px;
    }
    
    /* 移动设备上确保控制按钮组有足够的空间 */
    .control-buttons {
        min-width: 120px;
        gap: 12px;
    }
    
    /* 移动设备上输入框优化 */
    .chat-input-container {
        height: 48px;
        max-width: calc(100% - 170px);
    }
    
    #danmu-input {
        font-size: 14px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .control-btn {
        width: 55px;
        height: 55px;
    }
    
    .control-btn .btn-icon {
        font-size: 26px;
    }
    
    /* 视频区域优化 */
    .video-container {
        height: calc(100vh - 140px); /* 考虑顶部导航和底部控制栏的高度 */
    }
    
    #camera {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 产品卡片优化 */
    .product-cards-container {
        max-width: 250px;
        bottom: 100px;
    }
    
    /* 管理面板优化 */
    .admin-controls {
        min-width: 280px;
        max-width: 95vw;
        padding: 15px;
        width: 95%;
    }
}

/* 小屏手机优化 (320px - 480px) */
@media (max-width: 480px) {
    /* 导航按钮优化 */
    .nav-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    
    /* 顶部导航栏优化 */
    .top-nav {
        padding: 10px 15px !important;
        height: 70px !important;
    }
    
    /* 头像优化 */
    .account-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 账号名称优化 */
    .account-name {
        font-size: 12px !important;
        max-width: 100px !important;
    }
    
    /* 账号类型优化 */
    .account-type {
        font-size: 10px !important;
    }
    
    /* 认证图标优化 */
    .verified-icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 9px !important;
    }
    
    /* 关注按钮优化 */
    .follow-btn {
        padding: 3px 10px !important;
        font-size: 11px !important;
        min-width: 60px !important;
    }
    
    /* 直播主题区域优化 */
    .live-theme {
        bottom: 200px !important;
        padding: 6px 10px !important;
        width: 98% !important;
        max-width: none !important;
    }
    
    .theme-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    
    .theme-description {
        font-size: 11px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 3 !important;
        max-height: 4.2em !important;
    }
    
    /* 通知区域优化 */
    .notification-area {
        bottom: 100px !important;
        width: 98% !important;
        max-width: none !important;
    }
    
    /* 面包屑导航优化 */
    .breadcrumb {
        bottom: 240px !important;
        font-size: 12px !important;
    }
    
    /* 控制按钮优化 */
    .control-btn {
        width: 45px !important;
        height: 45px !important;
    }
    
    .control-btn .btn-icon {
        font-size: 20px !important;
    }
    
    /* 按钮文本隐藏 */
    .btn-text {
        display: none !important;
    }
    
    /* 视频区域优化 */
    .video-container {
        height: calc(100% - 140px) !important;
    }
    
    /* 管理面板优化 */
    .admin-controls {
        min-width: 260px !important;
        max-width: 98vw !important;
        padding: 12px !important;
        width: 98% !important;
        max-height: 90vh !important;
    }
    
    /* 优化管理面板内元素 */
    .admin-controls .control-title {
        font-size: 15px !important;
    }
    
    .admin-controls .product-input {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }
    
    .admin-controls .set-count-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    .admin-controls .control-btn {
        width: 70px !important;
        height: 60px !important;
        font-size: 11px !important;
    }
    
    .admin-controls .control-btn .btn-icon {
        font-size: 24px !important;
    }
    
    /* 底部控制栏优化 */
    .bottom-controls {
        height: 60px !important;
        padding: 5px 15px !important;
        gap: 8px !important;
    }
    
    /* 输入框优化 */
    .chat-input-container {
        max-width: calc(100% - 130px) !important;
        height: 40px !important;
        padding: 0 10px !important;
    }
    
    /* 输入框内部样式优化 */
    #danmu-input {
        font-size: 13px !important;
    }
    
    /* 表情按钮优化 */
    .emoji-btn {
        font-size: 18px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    /* 产品卡片优化 */
    .product-cards-container {
        max-width: 250px !important;
        bottom: 120px !important;
    }
}

/* 横屏设备优化 */
@media (orientation: landscape) {
    .video-container {
        height: 100%;
    }
    
    #camera {
        object-fit: contain;
    }
}

/* 竖屏设备优化 */
@media (orientation: portrait) {
    /* 竖屏设备使用默认设置 */
}

/* 移动端全屏按钮优化 */
.fullscreen-btn {
    font-size: 20px;
}