/* 基础重置 */
*, *::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;
  width: 100%;
}

.pay-method-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}

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

.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;
}

/* 常见问题 - 手风琴 */
.section-faq {
  padding: 20px 16px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.section-faq .section-head {
  margin-bottom: 16px;
}

.section-faq .section-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  cursor: default;
  justify-content: flex-start;
  letter-spacing: -.02em;
}

.section-faq .section-sub {
  margin: 0;
  font-size: 13px;
  color: #8c8c8c;
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item:hover {
  border-color: #ffd4b8;
}

.faq-item.is-open {
  border-color: #ffb380;
  box-shadow: 0 4px 20px rgba(255, 107, 0, .1);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger-text {
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  line-height: 1.4;
  transition: color .2s ease;
}

.faq-item.is-open .faq-trigger-text {
  color: #ff5500;
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #8c8c8c;
  font-size: 11px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .25s ease, color .25s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #ff6b00, #ff3300);
  color: #fff;
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-answer {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #595959;
}

.faq-trigger:focus-visible {
  outline: 2px solid #ff6b00;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel,
  .faq-chevron,
  .faq-item {
    transition: none;
  }
}

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

/* 移动端优化 */
@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-method-container {
    gap: 10px;
  }
  .pay-method {
    padding: 12px 10px;
    font-size: 14px;
    gap: 6px;
  }
  .pay-method i {
    font-size: 22px;
  }
  .section-faq .section-head h2 {
    font-size: 17px;
  }
  .faq-trigger {
    padding: 14px 16px;
  }
  .faq-trigger-text {
    font-size: 14px;
  }
  .faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
  }
}

/* PC端支付方式 */
@media (min-width: 481px) {
  .pay-method-container {
    gap: 16px;
  }
  .pay-method {
    padding: 16px 20px;
    font-size: 16px;
    gap: 10px;
  }
  .pay-method i {
    font-size: 26px;
  }
  .pay-method.active {
    padding-left: 20px;
    padding-right: 44px;
  }
  .pay-method.active::before {
    right: 14px;
    font-size: 20px;
  }
}