/* 同城惠购官网 - 科技赋能实体商家 智启商业新未来 */
:root {
  --primary: rgb(255, 80, 0);
  --primary-dark: rgb(204, 64, 0);
  --primary-soft: rgba(255, 80, 0, 0.08);
  --accent: rgb(230, 72, 0);
  --text: #1a1a1a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --white: #fff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --header-height: 64px;
  --transition: 0.2s ease;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* 首屏 下载APP */
.hero {
  min-height: 100vh;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.hero-download .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
  flex-wrap: wrap;
}

.hero-copy {
  color: var(--white);
  text-align: left;
  flex: 1;
  min-width: 280px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hero-desc {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--white);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  color: var(--primary-dark);
}

/* 手机外框 */
.hero-phone {
  flex-shrink: 0;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform var(--transition);
}

.hero-phone:hover .phone-frame {
  transform: scale(1.02);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

/* 手机内 APP 截图轮播 */
.phone-slideshow {
  padding-bottom: 28px;
}

.phone-slideshow-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.phone-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-slideshow-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.phone-slideshow-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.phone-slideshow-dots .dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.phone-slideshow-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

/* 通用区块 */
.section {
  padding: 96px 0;
}

.section.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 500;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: 0 2px 8px rgba(255, 80, 0, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 80, 0, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-top: 24px;
}

.btn-secondary:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* 走进同城惠购 */
.intro-section {
  background: var(--bg-subtle);
}

.intro-text {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.intro-text p {
  margin-bottom: 0;
}

.intro-section .btn-primary {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.slogan-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.slogan {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 20px;
  background: var(--primary-soft);
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}

.slogan:hover {
  background: rgba(255, 80, 0, 0.15);
  color: var(--primary-dark);
}

/* 业务板块 */
.business-section {
  background: var(--bg);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.business-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.business-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.business-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.business-card p:not(.business-desc) {
  color: var(--text);
  margin-bottom: 18px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.business-tags li {
  padding: 6px 14px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.business-card:hover .business-tags li {
  background: var(--primary-soft);
  color: var(--primary);
}

.link-more {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}

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

/* 信息资讯 */
.news-section {
  background: var(--bg-subtle);
}

.news-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.news-tabs .tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.news-tabs .tab.active,
.news-tabs .tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  padding: 28px 28px 28px 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.news-item h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.5;
}

.news-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.news-section .btn-secondary {
  display: inline-flex;
  width: fit-content;
  margin: 36px auto 0;
}

/* 荣誉资质 */
.honor-section {
  background: var(--bg);
}

.honor-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 44px;
  font-size: 1rem;
  font-weight: 500;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.honor-item {
  padding: 22px 18px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.honor-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cta-section .section-title::after {
  background: rgba(255, 255, 255, 0.6);
}

/* CTA */
.cta-section {
  background: linear-gradient(152deg, rgb(255, 80, 0) 0%, rgb(220, 70, 8) 50%, rgb(200, 64, 12) 100%);
  color: var(--white);
  padding: 80px 0;
}

.cta-section .section-title {
  color: var(--white);
  margin-bottom: 0;
}

/* 页脚 */
.footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

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

.footer-col a {
  font-size: 0.9375rem;
  color: #94a3b8;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.9375rem;
}

.footer-contact,
.footer-address {
  margin-bottom: 8px;
  color: #cbd5e1;
}

.footer-copy {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 8px;
}

/* 响应式 */
@media (max-width: 992px) {
  .section {
    padding: 72px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .honor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
    gap: 16px;
  }

  .hero-download .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .phone-frame {
    width: 240px;
    height: 480px;
    border-radius: 30px;
    padding: 10px;
  }

  .phone-notch {
    width: 80px;
    height: 20px;
    border-radius: 0 0 12px 12px;
  }

  .phone-screen {
    border-radius: 22px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-title::after {
    margin-top: 12px;
  }

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

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

  .slogan-row {
    gap: 20px;
  }

  .slogan {
    padding: 6px 16px;
    font-size: 0.9375rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .cta-section {
    padding: 64px 0;
  }
}
