/* ========================================
   轻享国旅 · V3.0 企业团建平台
   简约风格 · 米白 + 深棕 + 金色点缀
======================================== */

:root {
  --cream: #f8f5f0;
  --white: #ffffff;
  --brown: #2c1810;
  --brown-light: #5a3825;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --gold-dark: #b8955a;
  --gray: #888;
  --gray-light: #e8e4de;
  --text: #333;
  --text-light: #666;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 36px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --nav-bg: rgba(248,245,240,0.92);
  --footer-bg: var(--brown);
  --footer-text: rgba(255,255,255,0.85);
  --body-bg: var(--cream);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  border-bottom: none;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--nav-bg) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,169,110,0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
  width: 100%;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  /* 初始状态：白色滤镜 */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.navbar-brand .brand-text {
  display: inline-block;
  color: #ffffff;
}

.navbar-brand img[src]:not([src=""]) {
  display: inline;
}

.navbar-brand img[src]:not([src=""]) ~ .brand-text {
  display: none;
}

/* 滚动后：深色LOGO */
.navbar.scrolled .navbar-brand img {
  filter: none;
  opacity: 1;
}

.navbar.scrolled .navbar-brand .brand-text {
  color: var(--brown);
}

.navbar.scrolled .navbar-brand {
  color: var(--brown) !important;
}

.navbar:not(.scrolled) .navbar-brand {
  color: #ffffff !important;
}

.navbar-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: rgba(255,255,255,0.9) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--text-light) !important;
}

.nav-link:hover {
  color: rgba(255,255,255,0.7) !important;
}

.navbar.scrolled .nav-link:hover {
  color: var(--brown) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 24px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: var(--gold);
  color: var(--brown);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.8);
}

.navbar.scrolled .btn-outline {
  color: var(--brown);
  border-color: var(--gold);
}

.navbar.scrolled .btn-outline:hover {
  background: var(--gold);
}

/* ===== 搜索框 ===== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 12px;
  width: 200px;
  transition: all 0.3s;
}

.navbar.scrolled .search-box {
  background: rgba(0,0,0,0.05);
  border-color: var(--gray-light);
}

.search-box:focus-within {
  background: rgba(255,255,255,0.95);
  border-color: var(--gold);
  width: 280px;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.navbar.scrolled .search-icon {
  color: var(--gray);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: #fff;
  padding: 4px 8px;
  min-width: 0;
}

.navbar.scrolled .search-box input {
  color: var(--text);
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.6);
}

.navbar.scrolled .search-box input::placeholder {
  color: var(--gray);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  margin-top: 8px;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.search-suggestions.active {
  display: block;
}

.search-suggestion-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}

.search-suggestion-item:hover {
  background: var(--cream);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .mobile-toggle span {
  background: var(--text);
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 使用渐变背景作为默认 */
  background: linear-gradient(135deg, #c9a96e 0%, #8b6914 50%, #5a4a1f 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* 有Banner图片时 */
.hero.has-banner {
  background-image: inherit;
}

/* Banner图片叠加淡色遮罩 */
.hero.has-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44,24,16,0.35) 0%, rgba(44,24,16,0.2) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff;
  max-width: 700px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201,169,110,0.2);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.hero-title .highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 14px;
  border-radius: 28px;
}

.btn-secondary {
  background: var(--gold);
  color: var(--brown);
}

.btn-secondary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}

.btn-white {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-white:hover {
  background: rgba(255,255,255,0.25);
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  font-family: 'Noto Serif SC', serif;
  color: var(--gold);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
}

/* ===== 区块通用 ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201,169,110,0.1);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 16px;
  font-size: 12px;
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* ===== 服务卡片 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brown);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-price {
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

.service-price strong {
  font-size: 1.1rem;
  color: var(--brown);
}

/* ===== 供应商展示 ===== */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.supplier-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.supplier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.supplier-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.supplier-info {
  padding: 16px;
}

.supplier-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.supplier-category {
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* ===== 特色区块 ===== */
.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CTA 区块 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  color: #ffffff;
}

.cta-section .section-title {
  color: #ffffff;
}

.cta-section .section-subtitle {
  color: rgba(255,255,255,0.8);
}

/* ===== 底部 ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-qr {
  display: flex;
  gap: 16px;
}

.footer-qr-item {
  text-align: center;
}

.footer-qr-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.footer-qr-item span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.warning { border-left: 3px solid var(--gold); }
.toast.info { border-left: 3px solid #3b82f6; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .suppliers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-actions { display: none; }
  .mobile-toggle { display: flex; }
  
  .hero-title { font-size: 2rem; letter-spacing: 2px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero-stat-number { font-size: 2rem; }
  
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .suppliers-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-qr { justify-content: center; }
  
  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }
}
