/* redian.pro shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }
.wide { max-width: 1180px; }

/* Top nav */
.nav {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px; font-size: 0.92em;
  flex-wrap: wrap;
}
.nav .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: #1a1a1a; font-size: 1.05em;
  margin-right: 6px;
}
.nav .brand .logo {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #1d4ed8 0%, #ef4444 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85em;
}
.nav a.link {
  color: #57606a; padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a.link:hover { color: #1a1a1a; text-decoration: none; }
.nav a.link.active { color: #1a1a1a; font-weight: 600; border-bottom-color: #1a1a1a; }
.nav .spacer { flex: 1; }
.nav .nav-cta {
  background: #1a1a1a; color: #fff;
  padding: 6px 14px; border-radius: 6px; font-weight: 600;
  font-size: 0.92em; transition: background 0.15s;
}
.nav .nav-cta:hover { background: #000; text-decoration: none; }
.nav .nav-new {
  font-size: 0.7em; font-weight: 700; padding: 2px 5px; border-radius: 3px;
  background: linear-gradient(90deg,#ef4444,#f59e0b); color: #fff;
  letter-spacing: 0.4px; text-transform: uppercase; line-height: 1.4;
  margin-left: 4px; vertical-align: middle;
}
@media (max-width: 580px) {
  .nav { gap: 14px; }
  .nav .desktop-only { display: none; }
}

/* Headings */
h1 { font-size: 2.1em; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 12px; }
h2 { font-size: 1.55em; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 1.15em; font-weight: 700; margin-bottom: 8px; }
.lead { color: #57606a; font-size: 1.05em; line-height: 1.65; max-width: 720px; }

/* Cards */
.card {
  border: 1px solid #d8dce0; border-radius: 12px;
  background: #fff;
  padding: 22px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-1px); box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 8px 22px rgba(0,0,0,0.06); }
.card-title { font-size: 0.78em; color: #8b949e; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.95em; cursor: pointer;
  transition: all 0.15s; border: 1px solid transparent;
}
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #000; text-decoration: none; }
.btn-outline { background: #fff; color: #1a1a1a; border-color: #d8dce0; }
.btn-outline:hover { border-color: #1a1a1a; text-decoration: none; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72em; font-weight: 600;
  vertical-align: middle;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-purple { background: #f3e5f5; color: #7b1fa2; }
.badge-red { background: #fce4ec; color: #c62828; }
.badge-gray { background: #e5e7eb; color: #4b5563; }

/* Footer */
footer.site-footer {
  margin-top: 64px; padding: 32px 0 40px;
  border-top: 1px solid #e1e4e8;
  font-size: 0.88em; color: #57606a;
}
footer.site-footer .container { padding-top: 0; padding-bottom: 0; }
footer.site-footer .foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px;
  margin-bottom: 24px;
}
footer.site-footer h4 { font-size: 0.78em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #1a1a1a; margin-bottom: 10px; }
footer.site-footer ul { list-style: none; }
footer.site-footer ul li { margin-bottom: 6px; }
footer.site-footer ul li a { color: #57606a; }
footer.site-footer ul li a:hover { color: #1a1a1a; }
footer.site-footer .copy { color: #8b949e; padding-top: 18px; border-top: 1px solid #eef0f3; }
@media (max-width: 720px) {
  footer.site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Section spacing */
section { margin-bottom: 56px; }
.section-title { margin-bottom: 8px; }
.section-desc { color: #57606a; margin-bottom: 28px; max-width: 680px; }

/* Disclaimer text */
.disclaimer {
  background: #f8f9fb; border: 1px solid #e1e4e8; border-radius: 8px;
  padding: 14px 18px; font-size: 0.86em; color: #57606a; line-height: 1.55;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 8px; top: 8px; background: #1a1a1a; color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 999; }
