:root {
  --primary: #2f8180;
  --secondary: #84b6f4;
  --highlight: #ff8c8c;
  --stroke-color: #2a2a2a;
  --text: #e7e7e7;
  --container-bg: linear-gradient(145deg, #161c20, #101417);
  --info-bg: #1f262c;
  --background: #1f262c;
  --link-hover: #b8ffff;
}

.light-theme {
  --primary: #2f8180;
  --secondary: #c36;
  --highlight: #d60000;
  --stroke-color: #333;
  --text: #222;

  /* ✅ 这三项最关键，一定要改成纯白色 */
  --container-bg: #ffffff;
  --info-bg: #ffffff;
  --background: #ffffff;
}
body.light-theme .container {
  background-color: var(--container-bg) !important;
}




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

html, body {
  min-height: 100vh;
  width: 100%;
  background: var(--background); /* 若未设置也加上 */
}


body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--background) url('https://www.transparenttextures.com/patterns/stardust.png');
  background-size: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center; /* ✅ 垂直居中 */
  box-sizing: border-box;
  padding: 30px; /* ✅ 可选：防止内容贴边 */
}

.container {
  max-width: 1000px;
  margin: 0 auto;                    /* 只保留左右居中 */
  background: var(--container-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 255, 231, 0.2), 0 0 8px var(--stroke-color);
  position: relative;
  z-index: 1;
  animation: floatIn 1s ease-out;
  color: var(--text);
}



h1, h2, h3 {
  animation: fadeIn 1s ease-in-out;
  color: var(--text);
}

h1 {
  font-size: 32px;
  color: #1ed9d2;
  margin-bottom: 0px;
  padding-bottom: 10px;
}

h3 {
  font-size: 18px;
  color: #1ed9d2;
  border-bottom: 4px solid var(--primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
}

h2 {
  font-size: 24px;
  color: var(--secondary);
  border-left: 4px solid var(--secondary);
  padding-left: 10px;
  margin-top: 30px;
}

.section {
  margin-bottom: 30px;
  animation: slideUp 1s ease;
}

.info-box {
  background: var(--info-bg);
  padding: 15px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  margin-top: 15px;
  box-shadow: 0px 0px 8px rgba(0, 255, 231, 0.55);
  transform: translateY(10px);
  transition: all 0.3s ease;
  color: var(--text);
}

.info-box:hover {
  box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.55), 0 0 8px var(--stroke-color);
  transform: translateY(-2px);
}

ul {
  list-style: disc inside;
  margin-left: 10px;
  color: var(--text);
}

li {
  margin-bottom: 8px;
  transition: transform 0.2s;
  color: var(--text);
}

li:hover {
  transform: translateX(5px);
  color: var(--highlight);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.avatar img {
  width: 30vw;
  max-width: 260px;
  min-width: 20px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: transform 0.3s ease;
}

.avatar img:hover {
  transform: scale(1.05);
}

.tag {
  display: inline-block;
  background-color: var(--background);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: #1ed9d2;
  margin: 3px 6px 3px 0;
  box-shadow: 0 0 5px rgba(0, 255, 231, 0.4);
  transition: transform 0.2s ease-in-out;
}

.tag:hover {
  transform: scale(1.06);
}

.highlight {
  color: var(--highlight);
  font-weight: bold;
}

.footer {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  margin-top: 40px;
  opacity: 0.6;
}

/* 顶部按钮 */
.top-right-controls {
  position: absolute;
  top: 30px;
  right: 30px;
}

#themeToggle {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--primary);
  transition: transform 0.3s ease;
}

#themeToggle:hover {
  transform: rotate(20deg);
}

/* 左文字右头像 */
.basic-info-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
