:root{
  --bg:#f3f5f7;
  --card:#fff;
  --line:#e9edf2;
  --txt:#222b38;
  --sub:#697383;
  --muted:#96a1b1;
  --accent:#ff5a55;
  --wrap:1720px;
  --left:248px;
  --right:244px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  color:var(--txt);
  font:14px/1.6 Arial,Helvetica,"PingFang SC","Microsoft YaHei",sans-serif;
  background:#f3f4f6 url("../image/indexbg.webp") center top/auto no-repeat;
  background-attachment:scroll;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;border:0}
ul,ol,h1,h2,h3,h4,p{margin:0;padding:0}
ul,ol{list-style:none}
button,input{font:inherit}

.acg-shell{width:min(var(--wrap),calc(100% - 136px));margin:0 auto}
.site-main{padding-bottom:30px}

.m-header{display:none}
.mobile-mask{position:fixed;inset:0;z-index:220;display:none;background:rgba(0,0,0,.45)}
.mobile-mask.is-active{display:block}
body.drawer-open{overflow:hidden}

.site-header{
  position:sticky;top:0;z-index:180;background:#fff;border-bottom:1px solid var(--line)
}
body.index.index .site-header{
  position:absolute;left:0;right:0;top:0;background:transparent;border-bottom:0
}
.site-header__inner{height:70px;display:flex;align-items:center;gap:14px}
.site-logo img{height:34px;width:auto}
.site-nav{flex:1;min-width:0}
.site-nav__list{display:flex;align-items:center;gap:2px}
.site-nav__list>li{position:relative}
.site-nav__list>li>a{
  display:block;height:38px;line-height:38px;padding:0 12px;border-radius:8px;color:#3c4654;font-size:16px
}
body.index.index .site-nav__list>li>a{color:#fff}
.site-nav__list>li>a:hover,.site-nav__list>li.is-active>a{color:var(--accent)}
.site-subnav{
  display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:140px;padding:6px;border:1px solid var(--line);border-radius:8px;background:#fff
}
.site-nav__list>li:hover .site-subnav{display:block}
.site-subnav a{display:block;padding:6px 8px;border-radius:6px;color:#516071;font-size:13px}
.site-subnav a:hover{background:#f4f7fa}

.site-tools{display:flex;align-items:center;gap:10px}
.site-search{
  width:260px;height:40px;position:relative;border:1px solid #dde4ed;border-radius:999px;background:#f8fafc
}
.site-search input{
  width:100%;height:100%;border:0;outline:0;background:transparent;padding:0 38px 0 14px;color:#5c6775;font-size:13px
}
.site-search button{
  position:absolute;right:4px;top:50%;width:30px;height:30px;margin-top:-15px;border:0;border-radius:50%;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23606a79' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/13px no-repeat
}
.site-user{
  width:36px;height:36px;border:1px solid #e2e8f0;border-radius:50%;display:block;position:relative;background:#fff
}
.site-user:before{
  content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2337404d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/16px no-repeat
}

.home-hero{position:relative;height:500px;background:#ddd}
.home-hero__slider,.hero-item{position:absolute;inset:0}
.hero-item{opacity:0;pointer-events:none;transition:opacity .35s ease}
.hero-item.is-active{opacity:1;pointer-events:auto}
.hero-item img{width:100%;height:100%;object-fit:cover}
.hero-prev,.hero-next{
  position:absolute;top:50%;margin-top:-20px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.35);cursor:pointer;z-index:3
}
.hero-prev{left:20px}.hero-next{right:20px}
.hero-prev:before,.hero-next:before{
  content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-top:2px solid #fff;border-left:2px solid #fff
}
.hero-prev:before{margin:-5px 0 0 -3px;transform:rotate(-45deg)}
.hero-next:before{margin:-5px 0 0 -6px;transform:rotate(135deg)}
.hero-dots{position:absolute;left:0;right:0;bottom:16px;display:flex;justify-content:center;gap:8px;z-index:3}
.hero-dots button{width:8px;height:8px;padding:0;border:1px solid #fff;border-radius:50%;background:transparent}
.hero-dots button.is-active{background:#fff}

.home-hero__search{position:relative;z-index:4;padding-top:132px;text-align:center;color:#fff}
.home-hero__search h2{font-size:40px;line-height:1.2}
.home-hero__search p{margin-top:7px;font-size:26px}
.home-hero__search form{max-width:820px;margin:14px auto 0;display:flex;gap:8px}
.home-hero__search input{
  flex:1;height:50px;border:0;border-radius:999px;padding:0 16px;background:rgba(255,255,255,.9);color:#5e6978;font-size:14px
}
.home-hero__search button{
  width:102px;height:50px;border:0;border-radius:999px;background:#111;color:#fff;cursor:pointer
}
body.index.index .home-hero__search button{display:none}
.hero-tags{margin-top:14px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.hero-tags a{padding:6px 10px;border-radius:6px;background:rgba(255,255,255,.9);color:#6b7686;font-size:13px}

.layout{
  margin-top:14px;
  display:grid;grid-template-columns:var(--left) minmax(0,1fr) var(--right);gap:24px;align-items:start
}
.layout-inner{margin-top:68px}
.maincol,.leftbar,.rightbar{min-width:0}
.leftbar,.rightbar{padding-top:2px}

.leftbar__inner{position:sticky;top:84px}
.left-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;margin-bottom:14px}
.left-menu{padding:10px}
.left-menu li a{display:block;height:38px;line-height:38px;padding:0 10px;border-radius:8px;color:#2f3946;font-size:14px}
.left-menu li a:hover{background:#f4f7fa}
.left-pub{display:block;height:42px;line-height:42px;margin-top:8px;text-align:center;border-radius:999px;background:#ff584e;color:#fff;font-size:15px}
.left-forums{padding:10px}
.left-forums h3{font-size:18px;margin-bottom:7px}
.left-forums li a{
  display:flex;align-items:center;height:35px;padding:0 10px;border-radius:8px;color:#4a5666;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.left-forums li a:before{
  content:"";
  width:21px;height:21px;flex:0 0 21px;margin-right:8px;border-radius:50%;
  background:#eef2f7 center/21px 21px no-repeat
}
.left-forums li a:hover{background:#f4f7fa}
.left-forums li:nth-child(1) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/1.png")}
.left-forums li:nth-child(2) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/2.png")}
.left-forums li:nth-child(3) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/3.png")}
.left-forums li:nth-child(4) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/4.png")}
.left-forums li:nth-child(5) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/5.png")}
.left-forums li:nth-child(6) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/6.png")}
.left-forums li:nth-child(7) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/7.png")}
.left-forums li:nth-child(8) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/8.png")}
.left-forums li:nth-child(9) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/9.png")}
.left-forums li:nth-child(10) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/10.png")}
.left-forums li:nth-child(11) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/11.png")}
.left-forums li:nth-child(12) a:before{background-image:url("http://119.28.137.181/acg/template/quater_2025_acg/portal/forum/12.png")}
.left-login{padding:16px 10px;text-align:center}
.left-login img{width:52px;height:52px;border-radius:50%;margin:0 auto 8px}
.left-login h4 a{font-size:16px}
.left-login p{margin-top:6px;color:#98a2b1;font-size:12px}

.notice-bar{
  height:44px;line-height:44px;padding:0 12px;border-radius:10px;background:#ffecef;border:1px solid #ffd7de;color:#ff4f62;font-size:12px
}
.tab-bar{display:flex;gap:8px;padding:8px 0}
.tab-bar a{
  height:36px;line-height:36px;padding:0 12px;border-radius:999px;background:#f2f5f8;color:#546272;font-size:13px
}
.tab-bar a.is-active{background:#fff;border:1px solid #e8edf4;color:#222}

.post-list{display:grid;grid-template-columns:1fr;gap:10px}
.post-item{
  display:flex;
  flex-direction:column;
  background:#f8fafc;
  border:1px solid #e6ebf2;
  border-radius:18px;
  padding:14px 16px;
}
.post-cover{display:block}
.post-author{display:flex;align-items:center;gap:10px;color:#6e7786;font-size:13px}
.post-author img{width:34px;height:34px;border-radius:50%}
.post-main h3{
  margin-top:6px;
  font-size:15px;
  line-height:1.34;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.post-main h3 a:hover{color:#ff5059}
.post-main p{
  margin-top:4px;color:#707a89;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px
}
.post-media{
  margin-top:10px;
  display:grid;
  gap:8px
}
.post-media.is-single{grid-template-columns:minmax(0,420px)}
.post-media.is-multi{max-width:680px}
.post-media.is-multi-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px}
.post-media.is-multi-3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:680px}
.post-media a{
  display:block;
  border-radius:14px;
  overflow:hidden;
  background:#eef2f6
}
.post-media.is-single a{height:232px;max-width:420px}
.post-media.is-multi a{height:176px}
.post-media img{width:100%;height:100%;object-fit:cover}
.post-meta{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#99a3b1;
  font-size:12px
}
.post-meta__left,.post-meta__right{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0
}
.post-meta__left a,.post-meta__left span,.post-meta__right span{
  white-space:nowrap
}
.post-meta__right i{
  display:inline-block;
  width:24px;
  height:24px;
  vertical-align:-4px;
  margin-right:4px;
  opacity:.9;
  background:center/22px 22px no-repeat
}
.post-meta__right .ico-like i{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23323a47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-1 5-4 4v9h11a2 2 0 0 0 2-1.7l1-6A2 2 0 0 0 18 10h-4z'/%3E%3Cpath d='M6 21H3V11h3'/%3E%3C/svg%3E")
}
.post-meta__right .ico-fav i{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23323a47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.1 8.3 22 9.3 17 14.2 18.2 21 12 17.7 5.8 21 7 14.2 2 9.3 8.9 8.3 12 2'/%3E%3C/svg%3E")
}
.post-meta__right .ico-cmt i{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23323a47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.5 8.5 0 0 1-8.5 8.5H7l-4 2 1.3-4.2A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E")
}
.post-meta a{color:#667283}

.inner-head{border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 12px;margin-bottom:10px}
.inner-head h1{font-size:24px}
.inner-head p{margin-top:4px;color:#8b95a4;font-size:12px}

.rightbar{position:sticky;top:84px}
.right-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;margin-bottom:14px}
.right-card h3{height:42px;line-height:42px;padding:0 12px;border-bottom:1px solid var(--line);font-size:15px}
.profile{padding:10px}
.profile__top{text-align:center}
.profile__top img{width:52px;height:52px;border-radius:50%;margin:0 auto 7px}
.profile__top h3{font-size:16px}
.profile__top p{margin-top:3px;color:#97a1b0;font-size:12px}
.profile__nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.profile__nums p{padding:8px 0;text-align:center;border-radius:8px;background:#f5f7fa}
.profile__nums strong{display:block;font-size:19px}
.profile__nums span{display:block;color:#95a0af;font-size:12px}
.profile__btn{display:block;margin-top:8px;height:38px;line-height:38px;text-align:center;border-radius:8px;background:#111;color:#fff;font-size:14px}
.rank-list{padding:8px 10px}
.rank-list li{display:flex;align-items:center;gap:8px;height:33px}
.rank-list em{width:18px;text-align:center;font-style:normal;color:#ff6f5f;font-size:13px}
.rank-list a{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4f5967;font-size:13px}
.rank-list--plain li{height:33px}
.tag-cloud{padding:10px;display:flex;gap:8px;flex-wrap:wrap}
.tag-cloud a{padding:6px 10px;border-radius:999px;background:#f4f7fa;color:#5f6979;font-size:12px}
.quick-entry{
  padding:10px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px
}
.quick-entry a{
  display:block;
  text-align:center;
  line-height:1.35;
  padding:7px 4px;
  border-radius:8px;
  background:#f5f7fa;
  color:#5f6979;
  font-size:12px
}

.tag-board{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px}
.tag-board__list{display:flex;gap:10px;flex-wrap:wrap}
.tag-board__list a{padding:7px 10px;border-radius:999px;background:#f4f7fa;color:#5f6979;font-size:12px}

.thread-layout{
  margin-top:78px;display:grid;grid-template-columns:66px minmax(0,1fr) var(--right);gap:16px;align-items:start
}
.thread-side{position:sticky;top:84px}
.thread-tools{position:sticky;top:92px}
.thread-tools a,.thread-tools span{
  display:block;width:40px;height:40px;line-height:40px;margin:0 auto 8px;text-align:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:#5e6978
}
.thread-tools span{height:auto;line-height:1;border-radius:8px;padding:6px 0;font-size:12px}
.thread-main{min-width:0}
.thread-card{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.thread-card__head{padding:12px 12px 8px;border-bottom:1px solid var(--line)}
.thread-card__head h1{font-size:24px;line-height:1.35}
.thread-card__meta{margin-top:6px;display:flex;gap:8px;flex-wrap:wrap;color:#95a0af;font-size:12px}
.thread-card__author{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line)}
.thread-card__author img{width:40px;height:40px;border-radius:50%}
.thread-card__author strong{font-size:15px}
.thread-card__author p{margin-top:2px;color:#99a3b1;font-size:12px}
.thread-card__body{padding:12px}
.thread-cover{border-radius:8px;overflow:hidden;margin-bottom:12px}
.entry-content{font-size:15px;color:#313945;line-height:1.82}
.entry-content img{max-width:100%;height:auto;border-radius:8px}
.thread-tags{padding:0 14px 12px;display:flex;gap:8px;flex-wrap:wrap}
.thread-tags a{padding:5px 10px;border-radius:999px;background:#f4f7fa;color:#5f6979;font-size:12px}
.thread-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.thread-nav a{min-width:0;padding:9px 12px}
.thread-nav a+a{border-left:1px solid var(--line)}
.thread-nav span{display:block;color:#95a0af;font-size:12px}
.thread-nav strong{display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}

.comment-box{margin-top:14px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.comment-box h2{height:44px;line-height:44px;padding:0 12px;border-bottom:1px solid var(--line);font-size:15px}
.comment-box>div{padding:12px}

.pager{padding:14px;border-top:1px solid var(--line);text-align:center;color:#95a0af}
.pager a,.pager span{
  display:inline-block;min-width:32px;height:32px;line-height:32px;padding:0 10px;margin:0 3px;border:1px solid #e6ebf2;border-radius:6px;background:#fff;font-size:13px
}
.pager .active,.pager a:hover{background:#ff5850;color:#fff;border-color:#ff5850}

.site-footer{margin-top:22px;background:#fff;border-top:1px solid var(--line)}
.site-footer__inner{height:56px;display:flex;align-items:center;justify-content:space-between;color:#8f99a7;font-size:12px}
.backtop{position:fixed;right:16px;bottom:22px;z-index:120;width:38px;height:38px;border-radius:50%;opacity:0;pointer-events:none;background:#666}
.backtop.is-visible{opacity:1;pointer-events:auto}

@media (max-width:1200px){
  .acg-shell{width:min(var(--wrap),calc(100% - 56px))}
  .layout{grid-template-columns:230px minmax(0,1fr) 230px;gap:16px}
  .thread-layout{grid-template-columns:56px minmax(0,1fr) 240px}
}
@media (max-width:980px){
  .acg-shell{width:min(var(--wrap),calc(100% - 24px))}
  .layout{grid-template-columns:220px minmax(0,1fr);gap:12px}
  .rightbar{display:none}
  .thread-layout{grid-template-columns:56px minmax(0,1fr)}
  .thread-side{display:none}
}
@media (max-width:820px){
  .site-header{display:none}
  .m-header{display:block;position:sticky;top:0;z-index:260;background:#fff;border-bottom:1px solid var(--line)}
  .m-header__inner{height:64px;padding:0 12px;display:flex;align-items:center;justify-content:space-between}
  .m-header__btn{
    width:38px;height:38px;border:0;background:#fff;border-radius:8px;position:relative;cursor:pointer;
    touch-action:manipulation;-webkit-tap-highlight-color:transparent;z-index:2
  }
  .m-header__menu span{display:block;height:2px;background:#444;margin:5px 6px}
  .m-header__search:before{
    content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/14px no-repeat
  }
  .m-header__logo img{height:36px}
  .home-hero{height:360px}
  .home-hero__search{padding-top:70px}
  .home-hero__search h2{font-size:22px}
  .home-hero__search p{font-size:15px}
  .home-hero__search form{max-width:none;padding:0 12px;margin-top:8px}
  .home-hero__search input{height:36px}
  .home-hero__search button{display:none}
  .hero-tags{margin-top:10px;gap:6px}
  .hero-tags a{font-size:12px;padding:5px 9px}

  .layout,.layout-inner{display:block;margin-top:12px}
  .leftbar{
    position:fixed;left:0;top:0;width:260px;height:100vh;z-index:280;overflow:auto;background:#f3f4f6;
    transform:translateX(-100%);transition:transform .25s ease;padding:10px;pointer-events:none
  }
  .leftbar.is-open{transform:translateX(0);pointer-events:auto}
  .leftbar__inner{position:static}
  .maincol{width:100%}
  .post-list{grid-template-columns:1fr;gap:8px}
  .post-item{padding:10px}
  .post-author img{width:30px;height:30px}
  .post-main h3{font-size:15px;-webkit-line-clamp:2}
  .post-main p{font-size:12px;line-height:1.5;min-height:36px}
  .post-media.is-single{grid-template-columns:1fr}
  .post-media.is-single a{height:180px;max-width:none}
  .post-media.is-multi{max-width:none}
  .post-media.is-multi-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
  .post-media.is-multi-3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}
  .post-media.is-multi a{height:108px}
  .post-meta{font-size:11px}
  .post-meta__right{gap:8px}
  .thread-layout{display:block;margin-top:12px}
  .thread-tools{display:none}
  .thread-nav{grid-template-columns:1fr}
  .thread-nav a+a{border-left:0;border-top:1px solid var(--line)}
  .site-footer__inner{height:auto;padding:10px 0;display:block;text-align:center}
}
