/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f8f9fa;
  position: relative;
  overflow-x: hidden;
}

/* 登录页面样式 */
.login-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 30px 40px;
  position: relative;
}

.login-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: white;
}

.circle-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  right: -50px;
}

.circle-2 {
  width: 150px;
  height: 150px;
  bottom: 100px;
  left: -40px;
}

.circle-3 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: -20px;
}

.logo-section {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo-icon span {
  font-size: 36px;
  color: white;
}

.app-name {
  font-size: 32px;
  font-weight: bold;
  color: white;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.app-slogan {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  letter-spacing: 2px;
}

/* 登录卡片 */
.login-card {
  background: white;
  border-radius: 24px;
  padding: 35px 28px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.tab-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
}

.tab-btn.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  background: #fafafa;
}

.input-wrapper input:focus {
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-wrapper .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9ca3af;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #9ca3af;
  padding: 4px;
}

.forgot-password {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 24px;
}

.forgot-password a {
  color: #6366f1;
  font-size: 13px;
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  padding: 0 16px;
  color: #9ca3af;
  font-size: 13px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 26px;
}

.social-btn:hover {
  border-color: #07c160;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(7, 193, 96, 0.2);
}

.social-btn.wechat:hover {
  background: #07c160;
}

.register-link {
  text-align: center;
  margin-top: 24px;
  color: #6b7280;
  font-size: 14px;
}

.register-link a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

/* 微信登录面板 */
.wechat-login-panel {
  text-align: center;
  padding: 20px 0;
}

.qr-code-placeholder {
  width: 180px;
  height: 180px;
  margin: 20px auto;
  background: linear-gradient(135deg, #07c160 0%, #00a65a 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qr-code-placeholder:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(7, 193, 96, 0.3);
}

.qr-code-placeholder .wechat-icon-large {
  font-size: 48px;
  margin-bottom: 8px;
}

.qr-code-placeholder p {
  font-size: 14px;
}

.wechat-tip {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

/* 日记主页面样式 */
.main-header {
  background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
  padding: 20px 20px 70px;
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 22px;
  font-weight: bold;
  color: white;
  letter-spacing: 3px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-name {
  color: white;
  font-weight: 500;
  font-size: 15px;
}

.diary-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.content-area {
  padding: 0 16px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.quick-actions {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.action-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 10px 4px;
  border-radius: 12px;
}

.action-item:hover {
  background: #f3f4f6;
}

.action-item .action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.action-item:nth-child(1) .action-icon { background: linear-gradient(135deg, #f472b6, #ec4899); }
.action-item:nth-child(2) .action-icon { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.action-item:nth-child(3) .action-icon { background: linear-gradient(135deg, #34d399, #10b981); }
.action-item:nth-child(4) .action-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.action-item span {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #374151;
}

.view-all {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diary-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.diary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.diary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.diary-date {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

.diary-mood {
  font-size: 24px;
}

.diary-content {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.diary-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 16px;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
}

.nav-item.active .nav-icon {
  color: #6366f1;
}

.nav-item.active .nav-text {
  color: #6366f1;
}

.nav-icon {
  font-size: 22px;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.nav-text {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
}

.write-btn {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 16px;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  margin-top: -24px;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

.write-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* 写日记页面 */
.write-page {
  background: #f8f9fa;
  min-height: 100vh;
  padding-bottom: 100px;
}

.write-header {
  background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.write-header-title {
  font-size: 17px;
  font-weight: 600;
  color: white;
}

.publish-btn {
  padding: 8px 20px;
  background: white;
  border: none;
  border-radius: 20px;
  color: #6366f1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.write-content {
  padding: 20px;
}

.mood-selector {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.mood-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.mood-options {
  display: flex;
  gap: 12px;
}

.mood-option {
  width: 48px;
  height: 48px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: white;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mood-option.selected,
.mood-option:hover {
  border-color: #6366f1;
  background: #ede9fe;
  transform: scale(1.05);
}

.date-selector {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.editor-area {
  background: white;
  border-radius: 16px;
  padding: 16px;
  min-height: 300px;
}

.textarea-input {
  width: 100%;
  min-height: 280px;
  border: none;
  resize: none;
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  outline: none;
  font-family: inherit;
}

.textarea-input::placeholder {
  color: #c4c8cf;
}

.tags-input-area {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

/* 弹窗/模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px;
  padding: 30px;
  max-width: 360px;
  width: 100%;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #374151;
}

.modal-body {
  text-align: center;
  padding: 20px 0;
}

.modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-btn-cancel {
  background: #f3f4f6;
  color: #6b7280;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 隐藏类 */
.hidden {
  display: none !important;
}

/* 页面切换动画 */
.page {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 响应式适配：平板端 (>= 768px) ========== */
@media (min-width: 768px) {
  body {
    background: #f0f0f5;
  }

  .container {
    max-width: 768px;
  }

  /* 登录页面 - 居中卡片 */
  .login-container {
    padding: 80px 40px;
    justify-content: center;
  }

  .logo-section {
    margin-bottom: 40px;
  }

  .login-card {
    max-width: 420px;
    padding: 40px 32px;
  }

  /* 底部导航适配 */
  .bottom-nav {
    max-width: 768px;
  }

  /* 内容区域 */
  .content-area {
    padding: 0 24px;
  }

  /* 快捷操作网格 */
  .action-grid {
    gap: 16px;
  }

  .action-item .action-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  /* 日记卡片 */
  .diary-card {
    padding: 24px;
  }

  /* 写日记页面 */
  .write-content {
    padding: 28px;
  }

  .mood-option {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  .textarea-input {
    min-height: 350px;
    font-size: 16px;
  }

  /* 模态框 */
  .modal-content {
    max-width: 420px;
    padding: 36px;
  }
}

/* ========== 响应式适配：PC端 (>= 1024px) ========== */
@media (min-width: 1024px) {
  body {
    background: linear-gradient(135deg, #e0e5f0 0%, #f0e6f6 100%);
  }

  .container {
    max-width: 960px;
    border-radius: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  }

  /* 登录页面 - PC端居中大卡片 */
  .login-container {
    padding: 60px 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }

  .login-bg-decoration .circle-1 {
    width: 300px;
    height: 300px;
  }

  .login-bg-decoration .circle-2 {
    width: 220px;
    height: 220px;
  }

  .login-bg-decoration .circle-3 {
    width: 160px;
    height: 160px;
  }

  /* Logo区域 - PC端左侧展示 */
  .logo-section {
    text-align: left;
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .logo-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    margin: 0 0 20px;
  }

  .logo-icon span {
    font-size: 46px;
  }

  .app-name {
    font-size: 42px;
    letter-spacing: 8px;
  }

  .app-slogan {
    font-size: 16px;
    margin-top: 12px;
    letter-spacing: 3px;
  }

  /* 登录卡片 - PC端更宽 */
  .login-card {
    max-width: 440px;
    width: 440px;
    padding: 40px 36px;
  }

  .tab-switcher {
    margin-bottom: 32px;
  }

  .tab-btn {
    padding: 12px 20px;
    font-size: 16px;
  }

  .input-wrapper input {
    padding: 16px 18px 16px 48px;
    font-size: 16px;
  }

  .btn-primary {
    padding: 16px;
    font-size: 17px;
  }

  /* 主页面Header - PC端 */
  .main-header {
    padding: 24px 32px 80px;
    border-radius: 0 0 24px 24px;
  }

  .header-title {
    font-size: 26px;
  }

  .header-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 14px;
  }

  .user-info {
    margin-top: 20px;
    gap: 14px;
  }

  .avatar {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .user-name {
    font-size: 17px;
  }

  .diary-stats {
    gap: 40px;
    margin-top: 16px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 13px;
  }

  /* 内容区域 - PC端更宽 */
  .content-area {
    padding: 0 32px;
    margin-top: -50px;
  }

  .quick-actions {
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 28px;
  }

  .action-title {
    font-size: 17px;
    margin-bottom: 20px;
  }

  .action-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .action-item {
    padding: 14px 8px;
    border-radius: 16px;
  }

  .action-item .action-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 18px;
  }

  .action-item span {
    font-size: 13px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .view-all {
    font-size: 14px;
  }

  /* 日记列表 - PC端双列或单列宽版 */
  .diary-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .diary-card {
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
  }

  .diary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  }

  .diary-date {
    font-size: 14px;
  }

  .diary-mood {
    font-size: 28px;
  }

  .diary-content {
    font-size: 15px;
    line-height: 1.75;
    -webkit-line-clamp: 4;
  }

  /* 底部导航 - PC端 */
  .bottom-nav {
    max-width: 960px;
    padding: 12px 0 24px;
    border-radius: 0;
  }

  .nav-item {
    padding: 8px 24px;
  }

  .nav-icon {
    font-size: 24px;
  }

  .nav-text {
    font-size: 11px;
  }

  .write-btn {
    width: 58px;
    height: 58px;
    font-size: 28px;
    border-radius: 18px;
    margin-top: -26px;
  }

  /* 写日记页面 - PC端 */
  .write-page {
    padding-bottom: 120px;
  }

  .write-header {
    padding: 18px 32px;
  }

  .back-btn,
  .publish-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
  }

  .publish-btn {
    width: auto;
    padding: 10px 28px;
    font-size: 15px;
  }

  .write-header-title {
    font-size: 19px;
  }

  .write-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .mood-selector {
    padding: 24px;
    border-radius: 20px;
  }

  .mood-label {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .mood-options {
    gap: 16px;
  }

  .mood-option {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 30px;
  }

  .date-selector {
    padding: 24px;
    border-radius: 20px;
  }

  .editor-area {
    padding: 24px;
    border-radius: 20px;
    min-height: 380px;
    flex: 1;
  }

  .textarea-input {
    min-height: 340px;
    font-size: 16px;
    line-height: 2;
  }

  .tags-input-area {
    padding: 24px;
    border-radius: 20px;
  }

  /* 模态框 - PC端更大 */
  .modal-content {
    max-width: 480px;
    padding: 40px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-body {
    padding: 24px 0;
  }

  .modal-btn {
    padding: 14px;
    font-size: 16px;
    border-radius: 14px;
  }
}

/* ========== 大屏PC端 (>= 1440px) ========== */
@media (min-width: 1440px) {
  .container {
    max-width: 1100px;
  }

  .main-header {
    padding: 28px 48px 90px;
  }

  .content-area {
    padding: 0 48px;
  }

  .write-header {
    padding: 20px 48px;
  }

  .write-content {
    padding: 32px 48px;
  }

  .bottom-nav {
    max-width: 1100px;
  }

  /* 三列日记布局 */
  .diary-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .diary-content {
    -webkit-line-clamp: 3;
  }
}
