:root {
  --primary: #3f51b5;
  --primary-dark: #2f3f99;
  --primary-soft: #e8ebfb;
  --accent: #ff4081;
  --surface: #ffffff;
  --surface-soft: #f8f9ff;
  --text-main: rgba(0, 0, 0, 0.87);
  --text-soft: rgba(0, 0, 0, 0.66);
  --shadow-1: 0 2px 4px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 8px 20px rgba(30, 41, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 8%, rgba(63, 81, 181, 0.14) 0, rgba(63, 81, 181, 0) 34%),
    radial-gradient(circle at 92% 92%, rgba(255, 64, 129, 0.11) 0, rgba(255, 64, 129, 0) 30%),
    #edf1f8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.app-bar {
  height: 64px;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 18px;
  box-shadow: 0 3px 10px rgba(30, 41, 76, 0.3);
}

.app-bar__title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px 16px;
  display: grid;
  gap: 18px;
}

.card {
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(63, 81, 181, 0.1);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.25;
}

h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.card > h2:not(.subtitle-quote) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card > h2:not(.subtitle-quote)::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.inline-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-links li {
  position: relative;
}

.inline-links li:not(:last-child)::after {
  content: none;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 17px;
  background: var(--primary-soft);
  color: #283593;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.18s ease, transform 0.18s ease;
}

.inline-links a:hover {
  background: #dae0fb;
  transform: translateY(-1px);
}

.ripple-target {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: var(--ripple-color, rgba(63, 81, 181, 0.25));
  pointer-events: none;
  animation: ripple 0.55s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.footer {
  max-width: 960px;
  margin: 8px auto 28px;
  padding: 18px 16px 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid rgba(63, 81, 181, 0.18);
}

@media (max-width: 600px) {
  .app-bar {
    height: 56px;
    padding: 0 14px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .container {
    margin-top: 14px;
    gap: 14px;
  }

  .card {
    border-radius: 6px;
    padding: 16px;
  }
}
