/* =========================================
   福州房东宝官网 - 设计系统 v2.0
   配色：企业蓝 + 活力橙 + 中性灰
   ========================================= */

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

:root {
  /* 主色 */
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* 中性 */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;
  --text: #0f172a;
  --text-light: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 48px rgba(30, 64, 175, 0.18);

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Navigation === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  font-size: 22px; font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-light); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: all 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
  content: ""; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--gradient-primary);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* === Section 通用 === */
section { padding: 96px 0; position: relative; }
section.alt { background: var(--bg-alt); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h2 {
  font-size: 42px; font-weight: 800; text-align: center;
  margin-bottom: 16px; color: var(--text);
}
.section-sub {
  text-align: center; color: var(--text-light);
  margin-bottom: 64px; font-size: 18px;
}
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}

/* === Hero === */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.75) 50%, rgba(6, 182, 212, 0.85) 100%),
    url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=1920&q=80&fm=jpg') center/cover no-repeat;
  background-blend-mode: normal;
  color: white;
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: 64px; font-weight: 800; margin-bottom: 24px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero .slogan {
  font-size: 22px; opacity: 0.95;
  margin-bottom: 40px; font-weight: 400;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--primary);
  padding: 16px 36px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow-xl);
  transition: transform 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); }

.hero-stats {
  display: flex; justify-content: center; gap: 64px;
  margin-top: 80px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 4px; }

/* === Modules Grid (业务板块) === */
.modules-grid {
  display: grid;
  /* 桌面端：固定 4 列一行 */
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* 平板：2 列 */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 手机：1 列 */
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
}
.module-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid transparent;
}
.module-card .module-image {
  width: 100%; height: 140px;
  background-size: cover; background-position: center;
  position: relative;
}
.module-card .module-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}
.module-card .module-image .module-icon {
  position: absolute; bottom: -28px; left: 24px;
  z-index: 2;
  margin: 0;
  border: 4px solid white;
}
.module-card .module-body {
  padding: 40px 20px 24px;
}
.module-card .module-body h3 { font-size: 18px; margin-bottom: 6px; }
.module-card .module-tagline { font-size: 13px; margin-bottom: 12px; }
.module-card li { font-size: 13px; padding: 5px 0 5px 22px; }
.module-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: 3;
}
.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.2);
}
.module-card:hover::before { transform: scaleX(1); }

.module-icon {
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}
.module-card h3 {
  font-size: 22px; margin-bottom: 8px; font-weight: 700;
}
.module-tagline {
  color: var(--text-light); font-size: 14px;
  margin-bottom: 20px; line-height: 1.5;
}
.module-card ul { list-style: none; }
.module-card li {
  font-size: 14px; padding: 8px 0 8px 24px;
  position: relative; color: var(--text-light);
  border-bottom: 1px solid var(--bg-soft);
}
.module-card li:last-child { border-bottom: none; }
.module-card li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}

/* === Products === */
.products-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 40px; padding: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  display: inline-flex;
  margin-left: auto; margin-right: auto;
}
.products-tabs-wrap { text-align: center; }
.products-tabs button {
  background: transparent; border: none;
  padding: 10px 24px; border-radius: 999px;
  cursor: pointer; font-size: 14px;
  color: var(--text-light); font-weight: 500;
  transition: all 0.2s;
}
.products-tabs button.active {
  background: white; color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.products-grid {
  display: grid;
  /* 桌面端：固定 4 列一行 */
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
/* 平板：2 列 */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
/* 手机：1 列 */
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-card .product-image {
  width: 100%; height: 140px;
  background-size: cover; background-position: center;
  position: relative;
}
.product-card .product-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.5) 100%);
}
.product-card .product-body {
  padding: 20px 20px 24px;
}
.product-card .product-body h3 { font-size: 18px; margin-bottom: 4px; }
.product-card .product-tagline { font-size: 13px; margin-bottom: 12px; }
.product-card .product-features li { font-size: 13px; padding: 4px 0 4px 20px; }
.product-card::after {
  content: ""; position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.product-type {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.1));
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 24px; margin-bottom: 6px; font-weight: 700;
}
.product-tagline {
  color: var(--text-light); font-size: 14px;
  margin-bottom: 20px;
}
.product-features { list-style: none; }
.product-features li {
  font-size: 14px; padding: 6px 0 6px 22px;
  position: relative; color: var(--text-light);
}
.product-features li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px;
  background: var(--gradient-accent);
  border-radius: 50%;
}
.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px;
  color: var(--primary); font-size: 14px;
  font-weight: 600; text-decoration: none;
  transition: gap 0.2s;
}
.product-link:hover { gap: 10px; }

/* === Apps (下载区) === */
.apps-section-title {
  text-align: center; font-size: 28px;
  margin: 60px 0 32px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.app-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.app-icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}
.app-card.mini .app-icon { background: var(--gradient-accent); }
.app-card h3 { font-size: 18px; margin-bottom: 4px; font-weight: 700; }
.app-meta {
  color: var(--text-muted); font-size: 13px;
  margin-bottom: 20px;
}
.app-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-primary);
  color: white;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}
.app-download:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(30, 64, 175, 0.4); }
.app-download.disabled {
  background: var(--bg-soft); color: var(--text-muted);
  cursor: not-allowed; box-shadow: none;
}
.app-qr { margin-top: 20px; }
.app-qr img {
  width: 128px; height: 128px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 8px;
  background: white;
}
.qr-placeholder {
  width: 128px; height: 128px;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px;
  flex-direction: column; gap: 4px;
}

/* === About === */
.about-content {
  max-width: 800px; margin: 0 auto;
  text-align: center; font-size: 18px;
  line-height: 1.9; color: var(--text-light);
}
.about-content p { margin-bottom: 16px; }
.about-content strong {
  color: var(--primary); font-weight: 700;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px; margin: 0 auto;
}
.contact-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.contact-label {
  color: var(--text-muted); font-size: 12px;
  margin-bottom: 6px; font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.contact-value {
  font-size: 16px; font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

/* === Footer === */
footer {
  background: var(--text);
  color: var(--text-muted);
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.2s;
}
footer a:hover { color: white; }
.footer-name {
  color: white; font-weight: 600; font-size: 16px;
  margin-bottom: 8px;
}

/* === Admin Link === */
.admin-link {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--text-light);
  font-size: 20px;
  opacity: 0.4;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  z-index: 50;
}
.admin-link:hover { opacity: 1; transform: rotate(90deg); }

/* === 代理加盟（2026-10-25）=== */
.agent-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0 48px;
}
.agent-rate-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.agent-rate-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.55);
}
.agent-rate-num {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.agent-rate-label {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.78;
}
.agent-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.agent-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 20px;
}
.agent-step-num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.agent-step-text { font-size: 14px; line-height: 1.75; opacity: 0.88; }
.agent-notes {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 40px;
}
.agent-notes h3 { margin: 0 0 14px; font-size: 17px; }
.agent-notes ul { margin: 0; padding-left: 20px; }
.agent-notes li { font-size: 14px; line-height: 2; opacity: 0.82; }
.agent-cta { text-align: center; }
.agent-cta-tip { margin-top: 14px; font-size: 13px; opacity: 0.7; }

/* === 响应式 === */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .nav-links { display: none; }
  section { padding: 60px 0; }
  .hero { padding: 80px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-num { font-size: 28px; }
}

/* === 动画 === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero .slogan, .hero-cta {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.hero .slogan { animation-delay: 0.15s; }
.hero-cta { animation-delay: 0.3s; }