/* ==================== 
   橙信数科官网 - 公共样式
   ==================== */

/* CSS变量定义 */
:root {
  --brand-orange: #FF6B1A;
  --brand-orange-dark: #F56A1E;
  --brand-orange-light: #FFA726;
  --brand-orange-hover: #E05A0F;
  
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  
  --bg-white: #FFFFFF;
  --bg-light: #F9F9F9;
  --bg-footer: #f8f9fa;
  
  --border-light: #F0F0F0;
  --border-divider: #dee2e6;
  
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.1);
  
  --font-family: 'PingFang SC', 'HarmonyOS Sans', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  
  --max-width: 1200px;
  --header-height: 70px;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 通用组件 ==================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ==================== 导航栏 ==================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text .cn {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-text .en {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

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

.nav-item {
  font-size: 16px;
  color: var(--text-primary);
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--brand-orange);
}

.nav-item.active {
  color: var(--brand-orange);
  font-weight: 500;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-orange);
}

/* ==================== Banner ==================== */

.banner {
  margin-top: var(--header-height);
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

/* ==================== 主要内容区 ==================== */

.main-content {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section {
  margin-bottom: 80px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ==================== 数据指标卡片 ==================== */

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

.stat-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 8px;
}

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

/* ==================== 时间轴 ==================== */

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 120px;
  background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange-light));
  opacity: 0.1;
  border-radius: 60px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.timeline-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.timeline-date {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-orange);
  margin-bottom: 12px;
}

.timeline-content {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================== 合作伙伴卡片 ==================== */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.partner-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: box-shadow 0.3s ease;
}

.partner-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.partner-logo {
  width: 100%;
  max-width: 150px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 16px;
}

.partner-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

/* ==================== 联系我们 ==================== */

.contact-section {
  background: #F8F6F3;
  padding: 60px 0;
}

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

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.qr-code {
  width: 120px;
  height: 120px;
  background: var(--bg-white);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-label {
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  min-width: 60px;
}

.contact-value {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-value a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: var(--brand-orange);
}

/* ==================== 页脚 ==================== */

.footer {
  background-color: var(--bg-footer);
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.5;
}

.footer-divider {
  color: var(--border-divider);
  margin: 0 8px;
}

.footer-police {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-police:hover {
  color: var(--brand-orange);
}

.footer-police-icon {
  width: 16px;
  height: 16px;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    height: 60px;
  }
  
  .banner {
    height: 300px;
  }
  
  .nav {
    display: none;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 36px;
  }
  
  .section-desc {
    font-size: 14px;
  }
}

/* ==================== 动态效果 ==================== */

/* 粒子背景 */
.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--brand-orange);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 15s infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

/* Logo脉冲动画 */
.logo-icon {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(255, 107, 26, 0.1);
  }
}

/* 标题渐变动画 */
.section-title {
  background: linear-gradient(90deg, var(--text-primary), var(--brand-orange), var(--text-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* 数字跳动效果 */
.stat-number {
  display: inline-block;
  animation: number-bounce 0.6s ease-out;
}

@keyframes number-bounce {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 数据卡片悬浮光晕 */
.stat-item {
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(255, 107, 26, 0.1),
    transparent 30%
  );
  animation: rotate-light 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-item:hover::before {
  opacity: 1;
}

@keyframes rotate-light {
  100% {
    transform: rotate(360deg);
  }
}

/* 时间轴卡片波浪效果 */
.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange-dark), var(--brand-orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.timeline-card:hover::after {
  transform: scaleX(1);
}

/* 合作伙伴卡片3D翻转 */
.partner-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.partner-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 右侧Logo浮动动画 */
.logo-circle {
  animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* 滚动渐入动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 左右交替渐入 */
.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 缩放渐入 */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Banner波浪效果 */
.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23F9F9F9' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  animation: wave-move 10s ease-in-out infinite;
}

@keyframes wave-move {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}

/* 打字机效果 */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--brand-orange);
  white-space: nowrap;
  animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
  width: 0;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--brand-orange);
  }
}

/* 服务成果卡片呼吸效果 */
.service-result-card {
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow: 0 8px 24px rgba(255, 107, 26, 0.15);
  }
}

/* 按钮光效扫过 */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 联系方式图标弹跳 */
.contact-icon-bounce {
  animation: icon-bounce 2s ease infinite;
}

@keyframes icon-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-5px);
  }
}

/* 页脚悬浮线条 - 已禁用 */
