/* ===================== 1. 本地图标样式（无网络可用） ===================== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
}

/* 星星图标（标题专用） */
.icon-star {
  width: 0.8em;
  height: 0.8em;
  position: relative;
  color: #4299e1;
}
.icon-star::before {
  content: "★";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1em;
  animation: pulse 3s infinite ease-in-out;
}

/* 喇叭图标（公告专用） */
.icon-bullhorn {
  width: 1em;
  height: 1em;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.icon-bullhorn::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid currentColor;
}

/* 书本图标（帮助入口专用） */
.icon-book {
  width: 0.9em;
  height: 1em;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 2px 4px 4px 2px;
}
.icon-book::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  height: 100%;
  width: 1px;
  background: currentColor;
}

/* 银行卡图标（输入框专用） */
.icon-credit-card {
  width: 1.1em;
  height: 0.7em;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 3px;
}
.icon-credit-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 20%;
  height: 40%;
  background: currentColor;
  border-radius: 2px;
  transform: translateY(-50%);
}

/* 下载图标（按钮专用） */
.icon-download {
  width: 0.9em;
  height: 1em;
  position: relative;
}
.icon-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid currentColor;
}
.icon-download::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 8px;
  background: currentColor;
}

/* 左箭头图标（返回专用） */
.icon-arrow-left {
  width: 0.8em;
  height: 0.8em;
  position: relative;
}
.icon-arrow-left::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(135deg);
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  width: 8px;
  height: 8px;
}

/* ===================== 2. 全局基础样式 ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #343a40;
}

/* ===================== 3. 主页面（PP卡号下载）样式 ===================== */
/* 主卡片容器 */
.card {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
}
.card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

/* 标题区域 */
.title-section {
  text-align: center;
  margin-bottom: 30px;
}
.title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.title .icon {
  color: #4299e1;
  margin-right: 10px;
  font-size: 0.7em;
}

/* 公告区域 */
.announcement {
  background: #e8f4f8;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  border-left: 4px solid #4299e1;
  transition: transform 0.3s ease;
}
.announcement:hover {
  transform: translateX(5px);
}
.announcement-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.announcement-icon {
  color: #4299e1;
  margin-right: 10px;
  margin-top: 2px;
  font-size: 18px;
}
.announcement-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}
.announcement-content {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
  margin-left: 28px;
}
.announcement-date {
  color: #718096;
  font-size: 12px;
  margin-top: 6px;
  margin-left: 28px;
}

/* 帮助文档入口 */
.help-section {
  background: #f5fafe;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 25px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e3f2fd;
}
.help-section:hover {
  background: #eaf6fa;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.1);
}
.help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4299e1;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.help-link .icon {
  margin-right: 8px;
  transition: transform 0.3s ease;
}
.help-section:hover .help-link .icon {
  transform: rotate(15deg);
}
.help-desc {
  color: #718096;
  font-size: 12px;
  margin-top: 4px;
  transition: color 0.3s ease;
}
.help-section:hover .help-desc {
  color: #4a5568;
}

/* 输入框区域 */
.input-section {
  margin-bottom: 25px;
}
.input-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 8px;
}
.input-container {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  font-size: 16px;
  transition: color 0.3s ease;
}
.card-input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-size: 15px;
  color: #2d3748;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}
.card-input::placeholder {
  color: #a0aec0;
}
.card-input:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
}
.card-input:focus + .input-icon {
  color: #4299e1;
}

/* 按钮区域 */
.btn-section {
  display: flex;
  justify-content: center;
}
.submit-btn {
  padding: 14px 32px;
  background: #4299e1;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}
.submit-btn .icon {
  margin-right: 8px;
  font-size: 18px;
}
.submit-btn:hover {
  background: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.3);
}
.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
}

/* ===================== 4. 帮助文档页面样式（分栏+常见问题） ===================== */
.help-document {
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* 帮助文档标题（居中） */
.help-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.help-header h1 {
  font-size: 2.2rem;
  color: #2d3748;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-header h1 .icon {
  color: #4299e1;
  margin-right: 10px;
  font-size: 1.2em;
}
.help-header p {
  color: #718096;
  font-size: 15px;
}

/* 分栏布局核心样式 */
.help-content-wrap {
  display: flex;
  gap: 40px;
  padding: 0 20px;
}

/* 左侧基础指南（左偏布局） */
.basic-guide {
  flex: 1;
  padding-right: 20px;
  border-right: 1px solid #eee;
}
.basic-guide h2 {
  color: #2d3748;
  margin: 30px 0 15px;
  font-size: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.basic-guide p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #4a5568;
  font-size: 16px;
}
.basic-guide code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  color: #e53e3e;
}
.help-image {
  max-width: 100%;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 右侧常见问题 */
.faq-section {
  flex: 0 0 400px; /* 固定宽度 */
}
.faq-section h2 {
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-size: 1.5rem;
}
.faq-item {
  margin-bottom: 24px;
}
.faq-item p:first-child {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 6px;
  font-size: 16px;
}
.faq-item p:last-child {
  color: #4a5568;
  line-height: 1.6;
  font-size: 15px;
}

/* 返回按钮 */
.back-btn {
  display: inline-block;
  margin: 30px 20px 0;
  padding: 10px 20px;
  background: #4299e1;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}
.back-btn .icon {
  margin-right: 8px;
}
.back-btn:hover {
  background: #3182ce;
  transform: translateY(-2px);
}

/* ===================== 5. 动画与交互效果 ===================== */
/* 呼吸动画（星星图标用） */
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

/* 抖动动画（输入错误时） */
.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

/* 通知提示 */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translate(-50%, 20px);
}

/* ===================== 6. 响应式适配（手机/平板） ===================== */
@media (max-width: 992px) {
  .help-content-wrap {
    flex-direction: column; /* 小屏幕自动堆叠 */
  }
  .basic-guide {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
  }
  .faq-section {
    flex: none;
    width: 100%;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 25px 20px;
  }
  .title {
    font-size: 2rem;
  }
  .submit-btn {
    padding: 12px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  .help-document {
    padding: 20px;
    margin: 30px auto;
  }
  .help-header h1 {
    font-size: 1.8rem;
  }
  .basic-guide h2, .faq-section h2 {
    font-size: 1.3rem;
  }
}