/* ==========================================================================
   厦门嘉趣信息科技有限公司 - 全局样式表与设计系统
   设计风格：现代科技、极简高雅、流畅微动效、全响应式支持
   ========================================================================== */

/* 引入 Google 字体以提升文字品质 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* HSL 调和色盘 - 科技蓝与典雅紫 */
  --primary-hue: 224;
  --secondary-hue: 262;

  --primary: hsl(var(--primary-hue), 90%, 55%);
  --primary-light: hsl(var(--primary-hue), 95%, 65%);
  --primary-dark: hsl(var(--primary-hue), 85%, 40%);

  --secondary: hsl(var(--secondary-hue), 80%, 50%);
  --secondary-light: hsl(var(--secondary-hue), 90%, 65%);

  /* 中性色 */
  --bg-main: hsl(220, 20%, 97%);
  --bg-card: hsl(0, 0%, 100%);
  --text-main: hsl(224, 25%, 12%);
  --text-muted: hsl(224, 12%, 46%);
  --border-color: hsl(224, 20%, 90%);

  /* 科技暗色组件专用 */
  --dark-bg: hsl(224, 30%, 8%);
  --dark-card: hsl(224, 25%, 12%);
  --dark-border: hsl(224, 20%, 18%);

  /* 阴影与圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(18, 28, 51, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 28, 51, 0.12);

  /* 动画 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* 布局限制 */
  --max-width: 1200px;
}

/* 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 排版系统 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

/* 顶通导航栏 (Glassmorphism 效果) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: height var(--transition-normal);
}

.navbar.scrolled .nav-container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hero 头部区块 */
.hero {
  padding: 180px 0 100px;
  background: radial-gradient(circle at 80% 20%, hsl(var(--primary-hue), 100%, 94%) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, hsl(var(--secondary-hue), 100%, 94%) 0%, transparent 50%);
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* 内容区块通用布局 */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* 卡片与网格系统 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background-color: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.25);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: bold;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 关于我们板块样式 */
.about-box {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

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

.about-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-weight: 500;
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.about-visual {
  flex: 1;
  position: relative;
}

.visual-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
}

.visual-box::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

/* 联系我们页面 */
.contact-container {
  display: flex;
  gap: 40px;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.contact-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  flex: 1.2;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

/* 独立制度与协议页面专用布局 */
.doc-layout {
  padding-top: 140px;
  padding-bottom: 100px;
  background-color: white;
}

.doc-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.doc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.doc-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.doc-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.doc-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: hsl(224, 15%, 20%);
}

.doc-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-main);
}

.doc-content h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 14px;
}

.doc-content p {
  margin-bottom: 20px;
}

.doc-content ul,
.doc-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content blockquote {
  background: var(--bg-main);
  padding: 16px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-style: italic;
}

/* 底部合规区域 */
.footer {
  background-color: var(--dark-bg);
  color: hsl(224, 10%, 70%);
  padding: 80px 0 40px;
  border-top: 1px solid var(--dark-border);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-links h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: hsl(224, 10%, 65%);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 0;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-icp a {
  color: hsl(224, 10%, 65%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-icp a:hover {
  color: white;
}

/* 响应式媒体查询 */
@media (max-width: 992px) {
  .about-box {
    flex-direction: column-reverse;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-110%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    transform: translateY(70px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   新增及升级组件的专属样式
   ========================================================================== */

/* Logo 图片样式 */
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text-full {
  display: inline;
}

.logo-text-short {
  display: none;
}


/* Hero 双栏排版 */
.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-btns {
  margin-top: 10px;
  justify-content: flex-start;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.hero-image:hover {
  transform: translateY(-5px);
}

.hero-img-element {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
  mix-blend-mode: multiply;
}

/* 我们的优势区块扩展样式 */
.advantage-card {
  border-top: 4px solid transparent;
}

.advantage-card:hover {
  border-top-color: var(--primary);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  line-height: 1;
}

/* 流程步骤模块样式 */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
  position: relative;
}

.workflow-step {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.workflow-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 20px;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 关于我们图片替换 */
.about-img-element {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.about-img-element:hover {
  transform: translateY(-5px);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .logo-text-full {
    display: none;
  }

  .logo-text-short {
    display: inline;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-btns {
    justify-content: center;
  }
}

/* 适配中等屏幕，防止公司全称与导航链接冲突 */
@media (max-width: 1200px) {
  .logo span {
    font-size: 1.15rem;
  }

  .nav-links {
    gap: 16px;
  }
}

/* ==========================================================================
   服务方案与报价（会员卡片）样式定义
   ========================================================================== */

#pricing {
  background-color: var(--bg-main);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 30px;
  position: relative;
  transition: all var(--transition-normal);
}

/* 推荐版高亮卡片 */
.pricing-card.featured {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.2);
}

/* 方案角标 */
.pricing-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--bg-main);
  color: var(--text-muted);
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.featured-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
}

.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
}

/* 价格展示 */
.price {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-bottom: 15px;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* 权益功能列表 */
.pricing-features {
  list-style: none;
  width: 100%;
  text-align: left;
  margin-bottom: 40px;
  padding-left: 0;
  flex: 1; /* 保持底部按钮对齐 */
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* 订购/咨询按钮 */
.pricing-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 0.95rem;
}