* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #5c4d4d;
  --primary-hover: #4a3f3f;
  --bg: #f5f3ef;
  --bg-paper: #faf9f6;
  --card: #ffffff;
  --border: #e8e4db;
  --border-dark: #d4cfc4;
  --text: #3d3530;
  --text-light: #8a8075;
  --text-muted: #a8a095;
  --danger: #c94c4c;
  --success: #6b8e6b;
  --radius: 8px;
  --ink: rgba(61, 53, 48, 0.03);
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(160deg, #f8f6f2 0%, #eae6dd 40%, #ddd8cc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.05);
}

.splash-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.splash-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(92, 77, 77, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(92, 77, 77, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(92, 77, 77, 0.04) 0%, transparent 60%);
  animation: bgFloat 20s ease-in-out infinite;
}

.splash-ink {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: inkDrop 8s ease-in-out infinite;
  pointer-events: none;
}

.splash-ink-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(92, 77, 77, 0.04) 0%, transparent 70%);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.splash-ink-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(92, 77, 77, 0.03) 0%, transparent 70%);
  bottom: 15%;
  right: -3%;
  animation-delay: 2.5s;
}

.splash-ink-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(92, 77, 77, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 60%;
  animation-delay: 5s;
}

@keyframes inkDrop {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  30%, 70% { opacity: 1; transform: scale(1); }
}

@keyframes bgFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(1deg); }
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  animation: contentFadeIn 1s ease-out 0.3s both;
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-greeting {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 4px;
  margin-bottom: 20px;
  min-height: 20px;
}

.splash-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.splash-logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 1px solid rgba(92, 77, 77, 0.15);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

.splash-logo-ring::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid rgba(92, 77, 77, 0.08);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.splash-logo {
  font-size: 72px;
  position: relative;
  z-index: 1;
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.splash-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 16px;
  text-indent: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.splash-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.divider-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.divider-dot {
  font-size: 8px;
  color: var(--text-muted);
}

.splash-subtitle {
  font-size: 15px;
  color: var(--text-light);
  letter-spacing: 6px;
  margin-bottom: 40px;
}

.splash-quote-container {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 32px 48px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 228, 219, 0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.quote-mark {
  position: absolute;
  font-size: 48px;
  line-height: 1;
  color: rgba(92, 77, 77, 0.1);
  font-family: Georgia, serif;
}

.quote-mark-open {
  top: 8px;
  left: 16px;
}

.quote-mark-close {
  bottom: 20px;
  right: 16px;
}

.splash-quote {
  font-size: 18px;
  color: var(--text);
  line-height: 2;
  font-style: italic;
  margin-bottom: 12px;
  min-height: 36px;
}

.splash-author {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.splash-loading {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 36px;
}

.loading-bar {
  height: 2px;
  background: rgba(232, 228, 219, 0.6);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.loading-glow {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 16px;
  height: 10px;
  background: radial-gradient(circle, rgba(92, 77, 77, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.loading-glow.active {
  opacity: 1;
}

.loading-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  letter-spacing: 1px;
}

.splash-enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(92, 77, 77, 0.3);
  letter-spacing: 2px;
}

.splash-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(92, 77, 77, 0.4);
  gap: 14px;
}

.splash-enter-btn:active {
  transform: translateY(0);
}

.splash-enter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.splash-enter-btn:hover::before {
  left: 100%;
}

.btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.splash-enter-btn:hover .btn-icon {
  transform: translateX(4px);
}

.splash-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  letter-spacing: 1px;
}

.splash-hint.visible {
  opacity: 1;
}

.splash-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 0;
  text-align: center;
}

.splash-date {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}



body { 
  font-family: 'Songti SC', 'STSong', 'SimSun', 'Noto Serif SC', serif; 
  background: var(--bg); 
  color: var(--text); 
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(92, 77, 77, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(92, 77, 77, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(92, 77, 77, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--primary); text-decoration: none; }

.login-container { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-box { 
  background: var(--card); 
  padding: 48px 56px; 
  border-radius: var(--radius); 
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  width: 100%; 
  max-width: 400px;
  border: 1px solid var(--border);
  position: relative;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.login-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.login-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 8px;
  margin-bottom: 8px;
  position: relative;
}

.login-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--primary);
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 3px;
  margin-top: 20px;
}

.tab-switch { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 28px; 
  justify-content: center;
}

.tab-switch a { 
  padding: 10px 32px; 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--text-light); 
  border-radius: calc(var(--radius) - 4px);
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.tab-switch a.active { 
  color: #fff; 
  background: var(--primary);
}

.tab-switch a:hover:not(.active) {
  color: var(--primary);
}

.form-group { 
  margin-bottom: 20px; 
}

.form-group label { 
  display: block; 
  margin-bottom: 8px; 
  font-size: 13px; 
  font-weight: 500; 
  color: var(--text-light);
  letter-spacing: 1px;
}

.form-group input { 
  width: 100%; 
  padding: 12px 14px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  font-size: 14px; 
  outline: none; 
  transition: all 0.3s ease;
  background: var(--bg-paper);
  font-family: inherit;
  color: var(--text);
}

.form-group input:focus { 
  border-color: var(--primary); 
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(92, 77, 77, 0.06);
}

.form-group input::placeholder {
  color: var(--text-muted);
  font-family: inherit;
}

.form-group input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--bg-paper) inset;
  -webkit-text-fill-color: var(--text);
}

.code-row { 
  display: flex; 
  gap: 12px; 
}

.code-row input { 
  flex: 1; 
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 10px 20px; 
  border: none; 
  border-radius: var(--radius); 
  font-size: 14px; 
  font-weight: 500; 
  cursor: pointer; 
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 2px;
}

.btn-primary { 
  background: var(--primary); 
  color: #fff; 
  width: 100%; 
  padding: 14px 24px;
  font-size: 15px;
}

.btn-primary:hover { 
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(92, 77, 77, 0.2);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  box-shadow: none;
}

.btn-sm { 
  padding: 10px 16px; 
  font-size: 13px; 
}

.btn-outline { 
  background: transparent; 
  border: 1px solid var(--border); 
  color: var(--text-light); 
}

.btn-outline:hover { 
  background: var(--bg-paper);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
}

.error-msg { 
  color: var(--danger); 
  font-size: 13px; 
  margin-top: 12px; 
  text-align: center; 
  min-height: 20px;
}

.app-container { display: none; height: 100vh; flex-direction: column; background: var(--bg-paper); }
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: linear-gradient(135deg, var(--card) 0%, #faf9f6 100%); border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.top-bar h2 { font-size: 18px; letter-spacing: 3px; font-weight: 500; color: var(--text); }
.top-bar .user-info { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-light); }
.main-area { display: flex; flex: 1; overflow: hidden; }
.sidebar { width: 320px; background: var(--card); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.sidebar-header h3 { font-size: 15px; letter-spacing: 1.5px; color: var(--text); }
.article-list { flex: 1; overflow-y: auto; }
.article-item { padding: 14px 20px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: all 0.2s ease; }
.article-item:hover { background: var(--bg-paper); padding-left: 24px; }
.article-item.active { background: linear-gradient(90deg, #f5f3ee 0%, var(--bg-paper) 100%); border-left: 3px solid var(--primary); }
.article-item .title { font-size: 14px; font-weight: 500; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.article-item .meta { font-size: 12px; color: var(--text-light); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article-item .status-tag { padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.status-draft { background: #f5f0e6; color: #8a7a5a; border: 1px solid #e8dfc8; }
.status-published { background: #e8f0e8; color: #5a7a5a; border: 1px solid #d8e4d8; }
.editor-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-paper); }
.editor-toolbar { padding: 16px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 20px; background: var(--card); flex-wrap: wrap; }
.editor-toolbar input { flex: 1; min-width: 200px; max-width: 400px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; font-weight: 500; outline: none; font-family: inherit; background: var(--bg-paper); transition: border-color 0.2s, box-shadow 0.2s; }
.editor-toolbar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 120, 90, 0.1); }
.editor-actions { display: flex; gap: 10px; margin-left: auto; }
.editor-body { flex: 1; overflow: hidden; position: relative; }
.editor-body textarea { width: 100%; height: 100%; border: none; outline: none; padding: 24px 28px; font-size: 15px; line-height: 2; resize: none; font-family: 'Noto Serif SC', 'Songti SC', serif; background: var(--bg-paper); color: var(--text); }
.editor-body textarea::placeholder { color: var(--text-light); font-style: italic; }
.editor-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-light); font-size: 15px; }
.editor-empty span { padding: 24px 48px; background: rgba(0,0,0,0.02); border-radius: var(--radius); }
.summary-input { padding: 10px 28px; background: var(--card); border-bottom: 1px solid var(--border); }
.summary-input input { width: 100%; padding: 8px 0; border: none; outline: none; font-size: 13px; color: var(--text-light); font-family: inherit; background: transparent; }
.summary-input input::placeholder { color: var(--text-muted); }

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-10px); padding: 12px 24px; border-radius: var(--radius); color: #fff; font-size: 14px; z-index: 9999; opacity: 0; transition: all 0.3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

.modal-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0, 0, 0, 0.5); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 9998; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.3s; 
}
.modal-overlay.show { 
  opacity: 1; 
  visibility: visible; 
}
.modal-container { 
  background: var(--bg-paper); 
  border-radius: var(--radius); 
  padding: 28px; 
  min-width: 320px; 
  max-width: 90%; 
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); 
  transform: scale(0.9); 
  transition: transform 0.3s; 
}
.modal-overlay.show .modal-container { 
  transform: scale(1); 
}
.modal-title { 
  font-size: 16px; 
  font-weight: 500; 
  color: var(--text); 
  margin-bottom: 12px; 
  text-align: center; 
}
.modal-message { 
  font-size: 14px; 
  color: var(--text-light); 
  text-align: center; 
  margin-bottom: 24px; 
  line-height: 1.6; 
}
.modal-actions { 
  display: flex; 
  gap: 12px; 
}
.modal-actions .btn { 
  flex: 1; 
  padding: 12px; 
  font-size: 14px; 
}
.modal-actions .btn-cancel { 
  background: transparent; 
  border: 1px solid var(--border); 
  color: var(--text-light); 
}
.modal-actions .btn-cancel:hover { 
  background: var(--bg); 
}
.modal-actions .btn-confirm { 
  background: var(--danger); 
  color: #fff; 
}
.modal-actions .btn-confirm:hover { 
  background: #b84040; 
}

.EasyMDEContainer { height: calc(100% - 0px); }
.EasyMDEContainer .CodeMirror { height: 100%; border: none; font-size: 15px; line-height: 1.8; }
.editor-status-bar { display: none !important; }

.btn-danger { 
  background: transparent; 
  border: none; 
  color: var(--text-light); 
}
.btn-danger:hover { 
  color: var(--danger); 
}
.btn-danger:focus { 
  outline: none; 
  box-shadow: 0 0 0 2px rgba(184, 64, 64, 0.2); 
}
.btn-success { 
  background: transparent; 
  border: none; 
  color: var(--text-light); 
}
.btn-success:hover { 
  color: var(--success); 
}
.btn-success:focus { 
  outline: none; 
  box-shadow: 0 0 0 2px rgba(107, 142, 107, 0.2); 
}
.btn-outline:focus { 
  outline: none; 
  box-shadow: 0 0 0 2px rgba(92, 77, 77, 0.2); 
}

.hall-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.hall-title h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 6px;
  margin: 0;
}

.hall-subtitle {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-top: 4px;
}

.hall-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s;
}

.user-avatar:hover {
  transform: scale(1.05);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
}

.user-dropdown:hover .dropdown-menu,
.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--bg-paper);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.hall-content {
  display: flex;
  flex: 1;
  padding: 32px 48px;
  padding-top: 120px;
  gap: 32px;
  height: calc(100vh - 100px);
  overflow: hidden;
  position: relative;
}

.hall-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: fixed;
  left: 48px;
  top: 120px;
  height: calc(100vh - 180px);
}

.sidebar-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-section:hover {
  overflow-y: auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1;
}

.section-icon {
  font-size: 18px;
}

.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.hot-list {
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}

.hot-list::-webkit-scrollbar {
  width: 6px;
}

.hot-list::-webkit-scrollbar-track {
  background: transparent;
}

.hot-list::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 3px;
}

.hot-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.hot-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid var(--border);
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-item:hover {
  background: var(--bg-paper);
}

.hot-rank {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.hot-rank.top3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.hot-rank.other {
  background: var(--bg-paper);
  color: var(--text-light);
}

.hot-title {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hot-views {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  flex-shrink: 0;
}

.hall-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 312px;
  margin-right: 292px;
  height: calc(100vh - 150px);
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-paper);
  padding: 16px 0;
  margin: 0;
}

#mainHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.main-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.article-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
  gap: 16px;
  justify-content: center;
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  padding-right: 8px;
  height: calc(100vh - 200px);
  align-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.article-feed::-webkit-scrollbar {
  display: none;
}

.article-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
  display: flex;
  flex-direction: column;
  aspect-ratio: 9/16;
  max-width: 260px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card:hover {
  box-shadow: 0 6px 24px rgba(92, 77, 77, 0.12);
  transform: translateY(-4px);
}

.article-card.new-article {
  animation: newArticleSlideIn 0.5s ease-out forwards;
  border-left: 3px solid var(--success);
  background: linear-gradient(90deg, rgba(90, 122, 90, 0.05) 0%, var(--card) 100%);
}

@keyframes newArticleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card-header {
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-content {
  flex: 1;
  overflow: hidden;
  margin-bottom: 10px;
}

.article-card-preview {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-card-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loading-indicator {
  text-align: center;
  padding: 24px;
  color: var(--text-light);
  font-size: 14px;
  break-inside: avoid;
  margin-bottom: 16px;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hall-right-panel {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: fixed;
  right: 48px;
  top: 120px;
}

.write-card {
  background: linear-gradient(135deg, var(--primary) 0%, #6b5b50 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: #fff;
}

.write-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.write-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.write-card p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 16px;
}

.btn-write {
  background: #fff;
  color: var(--primary);
  width: 100%;
  font-weight: 600;
}

.btn-write:hover {
  background: #f8fafc;
}

.stats-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-bottom: none;
  border-right: 1px solid var(--border);
  gap: 6px;
}

.stat-item:last-child {
  border-bottom: none;
  border-right: none;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.detail-container {
  display: none;
  height: 100vh;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.detail-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.detail-content {
  flex: 1;
  padding: 32px;
  padding-top: 100px;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  min-height: 0;
  position: relative;
}

.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 50;
}

.nav-btn:hover {
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(92, 77, 77, 0.2);
}

.nav-btn:hover .nav-arrow {
  color: #fff;
}

.nav-prev {
  left: 24px;
}

.nav-next {
  right: 24px;
}

.nav-arrow {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
}

@media screen and (max-width: 768px) {
  .nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .nav-prev {
    left: 12px;
  }
  
  .nav-next {
    right: 12px;
  }
  
  .nav-arrow {
    font-size: 24px;
  }
}

.detail-content::-webkit-scrollbar {
  display: none;
}

.detail-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.detail-main {
  width: 100%;
  max-width: 800px;
}

.detail-article {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 24px;
}

.detail-article h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.4;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  padding: 16px 20px;
  background: var(--bg-paper);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 3px solid var(--primary);
  font-style: italic;
}

.detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.detail-article {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.article-transition-out {
  opacity: 0;
  transform: translateX(-20px);
}

.article-transition-in {
  opacity: 0;
  transform: translateX(20px);
}

.detail-article:not(.article-transition-out):not(.article-transition-in) {
  opacity: 1;
  transform: translateX(0);
}

.detail-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.actions-transition-out {
  opacity: 0;
  transform: translateY(10px);
}

.actions-transition-in {
  opacity: 0;
  transform: translateY(-10px);
}

.detail-actions:not(.actions-transition-out):not(.actions-transition-in) {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.action-btn:hover {
  background: var(--bg-paper);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.action-btn.liked {
  background: #fef2f2;
  border-color: #f87171;
  color: #ef4444;
}

.action-btn.liked .action-icon {
  animation: heartbeat 0.6s ease;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.action-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(92, 77, 77, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.action-btn:active::after {
  width: 200px;
  height: 200px;
}

.action-icon {
  font-size: 16px;
}

.icon-heart::before {
  content: '♥';
}

.icon-share::before {
  content: '↗';
}

.action-btn.liked .icon-heart::before {
  color: #ef4444;
}

.action-count {
  font-weight: 600;
}

.comments-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.comments-transition-out {
  opacity: 0;
  transform: translateY(10px);
}

.comments-transition-in {
  opacity: 0;
  transform: translateY(-10px);
}

.comments-section:not(.comments-transition-out):not(.comments-transition-in) {
  opacity: 1;
  transform: translateY(0);
}

.comments-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.comment-form textarea:focus {
  border-color: var(--primary);
}

.comment-form .btn {
  align-self: flex-end;
  padding: 10px 24px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  margin-top: auto;
}

.comments-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
}

.comment-item {
  padding: 16px;
  background: var(--bg-paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.comment-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.comment-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-delete-btn {
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: #c94c4c;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-delete-btn:hover {
  background: #fef2f2;
  border-color: #c94c4c;
}

.comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-action-btn {
  font-size: 12px;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.comment-action-btn:hover {
  background: var(--bg);
  color: var(--primary);
}

.empty-comments {
  text-align: center;
  padding: 32px;
  color: var(--text-light);
  font-size: 14px;
}

.profile-container {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  background: var(--bg);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.profile-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.profile-content {
  flex: 1;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.profile-main {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-avatar-section {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  margin: 0 auto 12px;
}

.profile-avatar-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.profile-avatar-section p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.profile-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 10px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-btn:hover:not(.active) {
  border-color: var(--primary);
}

.profile-content-area {
  max-height: calc(70vh - 180px);
  min-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 8px;
}

.profile-content-area::-webkit-scrollbar {
  display: none;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.articles-grid:empty::before {
  content: '暂无文章';
  display: block;
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

.articles-grid .article-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9/16;
}

.articles-grid .article-card:hover {
  box-shadow: 0 6px 24px rgba(92, 77, 77, 0.12);
  transform: translateY(-4px);
}

.articles-grid .article-card-header {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.articles-grid .article-card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-grid .article-card-content {
  flex: 1;
  overflow: hidden;
  margin-bottom: 6px;
}

.articles-grid .article-card-preview {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-grid .article-card-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.author-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}

.author-link:hover {
  color: var(--primary-hover);
}

@media screen and (max-width: 768px) {
  :root {
    --radius: 12px;
  }
  
  body {
    font-size: 14px;
  }
  
  .splash-title {
    font-size: 36px;
    letter-spacing: 10px;
    text-indent: 10px;
  }
  
  .splash-subtitle {
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 32px;
  }
  
  .splash-logo {
    font-size: 56px;
  }
  
  .splash-logo-ring {
    width: 80px;
    height: 80px;
  }
  
  .splash-greeting {
    font-size: 12px;
    letter-spacing: 3px;
  }
  
  .splash-quote-container {
    padding: 24px 32px;
    margin-bottom: 32px;
  }
  
  .splash-quote {
    font-size: 16px;
    line-height: 1.8;
  }
  
  .quote-mark {
    font-size: 36px;
  }
  
  .splash-enter-btn {
    padding: 14px 36px;
    font-size: 14px;
  }
  
  .splash-hint {
    font-size: 11px;
  }
  
  .splash-ink-1 { width: 200px; height: 200px; }
  .splash-ink-2 { width: 150px; height: 150px; }
  .splash-ink-3 { width: 120px; height: 120px; }
  
  .login-container {
    padding: 16px;
  }
  
  .login-box {
    padding: 32px 24px;
    max-width: 100%;
  }
  
  .login-title {
    font-size: 28px;
    letter-spacing: 4px;
  }
  
  .tab-switch a {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .form-group input {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .btn-primary {
    padding: 16px 24px;
    font-size: 16px;
  }
  
  .hall-header {
    padding: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  
  .hall-title h1 {
    font-size: 22px;
    letter-spacing: 3px;
  }
  
  .hall-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .hall-content {
    padding: 16px;
    padding-top: 100px;
    flex-direction: column;
    height: 100vh !important;
    gap: 16px;
    overflow: hidden !important;
    position: relative !important;
  }
  
  .hall-sidebar {
    display: none !important;
  }
  
  .sidebar-section {
    border-radius: var(--radius);
  }
  
  .section-header {
    padding: 14px;
  }
  
  .section-header h3 {
    font-size: 14px;
  }
  
  .hot-item {
    padding: 12px 14px;
  }
  
  .hot-rank {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .hot-title {
    font-size: 14px;
  }
  
  .hot-views {
    font-size: 12px;
  }
  
  .hall-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    height: calc(100vh - 220px) !important;
    overflow: hidden !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .main-header {
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
  }
  
  .main-header h3 {
    font-size: 15px;
  }
  
  .article-feed {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    flex: 1 !important;
    height: calc(100vh - 300px) !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    display: grid !important;
    align-content: flex-start !important;
    position: relative !important;
  }
  
  .article-card {
    padding: 8px !important;
    border-radius: var(--radius);
    width: 100% !important;
    height: 180px !important;
    flex-direction: column !important;
    display: flex !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    float: none !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }
  
  .article-card-header {
    flex-shrink: 0 !important;
    margin-bottom: 4px !important;
  }
  
  .article-card-title {
    font-size: 10px !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    margin: 0 !important;
  }
  
  .article-card-content {
    flex: 1 !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
  }
  
  .article-card-preview {
    font-size: 9px !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    margin: 0 !important;
  }
  
  .article-card-meta {
    font-size: 8px !important;
    padding-top: 2px !important;
    opacity: 0.7 !important;
    flex-shrink: 0 !important;
  }
  
  .hall-right-panel {
    width: 100%;
    position: static;
    flex-direction: row;
    gap: 12px;
  }
  
  .write-card {
    flex: 1;
    padding: 20px;
    border-radius: var(--radius);
  }
  
  .write-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }
  
  .write-card h3 {
    font-size: 16px;
  }
  
  .write-card p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .btn-write {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .stats-card {
    flex: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--bg-paper);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: row !important;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
  }
  
  .stat-item {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-bottom: none !important;
    border-right: 1px solid var(--border);
    gap: 4px;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    border-right: none;
  }
  
  .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    margin-bottom: 0;
  }
  
  .stat-label {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0;
  }
  
  .top-bar {
    padding: 12px 16px;
  }
  
  .top-bar h2 {
    font-size: 16px;
    letter-spacing: 2px;
  }
  
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .main-area {
    flex-direction: column;
  }
  
  .editor-area {
    flex: 1;
  }
  
  .editor-toolbar {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .editor-toolbar input {
    min-width: 100%;
    max-width: 100%;
    font-size: 15px;
  }
  
  .editor-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  
  .editor-body textarea {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
  }
  
  .summary-input {
    padding: 10px 16px;
  }
  
  .summary-input input {
    font-size: 13px;
  }
  
  .detail-header {
    padding: 12px 16px;
  }
  
  .detail-content {
    padding: 16px;
    padding-top: 100px !important;
    height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
  }
  
  .detail-article {
    padding: 24px 16px;
    border-radius: var(--radius);
  }
  
  .detail-article h1 {
    font-size: 22px;
    line-height: 1.5;
  }
  
  .detail-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  
  .detail-body {
    font-size: 15px;
    line-height: 1.8;
  }
  
  .detail-actions {
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 0;
  }
  
  .action-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
  }
  
  .comments-section {
    padding: 16px;
    border-radius: var(--radius);
    max-height: 400px;
  }
  
  .comments-title {
    font-size: 16px;
  }
  
  .comment-form textarea {
    padding: 12px;
    font-size: 14px;
    min-height: 100px;
  }
  
  .comment-form .btn {
    align-self: stretch;
    padding: 12px;
  }
  
  .comment-item {
    padding: 14px;
    border-radius: var(--radius);
  }
  
  .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  
  .comment-username {
    font-size: 14px;
  }
  
  .comment-content {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .profile-header {
    padding: 12px 16px;
  }
  
  .profile-title {
    font-size: 15px;
  }
  
  .profile-content {
    padding: 16px;
  }
  
  .profile-main {
    max-width: 100%;
  }
  
  .big-avatar {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  
  .profile-avatar-section h2 {
    font-size: 17px;
  }
  
  .profile-tabs {
    gap: 8px;
  }
  
  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .profile-content-area {
    max-height: calc(60vh - 150px);
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    height: calc(100vh - 350px) !important;
    max-height: calc(100vh - 350px) !important;
    overflow-y: auto !important;
    display: grid !important;
    align-content: flex-start !important;
  }
  
  .articles-grid .article-card {
    padding: 8px !important;
    max-height: 180px !important;
    flex-direction: column !important;
    display: flex !important;
    overflow: hidden !important;
    aspect-ratio: 9/16 !important;
    flex-shrink: 0 !important;
  }
  
  .articles-grid .article-card-title {
    font-size: 11px !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 4px !important;
  }
  
  .articles-grid .article-card-preview {
    font-size: 10px !important;
    -webkit-line-clamp: 3 !important;
    flex: 1 !important;
  }
  
  .articles-grid .article-card-meta {
    font-size: 8px !important;
    padding-top: 2px !important;
  }
  
  .toast {
    left: 16px;
    right: 16px;
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .article-feed {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    flex: 1 !important;
    height: calc(100vh - 360px) !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
    display: grid !important;
    align-content: flex-start !important;
    position: relative !important;
  }
  
  .article-card {
    padding: 6px !important;
    width: 100% !important;
    height: 160px !important;
    flex-direction: column !important;
    display: flex !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    float: none !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    min-height: 160px !important;
    max-height: 160px !important;
  }
  
  .article-card-header {
    flex-shrink: 0 !important;
    margin-bottom: 3px !important;
  }
  
  .article-card-title {
    font-size: 10px !important;
    font-weight: 600 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    color: var(--text) !important;
  }
  
  .article-card-content {
    flex: 1 !important;
    overflow: hidden !important;
    min-height: 0 !important;
    margin-bottom: 3px !important;
  }
  
  .article-card-preview {
    font-size: 9px !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    flex: 1 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    margin: 0 !important;
    color: var(--text-light) !important;
  }
  
  .article-card-meta {
    font-size: 8px !important;
    padding-top: 3px !important;
    opacity: 0.7;
    flex-shrink: 0 !important;
    color: var(--text-muted) !important;
    border-top: 1px solid var(--border) !important;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .articles-grid .article-card {
    padding: 16px;
  }
  
  .articles-grid .article-card-title {
    font-size: 15px;
  }
  
  .articles-grid .article-card-preview {
    font-size: 14px;
    -webkit-line-clamp: 6;
  }
  
  .hall-right-panel {
    flex-direction: column;
  }
  
  .write-card {
    padding: 24px;
  }
  
  .write-icon {
    font-size: 42px;
  }
  
  .write-card h3 {
    font-size: 17px;
  }
  
  .stats-card {
    padding: 8px 12px !important;
    background: var(--bg-paper) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    flex: none !important;
    min-height: 36px !important;
  }
  
  .stat-item {
    flex: none !important;
    text-align: left !important;
    padding: 0 12px !important;
    flex-direction: row !important;
    gap: 4px !important;
  }
  
  .stats-card .stat-value {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    letter-spacing: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .stats-card .stat-label {
    font-size: 12px !important;
    color: var(--text-light) !important;
    letter-spacing: 0 !important;
  }
  
  .login-title {
    font-size: 24px;
    letter-spacing: 3px;
  }
  
  .tab-switch a {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .form-group input {
    padding: 12px 14px;
    font-size: 14px;
  }
}