/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #ffffff, #f7f9fc);
  color: #333;
  line-height: 1.5;
}

/* 头部 */
header {
  background: linear-gradient(90deg, #ff6b00, #ff3300);
  color: #fff;
  padding: 36px 14px 50px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1.5px;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  position: relative;
  border-bottom-left-radius: 40% 10%;
  border-bottom-right-radius: 40% 10%;
}

header .logo {
  display: block;
  margin: 0 auto 10px;
  max-width: 80px;
  height: auto;
  border-radius: 20%;
  box-shadow: 0 4px 10px rgba(0,0,0,.3), inset 0 2px 6px rgba(255,255,255,.6);
  border: 2px solid rgba(255,255,255,.7);
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

.header-subtitle {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: .5px;
  color: #fff;
  opacity: .95;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
}


/* 面包屑 */
.breadcrumb {
  font-size: 12px;
  margin: 12px auto;
  padding: 0 16px;
  max-width: 720px;
  color: #666;
}

/* 容器 */
.container {
  padding: 16px;
  max-width: 720px;
  margin: 0 auto;
}

/* 标题行 */
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

h1 {
  font-size: 22px;
  margin: 0;
  color: #ff3300;
  position: relative;
}

h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #ff6b00;
  margin: 6px 0 0;
  border-radius: 2px;
}

.link-btn {
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid #ff6b00;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ff6b00;
  background: #fff;
  text-decoration: none;
  transition: .2s;
}

.link-btn:hover {
  background: #fff3e8;
  border-color: #ff3300;
  color: #ff3300;
  box-shadow: 0 2px 8px rgba(255,51,0,.15);
}

/* 金额挡位网格 */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .amount-grid {
    grid-template-columns: 1fr;
  }
}

.amount {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.amount:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.amount.active,
.amount.selected {
  border: 2px solid #ff3300;
  box-shadow: 0 0 10px rgba(255,51,0,.3);
  background: linear-gradient(to bottom, #fff7f3, #fff);
}

.price-strong {
  display: block;
  font-weight: 800;
  font-size: 22px;
  color: #333;
  margin-bottom: 6px;
}

.desc-line {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.save-line {
  color: #ff3a3a;
  font-size: 12px;
  margin-top: 8px;
}

.tag {
  background: #ff3366;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.flag-hot {
  position: absolute;
  top: 8px;
  right: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* 表单组 */
.form-group {
  margin-top: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #444;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  transition: border .2s, box-shadow .2s;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #ff3300;
  outline: none;
  box-shadow: 0 0 6px rgba(255,51,0,.4);
}

/* 支付方式 */
.pay-methods {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.pay-method-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  background: #fff;
  position: relative;
  min-width: 140px;
  justify-content: center;
}

.pay-method:hover {
  border-color: #ff6b00;
  box-shadow: 0 4px 12px rgba(255,107,0,0.2);
  transform: translateY(-2px);
}

.pay-method.active,
.pay-method.selected {
  background: linear-gradient(to right, rgba(255,107,0,0.1), rgba(255,51,0,0.15));
  color: #ff3300;
  font-weight: bold;
  border-color: #ff3300;
  box-shadow: 0 0 15px rgba(255,51,0,0.4);
  position: relative;
  padding-left: 24px;
  padding-right: 40px;
}

.pay-method.active::before,
.pay-method.selected::before {
  content: "\f058"; /* Font Awesome check-circle icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff3300;
  font-size: 18px;
}

.pay-method.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  border-color: #ddd;
  background: #f9f9f9;
}

.pay-method.disabled:hover {
  border-color: #ddd;
  box-shadow: none;
  transform: none;
}

.pay-method i {
  font-size: 24px;
}

/* 激活状态下图标左边距 */
.pay-method.active i {
  margin-left: 8px;
}

/* 图标颜色 */
.pay-method[data-payment="alipay"] i {
  color: #1677ff;
}

.pay-method[data-payment="weixin"] i {
  color: #07c160;
}

/* 提交按钮 */
.submit-btn {
  background: linear-gradient(90deg, #ff6b00, #ff3300);
  color: #fff;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,51,0,.5);
}

/* 提示 */
.notice {
  font-size: 13px;
  margin-top: 14px;
  color: #444;
  text-align: center;
}

/* 区块 */
.section {
  margin-top: 24px;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.section h2 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #ff3300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item {
  margin: 10px 0;
}

.faq-question {
  font-size: 14px;
  color: #ff3300;
  cursor: pointer;
  position: relative;
  padding-left: 16px;
}

.faq-question::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #ff6b00;
}

.faq-answer {
  font-size: 13px;
  color: #444;
  display: none;
  margin-top: 4px;
  padding-left: 16px;
}

/* 页脚 */
footer {
  font-size: 12px;
  text-align: center;
  color: #666;
  padding: 20px;
  margin-top: 22px;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

/* 浮动消息 */
.float-msg {
  position: fixed;
  bottom: 20px;
  left: 10px;
  background: rgba(255,107,0,.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  animation: fade 8s infinite;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

@keyframes fade {
  0% { opacity: 0; transform: translateY(10px); }
  10% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* 移动端优化 */
@media (max-width: 480px) {
  .title-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .link-btn {
    padding: 8px 10px;
  }
  .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .amount {
    padding: 14px 10px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .price-strong {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .desc-line {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }
  .save-line {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
  }
  .pay-methods {
    align-items: stretch;
  }
  .pay-method-container {
    flex-direction: column;
    width: 100%;
  }
  .pay-method {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }
}

/* PC端支付方式宽度调整 */
@media (min-width: 481px) {
  .pay-method {
    min-width: 200px;
    padding: 16px 32px;
    font-size: 18px;
  }
  .pay-method i {
    font-size: 28px;
  }
  .pay-method.active {
    padding-left: 32px;
    padding-right: 50px;
  }
  .pay-method.active::before {
    right: 16px;
    font-size: 20px;
  }
}