﻿/*
Theme Name: MYthme
Theme URI: https://example.com/mythme
Author: MYthme
Author URI: https://example.com
Description: 1:1 仿制开发者社区布局的WordPress主题，完美还原桌面端与移动端UI设计。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mythme
Tags: community, blog, responsive, custom-theme
*/

/* ========== 重置与基础 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

a {
  color: #0052d9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
}

/* ========== 顶部导航栏 ========== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  height: 62px;
  font-size: 15px;
  color: #666;
}

.header-top-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #333;
  font-size: 17px;
}

.brand-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #0052d9, #4080ff);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.brand-divider {
  color: #ccc;
  margin: 0 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-right a {
  color: #666;
  font-size: 15px;
}

.btn-login-top {
  background: #0052d9;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 15px;
}

/* 主导航行 */
.main-nav-row {
  height: 44px;
  border-top: 1px solid #f0f0f0;
}

.main-nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-menu a {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}

.main-menu a:hover {
  color: #0052d9;
  text-decoration: none;
}

.main-menu .has-dropdown::after {
  content: "▾";
  font-size: 10px;
  margin-left: 4px;
  color: #999;
}

.badge-new {
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: top;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 4px;
  padding: 0 12px;
  height: 32px;
  width: 280px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 13px;
  color: #333;
}

.search-box .search-icon {
  color: #999;
  cursor: pointer;
}

.btn-publish {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #0052d9;
  color: #0052d9;
  background: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.btn-publish:hover {
  background: #f0f5ff;
}

/* ========== Hero 轮播区 ========== */
.hero-section {
  background: linear-gradient(135deg, #eef3fb 0%, #f5f8fc 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 24px 30px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.hero-content {
  flex: 1;
  padding-top: 10px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}

.btn-hero {
  display: inline-block;
  background: #0052d9;
  color: #fff;
  padding: 10px 40px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  background: #0043b3;
  text-decoration: none;
}

.hero-illustration {
  position: absolute;
  right: 33%;
  top: 20px;
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, #d6e4ff, #e8f0ff);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  opacity: 0.7;
}

/* 右侧用户卡片 */
.hero-user-card {
  width: 308px;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.user-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4080ff, #0052d9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  flex-shrink: 0;
}

.user-greeting h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 4px;
}

.user-greeting p {
  font-size: 13px;
  color: #999;
}

.btn-card-login {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #0052d9, #4080ff);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

/* 轮播指示器 */
.hero-dots {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-dots span {
  width: 40px;
  height: 3px;
  background: #d0d5dd;
  border-radius: 2px;
}

.hero-dots span.active {
  background: #0052d9;
}

/* ========== 主内容区 ========== */
.main-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  gap: 28px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* 标签页 */
.tab-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border-radius: 8px 8px 0 0;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.tab-nav a {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tab-nav a.active {
  color: #0052d9;
  border-bottom-color: #0052d9;
  font-weight: 500;
}

.tab-nav a:hover {
  color: #0052d9;
  text-decoration: none;
}

.tab-nav .tab-icon {
  font-size: 14px;
  line-height: 1;
}

.tab-divider {
  width: 1px;
  height: 16px;
  background: #e8e8e8;
  flex-shrink: 0;
}

.tab-more {
  margin-left: auto;
  color: #999 !important;
}

/* 文章列表 */
.article-list {
  background: #fff;
  border-radius: 0 0 8px 8px;
  padding: 0 24px;
}

.article-item {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
  border-bottom: none;
}

.article-info {
  flex: 1;
  min-width: 0;
}

.article-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.45;
}

.article-title a {
  color: #1a1a1a;
}

.article-title a:hover {
  color: #0052d9;
}

.article-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

/* meta 行：左右布局 */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

.meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
}

.article-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
}

.author-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4080ff, #0052d9);
  display: inline-block;
}

.meta-dot {
  color: #ddd;
}

.meta-views,
.meta-comments {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #999;
}

.tags-label {
  color: #999;
}

.meta-right a {
  color: #999;
  font-size: 12px;
}

.meta-right a:hover {
  color: #0052d9;
}

.tag-dot {
  color: #ddd;
  margin: 0 2px;
}

.article-thumb {
  width: 200px;
  height: 120px;
  border-radius: 6px;
  background: #f0f0f0;
  flex-shrink: 0;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #bbb;
  font-size: 13px;
}

/* ========== 右侧边栏 ========== */
.sidebar {
  width: 320px;
  flex-shrink: 0;
}

.widget-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.widget-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
}

.widget-title .more-link {
  font-size: 12px;
  font-weight: 400;
  color: #0052d9;
}

/* 向你推荐 */
.recommend-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.recommend-item:last-child {
  border-bottom: none;
}

.recommend-text {
  flex: 1;
  min-width: 0;
}

.recommend-text h5 {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.recommend-text p {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.btn-recommend {
  flex-shrink: 0;
  border: 1px solid #0052d9;
  color: #0052d9;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

/* 交个朋友 */
.friend-card {
  background: #f9fafc;
  border-radius: 6px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.friend-info p {
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

.friend-info span {
  font-size: 12px;
  color: #999;
}

.qr-code {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
}

/* 沙龙日历 */
.calendar-item {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.calendar-item:last-child {
  border-bottom: none;
}

.calendar-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.calendar-time .status {
  color: #ff4d4f;
  margin-left: 6px;
}

.calendar-title {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

/* 加入讨论 */
.discuss-list li {
  padding: 8px 0;
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.discuss-list li::before {
  content: "☐";
  color: #ccc;
  flex-shrink: 0;
}

/* ========== 右侧浮动按钮 ========== */
.float-actions {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}

.float-btn:hover {
  color: #0052d9;
}

/* ========== 移动端适配 ========== */
.mobile-header {
  display: none;
}

.mobile-hero {
  display: none;
}

@media (max-width: 768px) {
  .header-top,
  .main-nav-row,
  .hero-user-card,
  .hero-illustration,
  .sidebar {
    display: none !important;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
  }

  .mobile-logo .logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0052d9, #4080ff);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
  }

  .mobile-header-actions {
    display: flex;
    gap: 16px;
    font-size: 18px;
    color: #333;
    align-items: center;
  }

  .mobile-login-btn {
    background: #0052d9;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 24px 16px;
    flex-direction: column;
    gap: 16px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .main-container {
    padding: 12px 12px 30px;
  }

  .tab-nav {
    padding: 0 12px;
    gap: 16px;
  }

  .article-list {
    padding: 0 12px;
  }

  .article-item {
    gap: 12px;
    padding: 16px 0;
  }

  .article-title {
    font-size: 15px;
  }

  .article-excerpt {
    font-size: 12px;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
  }

  .article-thumb {
    width: 100px;
    height: 70px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .meta-right {
    flex-wrap: wrap;
  }
}

/* ========== 文章详情页 ========== */
.single-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  display: flex;
  gap: 20px;
}

/* 左侧浮动工具栏 */
.side-toolbar {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
}

.tool-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.tool-num {
  font-size: 11px;
  margin-top: 2px;
}

/* 主内容区 */
.single-main {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  padding: 30px 40px;
}

.detail-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #999;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.detail-meta .meta-views,
.detail-meta .meta-comments {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-report {
  margin-left: auto;
  cursor: pointer;
}

/* 概述卡片 */
.overview-card {
  background: #f5f8ff;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.overview-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #0052d9;
  margin-bottom: 8px;
  font-size: 14px;
}

.overview-content {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* 收录标签 */
.collect-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
}

.collect-tag .tag-link {
  color: #0052d9;
}

/* 正文 */
.detail-content {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.detail-content p {
  margin-bottom: 18px;
}

.detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

/* 原创声明 */
.copyright-note {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}

/* 评论区 */
.comment-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.comment-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.comment-login-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafc;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.comment-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4080ff, #0052d9);
}

.comment-login-text {
  flex: 1;
  text-align: center;
  color: #0052d9;
  font-size: 14px;
}

.comment-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.comment-tab {
  font-size: 15px;
  font-weight: 600;
}

.comment-sort {
  display: flex;
  gap: 8px;
}

.sort-btn {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
}

.sort-btn.active {
  background: #e6f0ff;
  color: #0052d9;
}

/* 右侧边栏 */
.single-sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* 作者卡片 */
.author-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.author-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.verify-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #0052d9;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  margin-left: 4px;
}

/* 作者卡片头像 */
.author-header img,
.author-header .local-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}

/* 名字旁边的等级标签 */
.badge-level-inline {
  display: inline-block;
  background: #ff7d00;
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: normal;
  margin-left: 4px;
}

.author-badges {
  margin-bottom: 8px;
}

.badge-level {
  display: inline-block;
  background: #e6f0ff;
  color: #0052d9;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
}

.author-desc {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
  line-height: 1.5;
}

.btn-follow {
  display: block;
  width: 100%;
  border: 1px solid #0052d9;
  color: #0052d9;
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 16px;
}

.btn-follow:hover {
  background: #f0f5ff;
}

.author-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.author-stats strong {
  color: #333;
  font-weight: 600;
}

/* 作者相关精选 */
.related-list {
  font-size: 13px;
  color: #333;
  line-height: 2;
}

.related-list li::before {
  content: "▸ ";
  color: #ccc;
}

/* 广告位 */
.ad-card {
  margin-bottom: 16px;
}

.ad-badge {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.ad-placeholder {
  height: 80px;
  background: #fff;
  border-radius: 8px;
}

/* 讨论输入框 */
.discuss-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.discuss-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8e8e8;
  flex-shrink: 0;
}

.discuss-input-row input {
  flex: 1;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
}

.btn-publish-small {
  background: #fff;
  border: 1px solid #0052d9;
  color: #0052d9;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ========== 移动端文章详情页 ========== */
@media (max-width: 768px) {
  .single-container {
    flex-direction: column;
    padding: 12px;
  }

  .side-toolbar,
  .single-sidebar {
    display: none !important;
  }

  .single-main {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .detail-title {
    font-size: 20px;
  }

  .detail-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .meta-report {
    display: none;
  }

  .detail-content {
    font-size: 14px;
  }

  /* 移动端底部固定栏 */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* ========== 自定义评论列表 ========== */
.custom-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-comments .comment-item {
  padding: 20px 0;
  border-bottom: 1px solid #f5f5f5;
}

.custom-comments .comment-item:last-child {
  border-bottom: none;
}

.comment-body {
  padding-left: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  vertical-align: middle;
}

.comment-author {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.comment-time {
  margin-left: auto;
  font-size: 12px;
  color: #999;
}

.comment-content {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 46px;
}

.comment-actions {
  display: flex;
  gap: 20px;
  padding-left: 46px;
}

.action-btn {
  font-size: 12px;
  color: #999;
  cursor: pointer;
}

.action-btn:hover {
  color: #0052d9;
}

/* 已登录评论输入框 */
.comment-input-box {
  background: #f9fafc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.comment-input-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-input-header textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  resize: none;
  font-size: 14px;
  color: #333;
  min-height: 60px;
  line-height: 1.6;
}

.comment-input-header textarea::placeholder {
  color: #999;
}

.comment-input-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.char-count {
  font-size: 12px;
  color: #999;
}

.emoji-btn {
  font-size: 18px;
  cursor: pointer;
}

.btn-comment-submit {
  background: #f0f0f0;
  color: #999;
  border: none;
  padding: 6px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-comment-submit:hover {
  background: #0052d9;
  color: #fff;
}

/* ========== 登录注册页 ========== */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.auth-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.auth-tab {
  padding-bottom: 12px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab.active {
  color: #0052d9;
  border-bottom-color: #0052d9;
  font-weight: 500;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #0052d9;
}

.btn-auth {
  background: #0052d9;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
}

.btn-auth:hover {
  background: #0043b3;
}

.auth-error {
  background: #fff2f0;
  color: #ff4d4f;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.auth-tip {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

.auth-tip a {
  color: #0052d9;
}

/* 个人资料编辑表单 */
.edit-profile-form .form-group {
  margin-bottom: 16px;
}

.edit-profile-form label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.edit-profile-form input,
.edit-profile-form textarea,
.edit-profile-form select {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.edit-profile-form input:focus,
.edit-profile-form textarea:focus,
.edit-profile-form select:focus {
  border-color: #0052d9;
}

.edit-profile-form textarea {
  resize: vertical;
}

/* 两列布局 */
.edit-profile-form .form-row {
  display: flex;
  gap: 20px;
}

.edit-profile-form .form-row .form-group {
  flex: 1;
}

/* 提交按钮居中 */
.edit-profile-form .form-submit-row {
  text-align: center;
  margin-top: 30px;
}

.edit-profile-form .btn-submit {
  background: #0052d9;
  color: #fff;
  border: none;
  padding: 10px 40px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

/* 头像上传 */
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-avatar-preview img,
.current-avatar-preview .local-avatar {
  border-radius: 50%;
}

.btn-upload {
  background: #fff;
  border: 1px solid #0052d9;
  color: #0052d9;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 6px;
}

.upload-tip {
  font-size: 12px;
  color: #999;
}

/* 密码修改区域 */
.password-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

/* ========== 会员中心 ========== */
.profile-banner {
  background: linear-gradient(135deg, #0f0c29, #1a1a2e, #16213e);
  height: 180px;
  position: relative;
  overflow: hidden;
}

/* 星空背景：用多层radial-gradient画星星 */
.profile-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 160px 120px, #fff, transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 240px 90px, #fff, transparent),
    radial-gradient(2px 2px at 280px 30px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 320px 110px, #fff, transparent),
    radial-gradient(2px 2px at 360px 60px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 400px 100px, #fff, transparent),
    radial-gradient(2px 2px at 450px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 500px 80px, #fff, transparent),
    radial-gradient(2px 2px at 550px 120px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 600px 50px, #fff, transparent),
    radial-gradient(2px 2px at 650px 90px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 700px 30px, #fff, transparent),
    radial-gradient(2px 2px at 750px 110px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 800px 70px, #fff, transparent),
    radial-gradient(2px 2px at 850px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 900px 100px, #fff, transparent),
    radial-gradient(2px 2px at 950px 60px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 1000px 30px, #fff, transparent),
    radial-gradient(2px 2px at 1050px 80px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 1100px 120px, #fff, transparent),
    radial-gradient(2px 2px at 1150px 50px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 1200px 90px, #fff, transparent),
    radial-gradient(2px 2px at 1250px 40px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 1300px 70px, #fff, transparent),
    radial-gradient(2px 2px at 1350px 110px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 1400px 50px, #fff, transparent),
    radial-gradient(2px 2px at 1450px 90px, rgba(255,255,255,0.5), transparent);
  background-repeat: repeat;
  background-size: 1500px 180px;
  animation: twinkle 3s ease-in-out infinite alternate;
}

/* 星星闪烁动画 */
@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.banner-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px 27px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
}

.banner-left {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 0;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  background: #e8e8e8;
}

.profile-avatar-lg img,
.profile-avatar-lg .local-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.lv-badge {
  background: #ff9500;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.lv-badge.orange {
  background: #ff9500;
}

.profile-uid {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.banner-right {
  padding-bottom: 20px;
}

.share-btn {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
}

/* 移动端UID和关注数（桌面端隐藏） */
.mobile-profile-meta {
  display: none;
}

/* 主内容区 */
.profile-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 24px 40px;
  display: flex;
  gap: 24px;
  background: #fff;
  margin-top: 0;
}

.profile-main {
  flex: 1;
  min-width: 0;
}

/* 标签页 */
.profile-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs a {
  padding: 10px 0;
  font-size: 15px;
  color: #666;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.profile-tabs a.active {
  color: #0052d9;
  border-bottom-color: #0052d9;
  font-weight: 500;
}

.tab-search {
  margin-left: auto;
  color: #999;
  cursor: pointer;
}

/* 关注了用户 */
.follow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.follow-title {
  font-size: 15px;
  color: #333;
}

.follow-time {
  font-size: 12px;
  color: #999;
}

.follow-user-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}

.follow-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4080ff, #0052d9);
  flex-shrink: 0;
}

.follow-user-info h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.verify-v {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #0052d9;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
}

.follow-user-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.follow-user-stats {
  font-size: 12px;
  color: #999;
}

.btn-following {
  position: absolute;
  right: 0;
  top: 20px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #666;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.no-more {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  padding: 30px 0;
}

/* 右侧边栏 */
.profile-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.level-card {
  background: #fff;
  margin-bottom: 24px;
}

.level-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.level-title-row h3 {
  font-size: 17px;
  font-weight: 600;
}

.level-rules {
  font-size: 12px;
  color: #999;
}

.level-progress-box {
  background: #f9fafc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.level-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.growth-num {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.progress-bar {
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4080ff, #0052d9);
  border-radius: 4px;
}

.progress-tip {
  font-size: 12px;
  color: #999;
}

.orange-text {
  color: #ff9500;
}

.task-list {
  margin-bottom: 8px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: #333;
}

.task-reward {
  color: #ff9500;
  font-size: 12px;
}

.task-name.blue {
  color: #0052d9;
}

.task-reward.orange {
  color: #ff9500;
}

/* 个人简介 */
.profile-section {
  margin-bottom: 24px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.edit-link {
  font-size: 13px;
  color: #999;
}

.info-list {
  font-size: 13px;
  color: #999;
  line-height: 2.4;
}

.achievement-empty {
  font-size: 13px;
  color: #999;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.follow-stats-row {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #666;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.follow-stats-row strong {
  color: #333;
  font-weight: 600;
}

.stats-divider {
  color: #e8e8e8;
}

/* 移动端单独的等级卡片（桌面端隐藏） */
.mobile-level-card {
  display: none;
}

/* ========== 移动端会员中心 ========== */
@media (max-width: 768px) {
  .profile-banner {
    height: 140px;
  }

  .banner-inner {
    padding: 0 16px;
  }

  .banner-left {
    gap: 12px;
  }

  .profile-avatar-lg {
    width: 70px;
    height: 70px;
  }

  .profile-name {
    font-size: 18px;
  }

  .profile-uid {
    display: none;
  }

  .banner-right {
    display: none;
  }

  .mobile-profile-meta {
    display: block;
    padding: 20px 16px 10px;
    background: #fff;
  }

  .mobile-uid {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
  }

  .mobile-follow-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .mobile-follow-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
  }

  .detail-link {
    font-size: 13px;
    color: #666;
  }

  /* 移动端显示单独的等级卡片 */
  .mobile-level-card {
    display: block;
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
  }

  .profile-container {
    flex-direction: column;
    padding: 16px 12px;
    margin-top: 0;
  }

  .profile-sidebar {
    width: 100%;
  }

  /* 移动端隐藏sidebar里的等级卡片（已经单独提出来了） */
  .profile-sidebar .level-card {
    display: none;
  }

  /* 移动端隐藏个人简介、个人成就、关注统计 */
  .profile-sidebar .profile-section,
  .profile-sidebar .follow-stats-row {
    display: none;
  }

  .profile-tabs {
    gap: 20px;
  }

  .profile-tabs a {
    font-size: 14px;
  }

  .btn-following {
    position: static;
    align-self: center;
  }
}

/* 用户文章列表 */
.user-post-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.user-post-item:last-child {
  border-bottom: none;
}

.user-post-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.user-post-title a {
  color: #1a1a1a;
}

.user-post-title a:hover {
  color: #0052d9;
}

.user-post-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.user-post-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
}

/* 动态条目 */
.dynamic-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.dynamic-action {
  color: #333;
  font-weight: 500;
}

/* 动态删除按钮 */
.dynamic-delete {
  color: #999;
  font-size: 12px;
  cursor: pointer;
}

.dynamic-delete:hover {
  color: #ff4d4f;
}

/* 动态里的关注用户行 */
.follow-user-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.follow-user-avatar-small img,
.follow-user-avatar-small .local-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
}

.follow-user-info h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.follow-user-desc {
  font-size: 13px;
  color: #666;
}

/* 首页用户控制面板（登录后） */
.user-panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.user-panel-avatar img,
.user-panel-avatar .local-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
}

.user-panel-info {
  flex: 1;
}

.user-panel-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.growth-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.mini-progress {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.mini-progress-fill {
  width: 0%;
  height: 100%;
  background: #0052d9;
}

.panel-arrow {
  color: #ccc;
  font-size: 20px;
}

.user-panel-stats {
  display: flex;
  justify-content: space-around;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.stat-num {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.user-panel-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.user-panel-footer .footer-item {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-panel-footer .footer-item:hover {
  color: #0052d9;
}

.user-panel-footer .footer-item + .footer-item {
  border-left: 1px solid #f0f0f0;
  padding-left: 16px;
}

/* 右上角搜索图标 */
.header-search-icon {
  cursor: pointer;
  font-size: 16px;
  margin: 0 8px;
}

/* 搜索弹窗 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding-top: 100px;
}

.search-modal-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  height: fit-content;
}

.search-modal-content form {
  display: flex;
  gap: 10px;
}

.search-modal-input {
  flex: 1;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
}

.search-modal-input:focus {
  border-color: #0052d9;
}

.search-modal-btn {
  background: #0052d9;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
}

.search-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.profile-tabs .tab-item {
  font-size: 15px;
  padding: 12px 0;
  display: flex;
  align-items: center;
}

.mobile-level-card {
  margin-bottom: 10px !important;
}

.profile-main {
  padding-top: 10px !important;
}

.profile-tabs {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  .mobile-level-card {
    margin-bottom: 0 !important;
    padding-bottom: 10px;
  }
  .profile-container {
    padding-top: 0 !important;
  }
  .profile-tabs {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

.profile-tabs {
  margin-bottom: 8px !important;
}

.tab-content {
  padding-top: 0 !important;
}

.user-post-item {
  margin-top: 8px !important;
}

.mobile-profile-meta {
  margin-bottom: 8px !important;
  padding-bottom: 8px;
}

.mobile-level-card .level-title-row {
  margin-top: 0 !important;
}

/* 右上角用户头像 */
.header-user-avatar {
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  width: 36px;
  height: 36px;
}

.header-user-avatar img,
.header-user-avatar .local-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}

/* 手机端文章列表样式对齐原站 */
@media (max-width: 768px) {
  .main-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .content-main {
    background: #fff !important;
  }

  .tab-nav {
    border-radius: 0 !important;
    padding: 0 16px !important;
  }

  .article-item {
    padding: 16px !important;
    border-bottom: 8px solid #f5f6f7 !important;
    display: block !important;
  }

  .article-info {
    width: 100% !important;
    margin-bottom: 12px;
  }

  .article-thumb {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .article-thumb img {
    width: 100%;
    height: auto;
  }

  .sidebar {
    display: none !important;
  }
}

/* 手机端文章列表恢复左右布局 */
@media (max-width: 768px) {
  .article-item {
    display: flex !important;
    gap: 12px !important;
    padding: 16px !important;
    border-bottom: 8px solid #f5f6f7 !important;
  }

  .article-info {
    flex: 1 !important;
    width: auto !important;
  }

  .article-thumb {
    width: 110px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
  }

  .article-thumb img {
    width: 110px !important;
    height: 80px !important;
    object-fit: cover;
  }
}

/* 手机端文章条目细节对齐原站 */
@media (max-width: 768px) {
  .article-item {
    padding: 16px !important;
  }

  .article-title {
    font-size: 17px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  .article-excerpt {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-meta {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: #999 !important;
  }

  .meta-right {
    display: none !important;
  }

  .article-thumb {
    width: 120px !important;
    height: 90px !important;
    border-radius: 4px;
    overflow: hidden;
  }
}

/* 手机端作者行细节对齐 */
@media (max-width: 768px) {
  .article-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    overflow: hidden;
  }

  .meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
  }

  .author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }

  .author-dot {
    flex-shrink: 0;
  }

  .meta-date, .meta-views, .meta-comments {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* 手机端文章详情页全宽显示 */
@media (max-width: 768px) {
  .single-container,
  .article-container,
  .main-container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .article-content,
  .single-content {
    background: #fff !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .article-sidebar,
  .author-card-sidebar {
    display: none !important;
  }
}

/* 作者信息行头像样式 */
.author-info-line img,
.author-info-line .local-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  display: block;
}

/* 电脑端隐藏作者信息条 */
@media (min-width: 769px) {
  .author-info-line {
    display: none !important;
  }
}

/* 手机端签到和VIP兑换上下排列 */
@media (max-width: 768px) {
  .checkin-vip-row {
    flex-direction: column !important;
  }
}

/* 隐藏移动端等级卡片 */
.mobile-level-card {
  display: none !important;
}

/* 发布文章浮动按钮 */
.float-publish-btn {
  background: #0052d9 !important;
  color: #fff !important;
}
.float-publish-btn:hover {
  background: #0041a8 !important;
  color: #fff !important;
}

/* 深色模式 */
.dark-mode {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
}
.dark-mode .site-header, .dark-mode .mobile-header {
  background: #2d2d2d !important;
  color: #fff !important;
}
.dark-mode .main-container, .dark-mode .content-main, .dark-mode .article-list {
  background: #2d2d2d !important;
  color: #e0e0e0 !important;
}
.dark-mode .article-item, .dark-mode .widget-card, .dark-mode .user-post-item {
  background: #2d2d2d !important;
  border-color: #444 !important;
}
.dark-mode .article-title a {
  color: #fff !important;
}
.dark-mode .article-excerpt, .dark-mode .article-meta, .dark-mode .info-list li {
  color: #aaa !important;
}
.dark-mode .site-footer {
  background: #2d2d2d !important;
  color: #999 !important;
  border-color: #444 !important;
}

/* 手机端搜索弹窗 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f5f5;
  z-index: 9999;
  display: none;
}
.search-modal-topbar {
  background: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-brand {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}
.search-login-btn {
  padding: 6px 20px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
}
.search-modal-search-row {
  padding: 16px;
}
.search-modal-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ffb6c1;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.search-modal-btn {
  width: 48px;
  border: none;
  border-radius: 24px;
  background: #ff6b9d;
  cursor: pointer;
}
.search-modal-btn::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>") no-repeat center;
}

/* 修复搜索弹窗布局 */
.search-modal {
  display: none;
  flex-direction: column;
}
.search-modal-topbar {
  display: flex;
  order: 0;
}
.search-modal-search-row {
  order: 1;
}

/* 顶部下拉搜索抽屉 */
.search-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 12px 16px;
  display: none;
}
.search-drawer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.search-drawer-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ffb6c1;
  border-radius: 24px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.search-drawer-btn {
  width: 44px;
  border: none;
  border-radius: 24px;
  background: #ff6b9d;
  cursor: pointer;
}
.search-drawer-btn::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>") no-repeat center;
}

/* 手机端搜索抽屉位置在导航下方 */
@media (max-width: 768px) {
  .search-drawer {
    top: 50px !important;
    padding: 12px 16px;
  }
}

/* 搜索抽屉平滑展开动画 */
.search-drawer {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block !important;
  visibility: hidden;
}
.search-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* 嵌入式搜索框，不是悬浮 */
.search-drawer {
  position: static !important;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff;
  padding: 0 !important;
  box-shadow: none;
  border-bottom: 1px solid #f0f0f0;
}
.search-drawer.open {
  height: 60px;
  padding: 12px 16px !important;
}
.search-drawer-inner {
  max-width: 100%;
}
.search-drawer-input {
  border: 1px solid #0052d9;
  border-radius: 4px 0 0 4px;
  border-right: none;
  padding: 0 12px;
  height: 40px;
}
.search-drawer-btn {
  width: 48px;
  border-radius: 0 4px 4px 0;
  background: #0052d9;
}
.search-drawer-btn::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.35-4.35'/></svg>") no-repeat center;
}

/* 搜索结果页 */
.search-result-header {
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.search-result-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}
.search-result-header p {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* 搜索结果页美化 */
.search-result-header {
  background: #fff;
  padding: 20px 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.search-result-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 6px 0;
}
.search-keyword {
  color: #0052d9;
}
.search-result-header p {
  font-size: 14px;
  color: #999;
  margin: 0;
}
.no-result-wrap {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}
.no-result-icon {
  margin-bottom: 20px;
  opacity: 0.5;
}
.no-result-title {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px 0;
}
.no-result-desc {
  font-size: 14px;
  color: #999;
  margin: 0 0 24px 0;
}
.no-result-back {
  display: inline-block;
  padding: 10px 28px;
  background: #0052d9;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
@media (max-width: 768px) {
  .search-result-header {
    padding: 16px;
    margin: 0;
  }
  .no-result-wrap {
    padding: 60px 20px;
  }
}

/* 底部固定在页面最底部 */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-container {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

.site-header, .mobile-header, .search-drawer {
  flex-shrink: 0;
}

a.mobile-logo {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
}
