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

:root {
  --blue: #1a6fff;
  --blue-dark: #0d47a1;
  --blue-light: #42a5f5;
  --white: #ffffff;
  --gray-bg: #f5f7fa;
  --gray-border: #e8ecf1;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(26, 111, 255, 0.15);
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans CN", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 80px 0; }
.section-gray { background: var(--gray-bg); }

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--gray-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
}

.logo-image {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: rgba(26, 111, 255, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== Banner ========== */
.banner {
  position: relative;
  margin-top: 68px;
  height: 520px;
  overflow: hidden;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.banner-content {
  text-align: center;
  color: var(--white);
}

.banner-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

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

.dot.active { background: var(--white); width: 28px; border-radius: 5px; }

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.banner-prev { left: 24px; }
.banner-next { right: 24px; }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

/* ========== Section Title ========== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}

.title-line {
  width: 50px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ========== Cards ========== */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  padding: 36px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
}

.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== Highlights ========== */
.highlight-item {
  text-align: center;
  padding: 28px 16px;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
}

.highlight-icon svg { width: 100%; height: 100%; }

.highlight-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text);
}

.highlight-item p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-block {
  background: var(--gray-bg);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}

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

.about-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.about-icon svg { width: 100%; height: 100%; }

.about-block h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--blue);
}

.about-block p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.8;
}

/* ========== Business Detail ========== */
.business-list { display: flex; flex-direction: column; gap: 60px; }

.business-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.business-item.reverse { direction: rtl; }
.business-item.reverse > * { direction: ltr; }

.business-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

/* Mockup: Phone */
.phone-mockup {
  width: 160px;
  padding: 12px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}

.phone-screen {
  background: var(--gray-bg);
  border-radius: 14px;
  padding: 14px 10px;
  min-height: 200px;
}

.mock-header {
  height: 10px;
  background: var(--blue);
  border-radius: 4px;
  margin-bottom: 12px;
}

.mock-line {
  height: 6px;
  background: var(--gray-border);
  border-radius: 3px;
  margin-bottom: 8px;
}

.mock-line.short { width: 60%; }

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.mock-box {
  height: 28px;
  background: rgba(26, 111, 255, 0.12);
  border-radius: 4px;
}

/* Mockup: Desktop */
.desktop-mockup {
  width: 320px;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 10px 16px;
  box-shadow: var(--shadow-hover);
}

.desktop-screen {
  display: flex;
  gap: 8px;
  min-height: 180px;
}

.mock-sidebar {
  width: 50px;
  background: var(--blue);
  border-radius: 6px;
}

.mock-main { flex: 1; }
.mock-main .mock-line { margin-top: 6px; }

.mock-chart {
  height: 50px;
  background: rgba(26, 111, 255, 0.08);
  border-radius: 6px;
  margin: 8px 0;
  position: relative;
  overflow: hidden;
}

.mock-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 30%;
  height: 70%;
  background: rgba(26, 111, 255, 0.2);
  border-radius: 4px 4px 0 0;
}

/* Mockup: Browser */
.browser-mockup {
  width: 340px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.browser-bar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  background: var(--gray-bg);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-border);
}

.browser-screen { padding: 12px; }

.mock-nav-bar {
  height: 8px;
  background: var(--blue);
  border-radius: 4px;
  margin-bottom: 10px;
}

.mock-hero {
  height: 40px;
  background: linear-gradient(135deg, rgba(26, 111, 255, 0.08), rgba(26, 111, 255, 0.18));
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Business Info */
.business-info h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
}

.business-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.7;
}

.business-features {
  margin-bottom: 24px;
}

.business-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.business-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* ========== Advantages ========== */
.advantage-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.advantage-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  color: var(--blue);
}

.advantage-icon svg { width: 100%; height: 100%; }

.advantage-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.advantage-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== Contact ========== */
.contact-simple {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-icon svg { width: 100%; height: 100%; }

.contact-item h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.qr-placeholder {
  text-align: center;
  margin-top: 20px;
}

.qr-box {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.qr-box svg { width: 100%; height: 100%; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.qr-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== Footer ========== */
.footer {
  background: #1a1f2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 28px;
}

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

.footer-brand h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-contact h4,
.footer-copy p {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.footer-contact p {
  font-size: 0.88rem;
}

.footer-copy { align-self: end; }
.footer-copy p { font-size: 0.8rem; opacity: 0.6; }
.footer-copy a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-copy a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26, 111, 255, 0.3);
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: rotate(90deg) scale(1.1);
}

/* ========== Animations ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .business-item,
  .business-item.reverse { grid-template-columns: 1fr; direction: ltr; }
  .business-visual { min-height: 200px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { align-self: auto; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .nav.open { transform: translateY(0); }

  .nav-toggle { display: flex; }

  .banner { height: 380px; }

  .banner-content h1 { font-size: 1.6rem; }
  .banner-content p { font-size: 0.95rem; }

  .banner-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
  .banner-prev { left: 12px; }
  .banner-next { right: 12px; }

  .section { padding: 50px 0; }

  .cards-3,
  .cards-4 { grid-template-columns: 1fr; }

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

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

  .business-visual { min-height: 180px; }

  .phone-mockup { width: 130px; }
  .desktop-mockup { width: 260px; }
  .browser-mockup { width: 280px; }
}

@media (max-width: 480px) {
  .banner { height: 320px; margin-top: 60px; }
  .banner-content h1 { font-size: 1.3rem; letter-spacing: 1px; }
  .banner-content p { font-size: 0.85rem; margin-bottom: 20px; }
  .btn { padding: 10px 24px; font-size: 0.88rem; }

  .header-inner { height: 60px; }
  .nav { top: 60px; }

  .section { padding: 36px 0; }
  .container { padding: 0 16px; }

  .contact-phone { font-size: 1.2rem; }
}
