/* ============================================
   上海趣港网络科技有限公司 - 官网样式
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --shadow: 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 18px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 50%, #0c2d6b 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 24px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-400);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--gray-600);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(37, 99, 235, 0.08);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
}

.stat-item .stat-num span {
  color: var(--accent-light);
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--gray-50);
}

/* ============================================
   Services Overview (首页下方)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.service-icon.web { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.service-icon.mall { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.service-icon.software { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.service-icon.miniapp { background: rgba(6, 182, 212, 0.1); color: var(--accent); }
.service-icon.design { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.service-icon.brand { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   Detail Section (各业务详情)
   ============================================ */
.detail-section {
  padding: 100px 0;
}

.detail-section:nth-child(even) {
  background: var(--gray-50);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.detail-layout.reverse {
  direction: rtl;
}

.detail-layout.reverse > * {
  direction: ltr;
}

.detail-info .section-tag {
  margin-bottom: 16px;
}

.detail-info h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.detail-info > p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.detail-feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.detail-feature-check svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.detail-feature-item div h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.detail-feature-item div p {
  font-size: 14px;
  color: var(--text-light);
}

.detail-visual {
  position: relative;
}

.detail-mockup {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #eab308; }
.mockup-dot:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-line.short { width: 40%; }
.mockup-line.medium { width: 65%; }
.mockup-line.long { width: 85%; }
.mockup-line.accent { background: rgba(37, 99, 235, 0.3); width: 30%; }

.mockup-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.mockup-block {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark), #0c2d6b, var(--dark-light));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: var(--gray-400);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn-primary {
  padding: 16px 40px;
  font-size: 16px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--gray-300);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-400);
}

.footer-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-layout.reverse {
    direction: ltr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stats .stat-item {
    min-width: 120px;
  }

  .stat-item .stat-num {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .detail-section {
    padding: 72px 0;
  }

  .section-header h2,
  .detail-info h2 {
    font-size: 28px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}
