/* 酷乐网社群介绍 — 扁平、简洁、自适应；字号贴近子比正文 */

/* 贴导航：取消 body.nav-fixed 的 88px 顶距，改由 hero 承担 */
body.coolo-community-page {
  --coolo-sq-nav-offset: 88px;
  --coolo-sq-hero-gap: 18px;
}
body.coolo-community-page.nav-fixed {
  padding-top: 0 !important;
}
body.coolo-community-page header.header {
  margin-bottom: 0 !important;
}
body.coolo-community-page .coolo-page-bleed.coolo-page-community,
body.coolo-community-page .coolo-page-community {
  margin-top: 0;
}

.coolo-page-community {
  --sq-bg: #f6f7f9;
  --sq-surface: #ffffff;
  --sq-text: #1a1d24;
  --sq-muted: #5b6472;
  --sq-line: #e8eaef;
  --sq-accent: #2f7cf6;
  --sq-accent-soft: #eaf2fe;
  --sq-ok: #12b76a;
  --sq-ok-soft: #ecfdf3;
  --sq-no: #f04438;
  --sq-no-soft: #fef3f2;
  --sq-radius: 12px;
  --sq-max: 1080px;
  --sq-body: 16px;
  --sq-body-sm: 15px;
  background: var(--sq-bg);
  color: var(--sq-text);
  font-size: var(--sq-body);
  line-height: 1.7;
  overflow: hidden;
}

.coolo-page-community a {
  color: inherit;
  text-decoration: none;
}

.coolo-sq-wrap {
  width: min(var(--sq-max), calc(100% - 40px));
  margin: 0 auto;
}

.coolo-sq-section {
  padding: 44px 0;
}

.coolo-sq-section-alt {
  background: var(--sq-surface);
}

.coolo-sq-brand {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sq-accent);
}

.coolo-sq-kicker {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sq-accent);
}

.coolo-sq-h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.coolo-sq-h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.35;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.coolo-sq-h3 {
  margin: 20px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.coolo-sq-h3 em {
  font-style: normal;
  color: var(--sq-muted);
  font-weight: 500;
  margin-left: 8px;
  font-size: 0.92em;
}

.coolo-sq-lead,
.coolo-sq-desc {
  margin: 0 0 16px;
  max-width: 46rem;
  color: var(--sq-muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.coolo-sq-desc strong {
  color: var(--sq-text);
  font-weight: 600;
}

/* Hero */
.coolo-sq-hero {
  position: relative;
  padding: 48px 0 40px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(47, 124, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--sq-bg) 100%);
}

body.coolo-community-page.nav-fixed .coolo-sq-hero {
  padding-top: calc(var(--coolo-sq-nav-offset) + var(--coolo-sq-hero-gap));
}

.coolo-sq-hero-inner {
  position: relative;
}

.coolo-sq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.coolo-sq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.coolo-sq-btn:hover {
  transform: translateY(-1px);
}

.coolo-sq-btn-primary {
  background: var(--sq-accent);
  color: #fff !important;
}

.coolo-sq-btn-primary:hover {
  background: #1f6ae8;
}

.coolo-sq-btn-ghost {
  background: transparent;
  border-color: var(--sq-line);
  color: var(--sq-text) !important;
}

.coolo-sq-btn-ghost:hover {
  border-color: var(--sq-accent);
  color: var(--sq-accent) !important;
}

.coolo-sq-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sq-muted);
  font-size: 15px;
}

.coolo-sq-hero-points li {
  position: relative;
  padding-left: 14px;
}

.coolo-sq-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sq-accent);
}

/* Truths */
.coolo-sq-truths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.coolo-sq-truth {
  padding: 24px 22px;
  background: var(--sq-surface);
  border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius);
}

.coolo-sq-num {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sq-accent);
}

.coolo-sq-truth h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.coolo-sq-truth p {
  margin: 0;
  color: var(--sq-muted);
  line-height: 1.7;
  font-size: var(--sq-body-sm);
}

/* Pains */
.coolo-sq-pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.coolo-sq-pain {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: var(--sq-radius);
  background: var(--sq-bg);
  border: 1px solid var(--sq-line);
}

.coolo-sq-pain strong {
  font-size: 1.05rem;
}

.coolo-sq-pain span {
  color: var(--sq-muted);
  font-size: var(--sq-body-sm);
  line-height: 1.6;
}

/* Checks */
.coolo-sq-checks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.coolo-sq-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--sq-surface);
  border: 1px solid var(--sq-line);
  border-radius: 10px;
  line-height: 1.65;
  font-size: var(--sq-body);
}

.coolo-sq-checks li span {
  flex-shrink: 0;
  color: var(--sq-accent);
  font-weight: 700;
  font-size: 14px;
  padding-top: 2px;
}

/* Tools */
.coolo-sq-tools {
  display: grid;
  gap: 10px;
}

.coolo-sq-tool {
  padding: 18px 20px;
  background: var(--sq-bg);
  border: 1px solid var(--sq-line);
  border-radius: 10px;
}

.coolo-sq-tool-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.coolo-sq-tool-top strong {
  font-size: 1.08rem;
}

.coolo-sq-tool-top span {
  font-size: 13px;
  color: var(--sq-accent);
  background: var(--sq-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.coolo-sq-tool-top strong a {
  color: inherit;
}

.coolo-sq-tool-top strong a:hover {
  color: var(--sq-accent);
}

.coolo-sq-tool.is-vip-free .coolo-sq-tool-top span {
  color: #9a6700;
  background: #fff6e0;
}

.coolo-sq-tool.is-free .coolo-sq-tool-top span {
  color: #027a48;
  background: #ecfdf3;
}

.coolo-sq-tool p {
  margin: 0;
  color: var(--sq-muted);
  font-size: var(--sq-body-sm);
  line-height: 1.65;
}

.coolo-sq-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.coolo-sq-tile {
  padding: 18px;
  border: 1px solid var(--sq-line);
  border-radius: 10px;
  background: var(--sq-bg);
}

.coolo-sq-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.coolo-sq-tile p {
  margin: 0;
  color: var(--sq-muted);
  font-size: var(--sq-body-sm);
  line-height: 1.6;
}

/* Boundary */
.coolo-sq-boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.coolo-sq-bound {
  padding: 24px 22px;
  border-radius: var(--sq-radius);
  border: 1px solid var(--sq-line);
}

.coolo-sq-bound-yes {
  background: var(--sq-ok-soft);
  border-color: rgba(18, 183, 106, 0.2);
}

.coolo-sq-bound-no {
  background: var(--sq-no-soft);
  border-color: rgba(240, 68, 56, 0.18);
}

.coolo-sq-bound h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.coolo-sq-bound-yes h3 { color: #027a48; }
.coolo-sq-bound-no h3 { color: #b42318; }

.coolo-sq-bound ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coolo-sq-bound li {
  position: relative;
  padding: 0 0 12px 16px;
  color: var(--sq-text);
  font-size: var(--sq-body-sm);
  line-height: 1.6;
}

.coolo-sq-bound li:last-child { padding-bottom: 0; }

.coolo-sq-bound li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.coolo-sq-bound-yes li::before { background: var(--sq-ok); }
.coolo-sq-bound-no li::before { background: var(--sq-no); }

/* Diff */
.coolo-sq-diffs {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.coolo-sq-diff {
  border: 1px solid var(--sq-line);
  border-radius: var(--sq-radius);
  overflow: hidden;
  background: var(--sq-surface);
}

.coolo-sq-diff-label {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--sq-bg);
  border-bottom: 1px solid var(--sq-line);
}

.coolo-sq-diff-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.coolo-sq-diff-cols > div {
  padding: 16px 18px;
}

.coolo-sq-diff-cols > div:first-child {
  border-right: 1px solid var(--sq-line);
  background: rgba(47, 124, 246, 0.04);
}

.coolo-sq-diff-cols em {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--sq-muted);
}

.coolo-sq-diff-cols > div:first-child em {
  color: var(--sq-accent);
}

.coolo-sq-diff-cols p {
  margin: 0;
  font-size: var(--sq-body-sm);
  line-height: 1.65;
  color: var(--sq-text);
}

/* Tracks / channels */
.coolo-sq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.coolo-sq-tags span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sq-surface);
  border: 1px solid var(--sq-line);
  font-size: 14px;
}

.coolo-sq-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.coolo-sq-channel {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--sq-line);
  background: var(--sq-surface);
}

.coolo-sq-channel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.coolo-sq-channel span {
  color: var(--sq-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Steps */
.coolo-sq-steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.coolo-sq-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--sq-bg);
  border: 1px solid var(--sq-line);
  border-radius: 10px;
}

.coolo-sq-step-n {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sq-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.coolo-sq-steps p {
  margin: 4px 0 0;
  line-height: 1.65;
  font-size: var(--sq-body);
}

/* Rules */
.coolo-sq-rules {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.coolo-sq-rules li {
  padding: 16px 18px;
  border-left: 3px solid var(--sq-accent);
  background: var(--sq-surface);
  border-radius: 0 10px 10px 0;
  line-height: 1.65;
  color: var(--sq-muted);
  font-size: var(--sq-body);
}

/* FAQ */
.coolo-sq-faq {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.coolo-sq-faq-item {
  border: 1px solid var(--sq-line);
  border-radius: 10px;
  background: var(--sq-bg);
  overflow: hidden;
}

.coolo-sq-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 650;
}

.coolo-sq-faq-q i {
  color: var(--sq-muted);
  transition: transform 0.2s ease;
}

.coolo-sq-faq-item.is-open .coolo-sq-faq-q i {
  transform: rotate(180deg);
}

.coolo-sq-faq-a {
  display: none;
  padding: 0 18px 16px;
}

.coolo-sq-faq-item.is-open .coolo-sq-faq-a {
  display: block;
}

.coolo-sq-faq-a p {
  margin: 0;
  color: var(--sq-muted);
  line-height: 1.75;
  font-size: var(--sq-body-sm);
}

/* CTA */
.coolo-sq-cta {
  padding: 52px 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(47, 124, 246, 0.14), transparent 50%),
    #101828;
  color: #f8fafc;
}

.coolo-sq-cta .coolo-sq-brand {
  color: #93c0ff;
}

.coolo-sq-cta .coolo-sq-lead {
  color: rgba(248, 250, 252, 0.72);
}

.coolo-sq-cta-inner {
  text-align: center;
}

.coolo-sq-cta-inner .coolo-sq-h2 {
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
}

.coolo-sq-cta-inner .coolo-sq-lead {
  margin-left: auto;
  margin-right: auto;
}

.coolo-sq-cta .coolo-sq-btn-primary {
  margin-top: 8px;
}

/* Reveal motion */
.coolo-sq [data-sq-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.coolo-sq [data-sq-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .coolo-sq-truths,
  .coolo-sq-pains,
  .coolo-sq-grid3 {
    grid-template-columns: 1fr;
  }

  .coolo-sq-boundary {
    grid-template-columns: 1fr;
  }

  .coolo-sq-diff-cols {
    grid-template-columns: 1fr;
  }

  .coolo-sq-diff-cols > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--sq-line);
  }
}

@media (max-width: 768px) {
  body.coolo-community-page {
    --coolo-sq-nav-offset: 70px;
    --coolo-sq-hero-gap: 20px;
  }
}

@media (max-width: 640px) {
  .coolo-page-community {
    --sq-body: 15px;
    --sq-body-sm: 14px;
  }

  .coolo-sq-wrap {
    width: calc(100% - 28px);
  }

  .coolo-sq-hero {
    padding: 40px 0 32px;
  }

  body.coolo-community-page.nav-fixed .coolo-sq-hero {
    padding-top: calc(var(--coolo-sq-nav-offset) + var(--coolo-sq-hero-gap));
  }

  .coolo-sq-section,
  .coolo-sq-cta {
    padding: 36px 0;
  }

  .coolo-sq-actions {
    flex-direction: column;
  }

  .coolo-sq-btn {
    width: 100%;
  }

  .coolo-sq-tool-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dark theme compatibility */
.dark-theme .coolo-page-community {
  --sq-bg: #12151c;
  --sq-surface: #1a1f2b;
  --sq-text: #e8eaef;
  --sq-muted: #9aa3b2;
  --sq-line: rgba(255, 255, 255, 0.08);
  --sq-accent-soft: rgba(47, 124, 246, 0.18);
  --sq-ok-soft: rgba(18, 183, 106, 0.12);
  --sq-no-soft: rgba(240, 68, 56, 0.12);
}

.dark-theme .coolo-sq-hero {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(47, 124, 246, 0.18), transparent 55%),
    linear-gradient(180deg, #161a24 0%, var(--sq-bg) 100%);
}

.dark-theme .coolo-sq-tool.is-vip-free .coolo-sq-tool-top span {
  color: #f5d78e;
  background: rgba(255, 196, 60, 0.16);
}

.dark-theme .coolo-sq-tool.is-free .coolo-sq-tool-top span {
  color: #6ce9a6;
  background: rgba(18, 183, 106, 0.16);
}
