* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; color: #1f2937; background: #f7f8fa; font-size: 15px; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.navbar { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.navbar .inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.navbar .brand { font-size: 20px; font-weight: 800; color: #111; letter-spacing: .3px; }
.navbar .brand span { color: #2563eb; }
.navbar .links { display: flex; gap: 22px; }
.navbar .links a { color: #374151; font-weight: 500; }
.navbar .links a:hover, .navbar .links a.active { color: #2563eb; }
.navbar .search { margin-left: auto; }
.navbar .search input { width: 240px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 20px; outline: none; }
.navbar .search input:focus { border-color: #2563eb; }

.hero { background: linear-gradient(120deg,#1e3a8a,#2563eb); color: #fff; padding: 64px 0; text-align: center; }
.hero h1 { font-size: 38px; margin-bottom: 14px; }
.hero p { font-size: 17px; opacity: .9; margin-bottom: 24px; }
.hero form { display: flex; justify-content: center; }
.hero input { width: 420px; max-width: 80%; padding: 13px 18px; border: none; border-radius: 6px 0 0 6px; font-size: 15px; }
.hero button { padding: 13px 26px; border: none; background: #f59e0b; color: #111; font-weight: 700; border-radius: 0 6px 6px 0; cursor: pointer; }

.section { padding: 40px 0; }
.section h2 { font-size: 24px; margin-bottom: 6px; }
.section .sub { color: #6b7280; margin-bottom: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }

.cat-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.cat-bar a { padding: 8px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 22px; color: #374151; }
.cat-bar a:hover, .cat-bar a.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; overflow: hidden; transition: .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.card .thumb { width: 100%; height: 170px; object-fit: cover; background: #eef1f5; display: block; }
.card .body { padding: 14px 16px; }
.card .title { font-weight: 600; color: #111; font-size: 15px; display: block; min-height: 42px; }
.card .meta { color: #9ca3af; font-size: 13px; margin-top: 6px; display: flex; justify-content: space-between; }
.card .tag { display: inline-block; background: #eef2ff; color: #4338ca; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-top: 8px; }

.layout { display: flex; gap: 30px; align-items: flex-start; }
.sidebar-box { width: 240px; flex: none; background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 18px; }
.sidebar-box h3 { font-size: 16px; margin-bottom: 14px; }
.sidebar-box a { display: block; padding: 9px 10px; border-radius: 6px; color: #374151; }
.sidebar-box a:hover, .sidebar-box a.active { background: #eff6ff; color: #2563eb; }
.main-col { flex: 1; min-width: 0; }

.detail-wrap { display: flex; gap: 32px; }
.detail-main { flex: 1; min-width: 0; background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 26px; }
.detail-side { width: 300px; flex: none; }
.detail-side .box { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 22px; text-align: center; }
.detail-side .box img { width: 100%; border-radius: 8px; margin-bottom: 14px; }
.btn-download { display: block; width: 100%; padding: 13px; background: #2563eb; color: #fff; border-radius: 6px; font-weight: 700; font-size: 16px; margin-top: 8px; }
.btn-download:hover { background: #1d4ed8; color: #fff; }
.detail-table { width: 100%; margin-top: 10px; font-size: 14px; }
.detail-table td { padding: 7px 4px; border-bottom: 1px dashed #eee; }
.detail-table td:first-child { color: #9ca3af; width: 42%; }
.detail-content { margin-top: 24px; line-height: 1.8; }
.detail-content img { max-width: 100%; }

.article-list { background:#fff; border:1px solid #eef0f3; border-radius:10px; padding:8px 22px; }
.article-item { padding: 20px 0; border-bottom: 1px solid #f0f0f0; display: flex; gap: 18px; }
.article-item img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; flex: none; background:#eef1f5; }
.article-item h3 { font-size: 18px; margin-bottom: 6px; }
.article-item .meta { color: #9ca3af; font-size: 13px; margin-bottom: 8px; }
.article-item p { color: #4b5563; }

.article-detail { background: #fff; border: 1px solid #eef0f3; border-radius: 10px; padding: 30px; }
.article-detail h1 { font-size: 28px; margin-bottom: 10px; }
.article-detail .meta { color: #9ca3af; margin-bottom: 20px; }
.article-detail .cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.article-detail .content { line-height: 1.9; }
.article-detail .content img { max-width: 100%; }

.breadcrumb { font-size: 13px; color: #9ca3af; margin-bottom: 18px; }
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #2563eb; }
.breadcrumb .sep { margin: 0 8px; color: #d1d5db; }
.breadcrumb .cur { color: #374151; font-weight: 600; }

.pager-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.pager-nav a { flex: 1; background: #fff; border: 1px solid #eef0f3; border-radius: 8px; padding: 12px 14px; }
.pager-nav a:hover { border-color: #2563eb; }
.pager-nav .dir { display: block; font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.pager-nav .ttl { font-size: 14px; font-weight: 600; color: #111; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager-nav .next { text-align: right; }
.pager-nav .disabled { visibility: hidden; }

.pager { margin-top: 26px; text-align: center; }
.pager a, .pager span { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid #d1d5db; border-radius: 6px; color: #374151; }
.pager .active { background: #2563eb; color: #fff; border-color: #2563eb; }

.footer { background: #111827; color: #9ca3af; padding: 36px 0; margin-top: 50px; font-size: 14px; text-align: center; }
.footer a { color: #cbd5e1; }
.empty { text-align: center; color: #9ca3af; padding: 50px 0; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .layout, .detail-wrap { flex-direction: column; }
  .sidebar-box, .detail-side { width: 100%; }
  .navbar .search input { width: 150px; }
}
