/* HanTalk 全站通用样式 */
:root {
  --primary-color: #8b3dff;
  --text-color: #222;
  --bg-color: #fff;
  --nav-height: 64px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  height: var(--nav-height);
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: contain;
}
.logo span {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav a.active, .nav a:hover {
  background: rgba(255,255,255,0.18);
}

.main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 32px auto 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(139,61,255,0.08);
  display: block;
}
.footer {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  padding: 24px 0 16px 0;
  background: #f7f3ff;
  margin-top: 32px;
}

button, .btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn:hover {
  background: #6c1fd6;
}

.hero-btns {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.appstore-badge img,
.googleplay-badge img {
  display: block;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  color: #fff;
  position: relative;
  z-index: 1;
  text-align: center;
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 12px 8px;
    gap: 8px;
  }
  .main {
    max-width: 100vw;
    width: 100vw;
    margin: 12px 0 0 0;
    padding: 8px 2vw;
    border-radius: 0;
    box-shadow: none;
  }
  .footer {
    font-size: 0.85rem;
    padding: 16px 0 8px 0;
  }
  .nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  .logo span {
    font-size: 1.1rem;
  }
  h1, .main h1 {
    font-size: 1.5rem !important;
    word-break: break-all;
  }
  .main p, .main ol, .main ul, .main form, .main textarea, .main input, .main button {
    font-size: 1rem !important;
  }
  form {
    max-width: 100%;
    padding: 0;
  }
  .hero-btns {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .appstore-badge img, .googleplay-badge img {
    height: 44px !important;
    width: auto;
  }
} 