/* ========== 任流 - 极简风格 ========== */

:root {
  --bg: #fafafa;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #eeeeee;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --verified: #16a34a;
  --verified-bg: #f0fdf4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
}

html.dark {
  --bg: #0f0f0f;
  --white: #1a1a1a;
  --text: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-light: #737373;
  --border: #2a2a2a;
  --accent: #3b82f6;
  --accent-light: #1e293b;
  --verified: #22c55e;
  --verified-bg: #14532d;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.4);
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========== 导航 ========== */

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 20px;
  color: var(--accent);
}

.nav-link {
  color: var(--text-light);
  font-size: 13px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.subtle {
  opacity: 0;
  pointer-events: none;
}

.nav-link.subtle:hover {
  opacity: 1;
  pointer-events: auto;
}

body:hover .nav-link.subtle {
  opacity: 0.5;
  pointer-events: auto;
}

/* ========== Hero ========== */

.hero {
  padding: 80px 0 48px;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verified-bg);
  color: var(--verified);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.badge-icon {
  font-size: 14px;
}

/* ========== 筛选栏 ========== */

.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--white);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-clear {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-light);
  padding: 4px 8px;
  cursor: pointer;
}

.search-clear:hover {
  color: var(--text);
}

.search-btn {
  padding: 10px 20px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.search-btn:hover {
  opacity: 0.85;
}

.search-result-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.filter-tag {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}

.filter-tag:hover {
  border-color: var(--text-light);
  color: var(--text);
}

.filter-tag.active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

/* ========== 卡片网格 ========== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #ddd;
  transform: translateY(-1px);
}

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

.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.card-avatar-placeholder {
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

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

.card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.card-category {
  font-size: 12px;
  color: var(--text-light);
}

.verified-badge {
  font-size: 11px;
  background: var(--verified-bg);
  color: var(--verified);
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ========== 详情页 ========== */

.back-link {
  display: inline-block;
  margin: 32px 0 24px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 64px;
}

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

.detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.detail-avatar-placeholder {
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
}

.detail-identity {
  flex: 1;
}

.detail-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.detail-category {
  font-size: 13px;
  color: var(--text-light);
}

.detail-section {
  margin-bottom: 28px;
}

.detail-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.detail-title-main {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 12px;
}

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

.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.highlights-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-light);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
}

.contact-type {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  background: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
}

.contact-private {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}

/* ========== 空状态 ========== */

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-light);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-hint {
  margin-top: 8px;
  font-size: 13px;
}

.empty-hint a {
  color: var(--accent);
}

/* ========== 页面过渡动画 ========== */

.main {
  animation: fadeInUp 0.3s ease;
}

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

.card {
  animation: cardIn 0.4s ease backwards;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(6) { animation-delay: 0.25s; }
.card:nth-child(7) { animation-delay: 0.3s; }
.card:nth-child(8) { animation-delay: 0.35s; }

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

/* 详情页淡入 */
.detail-card {
  animation: fadeInUp 0.4s ease;
}

/* ========== 相关资源推荐 ========== */

.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

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

.related-card:hover {
  border-color: #ddd;
  box-shadow: var(--shadow);
}

.related-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.related-avatar-ph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.related-info {
  min-width: 0;
}

.related-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-title-text {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 详情页分享按钮 ========== */

.detail-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.view-count {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 主题切换 ========== */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-icon-dark { display: none; }
html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: inline; }

/* ========== 暗色模式补丁 ========== */

html.dark .tag {
  background: var(--border);
  color: var(--text-secondary);
}

html.dark .contact-card {
  background: var(--accent-light);
}

html.dark .contact-type {
  background: var(--white);
}

html.dark .search-input {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}

html.dark .status-paused {
  background: #422006;
  color: #fbbf24;
}

html.dark .admin-form-error {
  background: #450a0a;
  color: #fca5a5;
}

/* ========== 免责声明页 ========== */

.legal-container {
  max-width: 640px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.legal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.legal-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-update {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 404 页面 ========== */

.not-found-container {
  text-align: center;
  padding: 100px 20px;
}

.not-found-code {
  font-size: 64px;
  font-weight: 200;
  color: var(--text-light);
  line-height: 1;
}

.not-found-text {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 15px;
}

.not-found-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  text-decoration: underline;
}

/* ========== 页脚 ========== */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer-brand {
  font-weight: 600;
}

.footer-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.footer-sep {
  margin: 0 6px;
}

.footer-link {
  color: inherit;
}

/* ========== 响应式 ========== */

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .hero-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 16px;
  }

  .card-header {
    margin-bottom: 12px;
  }

  .card-desc {
    margin-bottom: 10px;
  }

  .detail-card {
    padding: 20px;
    border-radius: var(--radius-sm);
  }

  .detail-header {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .detail-avatar,
  .detail-avatar-placeholder {
    width: 52px;
    height: 52px;
  }

  .detail-name {
    font-size: 20px;
  }

  .detail-title-main {
    font-size: 16px;
  }

  .detail-description {
    font-size: 14px;
  }

  .detail-section {
    margin-bottom: 22px;
  }

  .related-section {
    margin-top: 36px;
    padding-top: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* 搜索栏移动端 */
  .search-bar {
    gap: 6px;
  }

  .search-input {
    padding: 10px 12px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }

  .search-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .search-clear {
    right: 64px;
  }

  .filter-bar {
    margin-bottom: 24px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* 页脚 */
  .footer {
    padding: 24px 0;
  }

  .footer-sub {
    line-height: 1.6;
  }

  /* 详情页顶栏 */
  .detail-top-bar {
    gap: 8px;
  }

  .back-link {
    margin: 24px 0 16px;
  }

  .share-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* 管理后台表格移动端 */
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .admin-table {
    min-width: 560px;
  }

  .admin-header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-header-actions a,
  .admin-header-actions label {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    flex: 1;
    min-width: 0;
  }

  /* 管理表单移动端 */
  .admin-form {
    padding: 16px;
  }

  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* 防止 iOS 自动缩放 */
    padding: 12px 14px;
  }

  /* 404 页面 */
  .not-found-container {
    padding: 72px 16px;
  }

  .not-found-code {
    font-size: 56px;
  }

  /* 导航：触摸设备始终显示管理链接 */
  .nav-link.subtle {
    opacity: 0.4;
    pointer-events: auto;
  }

  body:hover .nav-link.subtle {
    opacity: 0.5;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .card {
    padding: 14px;
  }

  .card-avatar {
    width: 40px;
    height: 40px;
  }

  .card-avatar-placeholder {
    font-size: 16px;
  }

  .detail-card {
    padding: 16px;
  }

  .detail-name {
    font-size: 18px;
  }

  .contact-card {
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-value {
    font-size: 14px;
    word-break: break-all;
  }

  .form-group .contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-group .contact-row select {
    flex: none;
    width: 100%;
  }
}

/* ========== 管理后台 ========== */

.admin-dash-container {
  padding-top: 32px;
  padding-bottom: 64px;
}

.admin-title {
  font-size: 20px;
  font-weight: 600;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
}

.admin-action-primary {
  font-size: 13px;
  background: var(--text);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
}

.admin-action-outline {
  font-size: 13px;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

.admin-action-link {
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-action-logout {
  color: var(--text-light);
}

.admin-filter-bar {
  margin-bottom: 16px;
}

.admin-filter-form {
  display: flex;
  gap: 8px;
}

.admin-search-input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}

.admin-search-input:focus {
  border-color: var(--accent);
}

.admin-status-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}

.admin-search-btn {
  padding: 8px 16px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--bg);
}

.admin-empty-row {
  text-align: center;
  color: var(--text-light);
  padding: 32px;
}

.admin-cell-title {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-cell-actions {
  white-space: nowrap;
}

.admin-edit-link {
  font-size: 12px;
  color: var(--accent);
}

.admin-delete-form {
  display: inline;
}

.admin-delete-btn {
  font-size: 12px;
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.status-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-active {
  background: var(--verified-bg);
  color: var(--verified);
}

.status-paused {
  background: #fefce8;
  color: #ca8a04;
}

.status-archived {
  background: var(--bg);
  color: var(--text-light);
}

/* ========== 管理表单 ========== */

.admin-form-page .container {
  max-width: 640px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.admin-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.admin-form .tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}

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

.form-group > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group .contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.form-group .contact-row select {
  flex: 0 0 100px;
}

.form-group .contact-row input {
  flex: 1;
}

.form-group .contact-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 8px;
}

.form-group .form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 8px;
}

.form-group .section-divider {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 20px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

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

.preview-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

.admin-form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.admin-back-link {
  font-size: 13px;
  color: var(--text-light);
}

.admin-form-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 12px;
}

.admin-avatar-preview {
  margin-bottom: 8px;
}

.admin-avatar-preview img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== 名片链接 & 二维码 ========== */

.admin-card-link {
  font-size: 12px;
  color: #2563eb;
  margin-right: 8px;
}

.admin-qr-link {
  font-size: 12px;
  color: var(--verified);
  margin-right: 8px;
}

.qr-section {
  margin-top: 8px;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qr-img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qr-action-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.qr-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== 减少动画 ========== */

@media (prefers-reduced-motion: reduce) {
  .main,
  .card,
  .detail-card {
    animation: none !important;
  }

  .card:hover {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ========== 首页资源数量 ========== */

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-count strong {
  color: var(--accent);
  font-weight: 600;
}

/* ========== 筛选栏 + 排序 ========== */

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  flex-shrink: 0;
}

/* ========== 卡片底部 ========== */

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.card-views {
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ========== 详情页更新时间 ========== */

.detail-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-update-date {
  font-size: 12px;
  color: var(--text-light);
}

/* ========== 详情页封面图 ========== */

.detail-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

/* ========== 门店信息 ========== */

.store-info-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.store-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.store-info-row + .store-info-row {
  margin-top: 6px;
}

.store-info-icon {
  flex-shrink: 0;
  font-size: 14px;
}

/* ========== 社交账号 ========== */

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-tag {
  font-size: 12px;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  color: var(--text-secondary);
}

/* ========== 联系方式复制按钮 ========== */

.contact-copy-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--accent);
  transition: all 0.2s;
}

.contact-copy-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.contact-private-hint {
  margin-top: 8px;
  font-size: 13px;
}

.contact-admin-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-light);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

/* ========== 管理后台统计面板 ========== */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.admin-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.admin-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ========== 管理登录页 ========== */

.admin-login-container {
  max-width: 360px;
  padding-top: 100px;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.admin-login-logo {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.admin-login-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.admin-login-subtitle {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 8px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-login-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.admin-login-input:focus {
  border-color: var(--accent);
}

/* ========== 分类管理 ========== */

.admin-cat-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.admin-cat-add-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-cat-field {
  flex: 1;
  min-width: 100px;
}

.admin-cat-field label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.admin-cat-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: var(--white);
  color: var(--text);
}

.admin-cat-field input:focus {
  border-color: var(--accent);
}

.admin-cat-field-sort {
  width: 70px;
  flex: none;
}

.admin-inline-input {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s;
}

.admin-inline-input:focus {
  border-color: var(--accent);
  outline: none;
  background: var(--white);
}

.admin-inline-sort {
  width: 50px;
}

.admin-cell-center {
  text-align: center;
}

/* ========== 密码修改成功提示 ========== */

.admin-form-success {
  background: var(--verified-bg);
  color: var(--verified);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ========== 移动端补充 ========== */

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

  .admin-stat-card {
    padding: 12px;
  }

  .admin-stat-value {
    font-size: 20px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }

  .card-footer {
    flex-direction: row;
  }

  .detail-top-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .admin-cat-add-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-cat-field-sort {
    width: 100%;
  }

  .admin-login-container {
    padding-top: 60px;
  }
}

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