/* 汇天下完整样式 - 修复版：右侧固定下载按钮 */
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;background:#071421;color:#eef8ff}
.wrap{max-width:1080px;margin:auto;padding:20px}
.hero{padding:46px 0 25px;text-align:center}
.brand{font-size:34px;font-weight:900;letter-spacing:2px;color:#eef8ff}
.brand span{color:#20d6ad}
.brand::first-letter{color:#eef8ff}
.subtitle{color:#a9c4d7;margin:10px 0}
.notice{display:inline-block;background:#10293a;border:1px solid #1c4961;padding:8px 16px;border-radius:99px;color:#bfe8f5;font-size:13px}
.featured{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:25px 0}
.card{background:linear-gradient(145deg,#10293a,#0c202e);border:1px solid #173c51;border-radius:18px;padding:20px;box-shadow:0 12px 35px #0004}
.card .code{font-size:13px;color:#7ea9c1}
.card h3{margin:8px 0;font-size:18px}
.rate{font-size:27px;font-weight:800;color:#2de0b7}
.rate small{font-size:13px;color:#8bb1c6}
.converter{margin:20px 0;background:#0d2231;border-radius:20px;padding:24px;border:1px solid #173c51}
.converter h2,.rates h2{margin-top:0}
.convert-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.input,select{width:100%;padding:15px;border:1px solid #28516a;background:#081823;color:white;border-radius:12px;font-size:16px;outline:none}
.result{margin-top:15px;padding:18px;background:#0a1925;border-radius:12px;font-size:22px;font-weight:800;color:#2de0b7}
.rate-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.row{display:flex;justify-content:space-between;align-items:center;background:#0d2231;border:1px solid #173c51;border-radius:14px;padding:15px}
.row b{font-size:18px}
.updated{font-size:12px;color:#7695a8}
.contact{display:flex;gap:10px;justify-content:center;margin:30px 0 90px}
.contact a,.floating a{text-decoration:none;color:white;font-weight:700;border-radius:12px;padding:14px 20px;background:#138c75}
.contact a:nth-child(2){background:#19a463}
.contact a:nth-child(3){background:#2476d3}
.footer{text-align:center;color:#65869a;font-size:13px;padding:15px}
.floating{display:none}
.logoimg{max-height:60px;max-width:220px}
.admin-body{background:#eef3f7;color:#253746}
.admin{max-width:1050px;margin:30px auto;padding:20px}
.panel{background:white;border-radius:15px;padding:20px;margin-bottom:16px;box-shadow:0 5px 20px #1232}
.admin table{width:100%;border-collapse:collapse}
.admin th,.admin td{padding:12px;border-bottom:1px solid #e6edf2;text-align:left}
.btn{border:0;border-radius:8px;padding:9px 14px;background:#0a9279;color:white;cursor:pointer}
.btn.red{background:#d94b4b}
.admin input{padding:10px;border:1px solid #ccd8df;border-radius:8px;width:100%}
.nav{display:flex;gap:8px;margin-bottom:15px}
.nav a{text-decoration:none;background:#18394d;color:#fff;padding:10px 13px;border-radius:8px}

/* 语言切换：汉堡菜单 */
.lang-switch{position:fixed!important;left:16px!important;top:16px!important;z-index:9999!important;width:auto!important;height:auto!important}
.hamburger{width:44px!important;height:44px!important;padding:0!important;border:1px solid #28516a;background:#0d2231;border-radius:12px;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;cursor:pointer;box-shadow:0 8px 22px #0005}
.hamburger span{display:block!important;width:21px!important;height:2px!important;min-height:2px!important;background:#fff!important;border-radius:3px!important}
.lang-menu{display:none!important;position:absolute!important;left:0!important;top:52px!important;width:178px!important;min-width:178px!important;background:#0d2231;border:1px solid #28516a;border-radius:12px;padding:7px!important;z-index:101;box-shadow:0 12px 30px #0008}
.lang-menu.show{display:block!important}
.lang-menu a{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;padding:10px 11px!important;color:#eef8ff;text-decoration:none;border-radius:8px;text-align:left;white-space:nowrap}
.lang-menu a:hover{background:#173c51}
.lang-menu a img{display:block!important;width:24px!important;height:16px!important;min-width:24px!important;min-height:16px!important;max-width:24px!important;max-height:16px!important;object-fit:cover!important;margin:0!important;padding:0!important;border-radius:2px!important;flex:0 0 24px!important}
.flag{font-size:22px;margin-right:5px}
.currency-left{display:flex!important;align-items:center!important;gap:9px!important}
.row-flag{font-size:28px;line-height:1}
.code{display:flex!important;align-items:center!important;gap:0!important}
/* 国旗始终是小图标 */
img.currency-flag,.currency-flag,.card img.currency-flag,.code img.currency-flag,.currency-left img.currency-flag,.row img.currency-flag{display:inline-block!important;width:26px!important;height:18px!important;min-width:26px!important;min-height:18px!important;max-width:26px!important;max-height:18px!important;object-fit:cover!important;margin:0 8px 0 0!important;padding:0!important;border-radius:3px!important;vertical-align:middle!important;flex:0 0 26px!important;box-shadow:0 0 0 1px rgba(255,255,255,.16)!important}
.currency-left img.currency-flag{margin-right:0!important}

/* 右侧悬浮下载按钮：相对可视屏幕固定，不随页面滚动 */
.app-download-fixed{position:fixed!important;right:0!important;left:auto!important;top:52%!important;transform:translateY(-50%)!important;z-index:9998!important;width:65px!important;height:90px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(180deg,#15bfa4,#098c7c);color:#fff!important;text-decoration:none!important;font-size:19px;font-weight:bold;text-align:center;border-radius:12px 0 0 12px;box-shadow:0 4px 18px rgba(0,0,0,.3)}
.app-download-fixed .app-download-arrow{font-size:26px;line-height:1}

@media(max-width:680px){
  .wrap{padding:12px}
  .hero{padding-top:34px}
  .brand{font-size:29px}
  .featured{grid-template-columns:1fr}
  .convert-grid,.rate-list{grid-template-columns:1fr}
  .contact{display:none}
  .floating{position:fixed;display:grid;grid-template-columns:repeat(3,1fr);bottom:0;left:0;right:0;background:#06111bef;padding:8px;gap:6px;z-index:20}
  .floating a{text-align:center;padding:12px 4px;font-size:12px}
  .admin{margin:5px;padding:8px;overflow:auto}
  .admin table{min-width:700px}
  .lang-switch{left:12px!important;top:12px!important}
  .hamburger{width:40px!important;height:40px!important}
  .lang-menu{top:48px!important}
  .row{gap:12px}
  .row strong{text-align:right;font-size:14px}
  .row-flag{font-size:25px}
  .card img.currency-flag,.code img.currency-flag,.currency-left img.currency-flag,.row img.currency-flag{width:24px!important;height:16px!important;min-width:24px!important;min-height:16px!important;max-width:24px!important;max-height:16px!important;flex-basis:24px!important}
}
@media(max-width:600px){
  .app-download-fixed{width:65px!important;height:90px!important}
}