/* ============================================
   AI眼镜+AI健康戒指垂直资讯社区
   首页样式 - 按计划书视觉规范
   ============================================ */

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

body {
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ========== 顶部固定导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* Logo */
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--info-primary), var(--info-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--info-primary);
  background: rgba(37, 99, 235, 0.06);
}

.nav-link.active {
  color: var(--info-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--info-gradient);
  border-radius: 2px;
}

/* 导航右侧 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 搜索框 */
.nav-search {
  position: relative;
  width: 240px;
}

.nav-search input {
  width: 100%;
  height: 38px;
  padding: 0 16px 0 40px;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--info-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nav-search icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-light);
}

/* 用户菜单 */
.nav-user {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--info-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.nav-user:hover {
  transform: scale(1.08);
}

/* ========== 主内容区 ========== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 32px) 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

/* ========== 轮播图 ========== */
.hero-banner {
  grid-column: 1 / -1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  height: 420px;
  background: var(--bg-dark);
  margin-bottom: 16px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  padding: 0 60px;
  cursor: pointer;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(37, 99, 235, 0.4));
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.banner-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.banner-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.banner-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: var(--info-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: 25px;
  transition: all var(--transition-fast);
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 60px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.banner-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* ========== 第一板块：前沿行业资讯区 ========== */
.section-info {
  margin-bottom: 48px;
}

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

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 28px;
  background: var(--info-gradient);
  border-radius: 3px;
}

.section-more {
  font-size: 14px;
  color: var(--info-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.section-more:hover {
  color: var(--info-primary-dark);
  text-decoration: underline;
}

/* 资讯卡片 - 科技蓝风格 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--info-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--info-border);
  position: relative;
}

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

.info-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: var(--info-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.info-card-badge.review {
  background: var(--review-primary);
}

.info-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.info-card-body {
  padding: 20px;
}

.info-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.info-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
}

.info-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.info-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 第二板块：真实实测分享区（小红书UGC风格） ========== */
.section-review {
  margin-bottom: 48px;
}

/* 瀑布流布局 */
.review-masonry {
  column-count: 2;
  column-gap: 24px;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--review-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--review-border);
}

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

.review-card-img {
  width: 100%;
  display: block;
}

.review-card-body {
  padding: 16px;
}

.review-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

.review-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-author-time {
  font-size: 12px;
  color: var(--text-light);
}

.review-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* 互动栏 */
.review-card-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--review-border);
}

.review-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.review-action.liked {
  color: #ef4444;
}

/* ========== 侧边栏 ========== */
.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  height: fit-content;
}

.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--info-gradient);
  border-radius: 2px;
}

/* 热门产品榜单 */
.rank-list {
  list-style: none;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.rank-item:hover {
  background: var(--bg-secondary);
  margin: 0 -24px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
}

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-num.top1 {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

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

.rank-num.top3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.rank-num.normal {
  background: var(--bg-secondary);
  color: var(--text-light);
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-category {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* 公众号二维码 */
.wechat-qr {
  text-align: center;
  padding: 20px 0;
}

.wechat-qr-img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
}

.wechat-qr-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.wechat-qr-text strong {
  color: var(--info-primary);
}

/* ========== 全站页脚 ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #4cc9f0, #4361ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .review-masonry {
    column-count: 1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 16px;
  }

  .nav-search {
    display: none;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  .main-content {
    padding: calc(var(--nav-height) + 20px) 16px 40px;
  }

  .hero-banner {
    height: 300px;
    border-radius: var(--radius-lg);
  }

  .banner-title {
    font-size: 24px;
  }

  .banner-slide {
    padding: 0 24px;
  }

  .banner-dots {
    left: 24px;
    bottom: 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
