/* ============================================
   主样式文件 - style.css
   前沿资讯分享平台
   ============================================ */

/* CSS 变量定义 */
:root {
  --primary: #165DFF;
  --primary-light: #4080FF;
  --primary-dark: #0E42CC;
  --primary-gradient: linear-gradient(135deg, #165DFF, #4080FF);
  --secondary: #86909C;
  --success: #00B42A;
  --warning: #FF7D00;
  --danger: #F53F3F;
  --bg: #F2F3F5;
  --bg-page: #E8EAED;
  --card-bg: #FFFFFF;
  --card-bg-hover: #FAFBFC;
  --text: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --border: #E5E6EB;
  --border-light: #F2F3F5;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(22, 93, 255, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --nav-height: 60px;
  --footer-bg: #1D2129;
  --footer-text: #C9CDD4;
  --tag-bg: #E8F3FF;
  --tag-text: #165DFF;
  --code-bg: #F7F8FA;
}

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ============================================
   导航栏
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, border-color 0.3s;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar .logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(22, 93, 255, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 40px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--tag-bg);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--tag-bg);
}

.nav-search {
  position: relative;
  margin-left: auto;
  margin-right: 16px;
}

.nav-search input {
  width: 200px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
  width: 260px;
}

.nav-search .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card-bg);
}

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

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--tag-bg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-size: 18px;
}

.theme-toggle:hover {
  background: var(--tag-bg);
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* 用户菜单 */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.user-menu-trigger:hover {
  background: var(--tag-bg);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  display: none;
  z-index: 100;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s;
}

.user-dropdown a:hover {
  background: var(--tag-bg);
  color: var(--primary);
}

.user-dropdown .divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ============================================
   页面主体
   ============================================ */
.main-content {
  margin-top: var(--nav-height);
  flex: 1;
  min-height: calc(100vh - var(--nav-height) - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  padding: 32px 0;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-tertiary);
  font-size: 15px;
}

/* ============================================
   轮播图
   ============================================ */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-hover);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}

.carousel-overlay h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.carousel-overlay p {
  font-size: 15px;
  opacity: 0.9;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dots span.active {
  background: #fff;
  transform: scale(1.2);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  border: none;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.35);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* ============================================
   内容区块
   ============================================ */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon {
  font-size: 24px;
}

.section-more {
  color: var(--text-tertiary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-more:hover {
  color: var(--primary);
}

/* ============================================
   卡片
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(22, 93, 255, 0.15);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.card-badge.tech { background: var(--primary); }
.card-badge.news { background: var(--success); }
.card-badge.resource { background: var(--warning); }
.card-badge.free { background: var(--success); }
.card-badge.member { background: var(--danger); }

.card-body {
  padding: 16px;
}

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

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--primary);
}

.card-summary {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-weight: 500;
}

/* 列表样式（卡片横向） */
.list-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  margin-bottom: 16px;
}

.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.list-card .card-image {
  width: 240px;
  min-width: 240px;
  height: auto;
  min-height: 160px;
}

.list-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ============================================
   筛选栏
   ============================================ */
.filter-bar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

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

.filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.filter-tag.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.filter-sort {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ============================================
   分页
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 24px 0;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: 1px solid var(--border);
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   详情页
   ============================================ */
.article-detail {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.article-detail .article-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-detail .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-detail .article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-detail .article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.article-detail .article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.article-detail .article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.article-detail .article-content p {
  margin-bottom: 16px;
}

.article-detail .article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--tag-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-detail .article-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
}

.article-detail .article-content code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
}

.article-detail .article-content p code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.article-actions {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

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

.action-btn.liked {
  color: var(--danger);
  border-color: var(--danger);
  background: #FFF0F0;
}

.action-btn.favorited {
  color: var(--warning);
  border-color: var(--warning);
  background: #FFF7E8;
}

/* 相关推荐 */
.related-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.related-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
  text-decoration: none;
}

.related-item:hover {
  background: var(--bg);
}

.related-item img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.related-item .related-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}

.related-item .related-date {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ============================================
   表单
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}

.form-control.error {
  border-color: var(--danger);
}

.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

/* 验证码 */
.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-row input {
  flex: 1;
}

.captcha-canvas {
  width: 120px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--card-bg);
}

/* 密码强度 */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.strength-bar.weak { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

.strength-text {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-tertiary);
}

/* 表单辅助行 */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   用户中心
   ============================================ */
.user-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 32px 0;
}

.user-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.user-sidebar .user-info {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.user-sidebar .user-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 12px;
}

.user-sidebar .user-name {
  font-size: 18px;
  font-weight: 600;
}

.user-sidebar .menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 0.2s;
  margin-bottom: 4px;
  text-decoration: none;
}

.user-sidebar .menu-list a:hover {
  background: var(--tag-bg);
  color: var(--primary);
}

.user-sidebar .menu-list a.active {
  background: var(--tag-bg);
  color: var(--primary);
  font-weight: 600;
}

.user-content {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.user-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* 个人信息 */
.profile-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.profile-item {
  padding: 12px 0;
}

.profile-item .label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.profile-item .value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* 消息列表 */
.message-list .message-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all 0.2s;
}

.message-item:hover {
  border-color: var(--primary);
  background: var(--tag-bg);
}

.message-item .msg-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.message-item .msg-time {
  font-size: 13px;
  color: var(--text-tertiary);
}

.message-item .unread {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: 8px;
}

/* ============================================
   认证页布局
   ============================================ */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  font-size: 14px;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
}

.auth-links a {
  color: var(--text-tertiary);
}

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

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--footer-text);
}

.footer-links h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--footer-text);
  margin-bottom: 10px;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--footer-text);
}

/* ============================================
   标签页
   ============================================ */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.tab-item {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.tab-item:hover {
  color: var(--primary);
}

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 360px;
  max-width: 480px;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================
   404页面
   ============================================ */
.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page .error-code {
  font-size: 120px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

/* ============================================
   搜索结果
   ============================================ */
.search-results {
  padding: 12px 0;
}

.search-results h3 {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.no-results {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-tertiary);
}

.no-results .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ============================================
   通知Toast
   ============================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-hover);
  border-left: 3px solid var(--primary);
  font-size: 14px;
  color: var(--text);
  animation: slideIn 0.3s ease;
  min-width: 280px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }
