:root{
  --blue:#2563eb; --blue2:#0ea5e9; --teal:#06b6d4;
  --ink:#1f2937; --muted:#6b7280; --line:#e5e7eb;
  --bg:#f6f8fb; --card:#ffffff; --brand:#0b3d91;
  --red:#e23a45; --green:#16a34a;
  --shadow:0 6px 22px rgba(20,40,80,.08);
  --radius:14px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'PingFang SC','Microsoft YaHei','Hiragino Sans GB',system-ui,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.6; -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,92vw);margin:0 auto}
.btn{cursor:pointer;border:none;border-radius:10px;padding:11px 22px;font-size:15px;font-weight:600;transition:.18s;display:inline-block}
.btn-primary{background:linear-gradient(120deg,var(--blue),var(--teal));color:#fff}
.btn-primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
.btn-ghost{background:#fff;color:var(--blue);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--blue)}
.btn-block{width:100%;text-align:center}

/* 顶部条：右上角公司全称 */
.topbar{background:linear-gradient(120deg,#0b2a6b,#0e4ea3);color:#dfe9ff;font-size:12.5px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;height:34px}
.topbar a{color:#bcd2ff}
.topbar .right{display:flex;gap:18px;align-items:center}
.topbar .company-full{font-weight:600;color:#fff;letter-spacing:.5px}

/* 主头部 */
.header{background:#fff;box-shadow:0 2px 14px rgba(20,40,80,.06);position:sticky;top:0;z-index:50}
.header .container{display:flex;align-items:center;gap:22px;height:68px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;color:var(--ink)}
.logo img{height:42px;width:auto}
.logo .sub{font-size:10px;color:var(--muted);letter-spacing:2px;font-weight:600;margin-top:2px}
.nav{display:flex;gap:26px;margin-left:8px}
.nav a{font-size:15.5px;color:#374151;font-weight:500;padding:6px 2px;position:relative}
.nav a:hover,.nav a.active{color:var(--blue)}
.nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--blue),var(--teal))}
.header .spacer{flex:1}
.auth{display:flex;gap:10px;align-items:center}
.auth .user{display:flex;align-items:center;gap:9px;font-weight:600;color:var(--ink)}
.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(120deg,var(--blue),var(--teal));color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}
.menu-toggle{display:none;background:none;border:none;font-size:24px;cursor:pointer;color:var(--ink)}

/* 轮播 */
.hero{margin-top:18px}
.slides{position:relative;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);height:340px;background:#0b1b3a}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .7s;display:flex;align-items:center;justify-content:center}
.slide.active{opacity:1}
.slide img{width:100%;height:100%;object-fit:cover}
.slide .cap{position:absolute;left:0;right:0;bottom:0;padding:30px 36px;background:linear-gradient(transparent,rgba(8,16,40,.82));color:#fff}
.slide .cap h2{font-size:30px;margin-bottom:6px}
.slide .cap p{opacity:.9;font-size:15px}
.dots{position:absolute;bottom:16px;right:24px;display:flex;gap:9px;z-index:3}
.dots span{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer}
.dots span.on{background:#fff;width:24px;border-radius:6px}

/* 区块标题 */
.section{margin:42px 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}
.section-head h2{font-size:24px;font-weight:800;position:relative;padding-left:14px}
.section-head h2::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:5px;border-radius:4px;background:linear-gradient(var(--blue),var(--teal))}
.section-head .more{color:var(--muted);font-size:14px}

/* 动漫网格 */
.grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.card{flex:0 0 auto;width:280px;max-width:100%;background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:.2s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(20,40,80,.14)}
.card .cover{position:relative;aspect-ratio:3/4;overflow:hidden;background:#eef2f7}
.card .cover img{width:100%;height:100%;object-fit:cover}
.card .badge{position:absolute;top:10px;left:10px;background:rgba(11,61,145,.85);color:#fff;font-size:11px;padding:3px 9px;border-radius:20px}
.card .body{padding:12px 13px 15px}
.card .body h3{font-size:15.5px;font-weight:700;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .body .meta{font-size:12.5px;color:var(--muted);display:flex;justify-content:space-between}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.tag{font-size:11px;color:var(--blue);background:#eaf2ff;padding:2px 9px;border-radius:20px}

/* 详情页 */
.detail-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px;background:#fff;border-radius:18px;padding:30px;box-shadow:var(--shadow)}
.detail-hero .poster{width:260px;border-radius:14px;overflow:hidden;aspect-ratio:3/4;background:#eef2f7;box-shadow:0 8px 24px rgba(20,40,80,.1)}
.detail-hero .poster img{width:100%;height:100%;object-fit:cover}
.detail-hero h1{font-size:28px;margin-bottom:10px}
.detail-hero .row{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:12px 0}
.detail-hero .info{color:var(--muted);font-size:14px;line-height:1.9;max-width:720px}
.detail-hero .info b{color:var(--ink)}
.reader{margin-top:30px}
.reader .pages{display:flex;flex-direction:column;gap:18px;align-items:center}
.reader .pages figure{text-align:center}
.reader .pages img{width:min(820px,100%);border-radius:10px;box-shadow:var(--shadow);background:#fff;margin:0 auto}
.reader .pagenum{color:var(--muted);font-size:13px;margin:8px 0 0}

/* 表单 / 认证 */
.auth-wrap{max-width:440px;margin:56px auto;background:#fff;border-radius:18px;padding:34px 34px 30px;box-shadow:var(--shadow)}
.auth-wrap h1{font-size:24px;text-align:center;margin-bottom:6px}
.auth-wrap .lead{text-align:center;color:var(--muted);font-size:14px;margin-bottom:22px}
.field{margin-bottom:15px}
.field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px}
.field input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-size:15px;outline:none;transition:.15s}
.field input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:#374151;margin:6px 0 18px;line-height:1.5}
.consent input{margin-top:3px;width:16px;height:16px;accent-color:var(--blue)}
.consent a{color:var(--blue);text-decoration:underline}
.err{background:#fff1f1;color:var(--red);border:1px solid #ffd5d5;padding:10px 13px;border-radius:10px;font-size:13.5px;margin-bottom:14px}
.ok{background:#eafaf0;color:var(--green);border:1px solid #c7efd4;padding:10px 13px;border-radius:10px;font-size:13.5px;margin-bottom:14px}
.auth-switch{text-align:center;font-size:13.5px;color:var(--muted);margin-top:16px}
.auth-switch a{color:var(--blue);font-weight:600}

/* 文章 / 法律页 */
.article{max-width:840px;margin:40px auto;background:#fff;border-radius:18px;padding:38px 44px;box-shadow:var(--shadow)}
.article h1{font-size:26px;margin-bottom:8px}
.article .date{color:var(--muted);font-size:13px;margin-bottom:22px}
.article h2{font-size:19px;margin:26px 0 10px}
.article p,.article li{color:#374151;font-size:15px;margin-bottom:10px}
.article ul{padding-left:22px}
.article strong{color:var(--ink)}

/* 个人中心 */
.profile{max-width:720px;margin:40px auto;background:#fff;border-radius:18px;padding:32px;box-shadow:var(--shadow)}
.profile .top{display:flex;align-items:center;gap:18px;margin-bottom:22px}
.profile .top .avatar{width:64px;height:64px;font-size:24px}
.profile .kv{display:grid;grid-template-columns:120px 1fr;gap:10px 14px;font-size:15px;border-top:1px solid var(--line);padding-top:18px}
.profile .kv .k{color:var(--muted)}

/* 页脚 */
.footer{background:#0b1b3a;color:#c6d4ee;margin-top:54px;padding:34px 0 26px;font-size:13.5px}
.footer a{color:#9fc0ff;text-decoration:underline}
.footer .fl{text-align:center;line-height:2.1}
.footer .fl p{margin:2px 0}
.footer .copy{color:#fff}
.footer .sep{display:inline-block;margin:0 8px;opacity:.5}

/* 404 */
.nf{text-align:center;padding:90px 20px}
.nf h1{font-size:84px;background:linear-gradient(120deg,var(--blue),var(--teal));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:900}
.nf p{color:var(--muted);margin:10px 0 22px}

@media(max-width:980px){
  .card{width:260px}
  .detail-hero .poster{width:220px}
}
@media(max-width:680px){
  .nav{display:none;position:absolute;top:68px;left:0;right:0;background:#fff;flex-direction:column;padding:14px 24px;gap:14px;box-shadow:0 10px 20px rgba(0,0,0,.08)}
  .nav.open{display:flex}
  .menu-toggle{display:block}
  .grid{gap:16px}
  .card{width:calc(50% - 8px);min-width:170px}
  .topbar .left{display:none}
  .slides{height:240px}
  .article{padding:26px 20px}
}
@media(max-width:420px){
  .card{width:100%;max-width:340px}
}
