*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:"PingFang SC","Microsoft YaHei",sans-serif;background:#fafafa;color:#1a1a2e;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:#3498db;text-decoration:none}
a:hover{text-decoration:underline}
ul{list-style:none}
.container{width:min(1140px,92vw);margin:0 auto}

.rainbow-bar{display:flex;height:5px}
.rainbow-bar span{flex:1}
.rainbow-bar .c1{background:#e74c3c}
.rainbow-bar .c2{background:#f39c12}
.rainbow-bar .c3{background:#f1c40f}
.rainbow-bar .c4{background:#2ecc71}
.rainbow-bar .c5{background:#3498db}
.rainbow-bar .c6{background:#9b59b6}

.site-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #e8e8e8}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.65rem 0;gap:1rem}
.logo{font-weight:800;font-size:1.1rem;color:#1a1a2e}
.logo b{color:#e74c3c;font-weight:900}
.nav-main{display:flex;flex-wrap:wrap;gap:.35rem 1rem;font-size:.88rem}
.nav-main a{color:#555;font-weight:600}
.nav-main a.active,.nav-main a:hover{color:#3498db;text-decoration:none}
.btn-nav{display:inline-block;background:#1a1a2e;color:#fff!important;padding:.45rem 1rem;font-weight:700;font-size:.85rem;border-radius:4px;text-decoration:none!important}
.btn-nav:hover{background:#3498db}

.section{padding:3.5rem 0}
.section-title{font-size:clamp(1.3rem,3vw,1.7rem);font-weight:800;margin-bottom:.45rem}
.section-lead{color:#666;font-size:.92rem;margin-bottom:2rem;max-width:620px}

.footer{background:#1a1a2e;color:#ccc;padding:2.5rem 0 0;font-size:.86rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;padding-bottom:2rem}
.footer h3{font-size:.92rem;color:#f1c40f;margin-bottom:.7rem}
.footer a{color:#aaa}
.footer-links{display:flex;flex-wrap:wrap;gap:.4rem 1rem}
.footer-bottom{padding:1rem 0;text-align:center;color:#777;font-size:.78rem;border-top:1px solid #333}

@media(max-width:768px){
  .header-inner{flex-direction:column;align-items:flex-start}
  .footer-grid{grid-template-columns:1fr}
}
