:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --brand: #1e40af;
  --brand-2: #2563eb;
  --line: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--text);
  font-size: 15px;
}

.nav a.active {
  color: var(--brand);
  font-weight: 700;
}

.nav a.btn,
.nav a.btn.active {
  color: #fff;
  font-weight: 700;
}

.nav a.btn:hover,
.nav a.btn.active:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.hero {
  background:
    linear-gradient(130deg, rgba(224, 231, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 70%),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=2200&q=80") center/cover no-repeat;
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.3;
}

h1 {
  font-size: clamp(30px, 4vw, 44px);
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  display: inline-block;
}

.btn:hover {
  background: var(--brand-2);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-sm {
  padding: 8px 12px;
}

.hero-card,
.card,
.service-block,
.contact-panel,
.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card,
.service-block {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.service-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.cover-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.section {
  padding: 56px 0;
}

.section-muted {
  background: #eef2ff;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.feature span {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.stats span {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
}

.service-block {
  margin-top: 14px;
}

.narrow {
  width: min(760px, 92%);
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.footer-wrap {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.25);
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.admin-tip {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.admin-filter {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  gap: 10px;
  margin: 14px 0 16px;
}

.admin-filter input,
.admin-filter select {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 14px;
}

.admin-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-stat span {
  color: var(--muted);
  font-size: 13px;
}

.admin-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--brand);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: center;
  vertical-align: top;
  font-size: 14px;
}

.admin-table th {
  background: #eef2ff;
  white-space: nowrap;
  text-align: center;
}

.admin-table tbody tr:nth-child(even) {
  background: #fcfdff;
}

.admin-table tbody tr:hover {
  background: #f1f5ff;
}

.admin-table .col-time {
  width: 170px;
}

.admin-table .col-name {
  width: 90px;
}

.admin-table .col-phone {
  width: 130px;
}

.admin-table .col-service {
  width: 150px;
}

.admin-table .col-message {
  width: auto;
}

.admin-table .col-ip {
  width: 130px;
}

.admin-table .col-status {
  width: 90px;
}

.admin-table .col-actions {
  width: 160px;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid;
}

.status-tag.todo {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.status-tag.done {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.inline-form {
  margin: 0;
}

.btn-mini {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
}

.btn-mini.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.service-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

.pager {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pager-current {
  color: var(--muted);
  font-size: 14px;
}

.pager-link {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 12px;
  background: #fff;
}

.pager-link:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .cover-img {
    height: 170px;
  }

  .admin-filter {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }
}

