/* AI模块样式 - 与现有APP模块风格一致 */
.hl-ai-box {
    margin-bottom: 20px;
    background: var(--hl-bg-site);
    border-radius: var(--hl-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.hl-ai-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--hl-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hl-ai-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
}
.hl-ai-title i {
    font-size: 20px;
    margin-right: 8px;
    color: var(--hl-conch-color);
}
.hl-ai-more {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.hl-ai-body {
    padding: 20px;
}
.hl-ai-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--hl-text-color);
    margin-bottom: 20px;
}
.hl-ai-desc span {
    font-weight: 500;
}
.hl-ai-btn-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}
.hl-ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.hl-ai-btn i {
    font-size: 16px;
    margin-right: 6px;
}
.hl-ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}
.hl-ai-link {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}
.hl-ai-link:hover {
    color: var(--hl-conch-color);
}

/* 弹窗样式 */
.hl-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hl-modal-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
.hl-modal-wrap {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    margin: 0 auto;
}
.hl-modal-container {
    background: var(--hl-bg-site);
    border-radius: var(--hl-border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}
.hl-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--hl-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hl-bg-site);
}
.hl-modal-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hl-modal-title i {
    font-size: 20px;
    color: var(--hl-conch-color);
}
.hl-modal-close {
    font-size: 20px;
    color: var(--hl-text-muted);
    transition: all 0.3s ease;
}
.hl-modal-close:hover {
    color: var(--hl-conch-color);
    transform: rotate(90deg);
}
.hl-modal-body {
    padding: 0;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

/* 聊天消息样式 */
.hl-chat-messages {
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}
.hl-welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--hl-text-muted);
}
.hl-welcome-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--hl-conch-color);
    opacity: 0.5;
}
.hl-welcome-message h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--hl-text-color);
}
.hl-message {
    display: flex;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease;
}
.hl-message-ai {
    flex-direction: row;
}
.hl-message-user {
    flex-direction: row-reverse;
}
.hl-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hl-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
}
.hl-message-avatar i {
    font-size: 20px;
    color: var(--hl-conch-color);
}
.hl-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--hl-bg-light);
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
}
.hl-message-ai .hl-message-content {
    background: var(--hl-bg-light);
}
.hl-message-user .hl-message-content {
    background: var(--hl-conch-color);
    color: #1a1a1a;  /* 接近黑色的深灰色 */
}
.hl-typing {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}
.hl-typing span {
    width: 8px;
    height: 8px;
    background: var(--hl-text-muted);
    border-radius: 50%;
    animation: typing 1s infinite;
}
.hl-typing span:nth-child(2) { animation-delay: 0.2s; }
.hl-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ===== 代码高亮样式增强 ===== */
/* 代码块容器 */
.hl-chat-messages pre {
    background: #1e1e1e !important;
    border-radius: 8px;
    padding: 16px !important;
    overflow-x: auto;
    margin: 12px 0;
    position: relative;
    border: 1px solid #333;
    font-size: 13px;
    line-height: 1.5;
}

/* 代码块内的代码 */
.hl-chat-messages pre code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 13px;
    color: #d4d4d4;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0;
    white-space: pre;
    tab-size: 4;
}

/* 行内代码 */
.hl-chat-messages code:not(pre code) {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #e06c75;
    white-space: nowrap;
}

/* AI消息中的行内代码 */
.hl-message-ai .hl-message-content code:not(pre code) {
    background: rgba(0, 0, 0, 0.2);
    color: #e5c07b;
}

/* 用户消息中的行内代码 */
.hl-message-user .hl-message-content code:not(pre code) {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
/* 代码块语言标签 */
.hl-chat-messages pre::before {
    content: attr(data-language);
    position: absolute;
    top: 8px;
    right: 12px;
    color: #999;
    font-size: 11px;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* 复制按钮 */
.hl-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
}

.hl-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hl-copy-btn i {
    font-size: 12px;
}

/* 代码块滚动条美化 */
.hl-chat-messages pre::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.hl-chat-messages pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 3px;
}

.hl-chat-messages pre::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

.hl-chat-messages pre::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* 动画 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* 错误信息样式 */
.hl-error-message {
    color: #ff6b6b;
    padding: 15px;
    border-left: 3px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 4px;
    margin: 10px 0;
}
.hl-limit-info {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 5px;
    font-size: 13px;
}
.hl-limit-info p {
    margin: 5px 0;
}

/* 思考内容样式 */
.hl-reasoning-content {
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--hl-conch-color);
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--hl-text-muted);
}

/* 流式输出内容样式 */
.hl-streaming-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}
/* ===== 链接样式增强 ===== */
.hl-chat-messages a {
    color: var(--hl-conch-color, #42b983);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.hl-chat-messages a:hover {
    color: #ff6b6b;
    border-bottom: 1px solid currentColor;
}

/* 如果是搜索链接，可以添加特殊样式 */
.hl-chat-messages a[href*="/vodsearch/"] {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    margin: 5px 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.hl-chat-messages a[href*="/vodsearch/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
    border: none;
}

/* 链接内的图标样式 */
.hl-chat-messages a i {
    margin-right: 4px;
    font-size: 12px;
}
/* APP下载模块 - 与AI模块风格统一 */
.hl-app-box {
    margin-bottom: 20px;
    background: var(--hl-bg-site);
    border-radius: var(--hl-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}


.hl-app-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--hl-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hl-app-head .hl-public-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
}

.hl-app-head .hl-public-title i {
    font-size: 20px;
    margin-right: 8px;
    color: var(--hl-conch-color);
}

.hl-app-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    color: var(--hl-text-color);
    font-size: 18px;
    background: var(--hl-border-color);
    border-radius: 50%;
}

.hl-app-close:hover {
    opacity: 1;
    transform: rotate(90deg);
    background: var(--hl-conch-color);
    color: #fff;
}

.hl-app-body {
    padding: 20px;
}

.hl-app-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hl-app-logo img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid #fff;
}

.hl-app-info {
    flex: 1;
    min-width: 0;
}

.hl-app-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--hl-text-color);
    margin-bottom: 4px;
}

.hl-app-desc {
    font-size: 14px;
    color: var(--hl-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hl-app-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 500;
    white-space: nowrap;
}

.hl-app-btn-wrap {
    flex-shrink: 0;
}

.hl-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hl-app-btn i {
    font-size: 16px;
    margin-right: 6px;
}

.hl-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.hl-app-features {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--hl-border-color);
}

.hl-app-features span {
    font-size: 13px;
    color: var(--hl-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.hl-app-features i {
    font-size: 14px;
    color: var(--hl-conch-color);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .hl-app-content {
        flex-wrap: wrap;
    }
    
    .hl-app-btn-wrap {
        width: 100%;
    }
    
    .hl-app-btn {
        width: 100%;
    }
    
    .hl-app-features {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: space-between;
    }
    
    .hl-app-features span {
        width: calc(50% - 6px);
    }
}

/* CSS变量定义（如果不存在的话） */
:root {
    --hl-bg-site: #ffffff;
    --hl-border-color: #f0f0f0;
    --hl-text-color: #333333;
    --hl-text-muted: #999999;
    --hl-conch-color: #667eea;
    --hl-border-radius: 8px;
}

/* 夜间模式适配 */
.hl-dark {
    --hl-bg-site: #1a1a1a;
    --hl-border-color: #333333;
    --hl-text-color: #f0f0f0;
    --hl-text-muted: #999999;
    --hl-conch-color: #667eea;
}
/* APP下载页面专用样式 */
.hl-app-download-banner {
    background: linear-gradient(135deg, #1e2435 0%, #0f1322 100%);
    padding: 50px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hl-app-download-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,120,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hl-app-hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hl-app-hero-logo img {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
    border: 4px solid rgba(255,215,120,0.3);
}

.hl-app-hero-info {
    flex: 1;
    color: #fff;
}

.hl-app-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    padding: 5px 0;
    background: linear-gradient(135deg, #fff, #ffe1a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hl-app-hero-slogan {
    font-size: 1.3rem;
    color: #a7b1c9;
    margin-bottom: 20px;
}

.hl-app-hero-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hl-app-hero-tags span {
    background: rgba(255,215,120,0.15);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #ffd966;
    border: 1px solid rgba(255,215,120,0.3);
}

.hl-app-hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hl-app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #fbb03b, #ffd966);
    padding: 15px 40px;
    border-radius: 50px;
    color: #1a1f2e;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px #fbb03b80;
    transition: all 0.3s;
}

.hl-app-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -8px #fbb03b;
    color: #1a1f2e;
}

.hl-app-ios-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 15px 40px;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.hl-app-ios-btn:hover {
    border-color: #ffd966;
    color: #ffd966;
}

.hl-app-hero-note {
    color: #8892b3;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 二维码区域 */
.hl-app-qrcode-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hl-app-qrcode-card {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-app-qrcode-card {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-qrcode-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.hl-dark .hl-qrcode-title {
    color: #fff;
}

.hl-qrcode-title i {
    color: #fbb03b;
    margin-right: 5px;
}

.hl-qrcode-img {
    margin-bottom: 15px;
}

.hl-qrcode-img img {
    width: 180px;
    height: 180px;
    border-radius: 10px;
}

.hl-qrcode-tip p {
    color: #666;
    line-height: 1.6;
}

.hl-dark .hl-qrcode-tip p {
    color: #9aa3bd;
}

/* 特色功能卡片 */
.hl-app-features-card {
    flex: 2;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-app-features-card {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-features-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.hl-dark .hl-features-title {
    color: #fff;
}

.hl-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hl-features-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hl-features-list li i {
    font-size: 1.5rem;
    background: rgba(251,176,59,0.1);
    padding: 10px;
    border-radius: 12px;
}

.hl-feature-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.hl-dark .hl-feature-item h4 {
    color: #fff;
}

.hl-feature-item p {
    color: #666;
    font-size: 0.85rem;
}

.hl-dark .hl-feature-item p {
    color: #9aa3bd;
}

/* 截图区域 */
.hl-app-screenshot-section {
    margin-bottom: 40px;
}

.hl-screenshot-list {
    margin: 0 -10px;
}

.hl-screenshot-item {
    margin: 0 10px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.2);
    border: 1px solid #eee;
}

.hl-dark .hl-screenshot-item {
    border-color: #2a3040;
}

.hl-screenshot-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.hl-screenshot-item:hover img {
    transform: scale(1.05);
}

/* FAQ区域 */
.hl-app-faq-section {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-app-faq-section {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.hl-dark .hl-faq-item {
    border-bottom-color: #2a3040;
}

.hl-faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hl-faq-question {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hl-dark .hl-faq-question {
    color: #fff;
}

.hl-faq-question i {
    color: #fbb03b;
}

.hl-faq-answer {
    color: #666;
    padding-left: 28px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hl-dark .hl-faq-answer {
    color: #9aa3bd;
}

.hl-faq-answer i {
    color: #ffd966;
}

/* 侧边栏 */
.hl-side-hot-app {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px -8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-side-hot-app {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-side-hot-list li {
    margin-bottom: 12px;
}

.hl-hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

.hl-hot-item:hover {
    background: rgba(251,176,59,0.05);
}

.hl-hot-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #999;
}

.hl-dark .hl-hot-num {
    background: #2a3040;
    color: #666;
}

.hl-hot-num.hl-hot-top {
    background: #fbb03b;
    color: #1a1f2e;
    font-weight: 600;
}

.hl-hot-name {
    flex: 1;
    color: #333;
}

.hl-dark .hl-hot-name {
    color: #fff;
}

.hl-hot-hit {
    color: #999;
    font-size: 0.8rem;
}

/* 下载说明 */
.hl-side-download-note {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px -8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-side-download-note {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-note-content p {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
    padding-left: 15px;
    position: relative;
}

.hl-dark .hl-note-content p {
    color: #9aa3bd;
}

.hl-note-content p::before {
    content: '•';
    color: #fbb03b;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 响应式 */
@media (max-width: 768px) {
    .hl-app-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hl-app-hero-title {
        font-size: 2rem;
    }
    
    .hl-app-hero-slogan {
        font-size: 1rem;
    }
    
    .hl-app-hero-tags {
        justify-content: center;
    }
    
    .hl-app-hero-btns {
        justify-content: center;
    }
    
    .hl-app-download-btn, .hl-app-ios-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hl-app-qrcode-section {
        flex-direction: column;
    }
    
    .hl-features-list {
        grid-template-columns: 1fr;
    }
    
    .hl-screenshot-list li {
        margin-bottom: 20px;
    }
}
/* 友链申请页面样式 */
.hl-friend-apply-banner {
    background: linear-gradient(135deg, #1e2435 0%, #0f1322 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
}

.hl-friend-apply-header {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    line-height: 1.2;
}

.hl-friend-apply-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 0;
    background: linear-gradient(135deg, #fff, #ffe1a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
}

.hl-friend-apply-desc {
    font-size: 1.2rem;
    color: #a7b1c9;
    line-height: 1.4;
    margin-bottom: 0;
    height: auto;
    overflow: visible;
}

@media (max-width: 768px) {
    .hl-friend-apply-banner {
        padding: 30px 0;
    }
    
    .hl-friend-apply-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .hl-friend-apply-desc {
        font-size: 1rem;
    }
}

/* 表单卡片 */
.hl-apply-form-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-apply-form-card {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-dark .hl-form-title {
    color: #fff;
    border-bottom-color: #2a3040;
}

.hl-form-title i {
    color: #fbb03b;
    font-size: 1.8rem;
}

.hl-form-group {
    margin-bottom: 25px;
}

.hl-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.hl-dark .hl-form-label {
    color: #ddd;
}

.hl-form-label span {
    font-size: 1.1rem;
}

.hl-form-input {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #eef0f5;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fafbfc;
    color: #333;
}

.hl-dark .hl-form-input {
    background: #252b3d;
    border-color: #2f3548;
    color: #fff;
}

.hl-form-input:focus {
    border-color: #fbb03b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251,176,59,0.1);
    background: #fff;
}

.hl-dark .hl-form-input:focus {
    background: #2a3042;
}

.hl-form-textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #eef0f5;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fafbfc;
    color: #333;
    resize: vertical;
}

.hl-dark .hl-form-textarea {
    background: #252b3d;
    border-color: #2f3548;
    color: #fff;
}

.hl-form-textarea:focus {
    border-color: #fbb03b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(251,176,59,0.1);
    background: #fff;
}

.hl-requirements-box {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 15px 20px;
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    border: 1px solid #eef0f5;
}

.hl-dark .hl-requirements-box {
    background: #252b3d;
    border-color: #2f3548;
    color: #9aa3bd;
}

.hl-requirements-box p {
    margin: 5px 0;
    padding-left: 20px;
    position: relative;
}

.hl-requirements-box p::before {
    content: '•';
    color: #fbb03b;
    position: absolute;
    left: 5px;
    font-weight: bold;
}

.hl-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.hl-submit-btn {
    flex: 2;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(145deg, #fbb03b, #ffd966);
    color: #1a1f2e;
    box-shadow: 0 8px 18px -4px rgba(251,176,59,0.3);
}

.hl-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -6px #fbb03b;
}

.hl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hl-reset-btn {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #eef0f5;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #666;
}

.hl-dark .hl-reset-btn {
    border-color: #2f3548;
    color: #9aa3bd;
}

.hl-reset-btn:hover {
    border-color: #fbb03b;
    color: #fbb03b;
    background: rgba(251,176,59,0.05);
}

/* 申请须知 */
.hl-apply-notice {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eef0f5;
}

.hl-dark .hl-apply-notice {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-notice-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hl-dark .hl-notice-title {
    color: #fff;
}

.hl-notice-title i {
    color: #fbb03b;
}

.hl-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hl-notice-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.hl-dark .hl-notice-list li {
    color: #9aa3bd;
}

.hl-notice-list li::before {
    content: '✓';
    color: #fbb03b;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hl-notice-list li a {
    color: #fbb03b;
    text-decoration: none;
}

.hl-notice-list li a:hover {
    text-decoration: underline;
}

/* 侧边栏 */
.hl-side-friend-list {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px -8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.hl-dark .hl-side-friend-list {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-side-friend-items {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.hl-side-friend-items li {
    margin-bottom: 10px;
}

.hl-side-friend-items li a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fc;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.hl-dark .hl-side-friend-items li a {
    background: #252b3d;
    color: #9aa3bd;
}

.hl-side-friend-items li a:hover {
    background: #fbb03b;
    color: #1a1f2e;
    transform: translateX(5px);
}

.hl-side-more {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.hl-dark .hl-side-more {
    border-top-color: #2a3040;
}

.hl-side-more a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hl-side-more a:hover {
    color: #fbb03b;
}

.hl-side-more i {
    font-size: 0.8rem;
}

.hl-side-contact {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px -8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.hl-dark .hl-side-contact {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-contact-content {
    padding: 5px 0;
}

.hl-contact-content p {
    margin: 12px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-dark .hl-contact-content p {
    color: #9aa3bd;
}

.hl-contact-content i {
    width: 30px;
    color: #fbb03b;
    font-size: 1.2rem;
}

/* 消息提示样式 */
.hl-form-message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
}

.hl-form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.hl-form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .hl-friend-apply-title {
        font-size: 1.8rem;
    }
    
    .hl-friend-apply-desc {
        font-size: 1rem;
    }
    
    .hl-apply-form-card {
        padding: 20px;
    }
    
    .hl-form-title {
        font-size: 1.2rem;
    }
    
    .hl-form-actions {
        flex-direction: column;
    }
    
    .hl-submit-btn, .hl-reset-btn {
        width: 100%;
    }
}

/* 切换按钮样式 */
.switch-btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    cursor: pointer;
}
.switch-btn.active {
    background: #fbb03b !important;
    color: white !important;
    border: none !important;
}
.switch-btn:hover {
    opacity: 0.9;
}

/* 表格行悬停效果 */
.hl-rank-table tbody tr:hover {
    background-color: #f8f9fc;
    transition: all 0.3s ease;
}

/* 排名前三颜色 */
.top-1 { color: #fbb03b; font-weight: bold; }
.top-2 { color: #a0a0a0; font-weight: bold; }
.top-3 { color: #cd7f32; font-weight: bold; }

/* 日期分隔行样式 */
.date-separator {
    background: #f8f9fc;
    font-weight: bold;
    color: #fbb03b;
}
.date-separator td {
    padding: 10px !important;
}
/* 排行榜表格样式 - 仅添加表格特有的样式，不修改任何已有的友链页面类 */
.hl-rank-table {
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}
.hl-rank-table th {
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #eef0f5;
}
.hl-dark .hl-rank-table th {
    background: #252b3d;
    color: #9aa3bd;
    border-bottom-color: #2f3548;
}
.hl-rank-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f2f6;
    color: #444;
}
.hl-dark .hl-rank-table td {
    border-bottom-color: #2a3040;
    color: #ccc;
}
.hl-rank-table tbody tr:hover {
    background: #f8f9fc;
}
.hl-dark .hl-rank-table tbody tr:hover {
    background: #252b3d;
}
.hl-rank-table td:first-child, .hl-rank-table th:first-child { 
    padding-left: 15px; 
    text-align: center; 
}
.hl-rank-table td:last-child, .hl-rank-table th:last-child { 
    padding-right: 15px; 
}

/* 排名特殊样式 */
.top-1 { color: #fbb03b; font-weight: 700; }
.top-2 { color: #7c8a9c; font-weight: 600; }
.top-3 { color: #b87333; font-weight: 600; }

/* 加载动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 深色模式适配 - 复用友链页面的深色类 */
.hl-dark .hl-rank-table td {
    color: #9aa3bd;
}
.hl-dark .hl-rank-table th {
    color: #9aa3bd;
}

/* 添加电影名称链接样式 */
.hl-rank-table td a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    max-width: 200px;
}

.hl-rank-table td a:hover {
    color: #fbb03b;
    text-decoration: underline;
}

.hl-dark .hl-rank-table td a:hover {
    color: #ffd966;
}

/* 聊天容器 - 限制最大宽度并居中 */
.hl-chat-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* 聊天头部 */
.hl-chat-header {
    background: linear-gradient(135deg, #1e2435 0%, #0f1322 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hl-chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,120,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hl-chat-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hl-chat-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #ffe1a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hl-chat-header p {
    color: #a7b1c9;
    font-size: 1.1rem;
}

.hl-chat-header-tags {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hl-chat-header-tags span {
    background: rgba(255,215,120,0.15);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #ffd966;
    border: 1px solid rgba(255,215,120,0.3);
}

/* 聊天主体 */
.hl-chat-main {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* 聊天侧边栏 */
.hl-chat-sidebar {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    height: fit-content;
}

.hl-dark .hl-chat-sidebar {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hl-dark .hl-sidebar-title {
    color: #fff;
}

.hl-sidebar-title i {
    color: #fbb03b;
}

.hl-model-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #f8f8f8;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 20px;
    cursor: pointer;
}

.hl-dark .hl-model-select {
    background: #2a3040;
    border-color: #3a4050;
    color: #fff;
}

.hl-model-select:focus {
    outline: none;
    border-color: #fbb03b;
}

.hl-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hl-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #666;
    border-bottom: 1px dashed #eee;
}

.hl-dark .hl-feature-list li {
    color: #9aa3bd;
    border-bottom-color: #2a3040;
}

.hl-feature-list li:last-child {
    border-bottom: none;
}

.hl-feature-list li i {
    color: #fbb03b;
    font-size: 1.1rem;
}

.hl-clear-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: 2px solid rgba(251,176,59,0.3);
    background: transparent;
    color: #fbb03b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hl-clear-btn:hover {
    background: #fbb03b;
    color: #1a1f2e;
    border-color: #fbb03b;
}

/* 聊天主区域 */
.hl-chat-content {
    flex: 1;
    min-width: 0;
}

/* 聊天消息区域 */
.hl-chat-messages {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    margin-bottom: 20px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.hl-dark .hl-chat-messages {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;
}

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

.hl-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbb03b, #ffd966);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1f2e;
    font-weight: bold;
    flex-shrink: 0;
}

.hl-message-user .hl-message-avatar {
    background: linear-gradient(135deg, #4a90e2, #6c5ce7);
    color: #fff;
}

/* ===== 消息气泡修复 - 防止超出屏幕 ===== */
.hl-message-content {
    flex: 1;
    background: #f8f8f8;
    padding: 15px 20px;
    border-radius: 20px;
    border-top-left-radius: 0;
    color: #333;
    line-height: 1.6;
    
    /* 修复：限制最大宽度并处理溢出 */
    max-width: calc(100% - 55px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.hl-dark .hl-message-content {
    background: #2a3040;
    color: #fff;
}

.hl-message-user .hl-message-content {
    background: rgba(251,176,59,0.1);
    border: 1px solid rgba(251,176,59,0.2);
    border-top-right-radius: 0;
    border-top-left-radius: 20px;
}

.hl-message-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.hl-dark .hl-message-time {
    color: #666;
}

/* 思考内容样式 */
.hl-reasoning-content {
    background: rgba(251,176,59,0.05);
    border-left: 3px solid #fbb03b;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #888;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hl-dark .hl-reasoning-content {
    background: rgba(251,176,59,0.1);
    color: #9aa3bd;
}

.hl-reasoning-content i {
    color: #fbb03b;
    margin-right: 5px;
}

/* 打字机效果 */
.hl-typing {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}

.hl-typing span {
    width: 8px;
    height: 8px;
    background: #fbb03b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.hl-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.hl-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* ===== 代码块和内容溢出修复 ===== */
/* 代码块包装器 */
.hl-code-block-wrapper {
    max-width: 100%;
    margin: 12px 0;
}

/* 代码块样式 - 修复溢出问题 */
.hl-message-content pre {
    position: relative;
    background: #1e1e1e !important;
    border-radius: 8px;
    padding: 16px !important;
    margin: 12px 0 !important;
    
    /* 修复：水平滚动防止溢出 */
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    
    /* 确保不会超出容器 */
    box-sizing: border-box;
    width: 100%;
    
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    
    /* 美化滚动条 */
    scrollbar-width: thin;
    scrollbar-color: #666 #2d2d2d;
}

.hl-message-content pre::-webkit-scrollbar {
    height: 8px;
    background: #2d2d2d;
    border-radius: 4px;
}

.hl-message-content pre::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.hl-message-content pre::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.hl-message-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    white-space: pre;
    tab-size: 2;
    color: #e0e0e0 !important;
}

/* 行内代码样式 */
.hl-inline-code {
    background: rgba(175, 184, 193, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: #e06c75 !important;
    white-space: normal;
    word-break: break-word;
}

/* 深色模式下的行内代码 */
.hl-dark .hl-inline-code {
    background: rgba(255, 255, 255, 0.1);
    color: #ff9f9f !important;
}

/* 复制按钮样式 */
.hl-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
}

.hl-copy-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 长文本处理 */
.hl-message-content p {
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 表格样式 - 修复溢出 */
.hl-message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 14px;
    
    /* 修复：表格水平滚动 */
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.hl-message-content th,
.hl-message-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.hl-dark .hl-message-content th,
.hl-dark .hl-message-content td {
    border-color: #444;
}

.hl-message-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.hl-dark .hl-message-content th {
    background-color: #3d3d3d;
}

/* 列表样式 */
.hl-message-content ul,
.hl-message-content ol {
    padding-left: 24px;
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 引用样式 */
.hl-message-content blockquote {
    border-left: 4px solid #fbb03b;
    margin: 12px 0;
    padding: 8px 16px;
    background: rgba(251, 176, 59, 0.1);
    border-radius: 4px;
    color: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 标题样式 */
.hl-message-content h1,
.hl-message-content h2,
.hl-message-content h3,
.hl-message-content h4,
.hl-message-content h5,
.hl-message-content h6 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hl-message-content h1 { font-size: 1.8em; }
.hl-message-content h2 { font-size: 1.5em; }
.hl-message-content h3 { font-size: 1.3em; }
.hl-message-content h4 { font-size: 1.2em; }
.hl-message-content h5 { font-size: 1.1em; }
.hl-message-content h6 { font-size: 1em; }

/* 图片样式 - 限制最大宽度 */
.hl-message-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* 链接样式 */
.hl-message-content a {
    color: #fbb03b;
    text-decoration: none;
    border-bottom: 1px dotted rgba(251, 176, 59, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hl-message-content a:hover {
    border-bottom-style: solid;
}

/* 输入区域 */
.hl-chat-input-area {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.hl-dark .hl-chat-input-area {
    background: #1e2435;
    border-color: #2a3040;
}

.hl-input-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.hl-textarea-wrapper {
    flex: 1;
    position: relative;
}

.hl-chat-input {
    width: 100%;
    min-height: 80px;
    max-height: 200px;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: #f8f8f8;
    color: #333;
    font-size: 0.95rem;
    resize: vertical;
    line-height: 1.5;
    transition: all 0.3s;
    box-sizing: border-box;
}

.hl-dark .hl-chat-input {
    background: #2a3040;
    border-color: #3a4050;
    color: #fff;
}

.hl-chat-input:focus {
    outline: none;
    border-color: #fbb03b;
}

.hl-chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hl-input-tip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 0.75rem;
    color: #999;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 12px;
    pointer-events: none;
}

.hl-dark .hl-input-tip {
    background: rgba(0,0,0,0.3);
    color: #aaa;
}

.hl-send-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fbb03b, #ffd966);
    border: none;
    color: #1a1f2e;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px -3px #fbb03b80;
    flex-shrink: 0;
}

.hl-send-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 8px 20px -5px #fbb03b;
}

.hl-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 模型信息卡片 */
.hl-model-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.hl-dark .hl-model-info {
    border-top-color: #2a3040;
}

.hl-model-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.hl-dark .hl-model-info-item {
    color: #9aa3bd;
}

.hl-model-info-item i {
    color: #fbb03b;
    width: 20px;
}

/* 欢迎消息 */
.hl-welcome-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.hl-dark .hl-welcome-message {
    color: #666;
}

.hl-welcome-message i {
    font-size: 4rem;
    color: #fbb03b;
    margin-bottom: 20px;
    opacity: 0.5;
}

.hl-welcome-message h3 {
    color: #333;
    margin-bottom: 10px;
}

.hl-dark .hl-welcome-message h3 {
    color: #fff;
}

/* 响应式 - 移动端优化 */
@media (max-width: 768px) {
    .hl-chat-main {
        flex-direction: column;
    }
    
    .hl-chat-sidebar {
        flex: auto;
        width: 100%;
    }
    
    .hl-chat-header h1 {
        font-size: 1.8rem;
    }
    
    .hl-message-content {
        max-width: calc(100% - 50px);
        padding: 12px 15px;
    }
    
    .hl-message-content pre {
        font-size: 12px;
        padding: 12px !important;
    }
    
    .hl-copy-btn {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .hl-chat-messages {
        padding: 20px;
        max-height: 450px;
    }
}

/* 深色模式适配 */
.hl-dark .hl-message-content pre {
    background: #0d1117 !important;
}

.hl-dark .hl-message-content code:not(.hl-inline-code) {
    color: #e6edf3 !important;
}

.hl-dark .hl-message-content blockquote {
    background: rgba(251, 176, 59, 0.15);
}