:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #ef4444;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e5e5e5;
  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #10b981;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

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

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

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

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

/* Header - 资讯门户风格 */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 20px;
}

.logo {
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 12px;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: white;
  background: rgba(255,255,255,0.2);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-size: 13px;
  font-family: inherit;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

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

/* 轮播横幅 */
.banner-section {
  position: relative;
  margin: 20px 0;
  padding: 15px 0;
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.banner-slider {
  position: relative;
  height: 480px;
}

.banner-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.banner-item.active {
  opacity: 1;
}

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

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

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

.banner-overlay p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.25s;
}

.banner-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  width: 30px;
  border-radius: 6px;
  background: white;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.banner-prev:hover,
.banner-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.banner-prev {
  left: 15px;
}

.banner-next {
  right: 15px;
}

/* 快捷分类导航 */
.quick-categories {
  background: white;
  padding: 20px 0;
  margin-bottom: 20px;
}

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

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
}

.category-item:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.category-name {
  font-size: 14px;
  font-weight: 500;
}

/* 搜索栏 */
.search-section {
  background: white;
  padding: 20px 0;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-box select {
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  min-width: 150px;
}

.search-btn {
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* 内容主区域 */
.main-content {
  padding-bottom: 40px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-bottom: 40px;
}

.content-left {
  background: white;
  border-radius: 12px;
  padding: 24px;
}

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

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

.view-more {
  color: var(--primary);
  font-size: 14px;
}

/* 新闻列表 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.news-link {
  display: flex;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
  transform: translateX(4px);
}

.news-item:hover .news-image img {
  transform: scale(1.02);
}

.news-item:last-child {
  border-bottom: none;
}

.news-image {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-content h3 a {
  color: var(--text);
  transition: color 0.2s;
}

.news-content h3 a:hover {
  color: var(--primary);
}

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

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.news-category {
  padding: 2px 8px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
}

/* 右侧边栏 */
.content-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* 热门排行 */
.hot-ranking {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.ranking-item:hover {
  background: rgba(220, 38, 38, 0.05);
  padding-left: 8px;
  border-radius: 8px;
}

.ranking-num {
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  flex-shrink: 0;
}

.ranking-num.top1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.ranking-num.top2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: white;
}

.ranking-num.top3 {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: white;
}

.ranking-title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-views {
  font-size: 12px;
  color: var(--text-muted);
}

/* 促销盒子 */
.promo-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.promo-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.promo-box p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.promo-btn {
  display: inline-block;
  padding: 12px 40px;
  background: white;
  color: var(--primary);
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.25s;
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 分类展示区域 */
.category-showcase {
  background: white;
  border-radius: 12px;
  padding: 24px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: white;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 14px;
  font-weight: 500;
}

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

.category-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 商品卡片 */
.product-cards,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 180px;
  background: white;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-info {
  padding: 16px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-tag {
  color: var(--primary);
  font-size: 12px;
  margin-right: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.product-footer-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-category-tag {
  padding: 3px 10px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
}

.product-publisher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-date {
  font-size: 12px;
}

.card-image {
  width: 100%;
  height: 160px;
  background: white;
  overflow: hidden;
}

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

.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.card-content {
  padding: 16px;
}

.card-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}

.card-content h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content h3 a {
  color: var(--text);
}

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

.card-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 50px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer h4 {
  margin-bottom: 16px;
  color: var(--primary-light);
  font-size: 16px;
}

.footer p, .footer a {
  color: #999999;
  font-size: 14px;
  line-height: 2;
}

.footer a {
  display: block;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 13px;
  color: #666;
}

.footer-bottom a {
  display: inline;
}

/* 登录提示 */
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 13px;
  color: white;
}

.user-bar .avatar {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.user-bar a {
  color: white;
}

/* 导航下拉菜单 */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-dropdown-btn:hover {
  background: rgba(255,255,255,0.2);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  z-index: 1000;
  top: calc(100% + 8px);
  right: 0;
  padding: 8px;
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.2s;
  border-radius: 8px;
  font-size: 14px;
}

.nav-dropdown-content a:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--primary);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

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

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

.form-group label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* 认证页面 */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.auth-card {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 32px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
}

.auth-footer a {
  font-weight: 600;
  color: var(--primary);
}

/* 页面标题 */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
}

/* 商品详情 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.product-detail-image {
  background: var(--bg);
  border-radius: 12px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-detail-info h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.product-detail-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-detail-meta span {
  padding: 6px 14px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
}

.product-detail-desc {
  color: var(--text-light);
  line-height: 1.8;
}

.product-detail-desc h4 {
  color: var(--text);
  margin-bottom: 12px;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.toast.error {
  background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
}

.toast.warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

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

/* 图片上传 */
.image-upload {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.image-upload:hover {
  border-color: var(--primary);
  background: rgba(220, 38, 38, 0.03);
}

.image-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

/* 管理页面 */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 65px;
  width: 240px;
  height: calc(100vh - 65px);
  background: #1a1a1a;
  padding: 20px 0;
}

.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #999;
  transition: all 0.2s;
  font-size: 14px;
}

.admin-menu a:hover,
.admin-menu a.active {
  background: var(--primary);
  color: white;
}

.admin-main {
  margin-left: 240px;
  padding: 30px;
  min-height: calc(100vh - 65px);
  background: var(--bg);
}

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

.admin-header h2 {
  font-size: 24px;
}

.admin-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-card .number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.pending {
  background: rgba(245,158,11,0.1);
  color: #b45309;
}

.status-badge.passed {
  background: rgba(16,185,129,0.1);
  color: #047857;
}

.status-badge.rejected {
  background: rgba(239,68,68,0.1);
  color: #b91c1c;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions .btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* 法律页面 */
.legal-page {
  padding: 40px 0;
}

.legal-content {
  background: white;
  padding: 40px;
  border-radius: 16px;
}

.legal-content h2 {
  color: var(--primary);
  margin: 30px 0 16px;
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: var(--text);
  margin: 20px 0 10px;
  font-size: 16px;
}

.legal-content p {
  margin-bottom: 14px;
  text-align: justify;
  line-height: 1.8;
  color: var(--text-light);
}

.legal-content ul {
  margin: 14px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .product-cards,
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .content-layout {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    gap: 4px;
  }
  
  .nav a {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .banner-slider {
    height: 250px;
  }
  
  .banner-overlay {
    padding: 20px;
  }
  
  .banner-overlay h2 {
    font-size: 22px;
  }
  
  .banner-overlay p {
    font-size: 14px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-item {
    padding: 16px 8px;
  }
  
  .category-icon {
    font-size: 28px;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box input,
  .search-box select,
  .search-btn {
    width: 100%;
  }
  
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .product-cards,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-image {
    width: 100%;
    height: 150px;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: none;
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-cards,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logo {
    font-size: 16px;
  }
  
  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .auth-card {
    padding: 24px;
  }
}