:root{
  --page-bg:#0b1020;
  --panel-bg:#0f1529;
  --panel-2:#0e1426;
  --line:#24314b;
  --brand:#f0c978;
  --brand-2:#c9a65d;
  --info:#9db1cb;
  --text:#eaf2ff;
  --muted:#7f93ad;
  --warn:#ffd98a;
  --focus:0 0 0 3px rgba(240,201,120,.18);
  --radius:12px; --radius-sm:10px;
  --shadow:0 6px 18px rgba(0,0,0,.28);
  --shadow-sm:0 3px 10px rgba(0,0,0,.22);
}
*{margin:0;padding:0;box-sizing:border-box;font-family:"PingFang SC","Helvetica Neue",Arial,sans-serif}
html,body{height:100%}
body{background:var(--page-bg);color:var(--text);line-height:1.6}
.container{max-width:100%;margin:0 auto;padding:0 15px}

header{background:#0c1428;border-bottom:1px solid var(--line);padding:16px 0;}
header .container{display:flex;justify-content:center;align-items:center}
.logo-area{display:flex;align-items:center;flex-direction:column;gap:6px}
.logo{display:flex;align-items:center;gap:10px}
.brand-logo{width:40px;height:40px;object-fit:contain;display:block}
.logo h1{font-size:22px;font-weight:800;letter-spacing:.2px;color:#fff}
.subtitle{font-size:13px;color:var(--info)}

nav.breadcrumb{padding:10px 0 0;font-size:12.5px;color:var(--muted)}
.breadcrumb a{color:var(--brand);text-decoration:none}
.breadcrumb a:hover{opacity:.9}
.breadcrumb span{margin:0 6px;color:#5c6f8f}

main{margin-top:12px}
section{background:var(--panel-bg);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:16px;box-shadow:var(--shadow-sm)}
h2{font-size:16px;margin-bottom:10px;color:#fff;padding-bottom:8px;border-bottom:1px dashed var(--line)}

/* —— 输入与选择 —— */
.form-row{display:grid;grid-template-columns:1fr;gap:12px}
.input-group input,
.select-group select{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:#0c1222;color:var(--text);font-size:14px;transition:box-shadow .16s,border-color .16s
}
.input-group input:focus,
.select-group select:focus{outline:none;border-color:var(--brand-2);box-shadow:var(--focus)}
.input-group input::placeholder{color:#6e86a3}
.select-inline{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* —— 倒计时（更醒目） —— */
.countdown-bar{
  margin:8px 0 12px; padding:12px 14px; border:2px solid var(--brand-2);
  border-radius:12px; background:#111a30; display:flex; align-items:center; gap:10px;
  box-shadow:0 0 0 3px rgba(201,166,93,.12);
}
.countdown-dot{width:8px;height:8px;border-radius:50%;background:var(--warn);animation:pulse 1.2s infinite ease-in-out}
@keyframes pulse{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:1;transform:scale(1)}}
.countdown-text{font-size:15px;color:#ffe6b3;font-weight:900;letter-spacing:.3px}
.countdown-text .mono{font-variant-numeric:tabular-nums}

/* —— 档位 —— */
.recharge-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.option-card{
  position:relative; display:flex; flex-direction:column; align-items:center;
  text-align:center; border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 10px; background:#0d1426; cursor:pointer; transition:border-color .15s,transform .15s;
}
.option-card:hover{border-color:#314365;transform:translateY(-1px)}
.option-card.selected{border-color:var(--brand-2);background:#0e1629}
.amount{font-size:17px;font-weight:800;color:#fff;margin-bottom:2px}
.price{font-size:13.5px;color:#9db1cb}
.bonus{font-size:12px;color:#c9a65d;margin-top:6px;font-weight:800}
.bonus.no-bonus{color:#7f93ad;font-weight:600}

/* —— 推荐标签：悬浮不遮挡 —— */
.option-card{position:relative}
.badge-recommend{
  position:absolute; top:-8px; right:-8px; z-index:2;
  padding:2px 8px; border-radius:999px; background:#f0c978; color:#1a1620;
  border:1px solid #c9a65d; font-size:10.5px; font-weight:900; letter-spacing:.4px; line-height:1;
  pointer-events:none; box-shadow:0 4px 10px rgba(0,0,0,.18);
}

/* —— 支付方式 —— */
.payment-methods{display:flex;gap:10px;flex-wrap:nowrap}
.payment-method{
  flex:1;min-width:120px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px;text-align:center;
  background:#0d1426;display:flex;flex-direction:column;align-items:center;justify-content:center;
  cursor:pointer;transition:border-color .15s,transform .15s;
}
.payment-method:hover{border-color:#314365;transform:translateY(-1px)}
.payment-method.selected{border-color:var(--brand-2);background:#0e1629}
.pay-icon{width:26px;height:26px;object-fit:contain;margin-bottom:8px;display:block}
.payment-name{font-size:13.5px;color:#ecf3ff}

.btn{display:block;width:100%;padding:14px;border:none;border-radius:var(--radius-sm);font-size:15px;font-weight:900;cursor:pointer;letter-spacing:.2px}
.btn-primary{background:#f0c978;color:#1a1620;margin-top:14px;border:1px solid var(--brand-2);box-shadow:var(--shadow-sm)}
.btn-primary:hover{filter:brightness(1.02)}

/* —— 最新动态 —— */
.recharge-news{margin-top:14px;padding:12px;background:var(--panel-2);border-radius:var(--radius-sm);border:1px solid var(--line);position:relative;overflow:hidden}
.news-header{display:flex;align-items:center;margin-bottom:8px;font-size:13.5px;color:#ffe6b3}
.news-icon{margin-right:8px;font-size:15px}
.news-container{height:56px;overflow:hidden;position:relative}
.news-list{position:absolute;width:100%;animation:scrollUp 40s linear infinite}
@keyframes scrollUp{0%{transform:translateY(0)}100%{transform:translateY(-100%)}}
.news-item{display:flex;align-items:center;padding:6px 0;height:28px;font-size:13.5px}
.news-account{color:#7f93ad;width:30%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.news-amount{color:#ffe6b3;font-weight:800;flex:1;text-align:center}
.news-time{color:#90a6c4;font-size:12px;width:20%;text-align:right}

/* —— FAQ & footer —— */
.faq-item{margin-bottom:12px;border-bottom:1px dashed var(--line);padding-bottom:12px}
.faq-question{font-weight:900;margin-bottom:6px;font-size:14px;color:#fff}
.faq-answer{color:#9db1cb;font-size:13.5px}

footer{margin-top:22px;padding:24px 0 18px;background:#0c1428;color:#9db1cb;border-top:1px solid var(--line)}
.footer-content{display:flex;flex-direction:column;gap:14px;text-align:center}
.footer-links{display:flex;flex-wrap:wrap;gap:16px;justify-content:center}
.footer-links a{color:#c8d8f1;text-decoration:none;font-size:13.5px}
.footer-links a:hover{opacity:.9}
.copyright{font-size:12px;text-align:center;padding-top:16px;border-top:1px dashed var(--line)}
.beian-info{margin-bottom:6px;font-size:12px}
.beian-info a{color:#c8d8f1;text-decoration:none}

@media (min-width:768px){
  .container{max-width:750px}
  .recharge-options{grid-template-columns:repeat(3,1fr)}
  .footer-content{flex-direction:row;justify-content:space-between;text-align:left}
  .footer-links{justify-content:flex-start}
}
@media (min-width:992px){
  .container{max-width:800px}
  .recharge-options{grid-template-columns:repeat(4,1fr)}
}

/* —— 弹窗 —— */
.modal-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:999; opacity:0; pointer-events:none; transition:opacity .18s ease}
.modal{
  position:fixed; left:50%; top:50%; transform:translate(-50%,-40%) scale(.96);
  width:calc(100% - 32px); max-width:420px; z-index:1000;
  background:#0f1529;border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; overflow:hidden;
}
.modal.active{opacity:1; transform:translate(-50%,-50%) scale(1); pointer-events:auto;}
.modal-backdrop.active{opacity:1; pointer-events:auto;}
.modal-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px dashed var(--line)}
.modal-title{font-size:15px; font-weight:900; color:#fff}
.modal-close{background:transparent; border:none; color:#cbd9f0; font-size:18px; cursor:pointer; line-height:1; padding:6px; border-radius:8px;}
.modal-body{padding:14px 16px; color:#9db1cb; font-size:14px;}
.modal-actions{display:flex; gap:10px; padding:14px 16px; border-top:1px dashed var(--line);}
.btn-secondary{flex:1; padding:12px; border-radius:10px; border:1px solid var(--line); background:#0d1426; color:#eaf2ff; font-weight:800; cursor:pointer}
.btn-accent{flex:1; padding:12px; border-radius:10px; border:1px solid var(--brand-2); background:#f0c978; color:#1a1620; font-weight:900; cursor:pointer}
