/* ============================================
   东方福慧社 - 通用组件
   ============================================ */

/* === 导航 === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-4) 0;
  background: rgba(245, 242, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}
.nav.scrolled {
  background: rgba(245, 242, 234, 0.95);
  border-bottom-color: var(--border-light);
  padding: var(--sp-3) 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.nav-logo { display: flex; align-items: center; gap: var(--sp-3); }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) 0;
  transition: color var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--color-blaze); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-blaze);
}
.nav-cta { margin-left: var(--sp-4); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--t-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--sp-4);
    padding: var(--sp-6);
    background: var(--bg-page);
    border-top: 1px solid var(--border-light);
    transform: translateY(-200%);
    transition: transform var(--t-base);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--color-blaze);
  color: #fff;
  box-shadow: 0 6px 16px rgba(224, 93, 62, 0.25);
}
.btn-primary:hover {
  background: #c94e31;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(224, 93, 62, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-page);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}
.btn-ghost:hover {
  border-color: var(--text-primary);
  background: var(--bg-page);
}
.btn-on-dark {
  background: var(--color-gold);
  color: var(--text-primary);
}
.btn-on-dark:hover {
  background: #dec196;
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: '→';
  transition: transform var(--t-fast);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* === 卡片 === */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.card-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blaze);
  letter-spacing: 0.2em;
}
.card-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* === 表格 === */
.compare {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border-light);
}
.compare-row:last-child { border-bottom: none; }
.compare-cell {
  padding: var(--sp-5) var(--sp-5);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.compare-old {
  background: var(--bg-cream, var(--bg-page));
  color: var(--text-tertiary);
  position: relative;
}
.compare-old::before {
  content: '×';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.08);
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
}
.compare-arrow {
  background: var(--bg-dark);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
}
.compare-new {
  background: var(--text-primary);
  color: var(--text-on-dark);
  position: relative;
}
.compare-new::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-blaze);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-cell { padding: var(--sp-4); font-size: 14px; }
  .compare-arrow { display: none; }
  .compare-old { border-right: 1px solid var(--border-light); }
  .compare-new::before, .compare-old::before { display: none; }
}

/* === 流程图 === */
.flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-3);
  align-items: stretch;
}
.flow-step {
  position: relative;
  padding: var(--sp-5) var(--sp-3);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 110px;
}
.flow-step::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-blaze);
  font-size: 20px;
  font-weight: 700;
  z-index: 2;
}
.flow-step:last-child::after { display: none; }
.flow-step-final {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}
.flow-step-final::after { color: var(--color-gold); }
.flow-step-num {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blaze);
  letter-spacing: 0.2em;
}
.flow-step-final .flow-step-num { color: var(--color-gold); }
.flow-step-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-step:nth-child(4)::after { display: none; }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
}

/* === 数据带 === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--color-blaze);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}

/* === 表单 === */
.form {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.form-field-full { grid-column: 1 / -1; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.form-label .req { color: var(--color-blaze); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--t-fast);
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-blaze);
  background: var(--bg-card);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; margin-top: var(--sp-4); padding: 16px; font-size: 16px; }
.form-tip { font-size: 13px; color: var(--text-tertiary); margin-top: var(--sp-3); text-align: center; }
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-4);
  background: var(--color-forest);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.form-success h3 { margin-bottom: var(--sp-3); }
.form-success p { color: var(--text-secondary); }

/* === 二维码卡片 === */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-6);
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
}
.qr-img {
  width: 200px;
  height: 200px;
  background: #fff;
  padding: var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  margin-bottom: var(--sp-4);
}
.qr-img img { width: 100%; height: 100%; }
.qr-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.qr-desc { font-size: 13px; color: var(--text-tertiary); }

/* === 标签/胶囊 === */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--color-gold);
  color: var(--text-primary);
  border-radius: var(--r-pill);
}
.tag-blaze { background: var(--color-blaze); color: #fff; }
.tag-forest { background: var(--color-forest); color: #fff; }
.tag-outline { background: transparent; border: 1px solid var(--border-medium); }

/* === Footer === */
.footer {
  background: linear-gradient(180deg, #2A2A2A 0%, #1A1A1A 100%);
  color: rgba(245, 242, 234, 0.7);
  padding: var(--sp-7) 0 var(--sp-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .nav-logo-text { color: var(--text-on-dark); margin-bottom: var(--sp-3); }
.footer-tagline { font-size: 14px; line-height: 1.7; }
.footer-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.15em;
}
.footer-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-list a { font-size: 14px; transition: color var(--t-fast); }
.footer-list a:hover { color: var(--color-blaze); }
.footer-contact-item {
  font-size: 14px;
  margin-bottom: var(--sp-2);
  display: flex;
  gap: var(--sp-2);
}
.footer-contact-item span:first-child { color: var(--color-gold); flex-shrink: 0; }
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(245, 242, 234, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 13px;
  color: rgba(245, 242, 234, 0.5);
}
.footer-bottom a { color: rgba(245, 242, 234, 0.5); }
.footer-bottom a:hover { color: var(--color-blaze); }
.footer-icp { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-icp a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === 滚动渐入 === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.in {
  opacity: 1;
  transform: translateY(0);
}

/* === 网格工具 === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === 模块 === */
.module-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--color-blaze);
  transition: height var(--t-base);
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.module-card:hover::before { height: 100%; }
.module-tag {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-blaze);
  letter-spacing: 0.2em;
  margin-bottom: var(--sp-3);
}
.module-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
.module-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-4); }
.module-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: 14px;
  color: var(--text-secondary);
}
.module-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding-left: var(--sp-3);
  position: relative;
}
.module-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--color-blaze);
  border-radius: 50%;
}