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

:root {
  --button-bg: #F7A41A;
  --button-color: #FFFFFF;
  --text-color: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.8);
}

html, body {
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #000000;
  color: var(--text-color);
  line-height: 1.5;
  position: relative;
}

/* 背景图片层 */
body.has-bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 毛玻璃遮罩层 */
body.has-bg-image.has-blur::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.3);
}

/* 普通遮罩层 */
body.has-bg-image:not(.has-blur)::before {
  content: "";
  background-color: #000000;
  opacity: 0.5;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: -1;
}

/* 主容器 */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* 头部区域 */
header {
  text-align: center;
  margin-bottom: 30px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.bio-title h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.bio-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.bio-description p {
  margin: 0;
}

/* 内容列表 - 统一容器 */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.content-list li {
  margin-bottom: 12px;
}

/* 按钮样式 - 修复 */
.block-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--button-bg);
  color: var(--button-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.block-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.block-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.block-content svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 文本块样式 - 修复 */
.text-block {
  background: transparent;
  color: var(--text-color);
  padding: 16px 24px;
  text-align: center;
  border-radius: 8px;
}

.text-block h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.text-block p {
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==================== 文本框特效 ==================== */

/* 发光特效 */
.text-block.effect-glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

/* 阴影特效 */
.text-block.effect-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 描边特效 */
.text-block.effect-outline {
  -webkit-text-stroke: 1px currentColor;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5), -1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* 渐变特效 */
.text-block.effect-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 弹跳动画 */
.text-block.effect-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* 淡入淡出动画 */
.text-block.effect-fade {
  animation: fade 2s infinite;
}

@keyframes fade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 打字机动画 */
.text-block.effect-typewriter {
  overflow: hidden;
  border-right: 2px solid currentColor;
  white-space: nowrap;
  animation: typing 3s steps(30, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: currentColor; }
}

/* 浮动动画 */
.text-block.effect-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 闪烁动画 */
.text-block.effect-blink {
  animation: blink-text 1s step-start infinite;
}

@keyframes blink-text {
  50% { opacity: 0; }
}

/* 脉冲动画 */
.text-block.effect-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 摇摆动画 */
.text-block.effect-wobble {
  animation: wobble 1s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* 底部 */
.powered-by {
  text-align: center;
  padding: 30px 0;
  margin-top: 20px;
}

.powered-by a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.powered-by a:hover {
  color: var(--text-color);
}

/* 管理入口 */
.admin-entry {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 100;
  cursor: pointer;
}

.admin-entry:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* 响应式 */
@media (max-width: 480px) {
  .container {
    padding: 30px 16px;
  }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .bio-title h1 {
    font-size: 22px;
  }
  
  .block-item {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .text-block {
    padding: 14px 20px;
  }
}
