/* 拍个窝 - 官方官网样式 */
:root {
  --color-bg: #ffffff;
  --color-surface: #f7f7f7;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e8e8e8;
  --color-accent: #111111;
  --max-width: 1100px;
  --header-height: 64px;
  --radius: 8px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  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;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 8px;
}

.nav-main {
  display: flex;
  gap: 32px;
}

.nav-main a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-accent);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

/* 主内容 */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Banner */
.banner {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 72px 24px;
  text-align: center;
}

.banner h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.banner p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* 区块标题 */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* 功能卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 业务介绍 */
.intro-block {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--color-border);
}

.intro-block p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

.intro-block strong {
  color: var(--color-text);
}

/* 服务列表 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.service-num {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.service-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 页面标题 */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

.page-header p {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 关于 / 联系 */
.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.content-block p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-card a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* 法律文档 */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-content ol,
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  list-style: decimal;
}

.legal-content ul li {
  list-style: disc;
}

.legal-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* 底部 */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px 32px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.footer-info a {
  color: var(--color-text-muted);
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* 响应式 */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-main.is-open {
    display: flex;
  }

  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .banner {
    padding: 48px 24px;
  }

  .section {
    padding: 48px 0;
  }

  .intro-block {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 0 16px;
  }

  .logo span {
    display: none;
  }
}
