:root {
  --primary-color: #ff4757;
  /* 小龙虾红 */
  --accent-color: #5f27cd;
  --bg-color: #fcfcfd;
  --card-bg: rgba(255, 255, 255, 0.8);
  --text-main: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --header-height: 64px;
  --border-radius: 16px;
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0f0f12;
    --card-bg: rgba(30, 30, 35, 0.7);
    --text-main: #f5f6fa;
    --text-secondary: #dfe6e9;
    --text-light: #636e72;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background gradient blobs */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 71, 87, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(95, 39, 205, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

header {
  position: sticky;
  top: 0;
  height: calc(var(--header-height) + var(--safe-area-inset-top));
  padding-top: var(--safe-area-inset-top);
  background: var(--card-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.6s ease;
}

@media (prefers-color-scheme: dark) {
  header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

main {
  padding: 40px 24px 80px;
  max-width: 840px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

p {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

ul {
  list-style: none;
  margin-bottom: 24px;
}

li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-left: 28px;
  position: relative;
  transition: transform 0.2s ease;
}

li:hover {
  transform: translateX(4px);
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

.highlight {
  color: var(--text-main);
  font-weight: 600;
  background: linear-gradient(120deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 71, 87, 0.1) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
}

.notice {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 24px;
  margin: 32px 0;
  border: 1px solid rgba(255, 71, 87, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.notice::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

.footer {
  text-align: center;
  padding: 60px 0 20px;
  font-size: 14px;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.meta-info {
  margin-bottom: 40px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {

  .meta-info,
  .notice {
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.meta-info p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  main {
    padding: 30px 18px 60px;
  }

  .meta-info {
    padding: 16px;
  }
}