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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC";
  background: linear-gradient(180deg, #f8faff, #eef2ff);
  color: #1a1a1a;
}

/* 顶部导航 */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 100px;
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 22px;
  font-weight: bold;
  background: linear-gradient(90deg, #5b6cff, #9f7aea);
  -webkit-background-clip: text;
  color: transparent;
}

.menu a {
  margin-left: 30px;
  color: #333;
  text-decoration: none;
  transition: 0.3s;
}

.menu a:hover {
  color: #5b6cff;
}

/* Hero区域 */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 150px;
  height: 680px;
  background-image: url("../images/2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 20px 0;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.3;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero span {
  background: linear-gradient(90deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-content {
  background: rgba(0, 0, 0, 0.4);
  padding: 40px 50px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero p {
  margin: 20px 0;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  font-size: 22px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  background: linear-gradient(90deg, #5b6cff, #7a88ff);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(91, 108, 255, 0.3);
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

/* 分类导航 */
.category {
  display: flex;
  gap: 20px;
  padding: 0 100px;
  margin-top: 40px;
}

.cat {
  flex: 1;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

.cat:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 卡片区域 */
.section {
  padding: 80px 100px;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
}

/* 外卖风格 - 暖橙色系 */
.card-food {
  width: 220px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid #fed7aa;
  border-radius: 24px;
  padding: 25px;
  transition: 0.3s;
  text-align: center;
}
.card-food:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(251, 146, 60, 0.3);
}
.card-food .price {
  color: #ea580c;
}
.card-food .get {
  background: linear-gradient(90deg, #fb923c, #fdba74);
}

/* 打车风格 - 蓝色系 */
.card-taxi {
  width: 220px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #bfdbfe;
  border-radius: 16px;
  padding: 25px;
  transition: 0.3s;
  text-align: center;
}
.card-taxi:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}
.card-taxi .price {
  color: #2563eb;
}
.card-taxi .get {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* 酒店风格 - 紫色系 */
.card-hotel {
  width: 220px;
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border: 2px solid #e9d5ff;
  border-radius: 30px;
  padding: 25px;
  transition: 0.3s;
  text-align: center;
}
.card-hotel:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}
.card-hotel .price {
  color: #9333ea;
}
.card-hotel .get {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* 购物风格 - 绿色系 */
.card-shopping {
  width: 220px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #bbf7d0;
  border-radius: 20px;
  padding: 25px;
  transition: 0.3s;
  text-align: center;
}
.card-shopping:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}
.card-shopping .price {
  color: #16a34a;
}
.card-shopping .get {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* 机票风格 - 青色系 */
.card-flight {
  width: 220px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #bae6fd;
  border-radius: 28px;
  padding: 25px;
  transition: 0.3s;
  text-align: center;
}
.card-flight:hover {
  transform: translateY(-10px) rotate(-2deg);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}
.card-flight .price {
  color: #0891b2;
}
.card-flight .get {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.price {
  font-size: 26px;
  font-weight: bold;
  margin: 10px 0;
}

.get {
  display: inline-block;
  padding: 8px 18px;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}
.get:hover {
  transform: scale(1.05);
}

/* CTA区域 */
.cta {
  margin: 80px 100px;
  padding: 60px;
  border-radius: 30px;
  background: linear-gradient(135deg, #5b6cff, #9f7aea);
  color: #fff;
  text-align: center;
}

/* Footer */
.footer {
  background: #2d2d2d;
  color: #ffffff;
  padding: 60px 100px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #5b6cff, #9f7aea);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #ffffff;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

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

.footer-links p {
  margin: 4px 0;
  color: #cccccc;
  font-size: 14px;
}

.footer-qrcode {
  display: flex;
  gap: 30px;
}

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

.qrcode-placeholder {
  width: 100px;
  height: 100px;
  background: #444;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.qrcode-text {
  font-size: 12px;
  color: #999;
}

.qrcode-item p {
  margin: 0;
  font-size: 14px;
  color: #cccccc;
}

/* 微信二维码弹窗 */
.wechat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.wechat-modal.active {
  display: flex;
}

.wechat-modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
}

.wechat-modal h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
}

.wechat-modal p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.wechat-qrcode {
  width: 200px;
  height: 200px;
  background: #f5f5f5;
  border-radius: 12px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wechat-qrcode img {
  width: 180px;
  height: 180px;
}

.wechat-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.wechat-hint {
  color: #999;
  font-size: 14px;
}

/* 主题切换按钮 */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-icon {
  transition: transform 0.3s ease;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 30px;
  }
  
  .hero {
    padding: 60px 40px;
    height: 500px;
  }
  
  .hero h1 {
    font-size: 42px;
  }
  
  .hero-content {
    padding: 30px 40px;
  }
  
  .category {
    padding: 0 30px;
    gap: 15px;
  }
  
  .section {
    padding: 50px 30px;
  }
  
  .footer {
    padding: 40px 30px;
  }
  
  .footer-container {
    flex-wrap: wrap;
    gap: 30px;
  }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .menu a {
    margin-left: 15px;
    font-size: 14px;
  }
  
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .hero {
    padding: 40px 20px;
    height: 400px;
    justify-content: center;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-content {
    padding: 25px 30px;
    text-align: center;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .category {
    padding: 0 20px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .cat {
    flex: none;
    min-width: calc(50% - 5px);
  }
  
  .section {
    padding: 40px 20px;
  }
  
  .cards {
    gap: 20px;
  }
  
  .card-food,
  .card-taxi,
  .card-hotel,
  .card-shopping,
  .card-flight {
    width: 100%;
    max-width: 280px;
  }
  
  .cta {
    margin: 40px 20px;
    padding: 40px 20px;
  }
  
  .footer {
    padding: 30px 20px;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: 20px;
  }
  
  .footer-links {
    margin-bottom: 20px;
  }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 480px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .menu {
    display: none;
  }
  
  .hero {
    padding: 30px 15px;
    height: 350px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero-content {
    padding: 20px;
  }
  
  .hero p {
    font-size: 16px;
    margin: 15px 0;
  }
  
  .category {
    padding: 0 15px;
  }
  
  .cat {
    min-width: 100%;
  }
  
  .section {
    padding: 30px 15px;
  }
  
  .cards {
    gap: 15px;
  }
  
  .cta {
    margin: 30px 15px;
    padding: 30px 15px;
  }
  
  .cta h2 {
    font-size: 20px;
  }
  
  .footer-qrcode {
    gap: 20px;
  }
  
  .qrcode-placeholder {
    width: 80px;
    height: 80px;
  }
}