/* ========================================
   品达环球 - 主样式文件
   Pinda Global - Main Stylesheet
   ======================================== */

/* CSS Variables - 全局变量 */
:root {
  --primary-green: #00E6B8;
  --secondary-green: #00D4AA;
  --accent-green: #1DE9B6;
  --light-green: #7FFFD4;
  --dark-green: #00B894;
  --primary-blue: #0066FF;
  --primary-color: #00D4AA;
  --text-dark: #1a1a2e;
  --gradient-main: linear-gradient(135deg, #00E6B8 0%, #00D4AA 30%, #1DE9B6 70%, #7FFFD4 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0, 230, 184, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 230, 184, 0.15) 0%, rgba(29, 233, 182, 0.08) 100%);
  --glass-bg: rgba(0, 230, 184, 0.08);
  --glass-border: rgba(0, 230, 184, 0.25);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 50px rgba(0, 230, 184, 0.4);
  --shadow-glow-strong: 0 0 80px rgba(0, 230, 184, 0.6);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter', 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #0A1A15 0%, #0d2818 25%, #0A1628 50%, #0d1f2d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 230, 184, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(29, 233, 182, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Spacing */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 230, 184, 0.4));
}

.section-title p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ========================================
   Navigation Bar - 导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  z-index: 9999;
  transition: var(--transition);
}

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

/* 滚动后导航栏文字颜色调整 */
.navbar.scrolled .nav-menu a {
  color: var(--text-dark);
}

.navbar.scrolled .nav-menu a.active {
  color: var(--primary-color);
}

.navbar.scrolled .lang-btn {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.navbar.scrolled .lang-btn:hover,
.navbar.scrolled .lang-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 230, 184, 0.8));
  animation: logoGlow 2.5s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(0, 230, 184, 0.6)) brightness(1); 
  }
  50% { 
    filter: drop-shadow(0 0 40px rgba(0, 230, 184, 1)) brightness(1.2); 
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.lang-btn {
  padding: 5px 12px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ========================================
   Hero Section - Banner区域
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-primary);
  max-width: 1000px;
  padding: 0 20px;
}

/* Hero Badge */
.hero-badge {
  display: inline-block;
  padding: 10px 25px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(0, 230, 184, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
}

.hero-badge i {
  margin-right: 8px;
  animation: leafRotate 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 230, 184, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 30px rgba(0, 230, 184, 0.5);
    transform: scale(1.05);
  }
}

@keyframes leafRotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease infinite, titlePulse 3s ease-in-out infinite;
  background-size: 300% 300%;
  filter: drop-shadow(0 0 30px rgba(0, 230, 184, 0.5));
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes titlePulse {
  0%, 100% { 
    filter: drop-shadow(0 0 30px rgba(0, 230, 184, 0.5));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 50px rgba(0, 230, 184, 0.8));
    transform: scale(1.02);
  }
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.8;
  font-weight: 500;
}

/* Hero Tags */
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: default;
}

.hero-tag i {
  color: var(--primary-green);
  font-size: 16px;
}

.hero-tag:hover {
  background: rgba(0, 230, 184, 0.15);
  border-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 230, 184, 0.3);
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-cta-secondary {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  box-shadow: 0 0 20px rgba(0, 230, 184, 0.2);
}

.hero-cta-secondary:hover {
  background: rgba(0, 230, 184, 0.1);
  color: var(--text-primary);
  box-shadow: 0 0 30px rgba(0, 230, 184, 0.4);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
}

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

.stat-number {
  font-size: 48px;
  font-weight: bold;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(0, 230, 184, 0.6));
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.hero-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-main);
  color: #0A1A15;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 
    0 4px 20px rgba(0, 230, 184, 0.5), 
    0 0 40px rgba(0, 230, 184, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 230, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-cta:hover::before {
  width: 300px;
  height: 300px;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 30px rgba(0, 230, 184, 0.7), 
    0 0 60px rgba(0, 230, 184, 0.5),
    0 0 100px rgba(0, 230, 184, 0.3);
  border-color: var(--primary-green);
}

/* ========================================
   Cards Grid - 卡片网格
   ======================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow), var(--shadow-glass);
  border-color: var(--primary-green);
}

.card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(0, 230, 184, 0.8));
  animation: iconFloat 3s ease-in-out infinite, iconGlow 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes iconGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 15px rgba(0, 230, 184, 0.6));
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(0, 230, 184, 1));
  }
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================
   Service Cards - 业务卡片
   ======================================== */
.service-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: var(--gradient-1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.service-card:hover {
  transform: scale(1.02);
}

/* ========================================
   Case Cards - 案例卡片
   ======================================== */
.case-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.case-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
}

.case-content {
  padding: 25px;
}

.case-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.case-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-secondary);
}

.case-result {
  font-size: 32px;
  font-weight: bold;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
  filter: drop-shadow(0 0 15px rgba(0, 230, 184, 0.6));
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 15px rgba(0, 230, 184, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(0, 230, 184, 0.9));
  }
}

/* ========================================
   Partner Logos - 合作伙伴Logo
   ======================================== */
.partners-section {
  background: var(--light-bg);
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.partner-logo {
  width: 120px;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
  filter: grayscale(100%) brightness(0.8);
}

.partner-logo:hover {
  filter: grayscale(0%) brightness(1.2);
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-glow), var(--shadow-glass);
  border-color: var(--primary-green);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ========================================
   Timeline - 时间轴
   ======================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--gradient-1);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  top: 0;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-year {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* ========================================
   Contact Form - 联系表单
   ======================================== */
.contact-section {
  background: var(--light-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  padding: 40px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  font-size: 24px;
  color: var(--primary-color);
  min-width: 30px;
}

.contact-form {
  padding: 40px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient-1);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
}

/* ========================================
   Footer - 页脚
   ======================================== */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  display: block;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Utility Classes - 工具类
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.hidden { display: none; }

/* Gradient Text */
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
