* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC","Helvetica Neue",Arial,sans-serif;
  background: linear-gradient(135deg,#f0f8ff,#f9f0ff);
  color: #333;
  line-height: 1.6;
  padding-bottom: 20px;
}
.container { max-width: 800px; margin: 0 auto; padding: 0 16px; }
header {
  background: linear-gradient(135deg,#2d8cf0,#19be6b);
  color: #fff;
  padding: 25px 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(45,140,240,.3);
  margin-bottom: 25px;
}
header h1 { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
header p { margin-top: 8px; font-size: 15px; opacity: .9; }

/* 面包屑 */
.breadcrumb {
  background: #fff;
  padding: 12px 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  font-size: 14px;
  color: #666;
}
.breadcrumb a { color: #2d8cf0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  padding: 24px;
  margin-bottom: 24px;
}
.card-title {
  font-size: 20px; font-weight: 600; color: #2d8cf0; margin-bottom: 20px;
  display: flex; align-items: center;
}
.card-title i { margin-right: 10px; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 16px; }
.form-group input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 16px;
  transition: all .3s;
}
.form-group input:focus {
  border-color: #2d8cf0; outline: none; box-shadow: 0 0 0 3px rgba(45,140,240,.2);
}

.btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 12px;
  margin-top: 10px;
}
.btn-option {
  background: #f8f9fa;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.btn-option:hover { border-color: #2d8cf0; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(45,140,240,.15); }
.btn-option.selected { background: #f0f8ff; border-color: #2d8cf0; color: #2d8cf0; }
.btn-option .amount { font-weight: 700; font-size: 18px; margin-bottom: 5px; }
.btn-option .coins { font-size: 14px; color: #666; }
.btn-option .badge {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg,#2d8cf0,#19be6b);
  color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 10px; font-weight: 600;
}
.btn-option .discount { display: block; margin-top: 8px; font-size: 13px; color: #19be6b; font-weight: 600; }

.recommended { border: 2px solid #2d8cf0; background: linear-gradient(135deg,#f0f8ff,#fff); position: relative; }
.recommended::before {
  content: "最划算";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #2d8cf0; color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; font-weight: 600; z-index: 1;
}

.btn-submit {
  display: block; width: 100%; padding: 18px;
  background: linear-gradient(135deg,#2d8cf0,#19be6b);
  color: #fff; border: none; border-radius: 12px; font-size: 18px; font-weight: 700; cursor: pointer;
  transition: all .3s; margin-top: 16px; box-shadow: 0 5px 15px rgba(45,140,240,.3);
}
.btn-submit:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(45,140,240,.4); }

.faq-item { margin-bottom: 20px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 16px; color: #2d8cf0; margin-bottom: 10px; }
.faq-item p { font-size: 15px; color: #555; line-height: 1.6; }

footer { text-align: center; font-size: 14px; color: #888; padding: 20px 0; }
footer a { color: #2d8cf0; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* 顶部通知 */
.notify {
  position: fixed; left: 50%; top: 20px; background: rgba(255,255,255,.95);
  color: #333; padding: 12px 20px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 5px 25px rgba(0,0,0,.15); opacity: 0;
  transform: translateX(-50%) translateY(-30px); transition: all .4s ease; pointer-events: none; z-index: 10000; max-width: 320px; text-align: center;
}
.notify.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notify .amount { color: #2d8cf0; font-weight: bold; }

/* 弹出层 */
.modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); }
.modal-content {
  background: #fff; margin: 10% auto; padding: 25px; border-radius: 16px; width: 90%; max-width: 400px; text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.2); position: relative; animation: modalAppear .4s ease;
}
@keyframes modalAppear { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
.close { position: absolute; right: 20px; top: 15px; color: #999; font-size: 24px; font-weight: bold; cursor: pointer; background: transparent; border: 0; }
.close:hover { color: #333; }
#qrcode { margin: 20px auto; display: flex; justify-content: center; }
.modal-sub { margin-top: -8px; color: #888; font-size: 13px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.modal-btn { padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .2s; border: none; font-size: 15px; }
.modal-btn.primary { background: linear-gradient(135deg,#2d8cf0,#19be6b); color: #fff; }
.modal-btn.secondary { background: #f0f0f0; color: #555; }

/* 推荐弹窗 */
.recommend-modal { text-align: center; padding: 10px 0; }
.recommend-modal h3 { color: #2d8cf0; margin-bottom: 15px; font-size: 22px; }
.recommend-modal p { margin-bottom: 20px; font-size: 16px; color: #555; }
.recommend-btns { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.recommend-btn { padding: 12px 25px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: all .3s; border: none; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg,#2d8cf0,#19be6b); color: #fff; box-shadow: 0 4px 15px rgba(45,140,240,.3); }
.btn-secondary { background: #f0f0f0; color: #555; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45,140,240,.4); }
.btn-secondary:hover { background: #e0e0e0; }

/* 加载遮罩 */
.loading-mask{
  position: fixed; inset: 0; background: rgba(255,255,255,.6); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 10001;
}
.loading-box{
  background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 16px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: #2d8cf0;
}
.loading-box .spinner{
  width: 20px; height: 20px; border: 3px solid #e1f0ff; border-top-color:#2d8cf0; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* entry=html 的 iframe 弹层 */
#htmlPayModal .modal-content{ max-width: 400px; }
.html-box{ width:350px; margin:0 auto; }
.html-iframe{
  width:350px; height:350px; border:0; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* 支付成功弹层 */
.success-title{ color:#19be6b; font-size:22px; font-weight:800; margin-bottom:8px; }
.success-text{ color:#555; font-size:15px; margin-top:6px; }

/* 动画与响应式 */
@keyframes pulse { 0%{transform:scale(1);} 50%{transform:scale(1.05);} 100%{transform:scale(1);} }
.pulse { animation: pulse 2s infinite; }

@media (max-width: 600px) {
  .btn-group { grid-template-columns: 1fr 1fr; }
  header h1 { font-size: 22px; }
  .card-title { font-size: 18px; }
  .btn-option .amount { font-size: 16px; }
  .btn-option .coins { font-size: 13px; }
  .recommend-btns { flex-direction: column; gap: 10px; }
  .recommend-btn { width: 100%; }
}

/* 无障碍隐藏文本 */
.sr-only{ position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
