/* 
 * “个性时代”官网全局样式表 - 视觉精美升级版
 * 采用现代蓝灰色调，加入微影、微光渐变及平滑微动画，打造极致高端的企业形象
 */

:root {
  --primary-color: #1e40af;       /* 主色：深邃蓝 */
  --secondary-color: #3b82f6;     /* 辅助色：科技蓝 */
  --accent-color: #60a5fa;        /* 强调色：淡蓝 */
  --text-dark: #0f172a;           /* 标题/暗文本 */
  --text-muted: #64748b;          /* 正文/次文本 */
  --bg-light: #f8fafc;            /* 浅灰蓝色背景 */
  --bg-white: #ffffff;            /* 纯白背景 */
  --border-color: #f1f5f9;        /* 极淡边框色 */
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 20px 35px -5px rgba(59, 130, 246, 0.1), 0 10px 15px -8px rgba(59, 130, 246, 0.1);
  --transition-speed: 0.4s;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

/* 布局容器 */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部导航栏 - 磨砂毛玻璃效果 */
header {
  background-color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-speed) ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--secondary-color);
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 按钮样式 - 精致微渐变与阴影 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  filter: brightness(1.05);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--bg-white);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
  border-color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* Hero 横幅 - 动感科技深邃渐变 */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), 
              linear-gradient(135deg, #0b0f19 0%, #172554 100%);
  color: var(--bg-white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  max-width: 750px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 650px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

/* Section 通用 */
section {
  padding: 90px 0;
}

.section-bg {
  background-color: var(--bg-light);
}

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

.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 45px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* 服务网格与卡片 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-white);
  padding: 45px 35px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(59, 130, 246, 0.1);
}

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

.service-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 30px;
}

.service-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.65;
}

.service-link {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 8px;
}

/* 核心特色区域 */
.features {
  display: flex;
  align-items: center;
  gap: 60px;
}

.features-content {
  flex: 1.2;
}

.features-list {
  list-style: none;
  margin-top: 30px;
}

.features-list li {
  margin-bottom: 18px;
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 900;
  font-size: 16px;
}

/* 新增精美的插图展示容器 */
.features-image-container {
  flex: 0.8;
  position: relative;
}

.features-image-container::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  opacity: 0.15;
  z-index: 0;
}

.features-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  display: block;
}

/* 规范化开发服务流程 - 3x2 对称精美卡片 */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 强制大屏下为 3 列，避免 5+1 不对称排版 */
  gap: 60px 30px; /* 增加上下 gap 容纳悬空徽章 */
  margin-top: 70px;
}

.process-step {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px 25px 25px;
  text-align: center;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(59, 130, 246, 0.15);
}

.process-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: -62px auto 20px; /* 让数字徽章悬空在卡片顶部 */
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
  border: 4px solid var(--bg-white);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-speed) ease;
}

.process-step:hover .process-step-num {
  transform: scale(1.1);
}

/* 连接指示线（仅在 PC 端且有后续步骤时显示） */
@media (min-width: 769px) {
  /* 步骤 1 和 2 右侧连接线 */
  .process-step:nth-child(1)::after,
  .process-step:nth-child(2)::after,
  /* 步骤 4 和 5 右侧连接线 */
  .process-step:nth-child(4)::after,
  .process-step:nth-child(5)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--secondary-color);
    opacity: 0.5;
    z-index: 10;
    font-weight: bold;
    animation: slideRight 1.5s infinite ease-in-out;
  }
}

@keyframes slideRight {
  0% { transform: translate(-5px, -50%); opacity: 0.2; }
  50% { transform: translate(5px, -50%); opacity: 0.8; }
  100% { transform: translate(-5px, -50%); opacity: 0.2; }
}

.process-step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 联系我们页面 */
.contact-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

.contact-info {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: var(--bg-white);
  padding: 45px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(30, 64, 175, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 35px;
  letter-spacing: -0.5px;
}

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

.contact-info-item-icon {
  font-size: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.contact-info-item-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 4px;
}

.contact-info-item-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.contact-form-container {
  background-color: var(--bg-white);
  padding: 45px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.contact-form-container h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 35px;
  letter-spacing: -0.5px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

/* 提示反馈信息 */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.05);
}

.alert-success {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* 页脚样式 */
footer {
  background-color: #0b0f19;
  color: #64748b;
  padding: 70px 0 35px;
  border-top: 1px solid #1e293b;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links-group h4 {
  color: var(--bg-white);
  font-size: 15px;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--bg-white);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 35px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  color: #475569;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--bg-white);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .features {
    flex-direction: column;
    gap: 40px;
  }
  .features-image-container {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 75px;
  }
  
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 35px;
  }

  .contact-section-inner {
    grid-template-columns: 1fr;
  }
}
