
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body {
    width: 100%; height: 100%; overflow: hidden;
    background: #0a0a1a; font-family: 'Microsoft YaHei', sans-serif;
  }
  #starCanvas {
    display: block; width: 100%; height: 100%;
    cursor: crosshair;
  }
  .page-header {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 20px; text-align: center; z-index: 10;
    pointer-events: none;
  }
  .page-title {
    font-size: 28px; color: #fff; font-weight: 300;
    letter-spacing: 8px; text-shadow: 0 0 20px rgba(102,126,234,0.8);
  }
  .page-subtitle {
    font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 8px;
    letter-spacing: 2px;
  }
  .back-btn {
    position: fixed; top: 20px; left: 20px; z-index: 20;
    padding: 10px 20px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
    color: #fff; text-decoration: none; font-size: 14px;
    cursor: pointer; transition: all 0.3s; backdrop-filter: blur(10px);
  }
  .back-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-3px);
  }
  .hint {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.4); font-size: 12px; z-index: 10;
    pointer-events: none; letter-spacing: 1px;
  }

/* 鸣谢输入框 */
.credit-input-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}
.credit-input {
  width: 360px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  color: #fff;
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.credit-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.credit-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}
.credit-submit-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.credit-submit-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}
.credit-submit-btn:active {
  transform: scale(0.95);
}

/* 登录弹窗 */
.login-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.login-modal.active {
  display: flex;
}
.login-modal-content {
  background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(20, 20, 50, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px;
  width: 380px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.login-modal-title {
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}
.login-modal-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 24px;
}
.login-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s;
}
.login-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.login-input:focus {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.12);
}
.login-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
  min-height: 18px;
}
.login-modal-buttons {
  display: flex;
  gap: 12px;
}
.login-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.login-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.login-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}
.login-btn.confirm {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 600;
}
.login-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 手机端响应式优化 */
@media (max-width: 480px) {
  .page-title {
    font-size: 20px;
    letter-spacing: 4px;
  }
  .page-subtitle {
    font-size: 12px;
  }
  .back-btn {
    padding: 8px 14px;
    font-size: 12px;
    top: 12px;
    left: 12px;
  }
  .credit-input-container {
    bottom: 24px;
    gap: 8px;
    width: calc(100vw - 32px);
    justify-content: center;
  }
  .credit-input {
    width: calc(100vw - 100px);
    max-width: 320px;
    padding: 12px 16px;
    font-size: 14px;
  }
  .credit-submit-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .credit-submit-btn svg {
    width: 20px;
    height: 20px;
  }
  .login-modal-content {
    width: calc(100vw - 48px);
    max-width: 340px;
    padding: 24px;
  }
  .login-modal-title {
    font-size: 18px;
  }
  .login-modal-subtitle {
    font-size: 12px;
  }
  .login-input {
    padding: 10px 14px;
    font-size: 14px;
  }
  .login-btn {
    padding: 10px;
    font-size: 13px;
  }
}

/* 超小屏幕（iPhone SE等） */
@media (max-width: 360px) {
  .credit-input {
    width: calc(100vw - 90px);
    padding: 10px 14px;
    font-size: 13px;
  }
  .credit-submit-btn {
    width: 38px;
    height: 38px;
  }
}
