.xungen-page {
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 60px;
  background: var(--bg-page);
}

.xungen-hero {
  background: linear-gradient(135deg, #8B4513 0%, #C9A96E 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.xungen-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.xungen-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.xungen-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.xungen-hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.xungen-hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.xungen-layout {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  align-items: flex-start;
}

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

.xungen-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.search-section {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border: 2px solid var(--border-color);
  border-radius: 24px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--bg-page);
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--primary-gold);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

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

.search-btn {
  padding: 0 32px;
  height: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 2px;
}

.search-btn img {
  width: 18px;
  height: 18px;
}

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

.search-tab {
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  user-select: none;
}

.search-tab:hover {
  background: var(--bg-warm);
  color: var(--primary-brown);
}

.search-tab.active {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-brown));
  color: #fff;
}

.section-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.section-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 1px;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 16px;
}

.xungen-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xungen-item {
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.xungen-item:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
}

.xungen-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.xungen-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.xungen-item-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--primary-brown);
  background: var(--bg-warm);
  border-radius: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

.xungen-item-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.xungen-item-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.xungen-item-meta-item strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.xungen-item-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xungen-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.xungen-item-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xungen-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

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

.xungen-item-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.xungen-item-actions {
  display: flex;
  gap: 16px;
}

.xungen-item-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.xungen-item-action:hover {
  color: var(--primary-brown);
}

.xungen-item-action img {
  width: 14px;
  height: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-brown);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-brown));
  color: #fff;
  border-color: transparent;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-gold);
  display: inline-block;
  font-family: 'STSong', 'SimSun', serif;
  letter-spacing: 1px;
}

.hot-surnames {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.surname-tag {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-warm), #F5EFE0);
  color: var(--primary-brown);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'STSong', 'SimSun', serif;
}

.surname-tag:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-brown));
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.guide-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-brown));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.guide-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.dist-map {
  height: 180px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  overflow: hidden;
}

.dist-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-tertiary);
}

.dist-placeholder img {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.dist-placeholder p {
  font-size: 13px;
}

.loading, .empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .xungen-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .xungen-hero-title {
    font-size: 32px;
  }
  .search-box {
    flex-direction: column;
  }
  .search-btn {
    justify-content: center;
  }
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

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

.stats-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-brown);
  font-family: Georgia, serif;
  margin-bottom: 4px;
}

.stats-label {
  font-size: 13px;
  color: var(--text-tertiary);
}

.xungen-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.badge-hot {
  background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
  color: #fff;
}

.badge-reward {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
}

.badge-new {
  background: linear-gradient(135deg, #5DADE2, #3498DB);
  color: #fff;
}

.xungen-item-action.reward {
  color: var(--primary-gold);
  font-weight: 600;
}

.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-lg {
  width: 600px;
}

.modal-xl {
  width: 800px;
}

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

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'STSong', 'SimSun', serif;
}

.modal-close {
  font-size: 24px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

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

.publish-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-label .required {
  color: var(--danger-color);
  margin-right: 4px;
}

.form-input, .form-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-gold);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

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

.upload-area {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.upload-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-img-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}

.upload-img-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--danger-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.upload-btn {
  width: 80px;
  height: 80px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-page);
}

.upload-btn:hover {
  border-color: var(--primary-gold);
  background: var(--bg-warm);
}

.upload-icon {
  font-size: 24px;
  color: var(--text-tertiary);
}

.upload-text {
  font-size: 12px;
  color: var(--text-tertiary);
}

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

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

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

.detail-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-username {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.detail-reward {
  padding: 6px 16px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.detail-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: 'STSong', 'SimSun', serif;
}

.detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-meta-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

.detail-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
}

.detail-stats {
  display: flex;
  gap: 30px;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
}

.detail-tab {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
}

.detail-tab:hover {
  color: var(--primary-brown);
}

.detail-tab.active {
  color: var(--primary-brown);
}

.detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-brown);
}

.detail-input-area {
  margin-bottom: 20px;
}

.detail-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  resize: vertical;
  min-height: 80px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.detail-textarea:focus {
  border-color: var(--primary-gold);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

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

.input-tip {
  font-size: 12px;
  color: var(--text-tertiary);
}

.clue-list, .comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clue-item, .comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
}

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

.clue-content, .comment-content {
  flex: 1;
  min-width: 0;
}

.clue-header, .comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.clue-username, .comment-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.clue-time, .comment-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.clue-badge {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 10px;
}

.clue-badge.adopted {
  background: #E8F5E9;
  color: var(--success-color);
}

.clue-text, .comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.clue-images {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.clue-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.clue-image:hover {
  transform: scale(1.05);
}

.page-ellipsis {
  padding: 0 8px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
}

.loading, .empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

@media (max-width: 768px) {
  .stats-bar {
    gap: 30px;
  }
  .modal-lg, .modal-xl {
    width: 100%;
  }
  .form-row {
    flex-direction: column;
  }
}
