/* ============================================
   56_Apple_Photos - 苹果照片风格论坛
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ap-blue: #007AFF;
  --ap-blue-light: #5AC8FA;
  --ap-bg: #FFFFFF;
  --ap-surface: #F5F5F7;
  --ap-text: #1D1D1F;
  --ap-text-secondary: #86868B;
  --ap-toolbar: #FAFAFA;
  --ap-border: #D2D2D7;
  --ap-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --ap-radius: 12px;
  --ap-radius-lg: 20px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, "SF Pro Display", "Noto Sans SC", sans-serif;
  background: var(--ap-bg);
  color: var(--ap-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ap-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---- Top Navigation ---- */
.ap-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ap-border);
}
.ap-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px; height: 56px;
}
.ap-nav-logo img { height: 32px; }
.ap-nav-menu { display: flex; gap: 4px; list-style: none; flex: 1; }
.ap-nav-menu a {
  display: block; padding: 6px 12px;
  font-size: 13px; color: var(--ap-text);
  border-radius: 8px; white-space: nowrap;
}
.ap-nav-menu a:hover { background: var(--ap-surface); text-decoration: none; }
.ap-nav-search {
  position: relative; width: 200px;
}
.ap-nav-search input {
  width: 100%; height: 34px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--ap-border);
  border-radius: 8px; font-size: 13px;
  background: var(--ap-surface);
  outline: none; transition: border-color .2s;
}
.ap-nav-search input:focus { border-color: var(--ap-blue); }
.ap-nav-search svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; fill: var(--ap-text-secondary);
}
.ap-nav-user { display: flex; align-items: center; gap: 12px; }
.ap-nav-user img { width: 32px; height: 32px; border-radius: 50%; }
.ap-nav-user .ap-btn-login {
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  background: var(--ap-blue); color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
}
.ap-nav-user .ap-btn-login:hover { opacity: .9; }

/* ---- Toolbar (view toggle) ---- */
.ap-toolbar {
  background: var(--ap-toolbar);
  border-bottom: 1px solid var(--ap-border);
  position: sticky; top: 56px; z-index: 90;
}
.ap-toolbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
}
.ap-toolbar-title {
  font-size: 20px; font-weight: 700;
}
.ap-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.ap-view-toggle {
  display: flex; gap: 2px;
  background: var(--ap-surface);
  border-radius: 8px; padding: 2px;
}
.ap-view-toggle button {
  padding: 5px 10px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--ap-text-secondary);
  font-size: 12px; display: flex; align-items: center; gap: 4px;
}
.ap-view-toggle button.active {
  background: #fff; color: var(--ap-blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ap-view-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- Banner ---- */
.ap-banner {
  max-width: 1200px; margin: 20px auto; padding: 0 24px;
}
.ap-banner-inner {
  border-radius: var(--ap-radius-lg); overflow: hidden;
  box-shadow: var(--ap-shadow);
}
.ap-banner img { width: 100%; }

/* ---- Main Layout ---- */
.ap-main {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px; padding: 0 24px 40px; align-items: start;
}
.ap-content { min-width: 0; overflow: hidden; }
.ap-content { min-width: 0; }

/* ---- Timeline Group Header ---- */
.ap-timeline-group { margin-bottom: 28px; }
.ap-timeline-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 0 4px;
}
.ap-timeline-header h2 { font-size: 17px; font-weight: 700; }
.ap-timeline-header span { font-size: 13px; color: var(--ap-text-secondary); }
.ap-timeline-header .ap-timeline-count {
  margin-left: auto; font-size: 12px; color: var(--ap-text-secondary);
}

/* ---- Photo Grid (square cards) ---- */
.ap-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 4px;
}
.ap-photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--ap-surface);
  transition: transform .2s;
}
.ap-photo-card:hover { transform: scale(1.02); }
.ap-photo-card .ap-photo-thumb {
  width: 100%; height: 100%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
}
.ap-photo-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff; font-size: 12px;
  opacity: 0; transition: opacity .2s;
}
.ap-photo-card:hover .ap-photo-card-overlay { opacity: 1; }
.ap-photo-card-overlay .ap-card-name { font-weight: 600; font-size: 13px; }
.ap-photo-card-overlay .ap-card-stats { opacity: .85; font-size: 11px; }
.ap-heart {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ap-heart svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.8); }
.ap-heart.liked svg { fill: #FF3B30; }

/* Photo card colors */
.ap-thumb-blue { background: linear-gradient(135deg, #007AFF, #5AC8FA); }
.ap-thumb-green { background: linear-gradient(135deg, #34C759, #30D158); }
.ap-thumb-orange { background: linear-gradient(135deg, #FF9500, #FF6B00); }
.ap-thumb-purple { background: linear-gradient(135deg, #AF52DE, #BF5AF2); }
.ap-thumb-red { background: linear-gradient(135deg, #FF3B30, #FF2D55); }
.ap-thumb-teal { background: linear-gradient(135deg, #5AC8FA, #007AFF); }
.ap-thumb-pink { background: linear-gradient(135deg, #FF2D55, #FF375F); }
.ap-thumb-indigo { background: linear-gradient(135deg, #5856D6, #007AFF); }
.ap-thumb-yellow { background: linear-gradient(135deg, #FFCC00, #FF9500); }
.ap-thumb-mint { background: linear-gradient(135deg, #00C7BE, #34C759); }

/* ---- List View ---- */
.ap-list-view .ap-photo-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.ap-list-view .ap-photo-card {
  display: flex; aspect-ratio: unset; height: 72px;
  border-radius: 12px; background: var(--ap-surface);
}
.ap-list-view .ap-photo-card .ap-photo-thumb {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 12px;
}
.ap-list-view .ap-photo-card-overlay {
  position: static; opacity: 1; background: none;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 0 16px; color: var(--ap-text);
}
.ap-list-view .ap-heart { position: static; margin-left: auto; padding-right: 16px; }
.ap-list-view .ap-heart svg { fill: var(--ap-text-secondary); }

/* ---- Sidebar ---- */
.ap-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ap-widget {
  background: var(--ap-surface);
  border-radius: var(--ap-radius);
  padding: 16px;
}
.ap-widget h3 {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.ap-widget-list { list-style: none; }
.ap-widget-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 13px;
}
.ap-widget-list li:last-child { border-bottom: none; }
.ap-widget-rank {
  width: 20px; height: 20px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--ap-text-secondary); flex-shrink: 0;
}
.ap-widget-rank.top1 { background: #FF9500; }
.ap-widget-rank.top2 { background: #86868B; }
.ap-widget-rank.top3 { background: #FF9500; opacity: .7; }
.ap-widget-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-widget-tag {
  padding: 4px 12px; background: #fff; border-radius: 14px;
  font-size: 12px; color: var(--ap-blue); border: 1px solid var(--ap-border);
}

/* ---- Breadcrumb ---- */
.ap-breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px; color: var(--ap-text-secondary);
}
.ap-breadcrumb a { color: var(--ap-blue); }
.ap-breadcrumb span { margin: 0 6px; }

/* ---- Board Info ---- */
.ap-board-info {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px;
}
.ap-board-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; flex-shrink: 0;
}
.ap-board-meta h1 { font-size: 22px; font-weight: 700; }
.ap-board-meta p { font-size: 13px; color: var(--ap-text-secondary); }
.ap-board-stats { display: flex; gap: 20px; margin-top: 6px; }
.ap-board-stats span { font-size: 12px; color: var(--ap-text-secondary); }
.ap-board-stats strong { color: var(--ap-text); font-size: 15px; }
.ap-btn-post {
  margin-left: auto; padding: 10px 20px;
  background: var(--ap-blue); color: #fff; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.ap-btn-post:hover { opacity: .9; }

/* ---- Post List (Photos style cards) ---- */
.ap-post-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
  align-items: start;
}
.ap-post-list { display: flex; flex-direction: column; gap: 4px; }
.ap-post-item {
  display: flex; gap: 12px; padding: 12px;
  border-radius: 12px; background: var(--ap-surface);
  transition: background .2s; cursor: pointer;
}
.ap-post-item:hover { background: #EBEBED; }
.ap-post-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; flex-shrink: 0;
}
.ap-post-body { flex: 1; min-width: 0; }
.ap-post-title {
  font-size: 15px; font-weight: 600; color: var(--ap-text);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-post-excerpt {
  font-size: 12px; color: var(--ap-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-post-meta { display: flex; gap: 14px; margin-top: 6px; }
.ap-post-meta span { font-size: 11px; color: var(--ap-text-secondary); display: flex; align-items: center; gap: 3px; }
.ap-post-meta svg { width: 12px; height: 12px; fill: currentColor; }

/* ---- Pagination ---- */
.ap-pagination {
  display: flex; justify-content: center; gap: 6px;
  padding: 24px 0;
}
.ap-pagination a, .ap-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 8px; font-size: 13px;
  border: 1px solid var(--ap-border); color: var(--ap-text);
  background: #fff;
}
.ap-pagination a:hover { background: var(--ap-surface); text-decoration: none; }
.ap-pagination .active { background: var(--ap-blue); color: #fff; border-color: var(--ap-blue); }

/* ---- Detail Page ---- */
.ap-detail-main {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px; padding: 0 24px 40px; align-items: start;
}
.ap-detail-content { background: #fff; min-width: 0; overflow: hidden; }
.ap-detail-title {
  font-size: 26px; font-weight: 700; margin-bottom: 16px;
  line-height: 1.3;
}
.ap-op {
  background: var(--ap-surface); border-radius: var(--ap-radius-lg);
  padding: 20px; margin-bottom: 20px;
}
.ap-op-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.ap-op-header img { width: 44px; height: 44px; border-radius: 50%; }
.ap-op-name { font-size: 14px; font-weight: 600; }
.ap-op-time { font-size: 12px; color: var(--ap-text-secondary); }
.ap-op-badge {
  margin-left: auto; padding: 3px 10px; font-size: 11px;
  background: var(--ap-blue); color: #fff; border-radius: 10px;
}
.ap-op-content { font-size: 15px; line-height: 1.8; color: var(--ap-text); overflow: hidden; word-wrap: break-word; }
.ap-op-content p { margin-bottom: 12px; }
.ap-op-images { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 16px 0; }
.ap-op-images img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.ap-op-actions {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--ap-border);
}
.ap-op-actions button {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--ap-border);
  border-radius: 8px; background: #fff; cursor: pointer;
  font-size: 13px; color: var(--ap-text-secondary);
}
.ap-op-actions button:hover { background: var(--ap-surface); }
.ap-op-actions svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- Replies ---- */
.ap-reply {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--ap-border);
}
.ap-reply:last-child { border-bottom: none; }
.ap-reply img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.ap-reply-body { flex: 1; }
.ap-reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ap-reply-name { font-size: 13px; font-weight: 600; }
.ap-reply-floor { font-size: 11px; color: var(--ap-text-secondary); }
.ap-reply-text { font-size: 14px; line-height: 1.7; }
.ap-reply-time { font-size: 11px; color: var(--ap-text-secondary); margin-top: 6px; }

/* ---- Reply Box ---- */
.ap-reply-box {
  margin-top: 24px; background: var(--ap-surface);
  border-radius: var(--ap-radius); padding: 16px;
}
.ap-reply-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.ap-reply-box textarea {
  width: 100%; min-height: 100px; padding: 12px;
  border: 1px solid var(--ap-border); border-radius: 10px;
  font-size: 14px; font-family: inherit; resize: vertical;
  background: #fff; outline: none;
}
.ap-reply-box textarea:focus { border-color: var(--ap-blue); }
.ap-reply-box-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.ap-reply-box button {
  padding: 8px 24px; background: var(--ap-blue); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.ap-reply-box button:hover { opacity: .9; }

/* ---- Search Page ---- */
.ap-search-hero {
  max-width: 800px; margin: 0 auto; padding: 40px 24px 20px; text-align: center;
}
.ap-search-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.ap-search-box {
  position: relative; margin-bottom: 20px;
}
.ap-search-box input {
  width: 100%; height: 48px; padding: 0 16px 0 48px;
  border: 1px solid var(--ap-border); border-radius: 12px;
  font-size: 16px; background: var(--ap-surface); outline: none;
}
.ap-search-box input:focus { border-color: var(--ap-blue); background: #fff; }
.ap-search-box svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; fill: var(--ap-text-secondary);
}
.ap-search-filters {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.ap-search-filter {
  padding: 6px 16px; border-radius: 16px; font-size: 13px;
  background: var(--ap-surface); color: var(--ap-text); cursor: pointer;
  border: 1px solid transparent;
}
.ap-search-filter.active { background: var(--ap-blue); color: #fff; }

.ap-search-results { max-width: 800px; margin: 0 auto; padding: 0 24px 40px; }
.ap-search-results h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.ap-search-result-item {
  display: flex; gap: 12px; padding: 16px;
  background: var(--ap-surface); border-radius: var(--ap-radius);
  margin-bottom: 8px; cursor: pointer;
}
.ap-search-result-item:hover { background: #EBEBED; }
.ap-search-result-thumb {
  width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
}
.ap-search-result-body h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ap-search-result-body p { font-size: 13px; color: var(--ap-text-secondary); }
.ap-search-result-body .ap-search-meta { font-size: 11px; color: var(--ap-text-secondary); margin-top: 6px; }
.ap-hot-search { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---- Footer ---- */
.ap-footer {
  background: var(--ap-surface); border-top: 1px solid var(--ap-border);
  padding: 32px 24px;
}
.ap-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.ap-footer-links { display: flex; gap: 20px; }
.ap-footer-links a { font-size: 12px; color: var(--ap-text-secondary); }
.ap-footer-copy { font-size: 12px; color: var(--ap-text-secondary); }

/* ---- Bottom Detail Popup ---- */
.ap-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 200; display: none; align-items: flex-end; justify-content: center;
}
.ap-popup-overlay.show { display: flex; }
.ap-popup {
  background: #fff; width: 100%; max-width: 600px;
  border-radius: 20px 20px 0 0; padding: 20px;
  animation: apSlideUp .3s ease;
}
@keyframes apSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.ap-popup-handle {
  width: 36px; height: 5px; background: var(--ap-border);
  border-radius: 3px; margin: 0 auto 16px;
}
.ap-popup-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.ap-popup-content { font-size: 14px; color: var(--ap-text-secondary); line-height: 1.7; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ap-main, .ap-post-grid, .ap-detail-main {
    grid-template-columns: minmax(0,1fr) 300px;
  }
  .ap-sidebar { order: 2; }
  .ap-nav-menu { display: none; }
  .ap-nav-search { width: auto; flex: 1; }
}

@media (max-width: 760px) {
  .ap-main, .ap-post-grid, .ap-detail-main {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   CMS Styles - Pagination & Comments
   ============================================ */

/* ---- CMS Pagination (.jv-pagination) ---- */
.jv-pagination {
  display: flex; justify-content: center; gap: 6px;
  padding: 24px 0; flex-wrap: wrap;
}
.jv-pagination a, .jv-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: 8px; font-size: 13px;
  border: 1px solid var(--ap-border); color: var(--ap-text);
  background: #fff; text-decoration: none;
}
.jv-pagination a:hover {
  background: var(--ap-surface); text-decoration: none;
}
.jv-pagination .current {
  background: var(--ap-blue); color: #fff; border-color: var(--ap-blue);
}

/* ---- Comment System Sections ---- */
.ap-replies-section {
  background: #fff; border-radius: var(--ap-radius-lg);
  padding: 20px; margin-top: 20px;
}
.ap-replies-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  color: var(--ap-text);
}

/* ---- Comment Items (both naming conventions for compatibility) ---- */
.comment-item {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--ap-border);
}
.comment-item:last-child { border-bottom: none; }

.comment-avatar,
.comment-item-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
}
.comment-body,
.comment-item-body { flex: 1; min-width: 0; }
.comment-head,
.comment-item-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.comment-name,
.comment-item-name { font-size: 13px; font-weight: 600; color: var(--ap-text); }
.comment-floor { font-size: 11px; color: var(--ap-text-secondary); }
.comment-time,
.comment-item-time { font-size: 11px; color: var(--ap-text-secondary); margin-left: auto; }
.comment-text,
.comment-item-content { font-size: 14px; line-height: 1.7; color: var(--ap-text); }
.comment-actions { margin-top: 8px; }

/* ---- Comment Reply System ---- */
.comment-reply-btn {
  display: inline-block; margin-top: 6px;
  font-size: 12px; color: var(--ap-blue);
  background: none; border: none; cursor: pointer; padding: 0;
}
.comment-reply-btn:hover { text-decoration: underline; }
.comment-reply-form {
  display: none; margin-top: 12px; padding: 12px;
  background: var(--ap-surface); border-radius: 10px;
}
.comment-reply-input {
  width: 100%; min-height: 60px; padding: 10px;
  border: 1px solid var(--ap-border); border-radius: 8px;
  font-size: 13px; font-family: inherit; resize: vertical;
  background: #fff; outline: none; margin-bottom: 8px;
}
.comment-reply-input:focus { border-color: var(--ap-blue); }
.comment-reply-submit {
  padding: 6px 16px; background: var(--ap-blue); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.comment-reply-submit:hover { opacity: .9; }

/* ---- Nested Replies ---- */
.comment-replies {
  margin-left: 52px; padding-left: 16px;
  border-left: 2px solid var(--ap-border);
}
.comment-replies .comment-item {
  padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.comment-replies .comment-item:last-child { border-bottom: none; }
.comment-replies .comment-avatar,
.comment-replies .comment-item-avatar {
  width: 32px; height: 32px;
}

/* ===== 强制两栏与采集内容保护 ===== */
.ap-main,
.ap-post-grid,
.ap-detail-main {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 300px !important;
  gap: 24px !important;
  align-items: start !important;
}
.ap-content,
.ap-detail-content {
  min-width: 0 !important;
  overflow: hidden !important;
}
.ap-sidebar {
  min-width: 0 !important;
}
.ap-op-content,
.ap-post-body,
.ap-reply-text {
  overflow: hidden;
  word-wrap: break-word;
}
.ap-op-content img,
.ap-post-body img,
.ap-reply-text img {
  max-width: 100%;
  height: auto;
}
.ap-op-content table,
.ap-post-body table,
.ap-reply-text table {
  max-width: 100%;
  table-layout: fixed;
  word-wrap: break-word;
}
.ap-op-content pre,
.ap-op-content code,
.ap-post-body pre,
.ap-post-body code,
.ap-reply-text pre,
.ap-reply-text code {
  overflow-x: auto;
  max-width: 100%;
  word-wrap: break-word;
}

@media (max-width: 760px) {
  .ap-main,
  .ap-post-grid,
  .ap-detail-main {
    grid-template-columns: 1fr !important;
  }
}
