/* 临时兑换站点 · 补充样式
   基础视觉全部来自原站 importer.css，这里只补原站没有覆盖的部分 */

/* 提示条 */
.pajc-alert {
  width: 591px;
  max-width: 100%;
  margin: 28px auto 0;
  padding: 12px 18px;
  border: 1px solid #ea5404;
  background: #fff4ee;
  color: #d24800;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

.pajc-alert.ok {
  border-color: #4caf50;
  background: #f1f9f2;
  color: #2e7d32;
}

.pajc-alert a {
  color: #ea5404;
  font-size: 17px;
  text-decoration: underline;
}

/* 可点击元素统一手型（原站用 a 标签，这里部分用 div/button） */
.btn,
.btn-submit,
.btn-captcha,
.change_submit,
.submit,
.link-register {
  cursor: pointer;
  user-select: none;
}

/* ---------------- 收货信息表单 ----------------
   原站这套表单用的是 .redeem_code_name 之类的伪输入框（PC 82px 高、字号 22px），
   这里换成真实 <input>，必须自己补齐尺寸；否则 25px 的标签会配 13px 的原生输入框，
   整体比例完全失调。 */
#delivery-address .cuservice-form {
  width: 591px;
  max-width: 92%;
  margin: 28px auto 0;
}

/* 原站把 ._code 撑成固定高度（PC 82px / 移动端 1.62rem），这里必须放开 */
#delivery-address .cuservice-form ._code,
#delivery-address .cuservice-form .pajc-region li {
  height: auto;
  margin: 0;
  line-height: 1.5;
}

/* 标签已改为块级，模板里紧跟的 <br> 会多出一行空白 */
#delivery-address .cuservice-form ._code > br,
#delivery-address .cuservice-form .pajc-region br {
  display: none;
}

#delivery-address .cuservice-form ._code label,
#delivery-address .cuservice-form .pajc-region label {
  display: block;
  position: static;
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.5;
  color: #99694b;
}

#delivery-address .cuservice-form input,
#delivery-address .cuservice-form select {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d1d1d1;
  border-radius: 2px;
  background: #fff;
  font-size: 16px;
  line-height: normal;
  color: #333;
  box-sizing: border-box;
  outline: none;
}

#delivery-address .cuservice-form input::placeholder {
  color: #a6a6ad;
  font-size: 15px;
}

#delivery-address .cuservice-form input:focus,
#delivery-address .cuservice-form select:focus {
  border-color: #ea5404;
}

/* 省 / 市 / 区 并排 */
#delivery-address .cuservice-form .pajc-region {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#delivery-address .cuservice-form .pajc-region li {
  flex: 1 1 0;
  min-width: 0;
}

#delivery-address .cuservice-form .submit {
  width: 283px;
  max-width: 100%;
  height: 52px;
  margin: 34px auto 0;
  border-radius: 2px;
  font-size: 19px;
  line-height: 52px;
}

@media (max-width: 640px) {
  #delivery-address .cuservice-form ._code label,
  #delivery-address .cuservice-form .pajc-region label {
    margin: 18px 0 6px;
    font-size: 16px;
  }

  #delivery-address .cuservice-form input,
  #delivery-address .cuservice-form select {
    height: 44px;
    font-size: 15px;
  }

  #delivery-address .cuservice-form .pajc-region {
    flex-direction: column;
    gap: 0;
  }

  #delivery-address .cuservice-form .submit {
    width: 100%;
    height: 50px;
    margin-top: 28px;
    font-size: 18px;
    line-height: 50px;
  }
}

/* 兑换页 / 收货页：错误提示跟随表单宽度 */
#customer-service .pajc-alert,
#delivery-address .pajc-alert {
  margin-bottom: 10px;
}

/* 成功页标题
   原站 PC 规则是 height:634px + padding-top:236px（整屏居中显示一句大标题），
   新页面标题下面还有订单信息，会把中间撑出一大片空白。 */
#checkout_success .justforpc {
  height: auto;
  padding: 40px 0 8px;
  font-size: 30px;
  line-height: 1.4;
  text-align: center;
  color: #99694b;
}

/* 成功页：订单信息 */
.pajc-success-info {
  width: 591px;
  margin: 0 auto;
  padding: 18px 0 0;
  font-size: 18px;
  color: #666;
  line-height: 2;
}

.pajc-success-info span {
  font-size: 18px;
  color: #99694b;
}

.pajc-success-actions {
  width: 591px;
  margin: 26px auto 60px;
  text-align: center;
}

.pajc-success-actions a {
  display: inline-block;
  min-width: 180px;
  height: 60px;
  line-height: 60px;
  margin: 0 8px;
  background: #ea5404;
  color: #fff;
  font-size: 20px;
  border-radius: 2px;
}

.pajc-success-actions a.ghost {
  background: #fff;
  color: #ea5404;
  border: 1px solid #ea5404;
}

/* 查询订单页标题
   原站 .word 只有 16.67px，下面那条 71px 的线几乎等于下划线，整体看起来像正文。
   这里放大字号、去掉短横线，并收紧标题区的高度。 */
#query_order .container-title {
  height: auto;
  padding: 32px 0 10px;
  margin-bottom: 6px;
}

#query_order .container-title .title-word .word {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #ea5404;
  text-align: center;
}

#query_order .container-title .title-word .line {
  display: none;
}

/* 原站「您的订单」是 25px 字 + 84px 行高，占掉一大块高度，收紧一下 */
#query_order .your_order {
  height: auto;
  padding: 6px 6px 10px;
  font-size: 18px;
  line-height: 1.6;
  color: #99694b;
}

/* 移动端标题在橙色头图上，必须保持白字，只放大字号 */
@media (max-width: 1024px) {
  #query_order .container-title {
    padding: 0;
    margin-bottom: 0.24rem;
  }

  #query_order .container-title .title-word .word {
    font-size: 0.32rem;
    color: #fff;
  }

  #query_order .your_order {
    font-size: 0.26rem;
  }
}

/* 我的订单列表
   原站 #query_order 的订单卡是「固定高度 172px + 内部 <p> 全部 position:absolute」
   拼出来的，新模板改成了普通多行文本。不把这些规则复位，所有字段会叠在同一位置，
   并被 li 的 overflow:hidden 裁掉（表现为文字互相覆盖、下半截看不见）。 */
#query_order .conews-li li.pajc-order {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 16px 20px 18px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(153, 105, 75, 0.1);
  box-sizing: border-box;
}

#query_order .pajc-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0eae4;
}

#query_order .pajc-order-no {
  font-size: 17px;
  line-height: 1.5;
  color: #333;
  word-break: break-all;
}

#query_order .pajc-state {
  flex: none;
  font-size: 15px;
  line-height: 1.5;
  color: #ea5404;
}

#query_order .pajc-state.done {
  color: #4caf50;
}

#query_order .conews-li li.pajc-order p {
  position: static;
  top: auto;
  left: auto;
  margin: 0;
  font-size: 15px;
  color: #777;
  line-height: 1.9;
  word-break: break-all;
}

#query_order .pajc-order p b {
  display: inline-block;
  min-width: 76px;
  margin-right: 6px;
  color: #99694b;
  font-size: 15px;
  font-weight: 600;
}

#query_order .pajc-order code {
  font-size: 15px;
  color: #99694b;
  letter-spacing: 1px;
}

#query_order .conews-li li.pajc-empty {
  height: auto;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  padding: 40px 0;
  font-size: 18px;
  color: #999;
  text-align: center;
  list-style: none;
}

/* 表单校验提示（JS 动态插入） */
.pajc-form-error {
  width: 591px;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 10px 16px;
  border: 1px solid #ea5404;
  background: #fff4ee;
  color: #d24800;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;
}

.pajc-form-error a {
  color: #ea5404;
  font-size: 16px;
  text-decoration: underline;
}

/* 表单即时提示（发送验证码等操作的结果，成功/失败都必须可见） */
.pajc-form-note {
  width: 591px;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 10px 16px;
  border: 1px solid #ea5404;
  background: #fff4ee;
  color: #d24800;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  box-sizing: border-box;
}

.pajc-form-note.ok {
  border-color: #4caf50;
  background: #f1f9f2;
  color: #2e7d32;
}

/* 发送中 / 倒计时中的按钮 */
.btn-captcha.is-busy,
.btn-captcha.is-waiting {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 浮动提示（JS 动态插入，会员侧不加载 app.css，必须在这里单独定义） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translate(-50%, 12px);
  max-width: 80vw;
  padding: 12px 20px;
  background: rgba(34, 48, 42, 0.92);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 精简页头：只保留 logo 与登录/注册 ----------------
   注意：PC / 移动端的切换完全由 importer.css 的 .pc / .mob 控制
   （@media max-width:1024px 里 .pc{display:none}、.mob{display:block}）。
   下面所有布局规则必须放进各自的媒体查询，且绝不能在全局给
   .header-container 设 display —— 否则会盖掉 .pc{display:none}，
   浏览器放大（CSS 视口变窄）时两个页头就会同时显示。 */

@media (min-width: 1025px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 126px;
    padding-right: 10px;
    box-sizing: border-box;
  }
  .header-container .logo {
    margin: 0 0 0 10px;
  }
  .header-container .links {
    float: none;
    margin: 0;
  }
  .header-container .links a + a {
    margin-left: 18px;
  }
}

@media (max-width: 1024px) {
  /* 移动端：登录/注册紧贴右侧，字号与原站 0.26rem 的正文保持一致 */
  .header-mob .links {
    display: flex;
    align-items: center;
  }
  .header-mob .links a {
    color: #fff;
    font-size: 0.26rem;
    text-decoration: underline;
    white-space: nowrap;
  }
  .header-mob .links a + a {
    margin-left: 0.16rem;
  }
}

/* ==================== 页面美化（主色调 #ea5404 不变） ====================
   底色从灰 (#e8e8e8) 换成暖米白；表单统一为白色圆角卡片；
   输入框、按钮、字号统一规格。全部通过本文件覆盖 importer.css 实现，
   member.css 在其后加载，同特异性规则后者生效。 */

html,
body {
  background: #f7f4f0;
}

/* ---------- 兑换页（#customer-service） ---------- */
#customer-service {
  background: transparent;
  padding-bottom: 80px;
}
#customer-service .container-title {
  height: auto;
  padding: 26px 0 4px;
}
#customer-service .container-title .title-word .word {
  font-size: 22px;
  font-weight: 600;
  color: #ea5404;
}
#customer-service .container-title .title-word .line {
  display: none;
}
#customer-service .container-title .cuservice-header-img {
  display: none;
}
#customer-service .cuservice-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(153, 105, 75, 0.14);
  padding: 6px 36px 34px;
  box-sizing: border-box;
}
#customer-service .cuservice-form ._code label {
  font-size: 16px;
  font-weight: 600;
  color: #6b5a4e;
  margin-top: 22px;
}
/* 模板里 label 后面跟了一个 <br>。grid 容器会把 <br> 当成独立的网格项，
   验证码输入框和图片因此错位（图片被挤到下一行）；兑换码段落也会多出空白行。 */
#customer-service .cuservice-form ._code > br {
  display: none;
}
/* 原站 PC 规则给 #redeem_code 写死了 width:591px，而 .cuservice-form 有 36px
   左右内边距，内容区只有 519px，输入框会撑出卡片右边。这里统一改成自适应。 */
#redeem_code,
#verification_code {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 52px;
  border: 1px solid #e6ddd4;
  border-radius: 8px;
  background: #fff;
  font-size: 17px;
  color: #333;
  padding: 0 16px;
  margin-top: 10px;
  outline: none;
  box-sizing: border-box;
}
#redeem_code:focus,
#verification_code:focus {
  border-color: #ea5404;
  box-shadow: 0 0 0 3px rgba(234, 84, 4, 0.12);
}
#redeem_code::placeholder,
#verification_code::placeholder {
  color: #b9b1a9;
  font-size: 15px;
}
/* 验证码一行两列，替换原站脆弱的绝对定位 */
#customer-service .cuservice-form .verification_code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  height: auto;
}
#customer-service .cuservice-form .verification_code label {
  grid-column: 1 / -1;
  margin-top: 22px;
}
#verification_code {
  width: 100%;
}
#customer-service .cuservice-code-img {
  position: static;
  width: 132px;
  height: 52px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #e6ddd4;
  box-sizing: border-box;
}
#customer-service .cuservice-form .verification_code span {
  grid-column: 1 / -1;
  display: block;
  font-size: 12px;
  color: #a6a6ad;
  margin-top: 4px;
}
#customer-service .change_submit {
  width: 100%;
  height: 52px;
  line-height: 52px;
  margin-top: 26px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
#customer-service .change_submit:hover {
  background: #d24800;
}

/* 温馨提示信息卡 */
.pajc-tips {
  width: 591px;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 14px 18px;
  background: #fff4ee;
  border-radius: 10px;
  box-sizing: border-box;
}
.pajc-tips-title {
  font-size: 15px;
  font-weight: 600;
  color: #ea5404;
  margin-bottom: 6px;
}
.pajc-tips p {
  font-size: 15px;
  color: #7a5c48;
  line-height: 1.7;
}

/* ---------- 登录 / 注册页 ---------- */
/* importer.css 用 ID 给 #login / #register 设了灰底和棕色下边框（移动端更明显），
   特异性高于 .main.login 的白卡片规则，必须在这里用同级别的 ID 覆盖掉。 */
#login,
#register {
  background: #fff;
  border-bottom: 0;
  padding-bottom: 30px;
}
.main.login {
  width: 460px;
  max-width: 92%;
  /* 关键：.main 自带的 padding-top:126px 会被下面的 padding 简写覆盖，
     而 .header 是 fixed 的 126px 高。用 margin-top 补偿（126 + 36 间距），
     否则卡片顶部连同标题、第一个 label 会被页头压住。 */
  margin: 162px auto 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(153, 105, 75, 0.14);
  padding: 26px 36px 30px;
  box-sizing: border-box;
}
/* 登录/注册页标题：改用独立 class，彻底绕开原站 importer.css 里
   #register .title 在移动端 display:none、width:72px、伪元素下划线等一堆遗留规则 */
.pajc-form-title {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #ea5404;
  text-align: center;
}
.form {
  width: 100%;
}
.form .input-group {
  margin-bottom: 16px;
}
.form .input-group label {
  font-size: 15px;
  font-weight: 600;
  color: #6b5a4e;
  padding: 0 0 8px;
}
.form .input-group input,
.form .input-group select {
  height: 48px;
  line-height: normal;
  padding: 0 14px;
  border: 1px solid #e6ddd4;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  color: #333;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
}
/* 原站 importer.css 把 select 的 appearance 去掉做自定义箭头，却没有给普通
   下拉补背景图，结果看起来和文本框一样。这里恢复原生箭头。 */
.form .input-group select {
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  appearance: menulist;
}
.form .input-group select:disabled,
#delivery-address .cuservice-form select:disabled {
  background: #f6f4f2;
  color: #a9a29b;
  cursor: not-allowed;
}
.form .input-group input:focus,
.form .input-group select:focus {
  border-color: #ea5404;
  box-shadow: 0 0 0 3px rgba(234, 84, 4, 0.12);
}
.form .input-group input::placeholder {
  color: #b9b1a9;
  font-size: 14px;
}
.form .input-group .captcha,
.form .input-group .mobileCaptcha {
  width: calc(100% - 152px);
}
.form .input-group .captchaImage {
  width: 140px;
  height: 48px;
  padding: 0;
  border: 1px solid #e6ddd4;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.form .input-group .btn-captcha {
  width: 140px;
  height: 48px;
  line-height: 48px;
  padding: 0;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: none;
}
.btn.btn-submit {
  width: 100%;
  height: 52px;
  line-height: 52px;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
}
.btn.btn-submit:hover {
  background: #d24800;
}
.link-register {
  display: block;
  width: 460px;
  max-width: 92%;
  margin: 16px auto 0;
  font-size: 14px;
  color: #ea5404;
  text-decoration: underline;
  text-align: center;
}

/* ---------- 移动端（≤1024px，与原站断点一致） ---------- */
@media (max-width: 1024px) {
  #customer-service {
    background: transparent;
    border-bottom: 0;
    padding-bottom: 60px;
  }
  #customer-service .container-title {
    height: auto;
    background: transparent;
    padding: 22px 0 2px;
  }
  #customer-service .container-title .title-word .word {
    color: #ea5404;
    font-size: 18px;
    font-weight: 600;
  }
  #customer-service .container-title .title-word .line {
    display: none;
  }
  #customer-service .container-title .cuservice-header-img {
    display: none;
  }
  #customer-service .cuservice-form {
    width: 92%;
    height: auto;
    margin-top: 18px;
    padding: 4px 18px 22px;
  }
  #customer-service .cuservice-form ._code {
    height: auto;
    font-size: 15px;
    color: #6b5a4e;
  }
  #customer-service .cuservice-form ._code label {
    font-size: 15px;
    margin: 16px 0 0;
  }
  #redeem_code,
  #verification_code {
    height: 44px;
    width: 100%;
    font-size: 16px;
    padding: 0 12px;
    margin-top: 8px;
  }
  #customer-service .cuservice-form .verification_code label {
    margin-top: 16px;
  }
  #customer-service .cuservice-code-img {
    position: static;
    width: 112px;
    height: 44px;
    margin-top: 8px;
  }
  #customer-service .cuservice-form .verification_code span {
    position: static;
    font-size: 12px;
    margin-top: 4px;
  }
  #customer-service .change_submit {
    width: 100%;
    height: 46px;
    line-height: 46px;
    margin-top: 20px;
    font-size: 17px;
  }
  .main.login {
    width: 92%;
    /* 移动端页头高 0.86rem（rem 基准由 head 里的脚本设置），再加 20px 间距 */
    margin: calc(0.86rem + 20px) auto 40px;
    padding: 20px 18px 24px;
  }
  /* 移动端标题：与页头、与表单之间都留出间距 */
  .pajc-form-title {
    font-size: 20px;
    margin: 6px 0 18px;
  }
  .form .input-group label {
    font-size: 14px;
    padding: 0 0 6px;
  }
  .form .input-group input,
  .form .input-group select {
    height: 44px;
    font-size: 15px;
  }
  .form .input-group .captcha,
  .form .input-group .mobileCaptcha {
    width: calc(100% - 124px);
  }
  .form .input-group .captchaImage {
    width: 114px;
    height: 44px;
  }
  .form .input-group .btn-captcha {
    width: 114px;
    height: 44px;
    line-height: 44px;
    font-size: 13px;
  }
  .btn.btn-submit {
    height: 46px;
    line-height: 46px;
    font-size: 16px;
  }
  .link-register {
    font-size: 13px;
    margin-top: 12px;
  }
  .pajc-tips {
    margin-top: 12px;
    padding: 12px 14px;
  }
  .pajc-tips p {
    font-size: 14px;
  }
  .pajc-tips-title {
    font-size: 14px;
  }
}
