:root {
  /* 暖色调底色与光晕调色板（替换原有的线性渐变变量） */
  --bg-base: #fffaf5;      /* 极浅的暖白底色 */
  --bg-glow-1: #ffe8cc;    /* 奶油黄光晕 */
  --bg-glow-2: #ffdac7;    /* 柔和橘红光晕 */
  --bg-glow-3: #fcd5ce;    /* 蜜桃浅粉光晕 */

  --card-bg: rgba(255, 253, 250, 0.95);
  --text-main: #5c4033; /* 咖啡色，比纯黑更温暖 */
  --text-muted: #9e7a66; /* 奶茶色 */
  --accent-primary: #f2855e; /* 柔和的橘红色 */
  --accent-hover: #e06c43;
  --accent-light: #fff0ea;
  
  /* 状态颜色调整为柔和的马卡龙色 */
  --ok-bg: #edf7ed;
  --ok-text: #4caf50;
  --ok-border: #c8e6c9;
  
  --err-bg: #fdecea;
  --err-text: #ef5350;
  --err-border: #ffcdd2;

  --border-radius-lg: 32px;
  --border-radius-md: 20px;
  --shadow-soft: 0 20px 50px rgba(242, 133, 94, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

* {
  box-sizing: border-box;
}

/* 动态光晕游动效果 */
@keyframes warmGlow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  
  /* 采用多重径向渐变叠加，打造高级通透的发光层次感 */
  background: 
    radial-gradient(circle at 15% 15%, var(--bg-glow-1), transparent 55%),
    radial-gradient(circle at 85% 85%, var(--bg-glow-2), transparent 55%),
    radial-gradient(circle at 50% 50%, var(--bg-glow-3), transparent 60%),
    var(--bg-base);
  background-size: 200% 200%;
  animation: warmGlow 20s ease-in-out infinite alternate;

  display: grid;
  place-items: center;
  padding: 24px;
}

/* 核心卡片：毛玻璃质感与大圆角 */
.card {
  width: min(680px, 100%);
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  overflow: hidden;
  position: relative;
}

/* 头部区域 */
.hero {
  padding: 40px 30px 20px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
}

.hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 32px);
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* 内容区域 */
.content {
  padding: 10px 40px 40px;
  display: grid;
  gap: 24px;
}

.hidden {
  display: none !important;
}

/* 加载动画 */
.loading {
  color: var(--text-muted);
  text-align: center;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 状态网格 */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-light);
  border: 1px solid rgba(242, 133, 94, 0.1);
  border-radius: var(--border-radius-md);
  padding: 20px;
  transition: transform 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 24px;
  background: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(242, 133, 94, 0.08);
}

.stat .label {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 600;
}

.stat .value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

/* 提示信息 */
.notice,
.error {
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  font-weight: 600;
}

.notice {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-text);
}

.error {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-text);
}

/* 操作区域 */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.checkin-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

/* 按钮样式 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  border: 0;
  border-radius: 99px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 133, 94, 0.3);
}

.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(242, 133, 94, 0.4);
}

.primary:active {
  transform: translateY(1px);
}

.secondary {
  background: #f5f0ec;
  color: var(--text-muted);
}

.secondary:hover {
  background: #ebe4df;
  color: var(--text-main);
}

.disabled {
  background: #f5f0ec;
  color: #c2b4ab;
  cursor: not-allowed;
  box-shadow: none;
}

/* 签到相关提示 */
.pow-status, .pow-hint {
  text-align: center;
  margin: 0;
  font-size: 13px;
}

.pow-status {
  color: var(--accent-hover);
  font-weight: 600;
}

.pow-hint {
  color: var(--text-muted);
}

/* 底部详情 */
.detail {
  text-align: center;
  border-top: 1px dashed rgba(158, 122, 102, 0.2);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

code {
  font-family: Consolas, "SFMono-Regular", monospace;
  background: #f5f0ec;
  color: var(--text-main);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* 响应式调整 */
@media (max-width: 640px) {
  .content {
    padding: 10px 24px 30px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}