:root {
  --primary: #0052d9;
  --primary-hover: #0041b8;
  --border: #e0e0e0;
  --bg: #f5f7fa;
  --text: #1a1a1a;
  --text-muted: #666;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.home {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  text-align: center;
  margin-bottom: 40px;
}

.home-header h1 {
  font-size: 1.85rem;
  color: var(--primary);
  font-weight: 700;
}

.home-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.menu-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.menu-card-active:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 82, 217, 0.15);
  transform: translateY(-2px);
}

.menu-card-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.menu-icon {
  grid-row: 1 / 3;
  font-size: 2rem;
  line-height: 1;
}

.menu-title {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text);
}

.menu-card-active .menu-title {
  color: var(--primary);
}

.menu-desc {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.menu-arrow {
  grid-row: 1 / 3;
  grid-column: 3;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.menu-card-disabled .menu-arrow {
  display: none;
}

.home-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-footer p {
  margin: 0 0 6px;
}

.home-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .home {
    padding-top: 32px;
  }

  .menu-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
  }

  .menu-arrow {
    grid-row: 3;
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}
