/* ============================================
   社群页 - 页面特有样式
   共享样式（topbar/footer/btn/section-title）在 site.css 中
   ============================================ */

/* nav active 样式 */
.nav a.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

/* 通用 Section 容器 */
.content-section {
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--card-radius);
  margin-bottom: var(--section-gap);
}

/* section-title 覆盖：居中 + 无下划线 */
.content-section .section-title {
  display: block;
  text-align: center;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}
.content-section .section-title::after {
  display: none;
}

/* section-subtitle */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

/* 按钮扩展 */
.btn.white {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  border-color: white;
}
.btn.white:hover {
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.btn.pay {
  background: var(--gradient-1);
  color: white;
  font-weight: 600;
  font-size: 18px;
  padding: 14px 36px;
  box-shadow: var(--shadow-md);
}
.btn.pay:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero */
.community-hero {
  padding: 60px 24px;
  text-align: center;
  background: var(--gradient-1);
  border-radius: var(--card-radius);
  margin-bottom: var(--section-gap);
  color: white;
}
.community-hero h1 {
  margin: 0 0 16px 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}
.community-hero p {
  margin: 0 auto 28px auto;
  font-size: clamp(16px, 2vw, 18px);
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

/* 适合谁 */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.persona-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.persona-icon { font-size: 2.2em; margin-bottom: 12px; }
.persona-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.05em;
  color: var(--primary-color);
}
.persona-card p {
  margin: 0;
  font-size: 0.9em;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 三层架构 / 四步落地 */
.deliver-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.deliver-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.deliver-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.deliver-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.deliver-card .d-icon { font-size: 2em; margin-bottom: 12px; }
.deliver-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: var(--primary-color);
}
.deliver-card p {
  margin: 0 0 12px 0;
  font-size: 0.93em;
  color: var(--text-secondary);
  line-height: 1.5;
}
.deliver-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88em;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 实战内容 */
.schedule-container {
  max-width: 900px;
  margin: 0 auto;
}
.schedule-block {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.schedule-block h3 {
  margin: 0 0 16px 0;
  font-size: 1.15em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-block h3 .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 500;
}
.tag-online { background: #dbeafe; color: #2563eb; }
.tag-offline { background: #fce7f3; color: #db2777; }
.schedule-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.schedule-item {
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: 8px;
  font-size: 0.93em;
  color: var(--text-secondary);
  line-height: 1.5;
}
.schedule-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

/* 陪跑 */
.accompany-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.accompany-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.accompany-item .ai { font-size: 1.8em; margin-bottom: 8px; }
.accompany-item h4 {
  margin: 0 0 4px 0;
  font-size: 0.95em;
  color: var(--text-primary);
}
.accompany-item p {
  margin: 0;
  font-size: 0.82em;
  color: var(--text-secondary);
}

/* 权益对比表 */
.compare-container { max-width: 800px; margin: 0 auto; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
}
.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 1em;
  font-weight: 600;
}
.compare-table th:first-child {
  background: var(--bg-light);
  color: var(--text-secondary);
  width: 30%;
}
.compare-table th:nth-child(2) {
  background: var(--gradient-1);
  color: white;
  text-align: center;
}
.compare-table th:nth-child(3) {
  background: var(--gradient-2);
  color: white;
  text-align: center;
}
.compare-table td {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.93em;
  line-height: 1.5;
  color: var(--text-secondary);
}
.compare-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
}
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) { text-align: center; }
.compare-table tr:hover td { background: rgba(99, 102, 241, 0.03); }

/* 报名流程 */
.enroll-section {
  text-align: center;
  padding: 48px 24px;
  background: var(--gradient-1);
  border-radius: var(--card-radius);
  margin-bottom: var(--section-gap);
  color: white;
}
.enroll-section h2 {
  margin: 0 0 12px 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}
.enroll-section > p {
  margin: 0 0 32px 0;
  opacity: 0.9;
  font-size: 16px;
}
.enroll-steps {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.enroll-step {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  width: 180px;
  text-align: center;
}
.enroll-step .es-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.enroll-step h4 { margin: 0 0 4px 0; font-size: 1em; }
.enroll-step p { margin: 0; font-size: 0.85em; opacity: 0.85; }

/* FAQ */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item h3 {
  margin: 0 0 8px 0;
  font-size: 1em;
  color: var(--text-primary);
}
.faq-item p {
  margin: 0;
  font-size: 0.93em;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 响应式 */
@media (max-width: 767px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav { width: 100%; justify-content: center; }
  .community-hero { padding: 40px 20px; }
  .content-section { padding: 32px 20px; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .deliver-grid-3 { grid-template-columns: 1fr; }
  .deliver-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .schedule-items { grid-template-columns: 1fr; }
  .accompany-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .enroll-steps { flex-direction: column; align-items: center; }
}
