/* 思动族谱 - 公司主页样式 */

:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e6f4f2;
  --gold: #c08a2b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e6e4de;
  --bg: #f7f6f2;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 68px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.navbar.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }

.nav-inner {
  max-width: 1160px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--brand-dark); }
.brand .logo { font-size: 26px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #4b5563; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.enter {
  color: #fff;
  background: var(--brand);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .28);
}
.nav-links a.enter:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle { display: none; font-size: 24px; color: var(--brand-dark); cursor: pointer; background: none; border: none; }

/* ===== Hero ===== */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(15, 118, 110, .12), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, rgba(192, 138, 43, .10), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 900; letter-spacing: 1px; color: #12312d; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin-top: 20px; font-size: 18px; color: #4b5563; max-width: 560px; }
.hero .taglist { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .taglist span {
  font-size: 13px; color: var(--brand-dark); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(15, 118, 110, .3); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: #cfe3df; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); }

.hero-visual {
  background: linear-gradient(160deg, #ffffff, #eef6f4);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-visual .big { font-size: 96px; line-height: 1; }
.hero-visual p { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ===== 通用 section ===== */
section { scroll-margin-top: 84px; }
.section { padding: 84px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.section-head h2 { font-size: 32px; font-weight: 800; color: #12312d; margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ===== 产品功能卡片 ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 6px 20px rgba(15, 23, 42, .05); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: #12312d; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* App / 小程序 对照 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.compare .col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.compare .col h3 { font-size: 18px; color: var(--brand-dark); margin-bottom: 6px; }
.compare .col .role { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.compare .col ul { list-style: none; }
.compare .col li { font-size: 14.5px; color: #4b5563; padding-left: 20px; position: relative; margin-bottom: 8px; }
.compare .col li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ===== 公司简介 ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-text p { color: #4b5563; margin-bottom: 16px; }
.about-text .slogan {
  margin-top: 24px; padding: 18px 22px; border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 0 12px 12px 0; color: var(--brand-dark); font-weight: 600;
}
.about-facts { display: grid; gap: 16px; }
.fact { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.fact .n { font-size: 26px; }
.fact h4 { font-size: 15px; color: #12312d; margin-bottom: 2px; }
.fact p { font-size: 13.5px; color: var(--muted); }

/* ===== 帮助步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16.5px; color: #12312d; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===== FAQ 手风琴 ===== */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; font-weight: 600; color: #12312d; font-size: 16px;
}
.faq-q:hover { background: #fafafa; }
.faq-q .arrow { transition: transform .25s; color: var(--brand); font-size: 14px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 22px; color: #4b5563; font-size: 15px; white-space: pre-wrap; }
.faq-item.open .faq-a { display: block; }
.faq-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ===== 下载 ===== */
.download {
  background: linear-gradient(160deg, #0f766e, #115e59);
  color: #fff; border-radius: 26px; padding: 56px 40px; text-align: center;
  box-shadow: 0 20px 50px rgba(15, 118, 110, .3);
}
.download h2 { font-size: 30px; font-weight: 800; }
.download p { margin-top: 12px; color: #d6efe9; }
.download .btn-light {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--brand-dark); padding: 16px 34px; border-radius: 999px;
  font-size: 17px; font-weight: 700; box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
  transition: transform .2s;
}
.download .btn-light:hover { transform: translateY(-2px); }
.download .ver { margin-top: 14px; font-size: 13px; color: #b8e0d9; }
.download .hint { margin-top: 10px; font-size: 13px; color: #bfe4dd; }

/* ===== Footer ===== */
.footer { padding: 48px 0 40px; background: #fff; border-top: 1px solid var(--line); }
.footer .top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .brand { color: var(--brand-dark); }
.footer .links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer .links a { color: var(--muted); font-size: 14px; }
.footer .links a:hover { color: var(--brand); }
.footer .copy { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: #9ca3af; font-size: 13px; text-align: center; }
.footer .copy a { color: #9ca3af; }
.footer .copy a:hover { color: var(--brand); }
.footer .copy .sep { margin: 0 8px; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero { padding: 120px 0 70px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { order: -1; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 14px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .1);
  }
  .nav-links.open a { padding: 11px 6px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 25px; }
  .grid-3, .grid-2, .compare, .steps { grid-template-columns: 1fr; }
  .download { padding: 40px 22px; }
}
