/* ===== 基础重置 ===== */
*,*::before,*::after{box-sizing:border-box;border:0 solid #e5e7eb}
html{-webkit-text-size-adjust:100%;line-height:1.5}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#F8F9FA;color:#2B2D42;
  font-family:Inter,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",Roboto,"Helvetica Neue",Arial,sans-serif}
h1,h2,h3,h4,p{margin:0}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;cursor:pointer;padding:0}
.hidden{display:none!important}

:root{--primary:#165DFF;--accent:#3A86FF;--dark:#2B2D42;--green:#00B42A}

.container{width:100%;margin:0 auto;padding:0 1rem}
@media(min-width:640px){.container{max-width:640px}}
@media(min-width:768px){.container{max-width:768px}}
@media(min-width:1024px){.container{max-width:1024px}}
@media(min-width:1280px){.container{max-width:1280px}}
@media(min-width:1536px){.container{max-width:1536px}}

.ico{display:inline-flex;vertical-align:middle}
.ico svg{width:1em;height:1em}

/* ===== 导航栏 ===== */
.nav{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);transition:all .3s}
.nav-inner{display:flex;justify-content:space-between;align-items:center;padding-top:.75rem;padding-bottom:.75rem;transition:all .3s}
.nav.scrolled .nav-inner{padding-top:.5rem;padding-bottom:.5rem}
.brand{display:flex;align-items:center;min-width:0}
.ico-globe{color:var(--primary);font-size:1.5rem;margin-right:.5rem}
.brand-name{font-size:1.125rem;font-weight:600;color:var(--dark);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-links{display:none;align-items:center;gap:1rem}
.nav-links a:not(.pill){color:#4b5563;transition:color .15s}
.nav-links a:not(.pill):hover{color:var(--primary)}
.pill{background:rgba(22,93,255,.1);color:var(--primary);padding:.25rem .75rem;border-radius:9999px;font-size:.875rem;font-weight:500;transition:background .15s;white-space:nowrap}
.pill:hover{background:rgba(22,93,255,.2)}
.nav-mobile{display:flex;align-items:center;gap:.5rem;flex-shrink:0;margin-left:.5rem}
#mobile-menu-btn{color:#4b5563;font-size:1.25rem;width:1.5rem;height:1.5rem}
#mobile-menu-btn svg{width:100%;height:100%}
.mobile-menu{background:#fff;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);position:absolute;width:100%;z-index:50}
.mobile-menu .container{display:flex;flex-direction:column;padding-top:.75rem;padding-bottom:.75rem}
.mobile-menu a{color:#4b5563;padding:.5rem 0;transition:color .15s}
.mobile-menu a:hover{color:var(--primary)}
@media(min-width:768px){.nav-links{display:flex}.nav-mobile,.mobile-menu{display:none!important}}

/* ===== 主横幅 ===== */
.hero{position:relative;padding:3rem 0;background:linear-gradient(to right,rgba(22,93,255,.9),rgba(58,134,255,.9))}
@media(min-width:768px){.hero{padding:5rem 0}}
.hero-inner{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:2rem}
@media(min-width:768px){.hero-inner{flex-direction:row}}
.hero-left{flex:1;text-align:center;min-width:0;width:100%}
@media(min-width:768px){.hero-left{text-align:left;width:auto}}
.hero h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:700;line-height:1.15;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.12);margin-bottom:1rem;word-break:break-all}
.tagline{font-size:clamp(1.1rem,2vw,1.5rem);color:rgba(255,255,255,.9);margin:0 auto 2rem;max-width:36rem}
@media(min-width:768px){.tagline{margin-left:0}}
.tagline strong{font-weight:600}
.btns{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem}
@media(min-width:768px){.btns{justify-content:flex-start}}
.btn{display:inline-block;padding:1rem 2rem;border-radius:.5rem;font-weight:500;line-height:1.5;
  box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);transition:all .3s}
.btn:hover{box-shadow:0 25px 50px -12px rgba(0,0,0,.25);transform:translateY(-.5rem)}
.btn .ico{margin-right:.5rem}
.btn-white{background:#fff;color:var(--primary)}
.btn-green{background:var(--green);color:#fff}

.hero-right{width:100%}
@media(min-width:768px){.hero-right{width:auto;max-width:24rem;flex-shrink:0}}
.broker-card{background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:.75rem;padding:1.5rem;
  box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);transition:all .3s;position:relative}
.broker-card:hover{box-shadow:0 25px 50px -12px rgba(0,0,0,.25);transform:scale(1.03)}
.broker-card h2{font-size:1.25rem;line-height:1.75rem;font-weight:700;margin-bottom:1rem;text-align:center;display:flex;align-items:center;justify-content:center}
.broker-card h2 .ico{margin-right:.5rem}
.broker-head{text-align:center;margin-bottom:1rem}
.avatar{width:7rem;height:7rem;border-radius:9999px;margin:0 auto .75rem;border:4px solid rgba(22,93,255,.2);box-shadow:0 4px 6px -1px rgba(0,0,0,.1);object-fit:cover}
.broker-head h3{font-size:1.125rem;font-weight:600}
.broker-head p{color:#6b7280;font-size:.875rem}
.contact-list>*+*{margin-top:.375rem}
.contact-item{display:flex;align-items:center;background:#f9fafb;padding:.5rem .75rem;border-radius:.5rem;width:100%;transition:all .15s;cursor:pointer}
.contact-item:hover{background:#f3f4f6}
.c-ico{width:2.25rem;height:2.25rem;border-radius:9999px;display:flex;align-items:center;justify-content:center;margin-right:.75rem;color:#fff;flex-shrink:0}
.c-ico svg{width:1.15rem;height:1.15rem}
.bg-blue{background:#3b82f6}.bg-green{background:#22c55e}.bg-red{background:#ef4444}
.c-text{color:#374151;min-width:0;word-break:break-all}
/* 微信二维码：悬浮层，不占文档流，避免把左侧按钮/域名挤动 */
.contact-wrap{position:relative}
.qr-pop{display:none;position:absolute;left:50%;top:calc(100% + .5rem);transform:translateX(-50%);z-index:40;width:12rem;max-width:calc(100vw - 2rem);
  background:#fff;border-radius:.75rem;padding:.6rem;box-shadow:0 12px 32px rgba(0,0,0,.22);text-align:center}
.qr-pop::before{content:"";position:absolute;left:50%;top:-6px;width:12px;height:12px;background:#fff;transform:translateX(-50%) rotate(45deg)}
.qr-pop.on{display:block;animation:qrIn .15s ease}
.qr-pop img{position:relative;display:block;width:100%;height:auto;aspect-ratio:1/1;max-width:none;margin:0 auto;object-fit:contain}
@keyframes qrIn{from{opacity:0;transform:translateX(-50%) translateY(-4px)}to{opacity:1;transform:translateX(-50%)}}
.hero-fade{position:absolute;bottom:0;left:0;right:0;height:18rem;background:linear-gradient(to top,#F8F9FA,transparent)}

.main{flex-grow:1;padding-top:3rem;padding-bottom:3rem}

/* ===== 页脚 ===== */
.footer{background:var(--dark);color:rgba(255,255,255,.8);padding:2rem 0}
.footer-row{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}
@media(min-width:768px){.footer-row{flex-direction:row}}
.footer-buy{text-align:center}
@media(min-width:768px){.footer-buy{text-align:left}}
.footer-buy h4{color:#fff;font-size:.875rem;font-weight:600;margin-bottom:.5rem}
.buy-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}
@media(min-width:768px){.buy-links{justify-content:flex-start}}
.buy-links a{color:rgba(255,255,255,.7);font-size:.875rem;transition:color .15s}
.buy-links a:hover{color:#fff;}
.footer-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem}
.footer-nav a{color:rgba(255,255,255,.7);transition:color .15s}
.footer-nav a:hover{color:#fff}
.copyright{padding-top:1rem;border-top:1px solid rgba(255,255,255,.1);text-align:center;font-size:.75rem;color:rgba(255,255,255,.5)}

/* ===== 弹窗 ===== */
.modal{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;padding:.5rem}
.modal.is-active{display:flex}
.modal-background{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.modal-card{position:relative;background:#fff;border-radius:10px;width:500px;max-width:100%;max-height:92vh;overflow-y:auto;z-index:1;color:var(--dark)}
.modal-card-head{padding:0 1.5rem;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}
.modal-card-head p{line-height:1rem;margin:1rem 0}
.modal-card-title{font-size:1.1rem;font-weight:700}
.delete{border:none;font-size:1.5rem;color:#777;line-height:1}
.modal-card-body{padding:1rem 1.2rem .5rem}
.modal-card-foot{padding:.75rem 1.5rem;border-top:1px solid #eee;display:flex;gap:.75rem;justify-content:flex-end}
.field{margin-bottom:1rem}
.label{font-size:.88rem;font-weight:600;color:#111;margin-bottom:4px;display:block}
.label small{font-weight:400;margin-left:4px;color:#777}
.has-text-danger{color:#d32f2f}
.input,.textarea,.select select{width:100%;padding:.5rem .75rem;border:1.5px solid #ccc;border-radius:6px;font-family:inherit;font-size:.9rem;outline:none;transition:border-color .2s;background:#fff;color:inherit}
.input:focus,.textarea:focus,.select select:focus{border-color:var(--primary)}
.textarea{resize:vertical}
.field.has-addons{display:flex;margin-bottom:0}
.field.has-addons .control.is-expanded{flex:1;min-width:0}
.field.has-addons .input{border-radius:6px 0 0 6px}
.field.has-addons .select select{border-radius:0 6px 6px 0;border-left:none}
.select{position:relative}
.select select{appearance:none;-webkit-appearance:none;padding-right:2rem;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .7rem center}
.button{padding:.55rem 1.1rem;border:1.5px solid #ccc;border-radius:6px;background:#fff;font-size:.92rem;font-weight:600;transition:background .2s}
.button:hover{background:#f5f5f5}
.button.is-primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.button.is-primary:hover{background:#0d47cc}
#loading-modal .modal-content{background:#fff;border-radius:10px;padding:2rem;text-align:center;min-width:200px;position:relative;z-index:1}
.loading-spinner{width:36px;height:36px;border:4px solid #e0e0e0;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 1rem}
@keyframes spin{to{transform:rotate(360deg)}}
.notification{position:fixed;top:20px;right:20px;left:20px;margin-left:auto;z-index:9999;max-width:380px;padding:1rem 1.2rem;border-radius:8px;font-size:.92rem;display:flex;align-items:flex-start;gap:.75rem;box-shadow:0 4px 16px rgba(0,0,0,.15);animation:slideInRight .3s ease}
.notification.is-success{background:#e8f5e9;color:#1b5e20;border:1px solid #a5d6a7}
.notification.is-danger{background:#fce4ec;color:#7f0000;border:1px solid #ef9a9a}
.notification.is-warning{background:#fff8e1;color:#4e3b00;border:1px solid #ffe082}
.notification.is-info{background:#e3f2fd;color:#0d3d6e;border:1px solid #90caf9}
@keyframes slideInRight{from{transform:translateX(110%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes slideOutRight{from{transform:translateX(0);opacity:1}to{transform:translateX(110%);opacity:0}}
