:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-hover: #1d4ed8;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
  --gradient-card: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo:hover {
  transform: scale(1.05);
  background-color: var(--bg-secondary);
}

.nav-logo-img {
  height: 30px;
  width: auto;
  transition: all 0.3s ease;
  display: block;
}

.nav-logo-text {
  display: inline-block;
}


.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-6);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 70%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  padding-top: calc(var(--space-20) + 70px);
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -80px;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 10%;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  animation: float 3s ease-in-out infinite;
}

.hero-badge-text {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  letter-spacing: 0.01em;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-10);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-inner);
}

.hero-cta {
  margin-top: var(--space-8);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
  z-index: -1;
}

.cta-button:hover::before {
  width: 100%;
}

.cta-button:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(2px);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

main {
  padding-top: 0;
}

.services-section {
  padding: var(--space-24) var(--space-6);
  background: var(--bg-secondary);
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--space-4);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-16);
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-card:hover .service-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
  color: white;
  box-shadow: var(--shadow-lg);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.service-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--space-4);
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: var(--space-6);
  min-height: 3em;
}

.service-status {
  display: flex;
  justify-content: center;
  align-items: center;
}

.status-badge {
  max-width: 100px;
  height: auto;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  background-color: var(--bg-tertiary);
  min-width: 80px;
  min-height: 16px;
  box-shadow: var(--shadow-sm);
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* 徽章加载状态样式 */
.status-badge[data-loading] {
  opacity: 0.7;
}

/* 敬请期待徽章 */
.coming-soon-badge {
  background: var(--gradient-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.coming-soon-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* 敬请期待卡片样式 */
.service-card[data-coming-soon="true"] {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
}

.service-card[data-coming-soon="true"] .service-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.service-card[data-coming-soon="true"]::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 页脚 */
footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-link {
  position: relative;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* 自定义工具提示 */
.social-link::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.social-link:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -25px;
}

.beian-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.beian-container p {
  margin: var(--space-2) 0;
  opacity: 0.8;
}

.beian-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.beian-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.police-logo {
  width: 20px;
  height: auto;
  margin-right: var(--space-2);
  vertical-align: middle;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.4);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  text-align: center;
}

.modal-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  text-align: center;
}

.modal-footer {
  display: flex;
  justify-content: center;
}

.modal-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.status-fallback {
  display: inline-block;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0;
  }
  
  .nav-container {
    padding: 0 var(--space-4);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    padding: var(--space-4) 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: var(--space-2) 0;
  }
  
  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero-section {
    padding: var(--space-16) var(--space-4);
  }
  
  .services-section {
    padding: var(--space-16) var(--space-4);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .service-card {
    padding: var(--space-6);
  }
  
  .hero-description {
    padding: var(--space-4);
  }
  
  .beian-container {
    flex-direction: column;
  }
  
  .footer-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
  
  .service-title {
    font-size: 1.25rem;
  }
  
  .cta-button {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .nav-container {
    padding: 0 var(--space-3);
  }
  
  .nav-logo-img {
    height: 24px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid .service-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.services-grid .service-card:nth-child(1) { 
  animation-delay: 0.1s; 
}

.services-grid .service-card:nth-child(2) { 
  animation-delay: 0.2s; 
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}