/* ===== 变量与基础 · 科技风格 ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0891b2;
  --accent-light: #22d3ee;
  --accent-soft: rgba(8, 145, 178, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --glow: rgba(34, 211, 238, 0.25);
  --font-serif: "Noto Serif SC", serif;
  --font-mono: "JetBrains Mono", monospace;
  --space: 1.5rem;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 白色背景 +  subtle 网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #ffffff;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space) 2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 70%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

.nav {
  position: relative;
  z-index: 2;
}

.nav-login-btn,
.nav-logout-btn {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-login-btn:hover,
.nav-logout-btn:hover {
  color: var(--accent);
}

.nav-user {
  font-size: 0.9rem;
  color: var(--accent);
}

/* ===== 主视觉 Hero ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  text-align: center;
  white-space: nowrap;
  animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero-title .accent {
  color: var(--accent);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  text-align: center;
  animation: fadeUp 0.8s ease-out 0.4s backwards;
  line-height: 1.75;
}

.hero-desc-sub {
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease-out 0.45s backwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp 0.8s ease-out 0.5s backwards;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-soft);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--glow);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 通用区块 ===== */
.section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.section-alt {
  background: var(--bg-soft);
  margin-left: 0;
  margin-right: 0;
  padding-left: calc((100vw - 1200px) / 2 + 2rem);
  padding-right: calc((100vw - 1200px) / 2 + 2rem);
  backdrop-filter: blur(1px);
}

@media (max-width: 1240px) {
  .section-alt {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ===== 数据概览 KPI ===== */
.kpi-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.kpi-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:nth-child(2) {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
}

.kpi-card:nth-child(3) {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.kpi-card:nth-child(4) {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.kpi-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: 0.9rem;
  opacity: 0.95;
}

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

/* ===== 我们的服务 ===== */
.services-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.services-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.service-icon {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* ===== 最新风控报告 ===== */
.report-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.report-title {
  text-align: center;
  margin-bottom: 2rem;
}

.report-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 70%, #2dd4bf 100%);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.25);
  text-align: center;
  color: #fff;
  transition: box-shadow 0.2s;
}

.report-banner:hover {
  box-shadow: 0 16px 48px rgba(13, 148, 136, 0.35);
}

.report-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.report-banner-desc {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.report-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.report-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* ===== 关于我们 ===== */
.about-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.about-intro {
  max-width: 680px;
  margin: 0 auto;
}

.about-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  text-align: center;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

/* ===== 作品卡片 ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-soft);
}

.work-card-inner {
  padding: 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.work-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.work-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.work-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== 联系 ===== */
.contact-section {
  text-align: center;
  padding: 5rem 2rem;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.85;
}

.contact-address {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 2.25rem 2.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.contact-address .company-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-address .company-addr {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-address .company-phone {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.contact-address .company-phone a {
  color: var(--accent);
  text-decoration: none;
}

.contact-address .company-phone a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.footer p:last-child {
  margin-bottom: 0;
}

.footer-company {
  font-weight: 500;
  color: var(--text);
}

.footer-icp a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ===== 滚动动画 ===== */
.section-title,
.about-section-title,
.about-intro,
.contact-desc,
.kpi-card,
.service-card,
.services-title,
.report-title,
.report-banner {
  opacity: 0;
  transform: translateY(24px);
}

.section-title.visible,
.about-section-title.visible,
.about-intro.visible,
.contact-desc.visible,
.kpi-card.visible,
.service-card.visible,
.services-title.visible,
.report-title.visible,
.report-banner.visible {
  animation: fadeUp 0.6s ease-out forwards;
}

.kpi-card.visible { animation-delay: 0.05s; }
.kpi-card.visible:nth-child(2) { animation-delay: 0.1s; }
.kpi-card.visible:nth-child(3) { animation-delay: 0.15s; }
.kpi-card.visible:nth-child(4) { animation-delay: 0.2s; }

.service-card.visible { animation-delay: 0.05s; }
.service-card.visible:nth-child(2) { animation-delay: 0.1s; }
.service-card.visible:nth-child(3) { animation-delay: 0.15s; }

.about-intro.visible { animation-delay: 0.08s; }

.report-banner.visible { animation-delay: 0.08s; }

/* ===== 登录弹窗 ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.login-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px rgba(8, 145, 178, 0.12);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.login-overlay.is-open .login-modal {
  transform: scale(1);
}

.login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.login-close:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-field label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.login-forgot {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.login-forgot:hover {
  color: var(--accent);
}

.login-submit {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
}
