/* ============================================
   site.css — 大象导旅游整站公共样式
   配色与官网 dxdlv.com design-system.css 保持一致
   ============================================ */

/* === 基础变量（对齐官网设计系统） === */
:root {
  /* 品牌色 */
  --color-primary-dark: #00a87a;
  --color-primary: #00c49a;
  --color-primary-light: #e6f9f3;
  --color-primary-lighter: #f0fdf9;

  /* 辅助色 */
  --color-accent-blue: #3b82f6;
  --color-accent-orange: #f97316;
  --color-accent-yellow: #fbbf24;
  --color-accent-purple: #8b5cf6;
  --color-accent-red: #ef4444;

  /* 文字色 */
  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #cbd5e1;
  --text-link: #3b82f6;

  /* 背景色 */
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-muted: #f1f5f9;

  /* 边框 */
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #00c49a 0%, #00a87a 100%);
  --gradient-accent: linear-gradient(135deg, #00c49a 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);

  /* 字体 */
  --font-heading: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;

  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 4px 14px 0 rgba(0, 196, 154, 0.39);

  /* 圆角 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* 布局 */
  --nav-height: 56px;
  --max-width: 680px;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: var(--text-link);
  text-decoration: none;
}

/* === 导航栏 === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

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

.nav-logo .logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  background: var(--color-primary);
  border-radius: 6px;
  padding: 2px;
}

.nav-logo .logo-icon {
  font-size: 28px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px 3px 0 0;
}

.nav-link .nav-icon {
  font-size: 16px;
}

/* === Footer === */
.site-footer {
  background: #1a1a2e;
  padding: 24px 16px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

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

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.copyright a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* === 首页 Hero === */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: 48px 16px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 196, 154, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero-logo {
  font-size: 40px;
  margin-bottom: 8px;
}

.hero-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.8);
}

/* === 五心服务 === */
.five-hearts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.heart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  width: 90px;
  transition: all 0.25s;
}

.heart-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 196, 154, 0.5);
  transform: translateY(-2px);
}

.heart-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.heart-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

.heart-desc {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* === 全球交付一致性 === */
.global-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.promise-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}

.promise-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.hero-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 196, 154, 0.45);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

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

/* === 产品站矩阵 === */
.products-section {
  padding: 28px 16px;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.products-header {
  text-align: center;
  margin-bottom: 20px;
}

.products-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 1px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 800px;
    gap: 16px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: var(--radius-xl);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.product-card:hover {
  background: var(--color-primary-lighter);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
}

.product-card:hover .product-icon {
  box-shadow: var(--shadow-primary);
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.3;
}

.product-desc {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-align: center;
  line-height: 1.4;
}

/* === 首页统计条 === */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 16px;
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* === 首页频道区块 === */
.channel-section {
  padding: 24px 16px 0;
}

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

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

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

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

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

/* === 首页卡片网格 === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }
}

/* 象友圈预览卡片 */
.moment-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: pointer;
}

.moment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.moment-card .card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-muted);
}

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

.moment-card:hover .card-cover img {
  transform: scale(1.03);
}

.moment-card .card-body {
  padding: 10px 12px;
}

.moment-card .card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.moment-card .card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.moment-card .card-nickname {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.moment-card .card-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.moment-card .card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.moment-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* 游客说预览卡片 */
.review-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

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

.review-card .review-route {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-card .review-route .route-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-tertiary);
}

.review-card .review-quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  padding-left: 14px;
  border-left: 3px solid var(--color-primary);
}

.review-card .review-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.review-card .review-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #dcfce7;
  color: #16a34a;
}

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

.review-card .review-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-card .review-user img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card .review-detail-link {
  color: var(--color-primary);
  font-weight: 500;
}

.review-card .review-detail-link:hover {
  text-decoration: underline;
}

/* === 响应式 === */
@media (max-width: 767px) {
  .hero {
    padding: 36px 12px 40px;
  }

  .hero-title {
    font-size: 22px;
  }

  .five-hearts {
    gap: 6px;
  }

  .heart-item {
    width: 62px;
    padding: 10px 6px 8px;
  }

  .heart-icon {
    font-size: 20px;
  }

  .heart-label {
    font-size: 13px;
  }

  .heart-desc {
    font-size: 9px;
  }

  .global-promise {
    flex-direction: column;
    gap: 6px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-btn {
    width: 200px;
    justify-content: center;
  }

  .stats-bar {
    gap: 24px;
  }

  .stat-number {
    font-size: 20px;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 14px;
  }
}
