/**
 * SEO站群程序样式 - 统一版面宽度
 */

:root {
    --primary: #111111;
    --primary-hover: #333333;
    --text: #111111;
    --text-secondary: #666666;
    --bg: #ffffff;
    --sidebar-bg: #fafafa;
    --card-bg: #f5f5f5;
    --border-color: #e5e5e5;
    --input-bg: #f5f5f5;
    --input-bg-focus: #ffffff;
    --input-radius: 28px;
    --transition-speed: 0.3s;
    --ease-curve: cubic-bezier(0.2, 0.0, 0, 1.0);
    --section-padding-x: 120px;
}

.dark-mode {
    --primary: #ffffff;
    --primary-hover: #cccccc;
    --text: #e5e5e5;
    --text-secondary: #999999;
    --bg: #111111;
    --sidebar-bg: #1a1a1a;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --input-bg: #222222;
    --input-bg-focus: #111111;
}

html, body, .wrapper { overflow-x: hidden; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important; background-color: var(--bg) !important; color: var(--text) !important; transition: background-color 0.3s, color 0.3s; font-size: 1.0625rem; line-height: 1.75; }
a { color: var(--text); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; color: var(--text); text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.4); }
.wrapper, .content-wrapper { background-color: var(--bg) !important; transition: margin-left var(--transition-speed) var(--ease-curve); }

/* 顶部导航 */
.main-header { background-color: var(--bg) !important; border-bottom: 1px solid var(--border-color) !important; box-shadow: none !important; height: 60px; }
.main-header .nav-link { color: var(--text-secondary) !important; font-size: 1rem; }
.main-header .nav-link:hover { color: var(--text) !important; }

/* 左侧边栏 */
.main-sidebar { background-color: var(--sidebar-bg) !important; border-right: 1px solid var(--border-color); box-shadow: none !important; }
.brand-link { height: 60px; border-bottom: 1px solid var(--border-color) !important; color: var(--text) !important; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; font-size: 1.3rem; font-weight: 700; }
.brand-link:hover { color: var(--text) !important; }
.brand-search-btn { color: var(--text-secondary) !important; background: transparent; border: none; padding: 8px; cursor: pointer; transition: color 0.2s; }
.brand-search-btn:hover { color: var(--text) !important; }
.nav-sidebar .nav-item .nav-link { color: var(--text); border-radius: 0 50px 50px 0; margin-right: 10px; padding: 12px 1rem; font-size: 1rem; transition: all 0.2s; }
.nav-sidebar .nav-item .nav-link.active { background-color: var(--card-bg) !important; color: var(--text) !important; font-weight: 600; }
.nav-sidebar .nav-item .nav-link:hover:not(.active) { background-color: rgba(0,0,0,0.03) !important; }
.dark-mode .nav-sidebar .nav-item .nav-link:hover:not(.active) { background-color: rgba(255,255,255,0.03) !important; }
.sidebar-custom { border-top: 1px solid var(--border-color) !important; padding: 1rem; }

/* 搜索框区域 */
.home-container { display: flex; align-items: center; justify-content: center; padding: 50px var(--section-padding-x); }
.home-shell { width: 100%; max-width: 720px; text-align: center; }
.home-logo { font-size: 2.5rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }
.home-logo a { color: var(--text); }
.home-logo a:hover { opacity: 0.8; }

.chat-input-box { background-color: var(--input-bg); border-radius: var(--input-radius); border: 1px solid var(--border-color); display: flex; align-items: flex-end; padding: 6px; transition: all 0.2s; }
.chat-input-box:focus-within { background-color: var(--input-bg-focus); box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: var(--text-secondary); }
.dark-mode .chat-input-box:focus-within { box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.chat-input-main { flex: 1; padding: 10px 0 6px 16px; display: flex; flex-direction: column; min-height: 60px; }
.chat-input-text { width: 100%; border: none; outline: none; background: transparent; resize: none; font-size: 1.0625rem; line-height: 1.5; color: var(--text); max-height: 200px; font-family: inherit; }
.chat-input-text::placeholder { color: var(--text-secondary); opacity: 0.6; }
.chat-input-footer { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.chat-input-actions { display: flex; align-items: center; padding-bottom: 4px; padding-right: 8px; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.icon-btn i { font-size: 1.1rem; }
.icon-btn:hover { background-color: rgba(0,0,0,0.05); color: var(--text); }
.dark-mode .icon-btn:hover { background-color: rgba(255,255,255,0.05); }
.send-btn { display: none; opacity: 0.5; }
.chat-input-box.has-content .send-btn { display: flex; background-color: var(--primary); color: var(--bg); opacity: 1; }
.close-btn { display: none; }
.chat-input-box.has-content .close-btn { display: flex; }

/* 检测器区域 */
.detect-section { width: 100%; padding: 0 var(--section-padding-x) 48px; box-sizing: border-box; }
.detect-container { display: flex; gap: 0; align-items: stretch; position: relative; }
.detect-panel { flex: 1; display: flex; flex-direction: column; background-color: var(--bg); border: 1px solid var(--border-color); overflow: hidden; min-height: 500px; }
.dark-mode .detect-panel { background-color: var(--card-bg); border-color: var(--border-color); }
.detect-source-panel { border-radius: 12px 0 0 12px; border-right: none; }
.detect-result-panel { border-radius: 0 12px 12px 0; border-left: none; background-color: var(--card-bg); }
.dark-mode .detect-result-panel { background-color: #1a1a1a; }
.detect-panel-header { display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--border-color); min-height: 50px; }
.detect-lang-tabs { display: flex; align-items: center; gap: 0; flex: 1; overflow-x: auto; height: 50px; }
.detect-lang-tabs::-webkit-scrollbar { display: none; }
.detect-lang-tab { padding: 0 16px; height: 100%; background: transparent; border: none; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; cursor: pointer; position: relative; transition: color 0.2s var(--ease-curve); white-space: nowrap; display: flex; align-items: center; }
.detect-lang-tab:hover { color: var(--text); }
.detect-lang-tab.active { color: var(--primary); }
.detect-lang-tab.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background-color: var(--primary); }
.detect-panel-body { flex: 1; padding: 16px 20px; position: relative; display: none; flex-direction: column; }
.detect-panel-body.active { display: flex; }
.detect-textarea { width: 100%; height: 100%; min-height: 300px; padding: 0; padding-right: 40px; border: none; outline: none; background: transparent; color: var(--text); font-size: 1rem; line-height: 1.7; resize: none; font-family: inherit; }
.detect-textarea::placeholder { color: var(--text-secondary); opacity: 0.5; }
.detect-clear-btn { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; display: none; align-items: center; justify-content: center; transition: all 0.2s var(--ease-curve); }
.detect-clear-btn.visible { display: flex; }
.detect-clear-btn:hover { background-color: rgba(0,0,0,0.08); color: var(--text); }
.dark-mode .detect-clear-btn:hover { background-color: rgba(255,255,255,0.1); }
.detect-upload-area { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; text-align: center; padding: 40px 24px; }
.detect-upload-icon { font-size: 3.5rem; color: var(--text-secondary); opacity: 0.4; margin-bottom: 12px; }
.detect-upload-text { margin: 0 0 24px; font-size: 1rem; font-weight: 500; color: var(--text); }
.detect-upload-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 200px; padding: 12px 24px; border-radius: 6px; font-size: .95rem; font-weight: 500; cursor: pointer; transition: all .2s var(--ease-curve); margin-bottom: 12px; }
.detect-upload-btn-primary { background-color: var(--primary); color: var(--bg); border: none; }
.detect-upload-btn-primary:hover { background-color: var(--primary-hover); }
.detect-upload-btn-secondary { background-color: transparent; color: var(--text); border: 1px solid var(--border-color); }
.detect-upload-btn-secondary:hover { border-color: var(--text-secondary); }
.detect-upload-hint { margin: 8px 0 0; font-size: .85rem; color: var(--text-secondary); }
.detect-upload-hint a { color: var(--text); text-decoration: underline; }
.detect-upload-area.dragover { background-color: rgba(0,0,0,0.02); }
.dark-mode .detect-upload-area.dragover { background-color: rgba(255,255,255,0.02); }
.detect-url-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.detect-url-input-wrapper { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 500px; }
.detect-url-input { flex: 1; padding: 14px 18px; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--bg); color: var(--text); font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.detect-url-input::placeholder { color: var(--text-secondary); opacity: .6; }
.detect-url-input:focus { border-color: var(--text-secondary); box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.dark-mode .detect-url-input { background-color: var(--input-bg); border-color: var(--border-color); }
.detect-url-submit { width: 48px; height: 48px; border-radius: 50%; border: none; background-color: var(--primary); color: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all .2s var(--ease-curve); flex-shrink: 0; }
.detect-url-submit:hover { background-color: var(--primary-hover); transform: scale(1.05); }
.detect-result { flex: 1; min-height: 300px; }
.detect-result-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; color: var(--text-secondary); opacity: 0.6; }
.detect-result-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.detect-result-empty p { font-size: 0.95rem; margin: 0; }
.detect-result-data { height: 100%; }
.detect-result-text { font-size: 1rem; line-height: 1.7; color: var(--text); word-break: break-word; }
.detect-panel-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border-color); }
.detect-footer-left, .detect-footer-right { display: flex; align-items: center; gap: 8px; }
.detect-tool-btn { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s var(--ease-curve); }
.detect-tool-btn:hover { background-color: rgba(0,0,0,0.08); color: var(--text); }
.detect-tool-btn.active { color: var(--primary); }
.dark-mode .detect-tool-btn:hover { background-color: rgba(255,255,255,0.1); }
.detect-char-count { font-size: 0.85rem; color: var(--text-secondary); }
.detect-similarity-result { display: flex; align-items: center; gap: 6px; }
.detect-similarity-value { font-size: 14px; font-weight: 600; color: var(--primary); }
.detect-similarity-label { font-size: 14px; color: var(--text-secondary); }
.detect-strength-slider { display: flex; align-items: center; gap: 12px; }
.detect-strength-label { font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.detect-slider-wrapper { width: 120px; display: flex; align-items: center; }
.detect-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 1px; outline: none; cursor: pointer; background: linear-gradient(to right, var(--primary) 0%, #ccc 0%); }
.dark-mode .detect-slider { background: linear-gradient(to right, var(--primary) 0%, rgba(255,255,255,.3) 0%); }
.detect-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); cursor: pointer; }
.detect-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); cursor: pointer; }
.detect-strength-value { display: flex; align-items: center; gap: 4px; color: var(--text-secondary); }
.detect-strength-value i { font-size: 14px; }
.detect-strength-value span { font-size: 14px; font-weight: 500; min-width: 12px; text-align: center; }

/* 冻结关键词弹窗 */
.freeze-drawer { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; }
.freeze-drawer.open { display: flex; }
.freeze-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.freeze-drawer-content { position: relative; width: 90%; max-width: 520px; max-height: 80vh; background: var(--bg); border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; }
.dark-mode .freeze-drawer-content { background: var(--card-bg); }
.freeze-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.freeze-drawer-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 0; }
.freeze-drawer-title i { color: var(--primary); }
.freeze-drawer-close { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.freeze-drawer-close:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.dark-mode .freeze-drawer-close:hover { background: rgba(255,255,255,0.1); }
.freeze-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; }
.freeze-drawer-desc { font-size: 0.9rem; color: var(--text-secondary); margin: 0 0 20px; line-height: 1.5; }
.freeze-input-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.freeze-input-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.freeze-input-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.freeze-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg); color: var(--text); font-size: 1rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.freeze-input:focus { border-color: var(--text-secondary); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.dark-mode .freeze-input { background: var(--input-bg); border-color: var(--border-color); }
.freeze-input::placeholder { color: var(--text-secondary); opacity: 0.6; }
.freeze-input-arrow { padding-bottom: 14px; color: var(--text-secondary); font-size: 0.85rem; }
.freeze-add-btn { width: 100%; padding: 14px 20px; background: var(--primary); border: none; border-radius: 12px; color: var(--bg); font-size: 1rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; margin-bottom: 24px; }
.freeze-add-btn:hover { background: var(--primary-hover); }
.freeze-tags-section { border-top: 1px solid var(--border-color); padding-top: 20px; }
.freeze-tags-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.freeze-tags-title { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.freeze-tags-count { font-size: 0.8rem; color: var(--text-secondary); background: rgba(0,0,0,0.06); padding: 2px 8px; border-radius: 10px; }
.dark-mode .freeze-tags-count { background: rgba(255,255,255,0.1); }
.freeze-tags-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.freeze-tags-empty { width: 100%; text-align: center; color: var(--text-secondary); font-size: 0.85rem; padding: 20px 0; }
.freeze-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.85rem; color: var(--text); }
.dark-mode .freeze-tag { background: rgba(255,255,255,0.08); }
.freeze-tag-original { font-weight: 500; }
.freeze-tag-arrow { color: var(--text-secondary); font-size: 0.75rem; }
.freeze-tag-replace { color: var(--text-secondary); }
.freeze-tag-delete { width: 18px; height: 18px; border-radius: 50%; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-left: 4px; transition: all 0.2s; }
.freeze-tag-delete:hover { background: rgba(0,0,0,0.1); color: var(--text); }

/* 历史记录 */
.translate-history { margin-top: 32px; background-color: var(--bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.dark-mode .translate-history { background-color: var(--card-bg); }
.translate-history-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.translate-history-title { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; }
.translate-history-clear { background: transparent; border: none; color: var(--text-secondary); font-size: 0.85rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.2s; }
.translate-history-clear:hover { background-color: rgba(0,0,0,0.05); color: var(--text); }
.translate-history-list { max-height: 300px; overflow-y: auto; }
.translate-history-item { display: flex; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background-color 0.2s; }
.translate-history-item:last-child { border-bottom: none; }
.translate-history-item:hover { background-color: rgba(0,0,0,0.02); }
.dark-mode .translate-history-item:hover { background-color: rgba(255,255,255,0.04); }
.translate-history-content { flex: 1; min-width: 0; }
.translate-history-source { font-size: 0.95rem; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.translate-history-target { font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.translate-history-empty { padding: 40px 20px; text-align: center; color: var(--text-secondary); }

/* 广告位 */
.ad-section { padding: 30px var(--section-padding-x); }
.ad-banner-container { width: 100%; border-radius: 12px; overflow: hidden; background: var(--card-bg); }
.ad-banner-link { display: block; width: 100%; }
.ad-banner-img { width: 100%; height: 240px; object-fit: cover; display: block; transition: opacity 0.2s; }
.ad-banner-link:hover .ad-banner-img { opacity: 0.9; }

/* 内容区域通用 */
.content-section { padding: 60px var(--section-padding-x); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-title h2 a { color: var(--text); }
.section-title p { color: var(--text-secondary); font-size: 1.0625rem; margin: 0; }

/* 特性卡片 - 4列网格 */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}
.feature-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 28px 24px; text-align: center; transition: all 0.2s; }
.feature-card:hover { border-color: var(--text-secondary); }
.feature-icon { width: 64px; height: 64px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--bg); font-size: 1.5rem; }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* 内容卡片 */
.content-card-wrapper { max-width: 800px; margin: 0 auto; }
.content-card { background: var(--card-bg); border-radius: 16px; padding: 32px; }
.content-card p { font-size: 1.0625rem; line-height: 1.8; color: var(--text); margin-bottom: 16px; }
.content-card p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-question { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.faq-question .badge { background: var(--primary); color: var(--bg); font-size: 0.8rem; padding: 4px 10px; border-radius: 50%; flex-shrink: 0; }
.faq-answer { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; padding-left: 36px; }

/* 合作伙伴 */
.partners-section { padding: 60px var(--section-padding-x); background: var(--card-bg); }
.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner-link { display: inline-flex; align-items: center; padding: 10px 20px; background: var(--bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text); font-size: 0.9375rem; font-weight: 500; transition: all 0.2s; }
.partner-link:hover { border-color: var(--text-secondary); color: var(--text); opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.dark-mode .partner-link:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* 右侧工作台 */
.workspace-sidebar { position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; background-color: var(--sidebar-bg); border-left: 1px solid var(--border-color); z-index: 1050; display: flex; flex-direction: column; transition: right 0.3s var(--ease-curve); }
.workspace-sidebar.open { right: 0; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--border-color); height: 60px; }
.workspace-tab { font-size: 1rem; font-weight: 600; color: var(--text); background: transparent; border: none; }
.workspace-header-btn { width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.workspace-header-btn:hover { background-color: rgba(0,0,0,0.05); color: var(--text); }
.dark-mode .workspace-header-btn:hover { background-color: rgba(255,255,255,0.05); }
.workspace-body { flex: 1; overflow-y: auto; padding: 16px; }
.workspace-section-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.workspace-info-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text); font-size: 0.9375rem; border-bottom: 1px solid var(--border-color); }
.workspace-info-item:last-child { border-bottom: none; }
.workspace-info-item i { width: 20px; text-align: center; color: var(--text-secondary); }
.workspace-info-item.clickable { cursor: pointer; transition: opacity 0.2s; }
.workspace-info-item.clickable:hover { opacity: 0.7; }

/* 页脚 */
.main-footer { background: #111 !important; color: rgba(255,255,255,0.75); border: none !important; padding: 0; }
.dark-mode .main-footer { background: #000 !important; }
.footer-inner { padding: 50px var(--section-padding-x) 0; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-section h4 { font-size: 1.125rem; margin-bottom: 20px; color: #fff; font-weight: 600; }
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: 12px; }
.footer-section a { color: rgba(255,255,255,0.7); font-size: 0.9375rem; }
.footer-section a:hover { color: #fff; opacity: 1; }
.footer-section p { font-size: 0.9375rem; line-height: 1.7; }
.footer-bottom { text-align: center; padding: 24px 0; color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }

/* 搜索弹窗 */
.history-search-modal { position: fixed; inset: 0; display: none; align-items: flex-start; justify-content: center; padding-top: 15vh; z-index: 2000; opacity: 0; transition: opacity 0.2s ease; }
.history-search-modal.open { display: flex; opacity: 1; }
.history-search-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.history-search-dialog { position: relative; z-index: 2; width: 500px; max-width: 90%; background-color: var(--bg); border-radius: 16px; box-shadow: 0 24px 48px rgba(0,0,0,0.2); border: 1px solid var(--border-color); transform: scale(0.95); transition: transform 0.2s; }
.history-search-modal.open .history-search-dialog { transform: scale(1); }
.history-search-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-weight: 500; color: var(--text); }
.history-search-body { padding: 20px; }
#history-search-input { width: 100%; background-color: var(--input-bg); border: 1px solid var(--border-color); color: var(--text); border-radius: 8px; padding: 12px; font-size: 1rem; }
#history-search-input:focus { outline: none; border-color: var(--text-secondary); }

/* 响应式 */
@media (max-width: 1200px) {
    .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 992px) {
    :root { --section-padding-x: 24px; }
    .detect-container { flex-direction: column; gap: 16px; }
    .detect-source-panel { border-radius: 12px; border-right: 1px solid var(--border-color); }
    .detect-result-panel { border-radius: 12px; border-left: 1px solid var(--border-color); }
}
@media (max-width: 768px) {
    :root { --section-padding-x: 16px; }
    .home-logo { font-size: 1.75rem; }
    .section-title { margin-bottom: 32px; }
    .section-title h2 { font-size: 1.5rem; }
    .detect-panel { min-height: 400px; }
    .detect-textarea { font-size: 0.95rem; }
    .detect-lang-tab { padding: 0 12px; font-size: 0.85rem; }
    .detect-url-input-wrapper { flex-direction: column; gap: 16px; }
    .detect-url-submit { width: 100%; border-radius: 8px; height: 48px; }
    .detect-result-panel { display: none; }
    .detect-result-panel.mobile-visible { display: flex; }
    .feature-card { padding: 20px 16px; }
    .feature-icon { width: 56px; height: 56px; font-size: 1.25rem; }
    .content-card { padding: 24px 20px; }
    .faq-item { padding: 16px 20px; }
    .faq-question { font-size: 1rem; }
    .faq-answer { padding-left: 0; margin-top: 8px; }
    .partners-grid { gap: 10px; }
    .partner-link { padding: 8px 14px; font-size: 0.875rem; }
    .workspace-sidebar { width: 100%; right: -100%; }
    .ad-banner-img { height: 160px; }
    .freeze-drawer { align-items: flex-end; }
    .freeze-drawer-content { width: 100%; max-width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
    .freeze-input-row { flex-direction: column; gap: 12px; }
    .freeze-input-arrow { display: none; }
    .freeze-input { padding: 16px; font-size: 16px; }
}
@media (max-width: 576px) {
    :root { --section-padding-x: 12px; }
    .features-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .detect-lang-tab { padding: 0 10px; font-size: 0.8rem; }
    .ad-banner-img { height: 120px; }
}