:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --text-2:#334155;
  --muted:#64748b;
  --border:#e2e8f0;

  --primary:#2563eb;
  --accent-orange:#ff7a00;
  --accent-green:#22c55e;

  --gradient-brand:linear-gradient(
    90deg,
    #2563eb 0%,
    #ff7a00 50%,
    #22c55e 100%
  );

  --radius:14px;
  --shadow-1:0 4px 12px rgba(0,0,0,0.04);
  --shadow-2:0 12px 28px rgba(0,0,0,0.08);

  --container:1180px;
}

*{ box-sizing:border-box; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}

.headlogo{ max-width:100%; height:50px; }

a{
  color:var(--primary);
  text-decoration:none;
  transition:.2s ease;
}
a:hover{ opacity:.85; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:24px 18px;
}

/* ================= HEADER ================= */

.site-header{
  background:#fff;
  border-bottom:2px solid transparent;
  border-image:var(--gradient-brand) 1;
  position:sticky;
  top:0;
  z-index:100;
}

.header-inner{
  display:flex;
  align-items:center;
  gap:20px;
}

.brand a{
  font-weight:900;
  font-size:22px;
  letter-spacing:.3px;
  background:var(--gradient-brand);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ================= NAV ================= */

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-left:auto;
}

.nav a{
  padding:8px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  background:#eef2ff;
  border:1px solid #e0e7ff;
}

.nav a.active{
  background:var(--gradient-brand);
  color:#fff;
  border:none;
}

/* ================= HERO ================= */

.hero{
  padding:40px 0 20px;
}

.hero-title{
  font-size:40px;
  font-weight:900;
  margin:0;
}

.hero-title span{
  background:var(--gradient-brand);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-desc{
  margin-top:12px;
  font-size:18px;
  color:var(--text-2);
  max-width:680px;
}

/* ================= LAYOUT ================= */

.layout{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

@media(min-width:1024px){
  .layout{
    grid-template-columns:2fr 1fr;
  }
}

/* ================= CARD ================= */

.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow-1);
  border:1px solid var(--border);
  transition:.3s ease;
}

.card:hover{
  box-shadow:var(--shadow-2);
  transform:translateY(-3px);
}

/* ================= POST GRID ================= */

.post-grid{
  display:grid;
  gap:18px;
}

@media(min-width:768px){
  .post-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

.post-card{
  position:relative;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--border);
  overflow:hidden;
  transition:.25s ease;
}

.post-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:5px;
  height:100%;
  background:var(--gradient-brand);
}

.post-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-2);
}

.post-card__link{
  display:block;
  padding:20px;
  color:inherit;
}

.post-card__title{
  font-size:18px;
  font-weight:700;
  margin:0 0 8px 0;
}

.post-card__excerpt{
  font-size:14px;
  color:var(--text-2);
}

.post-card__meta{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
}

.post-card__cta{
  display:inline-block;
  margin-top:14px;
  padding:6px 16px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:13px;
  font-weight:700;
}

/* ================= SIDEBAR ================= */

.sidebar-title{
  font-weight:800;
  margin-bottom:12px;
}

.sidebar-link{
  display:flex;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  transition:.2s ease;
}

.sidebar-link:hover{
  border-color:var(--primary);
  box-shadow:0 6px 16px rgba(37,99,235,0.08);
}

/* ================= TAG ================= */

.tag{
  display:inline-block;
  padding:6px 14px;
  border-radius:20px;
  background:#e0e7ff;
  font-size:13px;
  color:var(--primary);
  font-weight:600;
  margin:4px;
}

/* ================= ARTICLE ================= */

.article-title{
  font-size:32px;
  font-weight:800;
  margin-bottom:12px;
}

.meta-info{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--border);
  color:var(--muted);
  font-size:14px;
}

.article-content{
  font-size:17px;
  line-height:1.85;
  color:var(--text-2);
}

.article-content p{
  margin:0 0 1.4em;
  text-indent:2em;
}

.article-content h2{
  font-size:24px;
  margin-top:2em;
  border-left:4px solid var(--primary);
  padding-left:10px;
}

/* ================= FOOTER ================= */

.site-footer{
  margin-top:60px;
  background:#0f172a;
  color:#cbd5e1;
  padding:40px 0 20px;
}

.footer-title{
  color:#fff;
  font-weight:800;
  margin-bottom:10px;
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.footer-links a{
  color:#cbd5e1;
}

.footer-bottom{
  margin-top:20px;
  font-size:13px;
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:4px;
}
::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}

/* ================= MOBILE ================= */

@media(max-width:768px){
  .hero-title{ font-size:28px; }
  .container{ padding:20px 14px; }
  .article-title{ font-size:24px; }
}
/* 跳转链接（可访问性） */
.skip-link{
  position:absolute;
  left:-9999px;
  top:10px;
  background:#000;
  color:#fff;
  padding:10px 12px;
  border-radius:8px;
  z-index:999;
}
.skip-link:focus{
  left:12px;
}
/* ================= MAGAZINE LAYOUT ================= */

.mag-layout{
  display:grid;
  grid-template-columns:240px 1fr;
  min-height:100vh;
}

.left-nav{
  background:#0f172a;
  color:#fff;
  padding:40px 20px;
  position:sticky;
  top:0;
  height:100vh;
}

.logo-block a{
  font-size:20px;
  font-weight:900;
  color:#fff;
  display:block;
  margin-bottom:30px;
}

.left-menu{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.left-menu a{
  padding:10px 14px;
  border-radius:8px;
  color:#cbd5e1;
  font-weight:600;
}

.left-menu a.active,
.left-menu a:hover{
  background:rgba(255,255,255,0.1);
  color:#fff;
}

.mag-main{
  padding:60px 60px 40px;
}

/* ================= COVER ================= */

.cover{
  margin-bottom:60px;
}

.cover-title{
  font-size:48px;
  font-weight:900;
  max-width:900px;
}

.cover-desc{
  margin-top:16px;
  font-size:20px;
  color:var(--text-2);
}

/* ================= SECTION ================= */

.section-title{
  font-size:22px;
  font-weight:800;
  margin-bottom:20px;
}

/* ================= CONTENT FLOW ================= */

.content-flow .card{
  margin-bottom:24px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1024px){
  .mag-layout{
    grid-template-columns:1fr;
  }

  .left-nav{
    position:relative;
    height:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
  }

  .left-menu{
    flex-direction:row;
    flex-wrap:wrap;
  }

  .mag-main{
    padding:30px 20px;
  }
}
/* =========================
   Laravel Pagination Fix
========================= */
.hidden{display:none;}

.paginator {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ul.pagination */
.paginator .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* li */
.paginator .page-item {
  display: inline-block;
}

/* a / span */
.paginator .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  transition: all .15s ease;
}

/* hover */
.paginator .page-link:hover {
  background: #f5f7fa;
  border-color: #d0d7e2;
  text-decoration: none;
}

/* 当前页 */
.paginator .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* 禁用 */
.paginator .page-item.disabled .page-link {
  opacity: .45;
  cursor: not-allowed;
  background: #fafafa;
}

/* 手机上更紧凑 */
@media (max-width: 640px) {
  .paginator .page-link {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}
