/* ============================================
   东方福慧社 - 页面专属样式
   ============================================ */

/* === Hero V8 大气版 - 社群合影背景+文字浮层 === */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: var(--sp-10) 0 var(--sp-10);
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/images/hero-community.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(245, 242, 234, 0.96) 0%,
    rgba(245, 242, 234, 0.85) 30%,
    rgba(245, 242, 234, 0.5) 55%,
    rgba(245, 242, 234, 0.15) 100%
  );
}
.hero-knot-watermark {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 1;
  color: var(--color-blaze);
  opacity: 0.04;
  pointer-events: none;
}
.hero-knot-watermark svg {
  width: 100%;
  height: 100%;
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-10);
  width: 100%;
}
.hero-text {
  flex: 1;
  max-width: 620px;
  min-width: 0;
}
.hero-title {
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-6);
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.hero-title .line {
  display: block;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-title .word.show {
  opacity: 1;
  transform: translateY(0);
}
.hero-title .word.highlight {
  color: var(--color-blaze);
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}
.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-serif);
  margin-bottom: var(--sp-7);
  line-height: 1.6;
}
.hero-btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
}
.hero-right {
  flex-shrink: 0;
  position: relative;
}
.hero-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(224, 93, 62, 0.12);
  z-index: -1;
}
.login-card {
  background: #FFFFFF;
  border: 1px solid rgba(224, 93, 62, 0.08);
  border-radius: 16px;
  padding: 40px 36px;
  width: 300px;
  box-shadow: 0 8px 40px rgba(26, 26, 26, 0.1), 0 2px 8px rgba(26, 26, 26, 0.04);
}
.login-title {
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-serif);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 28px;
}
.login-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #FAFAFA;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.login-input:focus {
  border-color: var(--color-blaze);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(224, 93, 62, 0.1);
}
.login-input::placeholder {
  color: var(--text-tertiary);
}
.login-btn {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: 1px solid var(--color-blaze);
  border-radius: 8px;
  background: transparent;
  color: var(--color-blaze);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.login-btn:hover {
  background: var(--color-blaze);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(224, 93, 62, 0.25);
}
.login-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 20px;
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: var(--sp-9); padding-bottom: var(--sp-7); }
  .hero-layout { flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
  .hero-text { max-width: 100%; }
  .hero-right { width: 100%; }
  .hero-right::before { display: none; }
  .login-card { width: 100%; max-width: 360px; margin: 0 auto; }
  .hero-knot-watermark { width: 240px; height: 240px; right: -50px; top: 30px; transform: none; }
}

/* === 二级页面 Hero === */
.page-hero {
  padding: calc(var(--sp-10) - 32px) 0 var(--sp-7);
  background: linear-gradient(180deg, var(--bg-page) 0%, rgba(216, 198, 198, 0.2) 100%);
  border-bottom: 1px solid var(--border-light);
}
.page-hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--sp-4);
  max-width: 880px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.8;
}

/* === Anchor 锚句 === */
.anchor-quote {
  text-align: center;
  padding: var(--sp-9) 0;
  background: var(--color-forest);
  color: var(--text-on-dark);
}
.anchor-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.05em;
  max-width: 880px;
  margin: 0 auto;
  line-height: 1.4;
  position: relative;
}
.anchor-quote-text::before, .anchor-quote-text::after {
  content: '"';
  color: var(--color-blaze);
  font-size: 1.4em;
  font-family: var(--font-kai);
}
.anchor-quote-sub {
  margin-top: var(--sp-5);
  font-size: 15px;
  color: rgba(245, 242, 234, 0.6);
  letter-spacing: 0.1em;
}

/* === 时间轴 === */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.timeline-step {
  padding: var(--sp-5);
  background: var(--bg-card);
  border-radius: var(--r-md);
  border-left: 4px solid var(--color-blaze);
}
.timeline-step-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blaze);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-2);
}
.timeline-step-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.timeline-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .timeline { grid-template-columns: 1fr; } }

/* === 三栏卡片（首页方法论） === */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.pillar {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-deco {
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: var(--color-gold);
  border-bottom-left-radius: 100%;
  opacity: 0.4;
}
.pillar-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blaze);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}
.pillar-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}
.pillar-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.pillar-tags {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

/* === 解决方案卡片 === */
.sol-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: all var(--t-base);
}
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-blaze); }
.sol-card-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.sol-card-tag {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blaze);
  letter-spacing: 0.2em;
  padding: 4px 10px;
  background: rgba(224, 93, 62, 0.08);
  border-radius: var(--r-pill);
}
.sol-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}
.sol-card-for {
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-page);
  border-radius: var(--r-md);
  font-size: 14px;
  border-left: 3px solid var(--color-blaze);
}
.sol-card-for strong { color: var(--text-primary); display: block; margin-bottom: 4px; font-weight: 700; }
.sol-card-for span { color: var(--text-secondary); font-size: 13px; }
.sol-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: 14px;
  color: var(--text-secondary);
}
.sol-card-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.sol-card-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 10px;
  width: 5px; height: 5px;
  background: var(--color-blaze);
  border-radius: 50%;
}
.sol-card-out {
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--border-light);
  font-size: 14px;
}
.sol-card-out strong { color: var(--color-forest); display: block; margin-bottom: 4px; font-weight: 700; }
.sol-card-out span { color: var(--text-secondary); font-size: 13px; }

/* === 关于我们 === */
.about-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-6);
  align-items: start;
  margin-bottom: var(--sp-7);
}
.about-block-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blaze);
  letter-spacing: 0.2em;
  padding-top: 8px;
}
.about-block-content { font-size: 17px; line-height: 1.9; }
.about-block-content strong { color: var(--text-primary); font-weight: 700; }
@media (max-width: 800px) {
  .about-block { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.value-item {
  padding: var(--sp-5);
  background: var(--bg-card);
  border-radius: var(--r-md);
  text-align: center;
  border: 1px solid var(--border-light);
}
.value-item-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-blaze);
  margin-bottom: var(--sp-2);
}
.value-item-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.value-item-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 800px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .value-grid { grid-template-columns: 1fr; } }

.promise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.promise-item {
  padding: var(--sp-5);
  background: var(--bg-card);
  border-radius: var(--r-md);
  border-left: 4px solid var(--color-blaze);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.promise-check {
  width: 28px; height: 28px;
  background: var(--color-blaze);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.promise-text { font-size: 15px; line-height: 1.7; }
.promise-text strong { display: block; margin-bottom: 4px; font-weight: 700; }
@media (max-width: 700px) { .promise-list { grid-template-columns: 1fr; } }

/* === 联系页布局 === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-channel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}
.channel-card {
  padding: var(--sp-5);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}
.channel-icon {
  width: 48px; height: 48px;
  background: rgba(224, 93, 62, 0.1);
  color: var(--color-blaze);
  border-radius: 50%;
  margin: 0 auto var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.channel-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.channel-desc { font-size: 13px; color: var(--text-tertiary); }
@media (max-width: 700px) { .contact-channel { grid-template-columns: 1fr; } }

/* === FAQ === */
.faq {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  padding: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
  background: transparent;
}
.faq-q:hover { background: var(--bg-page); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-blaze);
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--color-blaze); color: #fff; }
.faq-a {
  display: none;
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.88), rgba(26, 26, 26, 0.75)), url('../assets/images/community.jpg') center/cover no-repeat;
  color: var(--text-on-dark);
  padding: var(--sp-9) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224, 93, 62, 0.2), transparent 70%);
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--sp-4);
  color: var(--text-on-dark);
}
.cta-banner p {
  color: rgba(245, 242, 234, 0.75);
  font-size: 17px;
  margin-bottom: var(--sp-6);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-group { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* === 交付物清单 === */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.deliver-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--bg-page);
  border-radius: var(--r-md);
  border-left: 3px solid var(--color-blaze);
}
.deliver-icon {
  width: 32px; height: 32px;
  background: var(--color-blaze);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}
.deliver-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.deliver-desc { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 700px) { .deliver-grid { grid-template-columns: 1fr; } }

/* === 适合/不适合 === */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.fit-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
}
.fit-yes {
  background: rgba(90, 120, 104, 0.08);
  border: 1px solid rgba(90, 120, 104, 0.2);
}
.fit-no {
  background: rgba(26, 26, 26, 0.04);
  border: 1px solid var(--border-light);
}
.fit-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.fit-yes .fit-title { color: var(--color-forest); }
.fit-no .fit-title { color: var(--text-tertiary); }
.fit-list { display: flex; flex-direction: column; gap: var(--sp-2); font-size: 14px; }
.fit-list li { display: flex; align-items: flex-start; gap: var(--sp-2); line-height: 1.7; }
@media (max-width: 700px) { .fit-grid { grid-template-columns: 1fr; } }
/* ============================================
   动效优化 v2 - 让网站活起来
   ============================================ */

/* === Hero文字逐层浮现 === */
/* Hero文字无需CSS动画（避免opacity:0初始状态导致不可见），动效由JS IntersectionObserver控制 */

/* === Hero背景缓慢浮动 === */
@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* === 卡片hover上浮 === */
.pillar, .timeline-step, .deliver-card, .solution-card, .duty-card, .contact-channel {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}
.pillar:hover, .timeline-step:hover, .deliver-card:hover, .solution-card:hover, .duty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.12);
}

/* === 标签hover弹跳 === */
.tag {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tag:hover {
  transform: translateY(-3px) scale(1.05);
}

/* === 对照表hover高亮 === */
.compare-row {
  transition: background 0.3s ease;
  border-radius: var(--r-sm);
}
.compare-row:hover {
  background: rgba(224, 93, 62, 0.06);
}

/* === 流程步骤连接线动画 === */
.flow-step {
  transition: transform 0.3s ease;
}
.flow-step:hover {
  transform: translateY(-6px) scale(1.03);
}
.flow-step-final {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 93, 62, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(224, 93, 62, 0); }
}

/* === CTA Banner文字浮现 === */
/* CTA Banner文字动效由JS控制（避免CSS动画初始不可见） */

/* === 数据带数字样式增强 === */
.stat {
  transition: transform 0.3s ease;
}
.stat:hover {
  transform: scale(1.08);
}
.stat-num {
  background: linear-gradient(135deg, var(--color-blaze), #F08060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === 滚动渐入优化 === */
/* 关键：CSS默认所有元素opacity:1可见 */
/* JS可选地添加 .anim-hidden 触发淡入，失败/不支持时元素永远可见 */
.fade-in { transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in.anim-hidden { opacity: 0; transform: translateY(30px); }

/* === 导航栏增强 === */
.nav {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
}

/* === 按钮hover波纹 === */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.btn:hover::after {
  width: 300px;
  height: 300px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 93, 62, 0.3);
}

/* === 锚句引号动画 === */
.anchor-quote-text::before, .anchor-quote-text::after {
  display: inline-block;
  animation: floatQuote 3s ease-in-out infinite alternate;
}
@keyframes floatQuote {
  from { transform: translateY(0); opacity: 0.6; }
  to { transform: translateY(-6px); opacity: 1; }
}

/* === 方法论卡片渐入stagger === */
.pillar:nth-child(1) { transition-delay: 0.1s; }
.pillar:nth-child(2) { transition-delay: 0.25s; }
.pillar:nth-child(3) { transition-delay: 0.4s; }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--color-dune); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blaze); }
