/**
 * 同城生活分类信息 - 亮蓝极简专属样式表
 */

:root {
  --primary-blue: #0284c7;       /* 亮蓝主色 */
  --primary-blue-hover: #0369a1; /* 深蓝悬停 */
  --primary-light: #e0f2fe;      /* 冰蓝浅色背景 */
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  --accent-cyan: #06b6d4;
  --accent-orange: #f97316;
  --text-main: #0f172a;          /* 主文字 Slate-900 */
  --text-muted: #64748b;         /* 次要说明文字 Slate-500 */
  --text-light: #94a3b8;         /* 占位符 Slate-400 */
  --bg-page: #f8fafc;            /* 页面底色 Slate-50 */
  --bg-card: #ffffff;            /* 卡片白底 */
  --border-color: #e2e8f0;       /* 细边框 */
  --border-blue: #bae6fd;        /* 亮蓝细边框 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 25px -4px rgba(2, 132, 199, 0.12), 0 4px 10px -2px rgba(2, 132, 199, 0.08);
}

/* 基础全局重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航条 */
.top-nav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
}

.top-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

.city-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.city-switcher:hover {
  background-color: var(--primary-light);
  color: var(--primary-blue);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.top-links a:hover {
  color: var(--primary-blue);
}

.composition-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.composition-nav-links:empty {
  display: none;
}

.composition-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.composition-nav-link:hover {
  border-color: #38bdf8;
  background: var(--primary-light);
  color: var(--primary-blue-hover);
  transform: translateY(-1px);
}

/* 主页头部 Header */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0f2fe;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--text-main);
  min-width: 0;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.logo-text span {
  color: var(--primary-blue);
}

.logo-text {
  max-width: clamp(260px, 30vw, 520px);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.18;
  min-width: 0;
}

.header-search {
  flex: 1;
  max-width: 540px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-pill);
  padding: 3px 4px 3px 14px;
  transition: box-shadow 0.2s ease;
}

.header-search:focus-within {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.search-category-select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  padding-right: 8px;
  border-right: 1px solid var(--border-color);
  margin-right: 10px;
  cursor: pointer;
}

.search-input {
  flex: 1;
  border: none;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.search-btn {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.search-btn:hover {
  opacity: 0.95;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-publish {
  background: #0284c7;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-publish:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.btn-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-user-link:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-light);
}

/* 极简分类导航条 */
.category-hero-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  margin-bottom: 24px;
}

.category-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cat-card-item:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  background: #f0f9ff;
}

.cat-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cat-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.cat-info p {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* 轮播/公告栏条 */
.notice-strip {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  color: #0369a1;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-badge {
  background: #0284c7;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}

/* 内容板块通用卡片 */
.section-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-bar {
  width: 4px;
  height: 18px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.section-tabs {
  display: flex;
  gap: 8px;
}

.sec-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sec-tab-btn.active, .sec-tab-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

/* 信息网格 */
.posts-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.post-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.post-card:hover {
  border-color: #38bdf8;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.post-thumb-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  background: #e2e8f0;
  overflow: hidden;
}

.post-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-thumb-wrap img {
  transform: scale(1.05);
}

.post-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.post-top-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.post-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.post-tag-item {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--primary-light);
  color: var(--primary-blue);
  border-radius: 4px;
}

.post-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.post-price {
  font-size: 18px;
  font-weight: 700;
  color: #e11d48;
}

.post-price small {
  font-size: 12px;
  font-weight: normal;
  color: #e11d48;
  margin-left: 2px;
}

.post-meta-loc {
  font-size: 12px;
  color: var(--text-muted);
}

/* 列表页特定样式 */
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 40px;
}

.list-main-col,
.list-sidebar {
  min-width: 0;
}

.filter-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  width: 80px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 4px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filter-opt-btn {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-opt-btn:hover {
  color: var(--primary-blue);
  background: var(--primary-light);
}

.filter-opt-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
}

.list-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
}

.sort-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.sort-btn {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.sort-btn.active {
  color: var(--primary-blue);
  font-weight: 600;
}

/* 列表单行条目 */
.list-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 18px;
  min-width: 0;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.list-item-card:hover {
  border-color: #38bdf8;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.list-item-thumb {
  width: 180px;
  height: 125px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #f1f5f9;
}

.list-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.list-item-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list-item-title:hover {
  color: var(--primary-blue);
}

.list-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.list-item-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 6px;
}

.list-item-publisher {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.badge-verify {
  background: #dcfce7;
  color: #15803d;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* 分页器 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.page-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
}

/* 详情页特定样式 */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 40px;
}

.detail-main-col,
.detail-sidebar,
.detail-main-card {
  min-width: 0;
}

.detail-main-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.detail-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-width: 0;
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-gallery {
  margin-bottom: 24px;
  min-width: 0;
}

.main-preview-img {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.thumb-slot {
  width: 84px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb-slot.active, .thumb-slot:hover {
  border-color: var(--primary-blue);
}

.thumb-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-highlight-box {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.contact-phone-display {
  font-size: 26px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn-reveal-contact {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

#detailAddress,
#detailDescription,
#detailFeaturesList,
#detailFeaturesList li,
#similarList,
#similarList a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 侧边栏小部件 */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.publisher-profile-card {
  text-align: center;
}

.pub-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--primary-light);
  object-fit: cover;
}

.pub-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pub-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  margin: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-blue);
}

.stat-item p {
  font-size: 11px;
  color: var(--text-muted);
}

/* 表单与发布页样式 */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 860px;
  margin: 24px auto 48px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-label span.req {
  color: #ef4444;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: #ffffff;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-uploader-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-slot {
  width: 100px;
  height: 100px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.2s ease;
  position: relative;
  background: #f8fafc;
}

.upload-slot:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-light);
}

.uploaded-preview-item {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.uploaded-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-img-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* 认证/登录注册页卡片 */
.auth-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px -4px rgba(2, 132, 199, 0.12);
  width: 100%;
  max-width: 440px;
  padding: 36px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

.auth-tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.auth-tab-item.active {
  color: var(--primary-blue);
}

.auth-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20%;
  width: 60%;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 3px;
}

/* 会员中心样式 */
.user-center-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.user-nav-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.user-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-nav-item:hover {
  background: #f0f9ff;
  color: var(--primary-blue);
}

.user-nav-item.active {
  background: #e0f2fe;
  color: var(--primary-blue);
  border-left-color: var(--primary-blue);
  font-weight: 600;
}

/* 页脚 Footer */
.main-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 24px;
  margin-top: auto;
  font-size: 13px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-links h5 {
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 12px;
  color: #64748b;
}

/* 模态弹窗 Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .category-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .posts-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .list-layout, .detail-layout, .user-center-layout {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top-nav-inner {
    gap: 10px;
    overflow-x: auto;
  }
  .top-links {
    gap: 10px;
    flex-shrink: 0;
  }
  .composition-nav-links {
    gap: 6px;
  }
  .composition-nav-link {
    padding-inline: 9px;
  }
  .category-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .posts-grid-4 {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }
  .list-item-card {
    flex-direction: column;
  }
  .list-item-thumb {
    width: 100%;
    height: 180px;
  }
}
