:root {
  --bg: #ffffff;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fafafa;
  --bg-input: #ffffff;
  --text: #111111;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-primary: #111111;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --card-bg: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* 站点提交弹窗 */
.submit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.submit-modal {
  background: var(--bg);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.submit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.submit-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.submit-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.submit-close:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.submit-form {
  padding: 20px 24px 24px;
}

.submit-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.submit-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.submit-field {
  margin-bottom: 14px;
}

.submit-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.submit-field label em {
  color: #ef4444;
  font-style: normal;
  margin-left: 2px;
}

.submit-field input,
.submit-field select,
.submit-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.submit-field input:focus,
.submit-field select:focus,
.submit-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-field textarea {
  resize: vertical;
  min-height: 72px;
}

.verify-row {
  display: flex;
  gap: 8px;
}

.verify-row input {
  flex: 1;
}

.verify-row button {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.verify-row button:hover:not(:disabled) {
  background: var(--border-light);
}

.verify-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-foot {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.submit-foot button {
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-foot button:hover {
  background: var(--primary-hover);
}

.submit-foot button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 图标上传区域 */
.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-preview {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-placeholder {
  font-size: 11px;
  color: var(--text-muted);
}

.icon-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.icon-actions button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.icon-actions button:hover:not(:disabled) {
  background: var(--bg-tertiary);
  border-color: var(--primary);
}

.icon-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #0a0a0a;
  --bg-input: #141414;
  --text: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #666666;
  --text-primary: #ffffff;
  --border: #1a1a1a;
  --border-light: #111111;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e3a5f;
  --card-bg: #000000;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
}

/* wangEditor 主题适配（前台货源提交 / 后台编辑） */
#huoyuanDescEditorWrap,
#hyedit_desc_editor_wrap {
  background: var(--bg-input) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
#huoyuanDescEditorWrap .w-e-toolbar,
#hyedit_desc_editor_wrap .w-e-toolbar,
#huoyuanDescEditorWrap .w-e-menu,
#hyedit_desc_editor_wrap .w-e-menu,
#huoyuanDescEditorWrap .w-e-text-container,
#hyedit_desc_editor_wrap .w-e-text-container,
#huoyuanDescEditorWrap .w-e-text-container [contenteditable="true"],
#huoyuanDescEditorWrap .w-e-text-container .w-e-text,
#hyedit_desc_editor_wrap .w-e-text-container [contenteditable="true"],
#hyedit_desc_editor_wrap .w-e-text-container .w-e-text,
#huoyuanDescEditorWrap .w-e-text-placeholder,
#hyedit_desc_editor_wrap .w-e-text-placeholder {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
}
#huoyuanDescEditorWrap .w-e-toolbar,
#hyedit_desc_editor_wrap .w-e-toolbar {
  border-bottom: 1px solid var(--border) !important;
}
#huoyuanDescEditorWrap .w-e-text-placeholder,
#hyedit_desc_editor_wrap .w-e-text-placeholder {
  color: var(--text-muted) !important;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

[data-theme="light"] .logo {
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: bold;
  font-size: 18px;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #d4d4d4;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  vertical-align: middle;
}

[data-theme="light"] .nav-menu a {
  color: var(--text-secondary);
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

[data-theme="light"] .nav-menu a:hover {
  color: var(--text);
  background: var(--bg-tertiary);
}

.nav-menu a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  font-weight: 500;
}

[data-theme="light"] .nav-menu a.active {
  color: var(--text);
  background: var(--bg-tertiary);
}

.nav-dropdown {
  position: relative;
}

/* 导航栏二级下拉（未冥导航、其他综合等）- 与一级按钮同宽 */
.nav-menu > li.nav-dropdown > .nav-dropdown-menu {
  min-width: 100% !important;
  width: 100%;
  padding: 6px 4px !important;
  white-space: nowrap;
}
.nav-menu > li.nav-dropdown > .nav-dropdown-menu > a {
  padding: 6px 8px !important;
  text-align: left;
  white-space: nowrap;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-dropdown-menu a:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #d4d4d4;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

[data-theme="light"] .theme-toggle {
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

[data-theme="light"] .theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.submit-btn {
  padding: 8px 16px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

[data-theme="light"] .submit-btn {
  background: var(--text);
  color: #fff;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* 用户提交下拉菜单 - 与按钮等宽 */
.submit-menu {
  min-width: 100% !important;
  width: 100%;
  padding: 6px 4px !important;
  white-space: nowrap;
}
.submit-menu a {
  padding: 6px 8px !important;
  text-align: center;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

[data-theme="light"] .mobile-menu-btn {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-content.no-button p {
  margin-bottom: 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
}

.hero-arrow.prev {
  left: 30px;
}

.hero-arrow.next {
  right: 30px;
}

/* Section */
.section {
  padding: 20px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Site Grid */
.site-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
}

.site-card {
  flex: 1;
  min-width: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 24px;
  text-align: center;
  transition: all 0.3s;
}

.site-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.site-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  overflow: hidden;
  border-radius: 12px;
}

.site-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.site-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Card Grid */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.feature-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 28px;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5px 0 5px;
  margin-top: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
  margin-bottom: 5px;
}

.footer-brand h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 400px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-qrcodes h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text);
  text-align: center;
  font-weight: 500;
}

.qrcode-list {
  display: flex;
  gap: 24px;
}

.qrcode-item {
  text-align: center;
}

.qrcode-img {
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  padding: 6px;
}

.qrcode-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qrcode-item p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-icp {
  margin-top: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  z-index: 99;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Page Header */
.page-header {
  background: var(--bg-secondary);
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Sidebar Layout */
.sidebar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 40px 0;
}

.sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 80px;
  width: 200px;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding: 0 8px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.sidebar li a:hover,
.sidebar li a.active {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* Link Grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.link-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-info p {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Category Block */
.category-block {
  margin-bottom: 40px;
}

.category-block h3 {
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Detail Page */
.detail-page {
  padding: 40px 0;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.detail-info h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.detail-info p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}

.detail-btn:hover {
  background: var(--primary-hover);
}

.detail-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  line-height: 1.8;
}

.detail-content h2 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.detail-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* Search */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  width: 200px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.search-box span {
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-grid {
    flex-wrap: wrap;
  }
  .site-grid .site-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .card-grid .feature-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .search-box {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .sidebar-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 360px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .site-grid .site-card,
  .card-grid .feature-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qrcode-list {
    gap: 16px;
  }

  .qrcode-img {
    width: 80px;
    height: 80px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .hero-arrow.prev {
    left: 12px;
  }

  .hero-arrow.next {
    right: 12px;
  }
}

/* ===== Nav Page Styles ===== */
.nav-hero {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-tertiary), var(--bg));
}

.nav-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-hero-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.nav-search {
  max-width: 672px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.nav-search input {
  width: 100%;
  padding: 16px 128px 16px 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.search-btn:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.nav-content {
  padding: 24px 0;
}

.nav-content-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.detail-page {
  max-width: 960px;
}

.nav-layout {
  display: flex;
  gap: 20px;
}

.nav-sidebar {
  width: 144px;
  flex-shrink: 0;
}

.sidebar-nav,
.sidebar-sticky .category-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  position: sticky;
  top: 80px;
}

.sidebar-item,
.category-list .category-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
  text-decoration: none;
}

.sidebar-item:first-child,
.category-list .category-item:first-child .category-link {
  margin-top: 0;
}

.sidebar-item:hover,
.category-list .category-link:hover {
  color: var(--text);
  background: var(--bg-tertiary);
}

.sidebar-item.active,
.category-list .category-link.active {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.sidebar-item.active:hover,
.category-list .category-link.active:hover {
  color: #fff;
}

.nav-main {
  flex: 1;
  min-width: 0;
}

.site-info-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cat-section {
  margin-bottom: 32px;
}

.cat-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cat-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cat-title-wrap {
  flex: 1;
  min-width: 0;
}

.cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.cat-title-bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #6366f1, #a855f7);
}

.subcat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subcat-tag {
  padding: 6px 16px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.subcat-tag:hover {
  background: var(--border);
  color: var(--text);
}

.subcat-tag.active {
  background: #6366f1;
  color: #fff;
}

.show-more-btn {
  padding: 6px 16px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.show-more-btn:hover {
  background: var(--border);
  color: var(--text);
}

.nav-main .link-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.link-card-group {
  position: relative;
  min-width: 0;
}

.link-card-group .link-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
  min-width: 0;
}

.link-card-group .link-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.link-card-group .link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
  overflow: hidden;
}

.link-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.link-icon-letter {
  font-weight: 700;
  font-size: 14px;
}

.link-card-group .link-info {
  flex: 1;
  min-width: 0;
}

.link-card-group .link-name {
  display: flex !important;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.link-card-group .link-name-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.link-card-group .link-tag {
  display: inline-flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid;
  line-height: 1.4;
  white-space: nowrap;
}

.link-card-group .link-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.link-external {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  border-radius: 6px;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s;
}

.link-external:hover {
  background: var(--bg-tertiary);
  color: #6366f1;
}

.link-card-group:hover .link-external {
  opacity: 1;
}

.link-external svg {
  width: 14px;
  height: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.2s;
}

.back-to-top:hover {
  background: #4f46e5;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.detail-page-wrapper {
  min-height: calc(100vh - 80px);
  background: var(--bg);
  padding: 40px 0;
}

.detail-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

.detail-layout {
  display: flex;
  gap: 24px;
}

.detail-sidebar {
  width: 176px;
  flex-shrink: 0;
}

.sidebar-categories {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.sidebar-list .sidebar-item {
  margin-bottom: 4px;
}

.sidebar-list .sidebar-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.sidebar-list .sidebar-item a:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.sidebar-list .sidebar-item.active a {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
}

.sidebar-icon {
  font-size: 16px;
}

.sidebar-icon-img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.detail-content {
  flex: 1;
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb {
  max-width: 680px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb-current {
  color: var(--text);
}

.site-info-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 24px;
}

.site-info-row {
  display: flex;
  gap: 32px;
}

.site-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-logo-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px dashed var(--border);
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-logo-text {
  font-size: 40px;
  font-weight: bold;
  color: #6366f1;
}

.site-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.views-icon {
  font-size: 16px;
}

.views-count {
  font-weight: 500;
}

.site-details-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.field-value {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.site-name-value {
  color: var(--text);
}

.category-value {
  color: #6366f1;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-report:hover {
  background: #dc2626;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-visit:hover {
  background: #16a34a;
  color: #fff;
}

.site-description {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.site-description .field-label {
  display: block;
  margin-bottom: 8px;
}

.description-text {
  color: var(--text);
  line-height: 1.8;
  margin: 0;
  font-size: 15px;
}

.friendship-reminder {
  margin-top: 24px;
  padding: 16px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #d97706;
}

[data-theme="dark"] .friendship-reminder {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.reminder-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.reminder-text {
  line-height: 1.6;
}

.report-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.report-dialog {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  margin: 20px;
  box-shadow: var(--shadow-lg);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.dialog-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.dialog-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dialog-close:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.dialog-body {
  padding: 20px 24px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.btn-cancel {
  padding: 8px 20px;
  background: var(--bg-tertiary);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: var(--border);
}

.btn-submit {
  padding: 8px 20px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #4f46e5;
}

@media (max-width: 768px) {
  .detail-layout {
    flex-direction: column;
  }

  .detail-sidebar {
    width: 100%;
  }

  .sidebar-categories {
    position: static;
  }

  .sidebar-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .sidebar-list .sidebar-item {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .site-info-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-details-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .nav-main .link-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-hero-title {
    font-size: 24px;
  }
  
  .nav-sidebar {
    width: 120px;
  }
  
  .nav-main .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-layout {
    flex-direction: column;
  }
  
  .nav-sidebar {
    width: 100%;
  }

  .sidebar-nav,
  .sidebar-sticky .category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    position: static;
  }

  .sidebar-item,
  .category-list .category-link {
    white-space: nowrap;
    margin-top: 0;
  }
}

/* 下载页面样式 */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.download-card-body {
  padding: 16px;
}

.download-card-tags {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.item-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.tag-top {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

[data-theme="dark"] .tag-top {
  color: #fbbf24;
}

.tag-recommend {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

[data-theme="dark"] .tag-recommend {
  color: #60a5fa;
}

.tag-hot {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

[data-theme="dark"] .tag-hot {
  color: #f87171;
}

.download-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.download-card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.download-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-fallback {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.download-card-info {
  flex: 1;
  min-width: 0;
}

.download-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.download-card-btn {
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.download-card-btn:hover {
  background: var(--primary-hover);
}



/* 二级分类按钮 */
.subcat-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.subcat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 下载详情页富文本内容 */
.download-detail-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.download-detail-content :deep(p) {
  margin: 0 0 12px 0;
}

.download-detail-content :deep(img) {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

.download-detail-content :deep(h1),
.download-detail-content :deep(h2),
.download-detail-content :deep(h3),
.download-detail-content :deep(h4),
.download-detail-content :deep(h5),
.download-detail-content :deep(h6) {
  color: var(--text);
  margin: 16px 0 8px 0;
  font-weight: 600;
}

.download-detail-content :deep(h1) { font-size: 20px; }
.download-detail-content :deep(h2) { font-size: 18px; }
.download-detail-content :deep(h3) { font-size: 16px; }

.download-detail-content :deep(ul),
.download-detail-content :deep(ol) {
  padding-left: 24px;
  margin: 8px 0;
}

.download-detail-content :deep(li) {
  margin: 4px 0;
}

.download-detail-content :deep(a) {
  color: var(--primary);
  text-decoration: underline;
}

.download-detail-content :deep(a:hover) {
  color: var(--primary-hover);
}

.download-detail-content :deep(code) {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
}

.download-detail-content :deep(pre) {
  background: var(--bg-tertiary);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
}

.download-detail-content :deep(pre code) {
  padding: 0;
  background: none;
}

.download-detail-content :deep(blockquote) {
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin: 8px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* 详情页下载链接按钮 */
.btn-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-download-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 分页按钮 */
.page-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* === 新闻中心 === */
.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.news-tab {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.news-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.news-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
[data-theme="dark"] .news-tab.active {
  color: #0a0a0a;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-item {
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.news-item:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
[data-theme="dark"] .news-item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.news-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.news-item-tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.6;
}
[data-theme="dark"] .news-item-tag {
  color: #0a0a0a;
}
.news-item-date {
  color: var(--text-muted);
  font-size: 12px;
}
.news-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.5;
}
.news-item-summary {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.news-item-more {
  color: var(--primary);
  font-weight: 500;
}
/* 有封面的新闻卡片：左图右文 flex 布局 */
.news-item--with-thumb {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  padding: 18px 20px;
}
.news-item--with-thumb .news-item-body {
  padding: 0;
}
@media (max-width: 640px) {
  .news-item--with-thumb {
    flex-direction: column;
    gap: 14px;
  }
  .news-item--with-thumb .news-item-thumb {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 180px !important;
  }
}

/* === 新闻详情页 === */
.news-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
.news-detail-head {
  margin-bottom: 24px;
}
.news-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0 0 16px 0;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.news-detail-content {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  color: var(--text-primary);
  line-height: 1.9;
  font-size: 15px;
}
.news-detail-content p { margin: 0 0 16px 0; }
.news-detail-content h2,
.news-detail-content h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 24px 0 12px;
}
.news-detail-content a { color: var(--primary); }
.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}
.news-detail-back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
}
.news-detail-back:hover { text-decoration: underline; }

@media (max-width: 1200px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 联系我们 ===== */
.contact-info-item:hover .contact-info-icon {
  transform: scale(1.05);
}
.contact-info-icon {
  transition: transform 0.2s ease;
}
.contact-info-item a:hover {
  color: var(--primary) !important;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .contact-form-card .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* 联系表单输入框 focus 状态 */
.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* 留言提交按钮 hover/active 已 inline 写好，这里补充 disabled */
.contact-form-card button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}
