/*
 * FlamingoTechs - Homepage Stylesheet (Pure Code Version)
 * 100% Native Semantic Architecture - Zero WordPress/Elementor Residuals
 * Copyright (c) FlamingoTechs. All rights reserved.
 */

:root {
  --brand-purple: #7B61FF;
  --brand-pink: #f9736f;
  --dark-bg-text: #F2F2F7;
  --light-bg-title: #0D0D16;
  --color-dark: #0D0D16;
  --color-text: #4E4E5E;
  --color-bg-light: #FAFAFC;
  --color-bg-dark: #0D0D16;
  --container-max-width: 1280px;
}

html,
body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility;
}

/* =========================================
   1. 全局布局与容器规范 (Container & Layout)
   ========================================= */
.ft-site-main {
  width: 100%;
  overflow-x: hidden;
}

/* 统一 1280px 宽度规范：与 Header / Footer / 全案服务页对齐 */
.ft-container {
  width: 100%;
  max-width: var(--container-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

@media (max-width: 1360px) {
  .ft-container {
    width: min(92%, var(--container-max-width, 1280px));
  }
}

@media (max-width: 1024px) {
  .ft-container {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .ft-container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 标题样式规范 */
.ft-section-header {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ft-text-center {
  text-align: center;
  align-items: center;
}

/* 白色主题标题（深色背景） */
.ft-section-subtitle-white {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 80px 0 0 0;
}

.ft-section-title-white {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 12px 0 32px 0;
}

/* 深色主题标题（浅色背景） */
.ft-section-subtitle-dark {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: #0D0D16;
  margin: 80px 0 0 0;
}

.ft-section-title-dark {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  color: #0D0D16;
  margin: 12px 0 32px 0;
}

@media (max-width: 1024px) {
  .ft-section-subtitle-white,
  .ft-section-subtitle-dark {
    font-size: 30px;
  }
  .ft-section-title-white,
  .ft-section-title-dark {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .ft-section-subtitle-white,
  .ft-section-subtitle-dark {
    font-size: 20px;
    margin-top: 60px;
  }
  .ft-section-title-white,
  .ft-section-title-dark {
    font-size: 30px;
    margin-bottom: 20px;
  }
}

/* 底部 CTA 容器统一规范 (零下边距，防止外边距塌陷) */
.ft-section-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* =========================================
   2. 统一按钮体系 (Buttons System)
   ========================================= */
@keyframes barFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ft-standalone-container {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ft-standalone-btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  width: 200px !important;
  height: 54px !important;
  padding: 0 !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  border: none !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  background-image: radial-gradient(circle, var(--brand-pink) 0%, var(--brand-purple) 100%) !important;
  background-size: 200% auto !important;
  background-position: 0% 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 6px 12px rgba(123, 97, 255, 0.15) !important;
}

.ft-standalone-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(123, 97, 255, 0.4) !important;
  animation: barFlow 3s infinite alternate;
}

.ft-html-btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
  box-sizing: border-box;
  width: 200px !important;
  height: 54px !important;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  color: var(--brand-purple) !important;
  border: 2px solid var(--brand-purple);
  transition: all 0.3s ease;
  box-shadow: none;
}

.ft-html-btn-secondary:hover {
  background-color: rgba(123, 97, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(123, 97, 255, 0.2);
}

@media (max-width: 768px) {
  .ft-secondary-container,
  .ft-hero-btn-secondary {
    display: none !important;
  }
}

/* =========================================
   3. 核心特效与渐变系统 (Gradients & Effects)
   ========================================= */
.vertical-gradient {
  min-height: 500px;
  background: linear-gradient(
    180deg, 
    #F7F9FF 0%,
    #E1ECFF 50%,
    #C9DCFF 100%
  );
}

.hero-gradient-classic {
  width: 100%;
  min-height: 500px;
  background-color: #F8FAFC;
  background-image: linear-gradient(
    180deg, 
    #A7C0FF 0%,
    #A3D4FF 28%,
    #D0EFFF 65%,
    #F8FAFC 100%
  );
}

.hero-gradient-mesh {
  width: 100%;
  min-height: 500px;
  background-color: #F7F9FF;
  background-image: 
    radial-gradient(circle at 20% 0%, #C9DCFF 0%, transparent 60%),
    radial-gradient(circle at 80% 15%, #EBF8FF 0%, transparent 65%),
    radial-gradient(circle at 50% 50%, #F1FBFF 0%, transparent 75%),
    linear-gradient(180deg, rgba(247, 249, 255, 0) 60%, rgba(247, 249, 255, 0.8) 80%, #F7F9FF 100%);
}

.brand-gradient {
  font-weight: 700;
  background: radial-gradient(
    circle, 
    #f9736f 0%,
    #6a59ff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textShine 3s ease-in-out infinite alternate;
}

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

/* =========================================
   4. 首屏 HERO 区域 (.ft-hero-section)
   ========================================= */
.ft-hero-section {
  width: 100%;
  background-color: #FAFAFC;
  display: flow-root;
  padding-top: 10px;
  padding-bottom: 60px;
}

.ft-hero-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 600px;
}

.ft-hero-content {
  flex: 1;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-subtitle-long {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-purple, #7B61FF);
  display: inline-block;
  background: rgba(123, 97, 255, 0.1);
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
  width: fit-content;
  margin: 50px 0 20px 0;
}

.ft-hero-title {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0D0D16;
  margin: 0 0 8px 0;
  padding: 0;
  white-space: nowrap;
}

.ft-hero-subtitle {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 48px 0;
  padding: 0;
  white-space: nowrap;
}

.ft-hero-desc {
  width: 85%;
  max-width: 85%;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4E4E5E;
  margin: 0 0 40px 0;
}

.ft-hero-desc strong {
  font-weight: 400; /* 与原版 1:1 对齐，保持纯正平滑字重，语义标签不产生视觉突兀加粗 */
}

.ft-hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin: 0 0 20px 0;
}

.ft-hero-visual {
  flex: 1;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* 3D 旋转光泡组件 */
.bulb-animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  perspective: 2000px;
  overflow: hidden;
}

.stage-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  height: auto;
}

#Marketing, #Design, #Technology {
  transform-origin: 50.07% 46.06%;
  transform-box: view-box;
  will-change: transform;
  vector-effect: non-scaling-stroke;
}

#Marketing {
  animation: spinY 40s linear infinite;
}

#Design {
  animation: rotate2D 30s linear infinite;
}

#Technology {
  animation: spinY 20s linear infinite;
}

@keyframes spinY {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes rotate2D {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bulb-animation-container svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 1024px) {
  .ft-hero-content {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .hero-subtitle-long .en-content {
    display: none !important;
  }
  .hero-subtitle-long {
    font-size: 0.9rem;
    margin: 30px 0 16px 0;
  }
}

@media (max-width: 767px) {
  .ft-hero-section {
    padding-bottom: 40px;
  }
  .ft-hero-inner {
    flex-direction: column;
  }
  .ft-hero-content {
    width: 100%;
  }
  .ft-hero-title {
    font-size: 56px;
    white-space: normal;
  }
  .ft-hero-subtitle {
    font-size: 56px;
    margin-bottom: 24px;
    white-space: normal;
  }
  .ft-hero-desc {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .ft-hero-actions {
    margin-bottom: 20px;
  }
  .ft-hero-visual {
    display: none !important;
  }
}

/* =========================================
   5. 核心服务板块 (.ft-service-section)
   ========================================= */
.ft-service-section {
  width: 100%;
  background-color: #0D0D16;
  display: flow-root;
  padding-bottom: 110px; /* 确保按钮下方保持深色背景过渡 */
}

.ft-service-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 60px 0;
  width: 100%;
  box-sizing: border-box;
}

.ft-service-card {
  flex: 1 1 calc(25% - 15px);
  background-color: #FAFAFC;
  border-radius: 30px;
  padding: 24px 24px 100px 24px;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ft-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(123, 97, 255, 0.25);
}

.ft-service-card-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.ft-service-card-title {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #0D0D16;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.ft-service-card-desc {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4E4E5E;
  margin: 0 0 32px 0;
}

.ft-service-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ft-service-card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4E4E5E;
}

.ft-service-card-list .ft-check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ft-service-card-list .ft-check-icon svg {
  width: 14px;
  height: 14px;
  fill: #7B61FF;
  transition: fill 0.3s;
}

.ft-service-cta {
  margin: 0;
}

@media (max-width: 1024px) {
  .ft-service-section {
    padding-bottom: 80px;
  }
  .ft-service-card-title {
    font-size: 1.4em;
  }
  .ft-service-card-desc,
  .ft-service-card-list li {
    font-size: 1em;
  }
}

@media (max-width: 767px) {
  .ft-service-section {
    padding-bottom: 60px;
  }
  .ft-service-grid {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }
  .ft-service-card {
    flex: 1 1 100%;
    width: 100%;
    padding: 20px 20px 40px 20px;
  }
}

/* =========================================
   6. 案例展示板块 (.ft-works-section)
   ========================================= */
.ft-works-section {
  width: 100%;
  background-color: #FAFAFC;
  display: flow-root;
  padding-bottom: 90px; /* 确保浅色背景包裹按钮 */
}

.ft-works-section .ft-section-subtitle-dark {
  margin-top: 80px;
}

.ft-showcase-box {
  width: 100%;
  margin-bottom: 40px;
}

.ft-works-cta {
  margin: 0;
}

@media (max-width: 767px) {
  .ft-works-section {
    padding-bottom: 60px;
  }
  .ft-works-section .ft-section-subtitle-dark {
    margin-top: 60px;
  }
  .ft-showcase-box {
    margin-bottom: 30px;
  }
}

/* =========================================
   7. 套餐报价板块 (.ft-plans-section)
   ========================================= */
.ft-plans-section {
  width: 100%;
  background-color: #0D0D16;
  display: flow-root;
  padding-bottom: 110px; /* 确保深黑背景完整延伸到下边缘 */
}

.ft-plans-section .ft-section-subtitle-white {
  margin-top: 80px;
}

.ft-plans-box {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 40px;
}

.ft-plans-cta {
  margin: 0;
}

@media (max-width: 767px) {
  .ft-plans-section {
    padding-bottom: 60px;
  }
  .ft-plans-section .ft-section-subtitle-white {
    margin-top: 60px;
  }
  .ft-plans-box {
    margin-bottom: 30px;
  }
}

/* =========================================
   8. 常见问题手风琴 (.ft-faq-section)
   ========================================= */
.ft-faq-section {
  width: 100%;
  display: flow-root;
  padding-bottom: 90px; /* 确保渐变背景延伸覆盖按钮下方 */
}

.ft-faq-section .ft-section-title-dark {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 32px;
}

.ft-faq-list {
  max-width: 920px;
  margin: 20px auto 40px auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.ft-faq-item {
  background-color: #FAFAFC;
  border-radius: 16px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.ft-faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 0, 0, 0.05);
}

.ft-faq-item[open] {
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.15);
  border: 1px solid rgba(123, 97, 255, 0.3);
}

.ft-faq-item[open]:hover {
  transform: translateY(0);
}

.ft-faq-summary {
  padding: 20px 25px !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.ft-faq-summary::-webkit-details-marker {
  display: none;
}

/* 左侧图标方块 */
.ft-faq-icon-square {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #8662F3, #7B61FF); /* 默认回退渐变，防止未命中规则时图标不可见 */
}

.ft-faq-icon-square svg {
  width: 20px !important;
  height: 20px !important;
  fill: #ffffff;
}

.ft-faq-icon-square .icon-minus { display: none; }
.ft-faq-icon-square .icon-plus { display: block; }

.ft-faq-item[open] .ft-faq-icon-square .icon-minus { display: block; }
.ft-faq-item[open] .ft-faq-icon-square .icon-plus { display: none; }

/* 品牌色彩矩阵渐变 (支持多项扩展) */
.ft-faq-item:nth-child(1) .ft-faq-icon-square { background: linear-gradient(135deg, #F9736F, #E47087); }
.ft-faq-item:nth-child(2) .ft-faq-icon-square { background: linear-gradient(135deg, #E47087, #CF6D9F); }
.ft-faq-item:nth-child(3) .ft-faq-icon-square { background: linear-gradient(135deg, #CF6D9F, #BA6AB7); }
.ft-faq-item:nth-child(4) .ft-faq-icon-square { background: linear-gradient(135deg, #BA6AB7, #A567CF); }
.ft-faq-item:nth-child(5) .ft-faq-icon-square { background: linear-gradient(135deg, #A567CF, #9064E7); }
.ft-faq-item:nth-child(6) .ft-faq-icon-square { background: linear-gradient(135deg, #9064E7, #8662F3); }
.ft-faq-item:nth-child(7) .ft-faq-icon-square { background: linear-gradient(135deg, #8662F3, #7B61FF); }
.ft-faq-item:nth-child(8) .ft-faq-icon-square { background: linear-gradient(135deg, #7B61FF, #6340FF); }
.ft-faq-item:nth-child(9) .ft-faq-icon-square { background: linear-gradient(135deg, #6340FF, #4F28ED); }
.ft-faq-item:nth-child(10) .ft-faq-icon-square { background: linear-gradient(135deg, #4F28ED, #3D1BB5); }
.ft-faq-item:nth-child(11) .ft-faq-icon-square { background: linear-gradient(135deg, #3D1BB5, #2B0E9C); }
.ft-faq-item:nth-child(12) .ft-faq-icon-square { background: linear-gradient(135deg, #F9736F, #7B61FF); }

.ft-faq-question {
  flex-grow: 1;
  color: #4E4E5E;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* 内容区域 */
.ft-faq-answer {
  padding: 0 25px 25px 88px !important;
  color: #4E4E5E;
  line-height: 1.6;
  font-size: 1.2rem;
  font-weight: 400;
  border: none !important;
  background-color: #FAFAFC !important;
  text-align: left;
}

.ft-faq-answer p {
  margin: 0;
}

.ft-faq-answer a {
  color: #c36 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ft-faq-answer a:hover,
.ft-faq-answer a:focus {
  color: #7B61FF !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.ft-faq-cta {
  margin: 0;
}

@media (max-width: 767px) {
  .ft-faq-section {
    padding-bottom: 60px;
  }
  .ft-faq-section .ft-section-title-dark {
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .ft-faq-list {
    gap: 12px;
    margin: 20px auto;
  }
  .ft-faq-item {
    border-radius: 12px;
  }
  .ft-faq-summary {
    padding: 12px 15px !important;
  }
  .ft-faq-icon-square {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 12px;
  }
  .ft-faq-icon-square svg {
    width: 16px !important;
    height: 16px !important;
  }
  .ft-faq-question {
    font-size: 15px !important;
  }
  .ft-faq-answer {
    padding: 0 20px 20px 20px !important;
    font-size: 0.95rem !important;
  }
}

/* =========================================
   9. 咨询联系板块 (.ft-contact-section)
   ========================================= */
.ft-contact-section {
  width: 100%;
  max-width: 100%;
  background-color: #FAFAFC;
  display: flow-root;
  padding-bottom: 80px;
}

.ft-contact-section .ft-section-subtitle-dark {
  margin-top: 80px;
}

.ft-contact-box {
  width: 100%;
  margin: 0 0 20px 0;
}

@media (max-width: 767px) {
  .ft-contact-section {
    padding-bottom: 40px;
  }
  .ft-contact-section .ft-section-subtitle-dark {
    margin-top: 60px;
  }
}

/* =========================================
   10. Dark Reader 兼容与全局修复
   ========================================= */
[data-darkreader-mode] .ft-standalone-btn,
html[data-darkreader-scheme="dark"] .ft-standalone-btn {
  background-image: radial-gradient(circle, #f9736f 0%, #7B61FF 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: brightness(110%) contrast(110%) !important;
  box-shadow: 0 6px 20px rgba(123, 97, 255, 0.6) !important;
}