:root {
  color-scheme: dark;
  --bg: #1a1a1f;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #f4f2ee;
  --muted: #b8b3a9;
  --accent: #d4a574;
  --accent-soft: rgba(212, 165, 116, 0.18);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 28%),
              radial-gradient(circle at bottom right, rgba(212, 165, 116, 0.08), transparent 20%),
              var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 100% 24px, 24px 100%;
  opacity: 0.35;
}

button, input {
  font: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(212, 165, 116, 0.18), rgba(255, 255, 255, 0.06));
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-group h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  padding: 12px 16px;
  border-radius: 999px;
}

.search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-pill button {
  border: none;
  background: var(--accent);
  color: #1a1a1f;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-pill button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(212, 165, 116, 0.25);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-name {
  color: var(--muted);
  font-size: 0.95rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.18), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--text);
  font-weight: 700;
}

.publish-button {
  background: var(--accent);
  color: #1a1a1f;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.publish-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(212, 165, 116, 0.25);
}

.test-button {
  background: rgba(255,255,255,0.1);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 12px;
}

.test-button:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.content-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hot-topics-panel {
  padding: 24px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(212, 165, 116, 0.15);
}

.hot-topics-panel h5 {
  margin: 0 0 16px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #d4a574;
}

.hero-copy {
  padding: 32px 32px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.featured-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.featured-card:hover {
  transform: translateY(-2px);
}

.featured-details .tag,
.post-card .meta-line span {
  display: inline-flex;
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card h3,
.post-card h4,
.empty-state h4 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.featured-card p,
.post-card p,
.empty-state p,
.featured-meta div {
  color: var(--muted);
  line-height: 1.75;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #f5f2ec;
}

.feed-column {
  display: grid;
  gap: 18px;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.feed-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sort-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.9rem;
}

.feed-search {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.9rem;
  width: 200px;
}

.feed-search:focus {
  outline: none;
  border-color: rgba(212, 165, 116, 0.45);
  box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.15);
}

.section-label span {
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.post-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.22);
  border-color: rgba(212, 165, 116, 0.35);
}

.post-header {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}

.post-header > div:first-of-type {
  flex: 1;
}

.delete-post-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  padding: 4px 8px;
}

.post-card:hover .delete-post-btn {
  opacity: 1;
}

.delete-post-btn:hover {
  color: #e74c3c;
}

.post-title-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title-link:hover {
  color: var(--accent);
}

.avatar-sm {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
}

.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card p {
  margin: 0;
  color: #e9e6dd;
  line-height: 1.85;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.metrics {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.vote-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.vote-btn:hover {
  background: rgba(212, 165, 116, 0.1);
  color: var(--accent);
}

.vote-btn.upvoted {
  color: var(--accent);
  background: rgba(212, 165, 116, 0.15);
}

.vote-count {
  margin: 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.comment-toggle-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.comment-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.share-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.comments-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.comment-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 12px 16px;
}

.avatar-xs {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
}

.comment-submit-btn {
  background: var(--accent);
  color: #1a1a1f;
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.comment-submit-btn:hover {
  transform: translateY(-1px);
}

.comments-list {
  display: grid;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.comment-text {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.comment-vote-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.comment-vote-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.comment-vote-btn.upvoted {
  color: var(--accent);
}

.empty-state {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--text);
  overflow: hidden;
}

.empty-illustration {
  width: 100%;
  min-height: 180px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 20%, rgba(212,165,116,0.25), transparent 18%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08), transparent 12%),
              linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  position: relative;
}

.empty-illustration::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.sidebar-panel {
  display: grid;
  gap: 22px;
}

.glass-card {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
}

.glass-card h5 {
  margin: 0 0 18px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.glass-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.glass-card li {
  color: #e7e3da;
  line-height: 1.8;
}

.hot-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.hot-topic-item:hover {
  background: rgba(212, 165, 116, 0.15);
  transform: translateX(4px);
}

.topic-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(212, 165, 116, 0.2);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d4a574;
}

.hot-topic-item:nth-child(1) .topic-rank {
  background: linear-gradient(135deg, #f4a460, #d4a574);
  color: #1a1a1f;
}

.hot-topic-item:nth-child(2) .topic-rank {
  background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
  color: #1a1a1f;
}

.hot-topic-item:nth-child(3) .topic-rank {
  background: linear-gradient(135deg, #cd7f32, #b87333);
  color: #1a1a1f;
}

.topic-name {
  font-size: 0.95rem;
  color: #e7e3da;
}

.stats-card .stats-grid {
  display: grid;
  gap: 18px;
}

.stats-card strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 6px;
  color: #fff;
}

.stats-card span {
  color: var(--muted);
}

.tag-cloud {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-cloud span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  color: #e7e3da;
  font-size: 0.92rem;
}

.fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #e7c78b, #b7833e);
  color: #1a1a1f;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0,0,0,0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 10;
}

.fab:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.38);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 24, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(720px, calc(100% - 40px));
  padding: 32px;
  border-radius: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(22px);
  box-shadow: 0 36px 90px rgba(0,0,0,0.35);
  animation: modalEnter 0.28s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}

.close-modal {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.post-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.form-field span {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-form input,
.post-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-form input:focus,
.post-form textarea:focus {
  border-color: rgba(212, 165, 116, 0.45);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.09);
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: #1a1a1f;
}

.button-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.autocomplete-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.suggestion-item {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.suggestion-item:hover {
  background: rgba(212, 165, 116, 0.12);
  transform: translateY(-1px);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-option:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.tag-option.selected {
  background: rgba(212, 165, 116, 0.15);
  border-color: rgba(212, 165, 116, 0.3);
  color: var(--accent);
}

.image-upload-area {
  margin-top: 12px;
}

.image-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.image-upload-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.image-preview {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.comment-image-upload {
  margin-top: 8px;
}

.comment-image-upload input[type="file"] {
  display: none;
}

.comment-image-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.comment-image-upload-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.post-image {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.post-image img:hover {
  transform: scale(1.02);
}

.article-image {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.comment-image {
  margin: 8px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.comment-image img {
  max-width: 200px;
  max-height: 150px;
  display: block;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast {
  animation: slideIn 0.3s ease;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 16px 72px;
  }
  .topbar {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .search-pill {
    width: 100%;
  }
  .publish-button {
    width: 100%;
  }
  .feed-controls {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .feed-search {
    width: 100%;
  }
  .sort-select {
    width: 100%;
  }
  .hero-copy h2 {
    font-size: 2.2rem;
  }
  .modal-card {
    width: min(100vw, 100%);
    margin: 0 12px;
    padding: 22px;
    border-radius: 28px;
  }
  .modal-header {
    flex-direction: column;
    align-items: stretch;
  }
  .comment-input-group {
    padding: 10px 14px;
  }
  .comment-input {
    font-size: 0.9rem;
  }
  .button-primary,
  .button-secondary {
    width: 100%;
  }
}

/* 详情页样式 */
.detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.back-button:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(-2px);
}

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

.detail-article {
  margin-bottom: 60px;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.18), rgba(255,255,255,0.1));
  border: 2px solid rgba(255,255,255,0.16);
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.article-time {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-category {
  background: rgba(212, 165, 116, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.article-stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 12px 18px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.stat-btn:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.stat-btn.upvoted {
  background: rgba(212, 165, 116, 0.15);
  color: var(--accent);
  border-color: rgba(212, 165, 116, 0.3);
}

.article-body {
  margin-bottom: 40px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content p:first-child {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f4f2ee;
}

/* 评论区样式 */
.detail-comments {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}

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

.comments-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0;
  color: var(--text);
}

.comment-count {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 评论表单样式 */
.comment-input-group {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 32px;
}

.comment-input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.2s ease;
}

.comment-textarea:focus {
  border-color: rgba(212, 165, 116, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.09);
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-char-count {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-submit-btn {
  background: var(--accent);
  color: #1a1a1f;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.comment-submit-btn:hover {
  transform: translateY(-1px);
}

/* 评论列表样式 */
.comments-list {
  display: grid;
  gap: 24px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.comment-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

.comment-avatar .avatar-md {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.15), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-weight: 600;
}

.comment-content {
  flex: 1;
}

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

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

.comment-time {
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-text {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.comment-vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.comment-vote-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.comment-vote-btn.upvoted {
  background: rgba(212, 165, 116, 0.12);
  color: var(--accent);
}

.reply-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.reply-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.no-comments-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* 移动端适配 */
@media (max-width: 720px) {
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .article-stats {
    flex-wrap: wrap;
  }

  .comment-input-group {
    flex-direction: column;
    gap: 12px;
  }

  .comment-item {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .comment-actions {
    justify-content: flex-start;
  }
}
