:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --border: #e5e9ef;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #059669);
  color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { font-weight: 700; font-size: 17px; display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-weight: 400; color: var(--muted); font-size: 11px; }
.top-nav { display: flex; gap: 22px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-nav a:hover, .top-nav a.active { color: var(--accent); font-weight: 600; }
.nav-search-link { display: none; }
.hsearch { display: flex; align-items: center; }
.hsearch input {
  width: 150px; height: 34px; padding: 0 13px;
  border: 1px solid var(--border); border-radius: 999px;
  background: #fbfcfe; color: var(--text); font-size: 13.5px; outline: none;
  transition: width .18s ease, border-color .15s, box-shadow .15s;
}
.hsearch input:focus {
  width: 190px; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #f6f8fa 60%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 { font-size: 34px; letter-spacing: 1px; }
.hero p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.hero-search {
  display: flex; gap: 8px; max-width: 560px; margin: 26px auto 0;
}
.hero-search input {
  flex: 1; height: 46px; padding: 0 18px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  color: var(--text); outline: none;
  box-shadow: 0 2px 10px rgba(16,24,40,.05);
}
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.hero-search button {
  height: 46px; padding: 0 24px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font-size: 15px; cursor: pointer;
}
.hero-search button:hover { background: #1d4ed8; }

/* ---------- module grid (homepage) ---------- */
.module-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; padding-top: 40px; padding-bottom: 60px;
}
.module-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tint) 45%, var(--border));
  box-shadow: 0 4px 8px rgba(16,24,40,.08), 0 14px 32px rgba(16,24,40,.10);
}
.card-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px;
  background: color-mix(in srgb, var(--tint) 12%, #fff);
  color: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 28px; height: 28px; }
.module-card h2 { font-size: 19px; margin-bottom: 6px; }
.module-card p { color: var(--muted); font-size: 14px; }
.card-status {
  display: inline-block; margin-top: 12px;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.status-ready { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.status-planning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* ---------- generic page ---------- */
.page-main { padding: 36px 20px 64px; }
.page-title { font-size: 26px; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 28px; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.panel h3 { font-size: 17px; margin-bottom: 10px; }
.plan-list { list-style: none; }
.plan-list li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 14.5px; }
.plan-list li::before {
  content: ""; position: absolute; left: 6px; top: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  opacity: .55;
}
.notice {
  background: var(--accent-soft); border: 1px solid #bfdbfe;
  color: #1d4ed8; border-radius: 10px; padding: 12px 16px;
  font-size: 14px; margin-bottom: 22px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0; color: var(--muted); font-size: 13px;
  background: var(--surface);
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
  .module-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .top-nav {
    gap: 13px; overflow-x: auto; scrollbar-width: none;
    max-width: 64%; margin-left: 12px;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav a { font-size: 13px; flex: 0 0 auto; white-space: nowrap; }
  .top-nav a.nav-search-link { display: block; }
  .hsearch { display: none; }
}
