/* 一灵官网 — 与 App 一致的浅色 + 青色主题，黑色 Logo，深色页脚 */
:root {
  --bg: #f8f9fa;
  --bg-white: #ffffff;
  --bg-section: #f0f2f5;
  --accent: #36d1c1;
  --accent-dark: #2bb8a9;
  --accent-soft: rgba(54, 209, 193, 0.12);
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-dim: #999999;
  --border: #e8eaed;
  --footer-bg: #2d2d2d;
  --footer-text: #e8e8e8;
  --footer-muted: #a0a0a0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

/* 导航 — 白底，黑字，青色 hover */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
  opacity: 1;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-dark);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
}

/* Hero — 浅底 + 黑色 Logo */
.hero {
  padding: 48px 0 64px;
  text-align: center;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(54, 209, 193, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(54, 209, 193, 0.4);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* 功能卡片 — App 白卡片风格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* 产品展示 — 双机位 App 截图 */
.product-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.product-screens {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-item {
  margin: 0;
  flex: 0 1 200px;
  max-width: 220px;
}

.phone-frame {
  background: var(--bg-white);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.product-visual-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 12px;
  line-height: 1.4;
}

.product-info {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-info h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.product-info p {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.product-list {
  list-style: none;
  margin-top: 16px;
}

.product-list li {
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.product-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* 流程步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-item {
  text-align: center;
  padding: 26px 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 auto 12px;
}

.step-item h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 关于 / 联系 */
.about-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.about-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.about-block p {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-card p,
.contact-card a {
  font-size: 1rem;
  color: var(--text);
}

.contact-card a {
  color: var(--accent-dark);
}

/* 法律文档 */
.legal-page {
  padding: 40px 0 72px;
  background: var(--bg-white);
  min-height: 60vh;
}

.legal-page .container {
  background: var(--bg-white);
}

.legal-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--accent-dark);
}

/* 页脚 — 深色区平衡黑色 Logo */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 32px;
  margin-top: 0;
}

.site-footer a {
  color: var(--footer-muted);
}

.site-footer a:hover {
  color: var(--accent);
  opacity: 1;
}

.site-footer .logo {
  color: var(--footer-text);
}

.site-footer .logo:hover {
  color: var(--footer-text);
}

.logo-footer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.logo-footer-wrap .logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

.footer-brand p {
  color: var(--footer-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--footer-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.9rem;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: var(--footer-muted);
}

.footer-bottom p {
  margin-bottom: 6px;
}

.footer-bottom a {
  color: var(--footer-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

#site-footer-info .contact-line a {
  color: var(--accent);
}

.icp-line {
  margin-top: 8px;
}

.highlight-box {
  background: var(--accent-soft);
  border: 1px solid rgba(54, 209, 193, 0.25);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 内页顶区 */
.page-hero {
  padding: 40px 0 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.page-hero .section-title {
  margin-bottom: 8px;
}

.page-hero .section-subtitle {
  margin-bottom: 32px;
}
