:root {
    --color-primary: #5797C4;
    --color-secondary: #FA9802;
    --color-dark: #333333;
    --color-background: white;
    --skeleton-base: #f0f0f0;
    --skeleton-highlight: #f8f8f8;
}

/* ===== 基础样式 ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--color-dark);
    background-color: var(--color-background);
}

.bg-custom {
    background-color: var(--color-background);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.border-primary {
    border-color: var(--color-primary);
}

/* ===== AI生成内容标识样式 ===== */
.ai-generated-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #dcfce7;
    color: #16a34a;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.ai-global-notice {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.ai-global-notice svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

/* 响应式适配 */
@media (max-width: 640px) {
    .ai-generated-badge {
        font-size: 0.65rem;
        padding: 0.125rem 0.375rem;
        margin-left: 0.25rem;
    }
    
    .ai-global-notice {
        font-size: 0.75rem;
        justify-content: center;
        text-align: center;
    }
    
    .ai-global-notice svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* ===== 搜索组件样式 - 统一版本 ===== */
.search-input-wrapper {
    position: relative;
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background-color: white;
    margin-bottom: 0.75rem;
	padding-bottom: 44px;
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex-grow: 1;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: none;
    outline: none;
    resize: none;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.5;
    width: 100%;
    font-size: 1rem;
}

.search-button {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    color: #4b5563;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}


.search-button:hover {
    background-color: #e5e7eb;
}

.search-button[data-action="pause"] {
    background-color: var(--color-secondary);
    color: white;
}

.search-button[data-action="pause"]:hover {
    background-color: #e67e00;
}

/* 底部控制区样式 - 固定在输入框底部 */
.search-controls-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border-top: 1px solid #f0f0f0;
    height: 44px;
}

/* 搜索控制栏 */
.search-controls {
    margin-top: 0.75rem;
}


/* 模式选择器 */
.mode-selector {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    overflow: hidden;
    width: 100%;
}

.mode-button {
    padding: 0.5rem 1rem;
    background-color: white;
    color: #4b5563;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    flex: 1;
    position: relative;
    text-align: center;
    cursor: pointer;
}

.mode-button:hover {
    background-color: #f9fafb;
}

.mode-button.active {
    background-color: var(--color-primary);
    color: white;
}

/* 推理开关 */
.reasoning-toggle-wrapper {
    display: flex;
    align-items: center;
}

.reasoning-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-track {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #e5e7eb;
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

input:checked + .toggle-track {
    background-color: var(--color-primary);
}

input:checked + .toggle-track .toggle-thumb {
    transform: translateX(24px);
}

.toggle-text {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

/* ===== 结果区域样式 ===== */
#queryTitle {
    text-align: left;
    padding-left: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ===== AI 回答区域样式 ===== */
.prose {
    font-size: 1rem;
    line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: var(--color-dark);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.prose h2 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.prose h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.prose p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: var(--color-dark);
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
}

.prose pre {
    overflow-x: auto;
    border-radius: 0.375em;
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875em;
}

/* ===== 引用样式 ===== */
.prose .citation {
    background-color: #f0f4f8;
    border-left: 4px solid var(--color-primary);
    padding: 0.5em 1em;
    margin: 1em 0;
}

.prose .citation a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.prose .citation a:hover {
    text-decoration: underline;
}

/* ===== 引用来源样式 ===== */
.source-item {
    padding: 1em;
    border-radius: 0.5em;
    border: 1px solid #e5e7eb;
    margin-bottom: 1em;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.source-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.source-item h4 {
    font-weight: 600;
    margin-bottom: 0.5em;
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1.4;
}

.source-item .source-url {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-item .source-snippet {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.source-item .source-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    margin-top: 0.75em;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75em;
}


.skeleton-url {
    height: 14px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-image {
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--skeleton-base) 8%, var(--skeleton-highlight) 18%, var(--skeleton-base) 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
}



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}


/* ===== 引用标记样式 ===== */
sup .citation-ref {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0 2px;
}

sup .citation-ref:hover {
    background-color: #e6f0f7;
    border-radius: 3px;
}

/* ===== 图片网格样式 ===== */
.image-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-card-info {
    padding: 0.75rem;
    background: white;
}

.image-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-card-source {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===== 选项卡样式 ===== */
#sourcesTab.active, #imagesTab.active {
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}

#sourcesTab, #imagesTab {
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
}

/* ===== 加载中状态徽章 ===== */
#aiStatusBadge {
    transition: background-color 0.3s, color 0.3s;
}

#aiStatusBadge.sources {
    background-color: #e6f0f7;
    color: #1e88e5;
}

#aiStatusBadge.thinking {
    background-color: #fff8e6;
    color: #fb8c00;
}

#aiStatusBadge.analysis {
    background-color: #e8f5e9;
    color: #43a047;
}

#aiStatusBadge.completed {
    background-color: #e8eaf6;
    color: #3f51b5;
}

/* ===== 表格样式 ===== */
.markdown-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    border-spacing: 0;
}

.markdown-table th,
.markdown-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.markdown-table th {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.markdown-table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.markdown-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* ===== 代码块样式 ===== */
pre[class*="language-"] {
    margin: 1.5em 0;
    padding: 1em;
    border-radius: 0.5em;
    overflow: auto;
}

:not(pre) > code {
    background-color: #f1f1f1;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #e83e8c;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    white-space: normal;
}

/* ===== Mermaid 图表样式 ===== */
.mermaid {
    margin: 30px 0;
    overflow-x: auto;
    text-align: center;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.mermaid:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* Mermaid 容器样式（参考优秀项目） */
.mermaid-container {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Mermaid SVG 优化 */
.mermaid svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .mermaid,
    .mermaid-container {
        padding: 15px;
        margin: 20px 0;
    }
    
    .mermaid svg {
        font-size: 12px;
    }
}

/* ===== 分享按钮样式 ===== */
.share-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-button:hover {
    background-color: #4380aa;
}

.share-button svg {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

.copy-success {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4C4;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    animation: fadeInOut 2s ease forwards;
    z-index: 9999;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== 基本代码高亮样式 ===== */
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #999;
}

.token.punctuation {
    color: #ccc;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
    color: #e2777a;
}

.token.function-name {
    color: #6196cc;
}

.token.boolean,
.token.number,
.token.function {
    color: #f08d49;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
    color: #f8c555;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
    color: #cc99cd;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
    color: #7ec699;
}

.token.operator,
.token.entity,
.token.url {
    color: #67cdcc;
}

.token.important,
.token.bold {
    font-weight: bold;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

/* ===== 加载指示器样式 ===== */
@keyframes loadingProgress {
  0% { width: 0; }
  20% { width: 20%; }
  50% { width: 50%; }
  80% { width: 80%; }
  100% { width: 100%; }
}


/* ===== 通知消息样式 ===== */
.app-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #4a5568;
    font-size: 0.875rem;
    z-index: 9999;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.app-notification.info {
    background-color: #ebf8ff;
    border-left: 4px solid #4299e1;
}

.app-notification.success {
    background-color: #f0fff4;
    border-left: 4px solid #48bb78;
}

.app-notification.warning {
    background-color: #fffaf0;
    border-left: 4px solid #ed8936;
}

.app-notification.error {
    background-color: #fff5f5;
    border-left: 4px solid #f56565;
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .search-input {
        min-height: 100px;
    }
    
    .search-controls-bottom {
        padding: 0.5rem;
    }
    
    .toggle-text {
        font-size: 0.75rem;
    }
    
    .search-button {
        width: 36px;
        height: 36px;
    }
}

/* 非常小的屏幕调整 */
@media (max-width: 360px) {
    #logoContainer .flex {
        flex-direction: column;
        text-align: center;
    }
    
    #logoContainer .w-16 {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .mode-button {
        padding: 0.4rem 0.2rem;
        font-size: 0.7rem;
    }
    
    .toggle-text {
        font-size: 0.75rem;
    }
}

/* 无障碍访问 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* Mermaid 源代码和错误显示样式优化 */
.mermaid-source {
    padding: 20px;
    background-color: #2f3640;
    color: #f1f2f6;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    white-space: pre-wrap;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    overflow: auto;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 20px 0;
}

.mermaid-error {
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
    border: 2px solid #e53e3e;
    border-radius: 12px;
    color: #c53030;
    margin: 20px 0;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.2);
}

.mermaid-error::before {
    content: "⚠️ ";
    font-size: 1.2em;
    margin-right: 8px;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .mermaid,
    .mermaid-container {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .mermaid-source {
        background-color: #1a202c;
        border-color: #4a5568;
    }
    
    .mermaid-error {
        background: linear-gradient(135deg, #2d1b1b 0%, #3d1f1f 100%);
        border-color: #e53e3e;
        color: #fc8181;
    }
}

/* 进度条相关样式 */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 4px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--color-primary), #4dabf7);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: right;
}

/* 状态指示器相关样式 */
#aiStatusBadge {
    transition: background-color 0.3s, color 0.3s;
}

#aiStatusBadge.init {
    background-color: #e6f0f7;
    color: #1e88e5;
}

#aiStatusBadge.query-analysis {
    background-color: #f3e5f5;
    color: #9c27b0;
}

#aiStatusBadge.sources {
    background-color: #e3f2fd;
    color: #2196f3;
}

#aiStatusBadge.thinking {
    background-color: #fff8e1;
    color: #ffa000;
}

#aiStatusBadge.evaluation {
    background-color: #e0f2f1;
    color: #009688;
}

#aiStatusBadge.analysis {
    background-color: #e8f5e9;
    color: #4caf50;
}

#aiStatusBadge.completed {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* 淡出动画 */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 修复按钮对齐问题 */
.search-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.search-button {
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 改进移动端适配 */
@media (max-width: 768px) {
    .search-controls-bottom {
        padding: 8px;
    }
    
    #resultSearchContainer {
        margin-bottom: 12px;
    }
    
    .search-input {
        min-height: 80px;
        padding: 12px 8px;
    }
    
    .mode-button {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .source-item {
        padding: 12px 8px;
    }
    
    .image-card img {
        height: 120px;
    }
}

/* 更好的错误模态框样式 */
#errorModal {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

#errorModal .modal-content {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.modal-body {
    margin-bottom: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #4e88b4;
}

/* 提高对比度，改善可访问性 */
.text-gray-500 {
    color: #64748b;
}

.text-gray-600 {
    color: #475569;
}

#aiStatusBadge.context-processing {
    background-color: #e0f2f1;
    color: #00796b;
}

/* 历史记录文本行数限制 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 页脚响应式样式 ===== */
/* 页脚基础样式 */
footer {
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

/* 页脚层级间距 */
footer .container > div {
    margin-bottom: 0.75rem;
}

footer .container > div:last-child {
    margin-bottom: 0;
}

/* 合规信息区域样式 */
footer .text-sm {
    font-size: 0.875rem;
    line-height: 1.4;
}

footer .text-xs {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* 页脚链接样式 */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--color-primary);
}

/* 移动端页脚响应式 */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0;
    }
    
    /* 功能链接区域 */
    footer .text-gray-600 {
        font-size: 0.875rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    footer .text-gray-600 .mx-2 {
        display: none;
    }
    
    /* 合规信息区域 */
    footer .text-sm {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    footer .text-xs {
        font-size: 0.65rem;
        line-height: 1.4;
    }
    
    /* 合规信息分行显示 */
    footer .text-sm > div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
        text-align: center;
    }
    
    footer .text-sm > div .mx-2 {
        display: none;
    }
    
    /* 移动端备案信息单独行显示 */
    footer .text-sm > div > a,
    footer .text-sm > div > span:not(.mx-2) {
        display: block;
        margin: 0.125rem 0;
    }
    
    /* AI提示区域 */
    .ai-global-notice {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .ai-global-notice svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    footer .container {
        padding: 0 1rem;
    }
    
    footer .text-sm {
        font-size: 0.7rem;
    }
    
    footer .text-xs {
        font-size: 0.6rem;
    }
    
    /* 品牌标识区域 */
    footer .flex.items-center.justify-center {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    footer .font-bold.text-lg {
        font-size: 1rem;
    }
    
    /* 算法备案信息换行 */
    footer .text-xs > span,
    footer .text-xs > a {
        display: block;
        margin: 0.125rem 0;
    }
}

/* 提升算法备案信息可见性 */
footer .text-xs a[href*="cac.gov.cn"] {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

footer .text-xs a[href*="cac.gov.cn"]:hover {
    text-decoration: underline;
    color: #4e88b4;
}

