/* =============================================
 * 社区页面样式
 * ============================================= */

/* --- 社区首页 --- */
.community-page {
  min-height: calc(100vh - 200px);
}

.community-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  padding: 48px 0 40px;
  color: white;
  text-align: center;
}

.community-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-header p {
  font-size: 16px;
  opacity: 0.9;
}

.community-filters {
  background: white;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 60px;
  z-index: 50;
}

.community-filters .container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 4px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.filter-sort {
  display: flex;
  gap: 4px;
}

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

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

.sort-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-btn svg {
  vertical-align: middle;
}

.sort-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  text-decoration: none;
}

.sort-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.sort-btn-primary svg {
  vertical-align: middle;
}

.filter-city {
  margin-left: auto;
}

.filter-city select {
  padding: 8px 32px 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237f8c8d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.community-list {
  padding: 24px 0 48px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card-cover {
  position: relative;
  width: 100%;
  padding-top: 66%;
  background: var(--bg-secondary);
  overflow: hidden;
}

.post-card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-cover img {
  transform: scale(1.05);
}

.post-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.post-card-badge.note {
  background: var(--primary-color);
}

.post-card-badge.photo {
  background: var(--secondary-color);
}

.post-card-pinned {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.5);
}

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

.post-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.post-card-tag {
  font-size: 12px;
  color: var(--primary-color);
  background: rgba(29, 114, 179, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

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

.post-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-card-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.post-card-author span {
  font-size: 13px;
  color: var(--text-secondary);
}

.post-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.post-card-stats .stat {
  display: flex;
  align-items: center;
  gap: 3px;
}

.post-card-stats svg {
  width: 16px;
  height: 16px;
}

.post-card-stats .stat-like {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.post-card-stats .stat-like:hover {
  color: #e53935;
}

.post-card-stats .stat-like.liked {
  color: #e53935;
}

.post-card-stats .stat-like.liked svg {
  fill: #e53935;
  stroke: #e53935;
}

.post-card-title-link {
  text-decoration: none;
  color: inherit;
}

.post-card-city {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-light);
  margin-left: 6px;
}

.post-card-city svg {
  width: 11px;
  height: 11px;
}

.community-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.community-empty svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.community-empty h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.community-empty p {
  font-size: 14px;
}

.community-loading {
  text-align: center;
  padding: 40px;
}

.community-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-more-btn {
  display: block;
  margin: 32px auto 0;
  padding: 12px 40px;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--primary-color);
  color: white;
}

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

/* --- 发布页 --- */
.publish-page {
  min-height: calc(100vh - 200px);
  padding: 0 0 48px;
}

.publish-container {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.publish-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  text-align: center;
}

.publish-form-group {
  margin-bottom: 24px;
}

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

.publish-form-group label .required {
  color: var(--secondary-color);
  margin-left: 2px;
}

.publish-type-select {
  display: flex;
  gap: 12px;
}

.publish-type-btn {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.publish-type-btn:hover {
  border-color: var(--primary-light);
}

.publish-type-btn.active {
  border-color: var(--primary-color);
  background: rgba(29, 114, 179, 0.05);
}

.publish-type-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.publish-type-btn .type-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.publish-type-btn .type-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.publish-type-btn .type-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.publish-type-btn .type-lock {
  font-size: 11px;
  color: var(--secondary-color);
  margin-top: 4px;
}

.publish-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
  font-family: var(--font-primary);
}

.publish-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(29, 114, 179, 0.1);
}

.publish-input::placeholder {
  color: var(--text-light);
}

.publish-textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.8;
}

.publish-char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.publish-char-count.over {
  color: var(--secondary-color);
}

.publish-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.publish-upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(29, 114, 179, 0.02);
}

.publish-upload-area.dragover {
  border-color: var(--primary-color);
  background: rgba(29, 114, 179, 0.05);
}

.publish-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.publish-upload-icon {
  color: var(--text-light);
  margin-bottom: 8px;
}

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

.publish-upload-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.publish-images-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.publish-image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.publish-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.publish-image-remove:hover {
  background: rgba(231, 76, 60, 0.9);
}

.publish-tags-preset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.preset-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preset-tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.preset-tag.active {
  background: rgba(29, 114, 179, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.publish-tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 44px;
  align-items: center;
  cursor: text;
}

.publish-tags-input:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(29, 114, 179, 0.1);
}

.publish-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(29, 114, 179, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 13px;
}

.publish-tag-item button {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.publish-tag-input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  min-width: 80px;
  color: var(--text-primary);
}

.publish-tag-input::placeholder {
  color: var(--text-light);
}

.publish-city-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  background: white;
  cursor: pointer;
}

.publish-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.publish-submit-btn {
  flex: 1;
  padding: 14px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.publish-submit-btn:hover {
  background: var(--primary-dark);
}

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

.publish-cancel-btn {
  padding: 14px 24px;
  background: white;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.publish-cancel-btn:hover {
  border-color: var(--text-secondary);
}

.publish-level-tip {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .publish-container {
    padding: 20px 16px;
    border-radius: 0;
    box-shadow: none;
  }
  .publish-title {
    font-size: 20px;
  }
  .publish-type-select {
    gap: 8px;
  }
  .publish-type-btn {
    padding: 12px 8px;
  }
  .publish-type-btn .type-icon {
    font-size: 22px;
  }
  .publish-images-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .publish-actions {
    flex-direction: column-reverse;
  }
}

/* --- 帖子详情页 --- */
.detail-page {
  min-height: calc(100vh - 200px);
  padding: 32px 0 48px;
}

.detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

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

.detail-article {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-header {
  padding: 28px 32px 0;
}

.detail-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.detail-category.note {
  background: var(--primary-color);
}

.detail-category.photo {
  background: var(--secondary-color);
}

.detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

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

.detail-author-info .author-level {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.detail-stats-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.detail-stats-row span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.detail-stats-row svg {
  width: 14px;
  height: 14px;
}

.detail-body {
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  word-break: break-word;
}

.detail-body p {
  margin-bottom: 16px;
}

.detail-tags {
  padding: 0 32px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag {
  font-size: 13px;
  color: var(--primary-color);
  background: rgba(29, 114, 179, 0.08);
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.detail-gallery {
  padding: 0 32px 28px;
}

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

.detail-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.detail-gallery-item:hover img {
  transform: scale(1.05);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

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

.detail-action-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.detail-action-btn svg {
  width: 16px;
  height: 16px;
}

.detail-share-btn {
  margin-left: auto;
}

.detail-comments {
  padding: 28px 32px;
}

.detail-comments-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.detail-comment-form {
  margin-bottom: 24px;
}

.detail-comment-input {
  display: flex;
  gap: 12px;
}

.detail-comment-input textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-family: var(--font-primary);
  color: var(--text-primary);
}

.detail-comment-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.detail-comment-send {
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.detail-comment-send:hover {
  background: var(--primary-dark);
}

.detail-comment-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-list {
  list-style: none;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

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

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

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

.comment-time {
  font-size: 12px;
  color: var(--text-light);
  margin-left: auto;
}

.comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-left: 42px;
}

.comment-reply-to {
  font-size: 12px;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.comment-actions {
  margin-left: 42px;
  margin-top: 6px;
  display: flex;
  gap: 16px;
}

.comment-action-btn {
  font-size: 12px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.comment-action-btn:hover {
  color: var(--primary-color);
}

.comment-replies {
  margin-left: 42px;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
}

.comment-replies .comment-item {
  padding: 10px 0;
  border-bottom: none;
}

.comment-replies .comment-content {
  margin-left: 0;
}

.comment-replies .comment-actions {
  margin-left: 0;
}

.detail-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detail-lightbox.active {
  display: flex;
}

.detail-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.detail-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  display: none;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.share-panel.active {
  display: block;
  transform: translateY(0);
}

.share-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9997;
  display: none;
}

.share-panel-overlay.active {
  display: block;
}

.share-panel-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}

.share-panel-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 12px;
}

.share-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.share-option-icon.wechat {
  background: #07c160;
  color: white;
}

.share-option-icon.link {
  background: var(--primary-color);
  color: white;
}

.share-option span {
  font-size: 12px;
  color: var(--text-secondary);
}

.share-panel-cancel {
  width: 100%;
  padding: 14px;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .detail-header {
    padding: 20px 16px 0;
  }
  .detail-title {
    font-size: 20px;
  }
  .detail-body {
    padding: 20px 16px;
  }
  .detail-tags {
    padding: 0 16px 16px;
  }
  .detail-gallery {
    padding: 0 16px 20px;
  }
  .detail-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .detail-actions {
    padding: 12px 16px;
    gap: 6px;
  }
  .detail-action-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .detail-comments {
    padding: 20px 16px;
  }
  .detail-comment-input {
    flex-direction: column;
  }
  .detail-meta {
    gap: 10px;
  }
}

/* --- 我的帖子页 --- */
.mine-page {
  min-height: calc(100vh - 200px);
}

.mine-filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

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

.mine-item {
  display: flex;
  gap: 20px;
  padding: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.mine-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mine-item-cover {
  width: 220px;
  min-width: 220px;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}

.mine-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mine-item:hover .mine-item-cover img {
  transform: scale(1.05);
}

.mine-item-cover.no-image {
  background: linear-gradient(135deg, #e8f4f8, #d1ecf1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

.mine-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 16px 0;
}

.mine-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mine-item-category {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.mine-item-category.note {
  background: var(--primary-color);
}

.mine-item-category.photo {
  background: var(--secondary-color);
}

.mine-item-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.mine-item-status.approved {
  background: #e8f5e9;
  color: #2e7d32;
}

.mine-item-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.mine-item-status.rejected {
  background: #fce4ec;
  color: #c62828;
}

.mine-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-item-title a {
  color: inherit;
  text-decoration: none;
}

.mine-item-title a:hover {
  color: var(--primary-color);
}

.mine-item-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-item-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.mine-item-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mine-item-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.mine-action-btn {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.mine-action-btn.danger:hover {
  border-color: #e53935;
  color: #e53935;
}

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

.mine-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.mine-empty-text {
  font-size: 16px;
  margin-bottom: 20px;
}

.mine-empty-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.mine-empty-btn:hover {
  background: var(--primary-dark);
}

.mine-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.mine-page-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.mine-page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.mine-delete-confirm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.mine-delete-confirm.active {
  display: flex;
}

.mine-delete-dialog {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.mine-delete-dialog h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mine-delete-dialog p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.mine-delete-dialog-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mine-delete-dialog-btns button {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.mine-delete-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.mine-delete-confirm-btn {
  background: #e53935;
  color: white;
}

.mine-delete-confirm-btn:hover {
  background: #c62828;
}

@media (max-width: 768px) {
  .mine-item {
    flex-direction: column;
    gap: 0;
  }
  .mine-item-cover {
    width: 100%;
    min-width: unset;
    aspect-ratio: 16/9;
  }
  .mine-item-info {
    padding: 16px;
  }
  .mine-item-title {
    font-size: 15px;
  }
}
