/* 简单通知样式 */
#simple-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #4CAF50;
  color: white;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#simple-notification div {
  margin: 4px 0;
}

/* 自制词典管理样式 */
.custom-dict-section {
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: all 0.3s ease;
}

.custom-dict-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 8px 12px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-dict-section .section-header:hover {
  background: #f0f8ff;
}

.custom-dict-section .section-header .header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-dict-section .section-header .expand-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.2s ease;
  user-select: none;
}

.custom-dict-section.expanded .expand-icon {
  transform: rotate(90deg);
}

.custom-dict-section .section-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.custom-dict-section .dict-count {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.custom-dict-section .header-actions {
  display: flex;
  align-items: center;
}

/* 折叠内容样式 */
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.custom-dict-section.expanded .collapsible-content {
  max-height: 1000px; /* 足够大的值来容纳内容 */
}

/* 词典制作提示样式 */
.dict-maker-tip {
  padding: 8px 12px;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-bottom: 1px solid #e0e0e0;
}

.dict-maker-tip .tip-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.dict-maker-tip .tip-icon {
  font-size: 14px;
}

.dict-maker-tip .tip-text {
  color: #666;
  font-weight: 500;
}

.dict-maker-tip .dict-maker-link {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dict-maker-tip .dict-maker-link:hover {
  color: #0056cc;
  text-decoration: underline;
}

/* 添加词典区域样式 */
.add-dict-section {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
}

.add-dict-btn {
  background: #007AFF;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  margin-bottom: 8px;
}

.add-dict-btn:hover {
  background: #0056b3;
}

.custom-dict-list {
  padding: 16px;
}

.custom-dict-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 8px;
}

.custom-dict-info {
  flex: 1;
}

.custom-dict-name {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.custom-dict-meta {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.custom-dict-actions {
  display: flex;
  gap: 8px;
}

.remove-dict-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}

.remove-dict-btn:hover {
  background: #c82333;
}

/* 添加词典表单样式 */
.add-dict-form {
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-top: 12px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 12px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #007AFF;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.1);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.cancel-btn,
.confirm-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cancel-btn {
  background: #6c757d;
  color: white;
}

.cancel-btn:hover {
  background: #5a6268;
}

.confirm-btn {
  background: #28a745;
  color: white;
}

.confirm-btn:hover {
  background: #218838;
}

/* 设置页面样式 */
.settings-content {
  flex: 1;
  overflow: visible;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: white;
}

.settings-section {
  margin-bottom: 24px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  background: #e9ecef;
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
  width: 100%;
  box-sizing: border-box;
}

.section-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

.section-content {
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-label-text {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.setting-desc {
  font-size: 11px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}

/* 单选按钮组样式 */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: fit-content;
  min-width: auto;
}

.radio-option:hover {
  background: #f8f9fa;
  border-color: #007AFF;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-mark {
  width: 16px;
  height: 16px;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-mark {
  border-color: #007AFF;
  background: #007AFF;
}

.radio-option input[type="radio"]:checked + .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.radio-option span:last-child {
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

/* 存储统计样式 */
.storage-stats {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f3f4;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.stat-value {
  font-size: 12px;
  color: #333;
  font-weight: 600;
}

/* 清理按钮样式 */
.cleanup-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cleanup-btn {
  padding: 8px 16px;
  border: 1px solid #007AFF;
  background: white;
  color: #007AFF;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  display: inline-block;
}

.cleanup-btn:hover {
  background: #007AFF;
  color: white;
}

/* 官网推广样式 */
.official-website-promotion {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.promotion-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.promotion-content p {
    margin: 8px 0;
    opacity: 0.9;
    font-size: 14px;
}

.official-website-link {
    display: inline-block;
    margin: 15px 0;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.official-website-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.auto-update-note {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 15px;
    font-style: italic;
}

.cleanup-btn.danger {
  border-color: #FF3B30;
  color: #FF3B30;
}

.cleanup-btn.danger:hover {
  background: #FF3B30;
  color: white;
}

/* 设置操作按钮 */
.setting-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dee2e6;
  text-align: center;
}

.save-btn {
  padding: 8px 16px;
  background: #007AFF;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  width: auto !important;
  max-width: fit-content;
}

.save-btn:hover {
  background: #0056CC;
  transform: translateY(-1px);
}

.reset-btn {
  padding: 8px 16px;
  background: #FF3B30;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background: #D70015;
  transform: translateY(-1px);
}

/* 关于页面样式 */
.about-content {
  flex: 1;
  display: block;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.about-section {
  width: 100%;
  box-sizing: border-box;
}

.section-header {
  padding: 12px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.section-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.section-content {
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

.about-info p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.version-info {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.version-info p {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #666;
}

/* Dictionary Sources Collapsible Styles */
.dictionary-sources {
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.source-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.source-item:last-child {
  margin-bottom: 0;
}

.source-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.source-header:hover {
  background-color: #e9ecef;
}

.source-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.source-header .toggle-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.2s ease;
}

.source-header.expanded .toggle-icon {
  transform: rotate(180deg);
}

.source-content {
  display: none;
  padding: 15px;
  background: #fff;
  animation: slideDown 0.3s ease-out;
  width: 100%;
  box-sizing: border-box;
}

.source-content.expanded {
  display: block;
}

.source-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.source-content a {
  word-break: break-all;
  overflow-wrap: break-word;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.setting-item {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

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

.setting-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.setting-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid #d0d0d0;
  border-radius: 3px;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.setting-label input[type="checkbox"]:checked + .checkmark {
  background: #007AFF;
  border-color: #007AFF;
}

.setting-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.setting-desc {
  margin: 0;
  font-size: 11px;
  color: #888;
  line-height: 1.3;
  margin-left: 26px;
}

/* 隐私设置样式 */
.privacy-section {
  margin-bottom: 20px;
}

.privacy-toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.privacy-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.privacy-toggle-label input[type="checkbox"] {
  display: none;
}

.privacy-checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d0d0d0;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s ease;
  background: white;
}

.privacy-toggle-label input[type="checkbox"]:checked + .privacy-checkmark {
  background: #007AFF;
  border-color: #007AFF;
}

.privacy-toggle-label input[type="checkbox"]:checked + .privacy-checkmark::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 3px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.privacy-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.privacy-details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.privacy-details summary {
  padding: 12px 16px;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.privacy-details summary:hover {
  background: #e9ecef;
}

.privacy-details summary::marker {
  display: none;
}

.privacy-details summary::after {
  content: '▶';
  font-size: 10px;
  color: #666;
  transition: transform 0.2s ease;
}

.privacy-details.expanded summary::after {
  transform: rotate(90deg);
}

.privacy-details-content {
  padding: 16px;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.privacy-details-title {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.privacy-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.privacy-info-list li {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.privacy-info-list li::before {
  content: '•';
  color: #007AFF;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.privacy-commitment {
  font-size: 11px;
  color: #666;
  font-style: italic;
  padding: 12px;
  background: #f0f8ff;
  border-radius: 4px;
  border-left: 3px solid #007AFF;
  margin: 0;
}



.reset-btn {
  padding: 8px 16px;
  border: 1px solid #dc3545;
  border-radius: 4px;
  background: white;
  color: #dc3545;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background: #dc3545;
  color: white;
}

/* 更新日志折叠展开样式 */
.changelog {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.changelog-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
}

.changelog-header:hover {
  background: #e9ecef;
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-tag {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.version-date {
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
}

.toggle-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.2s ease;
}

.changelog-header.expanded .toggle-icon {
  transform: rotate(180deg);
}

.changelog-content {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.changelog-content.expanded {
  display: block;
}

.changelog-content h5 {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.changelog-content ul {
  margin: 0;
  padding-left: 18px;
}

.changelog-content li {
  margin: 0 0 6px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
}

.changelog-content li:last-child {
  margin-bottom: 0;
}

/* 消息通知样式 */
.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 280px;
  text-align: center;
  animation: slideDown 0.3s ease-out;
  pointer-events: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.message.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* 消息淡出动画 */
.message.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* ==================== FAQ页面样式 ==================== */

/* FAQ页面内容容器 */
.faq-content {
  padding: 0;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* FAQ搜索框 */
.faq-search {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.faq-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.faq-search-input:focus {
  outline: none;
  border-color: #007aff;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.faq-search-input::placeholder {
  color: #999;
}

/* FAQ列表容器 */
.faq-list {
  flex: 0 0 auto;
  margin-bottom: 20px;
}

/* FAQ单项样式 */
.faq-item {
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #007aff;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

/* FAQ问题标题 */
.faq-question {
  padding: 14px 16px;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: #e9ecef;
}

.faq-item.expanded .faq-question {
  background: #007aff;
  color: white;
}

.faq-question-text {
  font-weight: 500;
  color: #333;
  font-size: 13px;
  line-height: 1.4;
  flex: 1;
  margin-right: 12px;
}

.faq-item.expanded .faq-question-text {
  color: white;
}

/* FAQ展开收起图标 */
.faq-toggle {
  color: #666;
  font-size: 12px;
  transition: all 0.3s ease;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.faq-item.expanded .faq-toggle {
  color: white;
  transform: rotate(180deg);
}

/* FAQ答案内容 */
.faq-answer {
  padding: 0 16px;
  background: white;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: pre-line;
}

.faq-item.expanded .faq-answer {
  padding: 16px;
  max-height: 500px;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul, .faq-answer ol {
  margin: 8px 0;
  padding-left: 16px;
}

.faq-answer li {
  margin-bottom: 4px;
}

.faq-answer strong {
  color: #333;
  font-weight: 600;
}

.faq-answer code {
  background: #f1f3f4;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 11px;
  color: #d73a49;
}

.faq-answer a {
  color: #007aff;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* FAQ联系我们部分 */
.faq-contact {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.faq-contact h4 {
  margin-bottom: 12px;
  color: #333;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.contact-link:hover {
  background: #e9ecef;
  border-color: #007aff;
  color: #007aff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-link span {
  font-weight: 500;
}

/* FAQ侧边栏按钮特殊样式 */
.sidebar-btn#faq-btn span {
  color: #ff3b30 !important;
  font-size: 16px;
}

.sidebar-btn#faq-btn.active span {
  color: white !important;
}

.sidebar-btn#faq-btn:hover span {
  color: #ff3b30 !important;
}

.sidebar-btn#faq-btn.active:hover span {
  color: white !important;
}

/* FAQ空状态样式 */
.faq-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 13px;
}

.faq-empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* FAQ加载状态 */
.faq-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 13px;
}

.faq-loading::before {
  content: "⏳";
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

/* 响应式调整 */
@media (max-height: 600px) {
  .faq-content {
    padding: 0;
  }
  
  .faq-question {
    padding: 10px 12px;
  }
  
  .faq-item.expanded .faq-answer {
    padding: 12px;
  }
  
  .faq-contact {
    padding: 12px;
  }
}

/* FAQ动画效果 */
@keyframes faqSlideDown {
  from {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    max-height: 500px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@keyframes faqSlideUp {
  from {
    max-height: 500px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  to {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* 滚动条样式优化 */
.faq-list::-webkit-scrollbar {
  width: 6px;
}

.faq-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.faq-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.faq-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 隐私描述行样式 */
.privacy-desc-lines {
  margin: 8px 0 12px 0;
}

.privacy-desc-line {
  font-size: 12px;
  color: #555;
  margin: 4px 0;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}

.privacy-desc-line:before {
  content: "•";
  color: #007AFF;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* 隐私链接样式 */
.privacy-links {
  margin-top: 12px;
}

.privacy-links-desc {
  font-size: 12px;
  color: #666;
  margin: 0 0 8px 0;
}

.privacy-link-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.privacy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #495057;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
}

.privacy-link-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
  text-decoration: none;
}

.privacy-link-btn span:first-child {
  font-size: 14px;
}