/* 房集云客官网 - 主样式 */
:root {
  --color-bg: #f8f9fc;
  --color-surface: #ffffff;
  --color-primary: #ff682f;
  --color-primary-dark: #e55a24;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 头部导航 ========== */
.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(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-text {
  margin-left: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.logo:hover .logo-text {
  color: var(--color-primary-dark);
}

.logo:hover {
  color: var(--color-primary-dark);
}

.logo:hover .logo-img {
  opacity: 0.9;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* ========== 主页 Hero ========== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e55a24 0%, #ff682f 45%, #ff8a5c 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 24px;
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-app-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
  object-fit: contain;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========== 功能区块 ========== */
.features {
  padding: 80px 0 100px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 56px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-block:last-of-type {
  margin-bottom: 0;
}

.feature-block--reverse .feature-content {
  order: 2;
}

.feature-block--reverse .feature-media {
  order: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.feature-text {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ========== 更多功能（访客数据、我的） ========== */
.feature-more {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--color-border);
}

.feature-more-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 32px;
}

.feature-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.feature-more-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-more-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-more-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 360px;
}

.feature-more-label {
  padding: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  font-size: 1rem;
}

/* ========== CTA ========== */
.cta {
  padding: 72px 0;
  background: linear-gradient(135deg, #e55a24 0%, #ff682f 100%);
  text-align: center;
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

/* ========== 关于我们页 ========== */
.page-hero {
  padding: 72px 0 48px;
  background: linear-gradient(135deg, #e55a24 0%, #ff682f 100%);
  text-align: center;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.about-content {
  padding: 56px 0 80px;
}

.about-banner {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-intro {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--color-surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.about-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

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

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

.about-cta {
  text-align: center;
}

.about-cta .btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.about-cta .btn-primary:hover {
  background: var(--color-primary-dark);
}

/* ========== 页脚 ========== */
.site-footer {
  margin-top: auto;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-company,
.footer-icp {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

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

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

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav.is-open .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }

  .feature-block--reverse .feature-content,
  .feature-block--reverse .feature-media {
    order: unset;
  }

  .feature-media {
    max-height: 240px;
  }

  .feature-img {
    height: 240px;
    object-fit: cover;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-app-img {
    max-width: 220px;
  }

  .feature-more {
    margin-top: 48px;
    padding-top: 40px;
  }

  .feature-more-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-more-img {
    max-height: 280px;
  }

  .features {
    padding: 56px 0 72px;
  }

  .section-desc {
    margin-bottom: 40px;
  }
}
