/* 全局样式重置与基础配置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

:root {
  --primary-color: #409eff;
  --secondary-color: #67c23a;
  --text-color: #303133;
  --text-light: #909399;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

/* 页面基础样式 */
body {
  background: linear-gradient(120deg, #e0f7fa, #f5fafe);
  background-attachment: fixed;
  color: var(--text-color);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

/* 容器样式 */
.content {
  width: 100%;
  max-width: 380px;
  padding: 0 20px;
  margin: 0 auto;
}

/* 顶部标题区域 */
.top {
  text-align: center;
  margin: 30px 0;
}

#ti {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(64, 158, 255, 0.1);
}

#hitokoto {
  font-size: 16px;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.5;
}

/* 卡片容器 */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 头像区域 */
.box-left {
  text-align: center;
  margin-bottom: 20px;
}

.img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #f0f2f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  float: none;
}

/* 名称区域 */
.box-right {
  text-align: center;
  margin-bottom: 25px;
  font-size: 15px;
  color: var(--text-color);
  float: none;
  width: 100%;
  margin: 10px 0 20px;
}

/* 表单区域 */
.zbfont {
  text-align: left;
  font-size: 14px;
}

.zbfont dt {
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 500;
}

.zbfont input,
.zbfont select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  outline: none;
}

.zbfont input:focus,
.zbfont select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

/* 支付方式选择 */
.zbfont label {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  color: var(--text-color);
}

.zbfont input[type="radio"] {
  width: auto;
  margin-right: 6px;
  margin-bottom: 0;
}

/* 按钮样式 */
.buttons {
  margin-top: 20px;
}

.buttons button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buttons button:hover {
  background: #3399ff;
}

/* 页脚样式 */
.footer {
  margin-top: 30px;
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  border: none;
  width: 100%;
}

/* 响应式适配 */
@media screen and (max-width: 480px) {
  .content {
    padding: 0 15px;
  }

  .card {
    padding: 20px;
  }

  #ti {
    font-size: 24px;
  }

  .img {
    width: 70px;
    height: 70px;
  }
}

/* 支付跳转页面样式（epayapi.php） */
.pay-jump {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-color);
}

.pay-jump p {
  background: var(--card-bg);
  padding: 30px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 16px;
  color: var(--text-color);
  text-indent: 0;
  margin: 0;
  position: static;
  transform: none;
  border: none;
}

/* 返回页面样式（return_url.php） */
.return-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-color);
  text-align: center;
}

.return-page h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}