:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #f5f5f7;
  --card-hover: #ececef;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --text-faint: #86868b;
  --accent: #0066cc;
  --radius: 24px;
  --page-width: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100vw; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 16px;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 11vh 24px 8vh;
  text-align: center;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.dim {
  color: var(--text-faint);
  font-weight: 600;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #0077ed; transform: translateY(-1px); }

/* ===== 通用 section ===== */
section { max-width: var(--page-width); margin: 0 auto; padding: 28px 24px; }
.section-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}

/* ===== 应用卡片（Apple 无框卡片风）===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px) scale(1.01);
  background: var(--card-hover);
}

.app-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
}
.app-icon svg { width: 28px; height: 28px; }
.icon-lawq { background: linear-gradient(135deg, #0066cc, #2f8cff); }
.icon-blog { background: linear-gradient(135deg, #8e8e93, #b0b0b5); }
.icon-pdf  { background: linear-gradient(135deg, #ff6b4a, #ff9d5c); }

.app-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.app-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dim);
}

.app-arrow {
  position: absolute;
  top: 32px; right: 32px;
  font-size: 20px;
  color: var(--text-faint);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.app-card:hover .app-arrow { transform: translateX(4px); color: var(--text); }

/* ===== 关于 ===== */
.about-card {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--card);
}
.about-card p {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.about-card p:last-child { margin-bottom: 0; }

/* ===== 页脚 ===== */
.footer {
  max-width: var(--page-width);
  margin: 40px auto 0;
  padding: 30px 24px 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
}
.footer-dots { opacity: 0.5; }

/* ===== 滚动渐显（Apple 风，克制）===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .app-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 7vh; }
  .nav-links { gap: 20px; }
  .about-card p { font-size: 18px; }
}
@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .brand-name { display: none; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
