﻿/* ========================================
   Default Template - Main Stylesheet
   现代蓝紫风格
   ======================================== */

:root {
  --primary: #5b6af5;
  --primary-dark: #4757e8;
  --accent: #ff6b6b;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --card-bg: #fff;
  --border: #e2e8f0;
  --header-height: 70px;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; }

/* ========================================
   HEADER STYLES
   ======================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

/* 顶部信息栏 */
.header-topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 5px 0;
}
.header-topbar .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.welcome-text { font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.auth-link {
  color: rgba(255,255,255,0.9) !important;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.auth-link:hover { color: #fff !important; }

/* 主导航区 */
.header-main { padding: 12px 0; border-bottom: 1px solid var(--border); }
.header-main .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 18px; font-weight: 800; color: var(--text); }
.logo-slogan { font-size: 11px; color: var(--text-light); }

/* 搜索框 */
.search-form { flex: 1; max-width: 500px; }
.search-form .input-group { border-radius: 40px; overflow: hidden; border: 2px solid var(--border); transition: border-color .2s; }
.search-form .input-group:focus-within { border-color: var(--primary); }
.search-form .form-control {
  border: none; border-radius: 0; padding: 9px 16px; font-size: 14px; outline: none; box-shadow: none;
}
.search-form .form-control:focus { box-shadow: none; border-color: transparent; }
.btn-search {
  background: var(--primary); color: #fff; border: none; padding: 0 20px; cursor: pointer; font-size: 15px; transition: background .2s;
}
.btn-search:hover { background: var(--primary-dark); }

/* 发布按钮 */
.btn-publish {
  background: var(--accent); color: #fff; border-radius: 24px; padding: 8px 20px; font-size: 14px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; transition: background .2s;
}
.btn-publish:hover { background: #e55a5a; color: #fff; }

/* 会员下拉 */
.member-dropdown { position: relative; }
.member-trigger {
  display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9) !important;
  cursor: pointer; font-size: 13px; text-decoration: none;
}
.member-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.member-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分类导航栏 */
.header-nav {
  background: var(--primary);
  overflow: visible;
}
.header-nav .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-categories {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-item {
  position: relative;
  flex-shrink: 0;
}
.nav-item > a, .nav-item.has-submenu > .nav-link {
  display: block;
  color: rgba(255,255,255,0.9);
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
}
.nav-item > a:hover, .nav-item.has-submenu > .nav-link:hover,
.nav-item > a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}
/* 下拉菜单 */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  border: 1px solid var(--border);
}
.nav-item.has-submenu:hover .submenu { display: block; }
.submenu-inner { padding: 8px 0; }
.submenu-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.submenu a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text);
  transition: background .15s;
}
.submenu a:hover { background: #f1f5f9; color: var(--primary); }

/* 旧版 .header-inner 兼容 */
.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.site-logo {
  font-size: 22px; font-weight: 800; color: var(--primary); flex-shrink: 0; display: flex; align-items: center;
}
.site-logo img { height: 40px; vertical-align: middle; margin-right: 8px; }
.header-search { flex: 1; max-width: 500px; display: flex; border: 2px solid var(--border); border-radius: 40px; overflow: hidden; }
.header-search input { flex: 1; border: none; padding: 8px 16px; outline: none; font-size: 14px; }
.header-search button { background: var(--primary); color: #fff; border: none; padding: 8px 20px; cursor: pointer; font-size: 14px; }

/* Category Navigation (旧版兼容) */
.cat-nav { background: var(--primary); }
.cat-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; }
.cat-nav a { color: rgba(255,255,255,0.85); padding: 10px 14px; font-size: 13px; display: block; transition: all .2s; white-space: nowrap; }
.cat-nav a:hover, .cat-nav a.active { color: #fff; background: rgba(255,255,255,0.15); }

/* ========================================
   FOOTER STYLES
   ======================================== */
.site-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
  margin-top: 60px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #764ba2, var(--accent));
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand {
  padding-bottom: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #764ba2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.footer-site-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer-desc { font-size: 13px; margin: 12px 0; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-contact { 
  display: flex; 
  align-items: center; 
  gap: 10px;
  font-size: 13px; 
  margin: 10px 0; 
  color: rgba(255,255,255,0.7); 
}
.footer-contact i { 
  width: 32px;
  height: 32px;
  background: rgba(91,106,245,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}

.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before {
  content: '›';
  font-size: 16px;
  color: var(--primary);
  transition: transform .2s;
}
.footer-links a:hover { 
  color: #fff;
  padding-left: 4px;
}
.footer-links a:hover::before {
  transform: translateX(3px);
}

/* 底部版权区域 */
.footer-bottom {
  margin-top: 40px;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-copyright p {
  margin-bottom: 8px;
}
.footer-copyright .footer-bottom-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.icp-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all .3s;
  font-size: 12px;
}
.icp-link:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-1px);
}
.icp-link i {
  font-size: 11px;
}
.footer-company {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* 分类标签悬浮效果 */
.cat-tag:hover {
  background: linear-gradient(135deg, var(--primary), #764ba2) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91,106,245,0.3);
}
.cat-tag:hover i {
  color: #fff !important;
}

/* 分类信息卡片增强 */
.category-info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .2s;
}
.category-info-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(91,106,245,0.15);
  transform: translateY(-2px);
}
.category-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(91,106,245,0.05), rgba(118,75,162,0.05));
  border-bottom: 1px solid var(--border);
}
.category-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.category-info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.category-info-more {
  font-size: 12px;
  color: var(--text-light);
  transition: color .2s;
}
.category-info-more:hover {
  color: var(--primary);
}

/* 新分类区块样式 */
.category-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all .3s;
}
.category-section:hover {
  box-shadow: 0 4px 20px rgba(91,106,245,0.12);
  transform: translateY(-2px);
}
.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(91,106,245,0.06), rgba(118,75,162,0.06));
  border-bottom: 1px solid var(--border);
}
.category-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(91,106,245,0.3);
}
.category-section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(91,106,245,0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.category-section-more:hover {
  background: var(--primary);
  color: #fff;
}
.category-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.category-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.category-item:hover {
  background: rgba(91,106,245,0.04);
}
.category-item-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f8fafc;
}
.category-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.category-item:hover .category-item-img img {
  transform: scale(1.08);
}
.category-item-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 28px;
}
.category-item-content {
  padding: 12px;
}
.category-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.category-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-light);
}
.category-item-meta span {
  display: inline-flex;
  align-items: center;
}
.category-item-meta i {
  font-size: 10px;
}

/* 响应式 */
@media (max-width: 992px) {
  .category-section-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .category-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .category-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 快捷分类导航 */
.quick-nav-section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: all .25s;
}
.quick-nav-item:hover {
  background: linear-gradient(135deg, var(--primary), #764ba2);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(91,106,245,0.25);
}
.quick-nav-item:hover .quick-nav-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.quick-nav-item:hover .quick-nav-name {
  color: #fff;
}
.quick-nav-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,106,245,0.15), rgba(118,75,162,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  transition: all .25s;
}
.quick-nav-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all .25s;
}

/* 响应式 - 快捷导航 */
@media (max-width: 992px) {
  .quick-nav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 576px) {
  .quick-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-nav-item {
    padding: 12px 8px;
  }
  .quick-nav-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .quick-nav-name {
    font-size: 12px;
  }
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 侧边栏跟随滚动 */
.sidebar-sticky {
  position: sticky;
  top: 10.5rem;
  z-index: 10;
}

/* ========================================
   CARD COMPONENTS
   ======================================== */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card-hover {
  transition: transform .2s, box-shadow .2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg) !important;
}

/* Info Card */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  transition: all .2s;
}
.info-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(91,106,245,0.1);
}
.info-card-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card-img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}
.info-card-body { flex: 1; min-width: 0; }
.info-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.info-card-title:hover { color: var(--primary); }
.info-card-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.info-card-right { text-align: right; flex-shrink: 0; }
.info-card-price { font-size: 18px; font-weight: 700; color: var(--accent); }

/* 紧凑型信息卡片 */
.info-card-compact {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .25s;
}
.info-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: rgba(91,106,245,0.3);
}
.info-card-compact .info-card-img {
  width: 100%;
  height: 130px;
  border-radius: 0;
}
.info-card-compact .info-card-img img {
  border-radius: 0;
}
.info-card-compact .info-card-body {
  padding: 12px;
}
.info-card-compact .info-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.info-card-compact .info-card-meta {
  font-size: 11px;
  gap: 8px;
}
.info-card-compact:hover .info-card-title {
  color: var(--primary);
}

/* 小标签 */
.tag-sm {
  font-size: 11px;
  padding: 2px 6px;
}

/* Category Card */
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(91,106,245,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--primary);
}
.cat-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-card-count { font-size: 12px; color: var(--text-light); }

/* Quick Link Card */
.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}
.quick-link:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(91,106,245,0.1);
}
.quick-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.quick-link-text { font-size: 14px; font-weight: 600; }

/* ========================================
   TAGS & BADGES
   ======================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-light);
}
.tag-primary { background: rgba(91,106,245,0.1); color: var(--primary); }
.tag-success { background: rgba(34,197,94,0.1); color: var(--success); }
.tag-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.tag-danger { background: rgba(239,68,68,0.1); color: var(--danger); }

/* ========================================
   BANNER STYLES
   ======================================== */
.banner-slide {
  height: 380px;
  object-fit: cover;
}
.banner-placeholder {
  height: 380px;
  background: linear-gradient(135deg, var(--primary), #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination-wrap { display: flex; justify-content: center; padding: 20px 0; }
.pagination { display: flex; gap: 4px; }
.pagination li { list-style: none; }
.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  transition: all .2s;
}
.pagination li a:hover,
.pagination li.active a {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========================================
   AUTH FORMS (Login/Register)
   ======================================== */
/* 页面包装器 - 全屏居中布局 */
.auth-page-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 20px 20px 40px;
}

/* 容器 - 双栏布局 */
.auth-container {
  display: flex;
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-height: 500px;
}

/* 左侧品牌区域 */
.auth-brand-card {
  flex: 1;
    background: linear-gradient(145deg, #1e3a5f 0%, #0f2744 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}
.auth-brand-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}
.auth-brand-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.auth-brand-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.auth-brand-desc {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 30px;
}
.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.auth-features li i {
  font-size: 18px;
  opacity: 0.9;
}

/* 右侧表单区域 */
.auth-form-card {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-header {
  text-align: center;
  margin-bottom: 30px;
}
.auth-form-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-form-header p {
  font-size: 14px;
  color: var(--text-light);
}

.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo a {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.auth-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  /*margin-bottom: 6px;*/
  color: var(--text);
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="number"],
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,106,245,0.1);
}
.auth-form textarea { min-height: 120px; resize: vertical; }
.auth-form .btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.auth-form .btn-submit:hover { background: var(--primary-dark); }
.auth-form .btn-submit:disabled { background: #94a3b8; cursor: not-allowed; }
.auth-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}
.auth-alt a { color: var(--primary); font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }

/* Input with Icon */
.input-icon {
  position: relative;
}
.input-icon input {
  padding-right: 40px !important;
}
.input-icon i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
}

/* Captcha */
.captcha-group {
  display: flex;
  gap: 10px;
}
.captcha-group input {
  flex: 1;
}
.captcha-img {
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
}

/* Agreement Check */
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-light);
}
.agreement-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}
.agreement-check a {
  color: var(--primary);
}

/* Password Strength */
.password-strength { margin-top: 8px; }
.strength-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  width: 0;
  transition: width .3s, background .3s;
}
.strength-text { font-size: 11px; margin-top: 4px; }
.strength-weak { background: var(--danger); width: 25%; }
.strength-fair { background: var(--warning); width: 50%; }
.strength-good { background: #22d3ee; width: 75%; }
.strength-strong { background: var(--success); width: 100%; }

/* Agreement Checkbox */
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin: 16px 0;
}
.agreement-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.agreement-check a { color: var(--primary); }

/* ========================================
   CONTACT PROTECTION
   ======================================== */
.contact-blur { filter: blur(4px); user-select: none; pointer-events: none; }
.contact-mask {
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  border: 1px dashed var(--primary);
}
.contact-mask-box {
  background: linear-gradient(135deg, rgba(91,106,245,0.08), rgba(118,75,162,0.08));
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text-light);
}
.auth-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.auth-action-buttons .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 10px 16px;
}
.auth-action-buttons .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.auth-action-buttons .btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}
.contact-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}
.contact-info h4 { font-size: 16px; margin-bottom: 12px; color: var(--text); }
.contact-info p { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.contact-info i { color: var(--primary); width: 20px; }

/* ========================================
   MEMBER DASHBOARD
   ======================================== */
.member-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}
.member-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: all .2s;
  margin-bottom: 4px;
}
.member-nav-item:hover,
.member-nav-item.active {
  background: rgba(91,106,245,0.1);
  color: var(--primary);
}
.member-nav-item i { font-size: 18px; width: 24px; }
.member-info-card {
  background: linear-gradient(135deg, var(--primary), #764ba2);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  margin-bottom: 20px;
}
.member-info-card h4 { font-size: 18px; margin-bottom: 4px; }
.member-info-card p { font-size: 13px; opacity: 0.8; }

/* ========================================
   INFO DETAIL PAGE
   ======================================== */
.breadcrumb-nav {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb-nav a { color: var(--text-light); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav span { margin: 0 6px; }

.info-detail-header {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.info-detail-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.info-detail-meta { font-size: 13px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 16px; }
.info-detail-meta span { display: flex; align-items: center; gap: 4px; }

.info-gallery { margin-bottom: 20px; }
.info-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.info-gallery-main img { width: 100%; height: 400px; object-fit: cover; }
.info-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.info-gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.info-gallery-thumbs img:hover,
.info-gallery-thumbs img.active { border-color: var(--primary); }

.info-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.info-content h2, .info-content h3 { margin: 16px 0 8px; }
.info-content p { margin-bottom: 12px; line-height: 1.8; }

/* Related Info */
.related-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-header {
  background: linear-gradient(135deg, var(--primary), #764ba2);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
  color: #fff;
}
.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.search-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 15px;
}
.search-form button {
  padding: 12px 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}
.search-result-meta { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 12px; }

/* ========================================
   PUBLISH PAGE
   ======================================== */
.publish-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}
.publish-form h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-header {
  background: linear-gradient(135deg, var(--primary), #764ba2);
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  margin-bottom: 24px;
}
.category-header h1 { font-size: 24px; margin-bottom: 8px; }
.category-header p { font-size: 14px; opacity: 0.8; }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  min-height: 400px;
}
.about-content h1, .about-content h2 { margin: 16px 0 12px; }
.about-content p { margin-bottom: 12px; line-height: 1.8; }

/* ========================================
   ALERT & NOTICE STYLES
   ======================================== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.alert-danger { background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); }
.alert-info { background: rgba(91,106,245,0.1); color: var(--primary); border: 1px solid rgba(91,106,245,0.2); }

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-light) !important; }
.bg-primary { background: var(--primary) !important; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { gap: 10px; }
  .site-logo { font-size: 18px; }
  .header-search { max-width: 200px; }
  .header-nav a span { display: none; }
  .cat-nav-inner { justify-content: center; }
  .cat-nav a { padding: 8px 10px; font-size: 12px; }
  .banner-slide, .banner-placeholder { height: 200px; }
  .info-gallery-main img { height: 250px; }
  .auth-card { padding: 24px; }
  .search-form { flex-direction: column; }
  
  /* 登录注册响应式 */
  .auth-page-wrapper {
    padding: 15px 15px 30px;
    min-height: auto;
    align-items: flex-start;
  }
  .auth-container {
    flex-direction: column;
    max-width: 420px;
    min-height: auto;
  }
  .auth-brand-card {
    padding: 30px 25px;
  }
  .auth-brand-icons {
    margin-bottom: 20px;
  }
  .auth-brand-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .auth-brand-title {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .auth-brand-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .auth-features li {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .auth-form-card {
    padding: 30px 25px;
  }
  .auth-form-header h2 {
    font-size: 22px;
  }
  .captcha-group {
    flex-direction: column;
  }
  .captcha-img {
    width: 100%;
    height: 42px;
  }

  /* 移动端隐藏回到顶部文字 */
  .back-to-top-btn .btt-text {
    display: none;
  }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  overflow: hidden;
}

.back-to-top-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: 14px;
  pointer-events: none;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.back-to-top-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.back-to-top-btn i {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.back-to-top-btn .btt-text {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-top: 2px;
}

.back-to-top-btn:hover .btt-text {
  opacity: 1;
  transform: translateY(0);
}

/* 滚动进度指示器 */
.back-to-top-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(255,255,255,0.15);
  border-radius: 14px 14px 0 0;
  transition: height 0.1s ease;
  pointer-events: none;
}
