/* 星罗棋布本地生活 — 展示站样式 */
:root {
  --ink: #0f1419;
  --muted: #5c6670;
  --line: #e8ecf0;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --accent: #1a6b5c;
  --accent-soft: #e6f4f1;
  --warm: #c45c26;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(15, 20, 25, 0.06);
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #0d4a42 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.btn-login {
  margin-left: 8px;
  padding: 8px 18px !important;
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 600;
}

.btn-login:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 auto 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 107, 92, 0.35);
}

.btn-primary:hover {
  text-decoration: none;
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 107, 92, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 48px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.section-desc {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 640px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warm);
  background: #fdf4ef;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.two-col {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.about-box ul {
  margin: 16px 0 0;
  padding-left: 1.25em;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  color: var(--ink);
  display: inline-block;
  min-width: 88px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 6px 0;
}

/* 登录页 */
.login-page body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  text-align: center;
}

.login-sub {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

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

.login-card .btn-primary {
  width: 100%;
  margin-top: 8px;
}

.back-home {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  max-width: 90vw;
  text-align: center;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
