/* ============================================================
   52384.com 手机游戏巴士 · Game Informer 风格模板
   模板目录: template/pc/gameinformer
   静态目录: static/gameinformer
   ============================================================ */

:root {
    --gi-red: #E8112D;
    --gi-red-dark: #C30D25;
    --gi-dark: #15171C;
    --gi-dark-2: #1E2128;
    --gi-bg: #F4F5F7;
    --gi-card: #FFFFFF;
    --gi-text: #21242B;
    --gi-muted: #878E9C;
    --gi-line: #E8EAEF;
    --gi-radius: 10px;
    --gi-shadow: 0 2px 12px rgba(21, 23, 28, .06);
    --gi-shadow-hover: 0 10px 28px rgba(21, 23, 28, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--gi-bg);
    color: var(--gi-text);
    font-size: 15px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gi-red); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.kicker {
    display: inline-block;
    color: var(--gi-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 8px;
}

.meta {
    color: var(--gi-muted);
    font-size: 12px;
    letter-spacing: .02em;
}

.btn {
    display: inline-block;
    background: var(--gi-red);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 6px;
    transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--gi-red-dark); color: #fff; transform: translateY(-1px); }

/* ============ 顶部信息条 ============ */
.topbar {
    background: var(--gi-dark);
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    line-height: 36px;
}
.topbar-in { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; gap: 18px; flex-shrink: 0; }
.topbar-right a { color: rgba(255, 255, 255, .65); }
.topbar-right a:hover { color: #fff; }
.top-date { color: rgba(255, 255, 255, .45); }

/* ============ 主头部 ============ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--gi-line);
}
.header-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: var(--gi-red);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .02em;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(232, 17, 45, .32);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--gi-dark);
}
.logo-text em {
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .34em;
    color: var(--gi-red);
    text-transform: uppercase;
}
.logo:hover strong { color: var(--gi-dark); }

.header-search { display: flex; align-items: center; gap: 12px; }
.search-form {
    display: flex;
    align-items: center;
    width: 300px;
    background: var(--gi-bg);
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 4px 6px 4px 18px;
    transition: border-color .18s ease, background .18s ease;
}
.search-form:focus-within { border-color: var(--gi-red); background: #fff; }
.search-form input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--gi-text);
    min-width: 0;
}
.search-form input::placeholder { color: var(--gi-muted); }
.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--gi-red);
    color: #fff;
    cursor: pointer;
    transition: background .18s ease;
}
.search-form button:hover { background: var(--gi-red-dark); }
.search-form button svg { width: 16px; height: 16px; }

/* ============ 导航 ============ */
.main-nav {
    background: var(--gi-red);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(232, 17, 45, .28);
}
.nav-list {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list > li { flex-shrink: 0; }
.nav-list > li > a {
    display: block;
    padding: 0 22px;
    line-height: 48px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    position: relative;
}
.nav-list > li > a:hover { background: var(--gi-red-dark); color: #fff; }
.nav-list > li > a.active { background: var(--gi-dark); color: #fff; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--gi-dark);
    transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ 焦点区 ============ */
.hero {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
.hero-main {
    position: relative;
    display: block;
    border-radius: var(--gi-radius);
    overflow: hidden;
    background: var(--gi-dark);
    box-shadow: var(--gi-shadow);
}
.hero-img img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform .5s ease;
}
.hero-main:hover .hero-img img { transform: scale(1.04); }
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 30px;
    background: linear-gradient(180deg, rgba(21, 23, 28, 0) 30%, rgba(21, 23, 28, .55) 62%, rgba(21, 23, 28, .92) 100%);
}
.hero-overlay .kicker {
    align-self: flex-start;
    background: var(--gi-red);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: .14em;
    margin-bottom: 12px;
}
.hero-overlay h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .01em;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-desc {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta { color: rgba(255, 255, 255, .6); font-size: 12px; margin-top: 10px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
    flex: 1;
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    padding: 12px;
    box-shadow: var(--gi-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--gi-shadow-hover); }
.hc-img { flex-shrink: 0; width: 132px; height: 92px; border-radius: 8px; overflow: hidden; background: var(--gi-bg); }
.hc-img img { width: 100%; height: 100%; object-fit: cover; }
.hc-info { min-width: 0; }
.hc-info .kicker { margin-bottom: 5px; }
.hc-info h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 通用区块标题 ============ */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 3px solid var(--gi-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
}
.section-head h2 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--gi-dark);
    position: relative;
    padding-left: 14px;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    background: var(--gi-red);
    border-radius: 3px;
}
.section-head .more {
    color: var(--gi-muted);
    font-size: 13px;
    font-weight: 700;
}
.section-head .more:hover { color: var(--gi-red); }
.section-head .more i { font-style: normal; margin-left: 2px; }

/* ============ 主体两栏：最新动态 + 侧栏 ============ */
.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    margin-top: 34px;
}

.feed-list { display: flex; flex-direction: column; gap: 16px; }
.feed-item {
    display: flex;
    gap: 18px;
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    padding: 14px;
    box-shadow: var(--gi-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feed-item:hover { transform: translateY(-3px); box-shadow: var(--gi-shadow-hover); }
.fi-thumb {
    flex-shrink: 0;
    width: 250px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gi-bg);
}
.fi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fi-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.fi-info h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fi-desc {
    color: var(--gi-muted);
    font-size: 13.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fi-info .meta { margin-top: auto; padding-top: 10px; }

/* ============ 侧栏组件 ============ */
.layout-side { display: flex; flex-direction: column; gap: 22px; }
.widget {
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    box-shadow: var(--gi-shadow);
    overflow: hidden;
}
.widget-head {
    padding: 14px 18px;
    border-bottom: 2px solid var(--gi-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.widget-head h3 {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .06em;
    color: var(--gi-dark);
    padding-left: 12px;
    position: relative;
}
.widget-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: var(--gi-red);
    border-radius: 2px;
}

.hot-list { counter-reset: hot; padding: 8px 6px; }
.hot-list li { border-bottom: 1px dashed var(--gi-line); }
.hot-list li:last-child { border-bottom: 0; }
.hot-list li a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 8px;
}
.hot-list li a:hover { background: var(--gi-bg); }
.hot-list li a::before {
    counter-increment: hot;
    content: counter(hot);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 6px;
    background: var(--gi-bg);
    color: var(--gi-muted);
    font-size: 13px;
    font-weight: 900;
    margin-top: 1px;
}
.hot-list li:nth-child(1) a::before,
.hot-list li:nth-child(2) a::before,
.hot-list li:nth-child(3) a::before {
    background: var(--gi-red);
    color: #fff;
}
.hot-list li a span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-about { padding: 16px 18px; }
.widget-about p { color: var(--gi-muted); font-size: 13.5px; line-height: 1.85; margin-bottom: 14px; }

/* ============ 栏目区块网格 ============ */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 34px;
    margin-top: 40px;
    margin-bottom: 44px;
}
.cat-block {
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    box-shadow: var(--gi-shadow);
    padding: 18px 20px 20px;
}
.cat-block .section-head { margin-bottom: 16px; }
.cat-block .section-head h2 { font-size: 18px; }

.cat-featured {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--gi-bg);
}
.cat-featured .cf-img { height: 170px; overflow: hidden; background: var(--gi-bg); }
.cat-featured .cf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.cat-featured:hover .cf-img img { transform: scale(1.05); }
.cat-featured .cf-info { padding: 12px 2px 0; }
.cat-featured .cf-info h3 {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-featured .cf-info p {
    color: var(--gi-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-list li { border-bottom: 1px dashed var(--gi-line); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list li > a.cl-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 9px 2px;
    border-radius: 8px;
}
.cat-list li > a.cl-item:hover { background: var(--gi-bg); }
.cl-thumb {
    flex-shrink: 0;
    width: 108px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gi-bg);
}
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-info { min-width: 0; }
.cl-info h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cl-info .meta { display: block; margin-top: 4px; }

/* ============ 面包屑 / 页头 ============ */
.crumbs {
    padding: 16px 0 4px;
    color: var(--gi-muted);
    font-size: 13px;
}
.crumbs a { color: var(--gi-muted); }
.crumbs a:hover { color: var(--gi-red); }
.crumbs span { margin: 0 6px; color: #C6CBD4; }

.page-head { margin: 6px 0 22px; }
.page-head h1 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .03em;
    color: var(--gi-dark);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}
.page-head h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 5px;
    border-radius: 3px;
    background: var(--gi-red);
}
.cat-desc { color: var(--gi-muted); font-size: 14px; margin-top: 8px; max-width: 760px; }

.child-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.child-cats a {
    padding: 7px 18px;
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gi-text);
}
.child-cats a:hover, .child-cats a.active {
    background: var(--gi-red);
    border-color: var(--gi-red);
    color: #fff;
}

/* ============ 列表页卡片 ============ */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    overflow: hidden;
    box-shadow: var(--gi-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--gi-shadow-hover); }
.card-thumb { display: block; height: 176px; overflow: hidden; background: var(--gi-bg); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body p {
    color: var(--gi-muted);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-body .meta { margin-top: auto; padding-top: 10px; }

/* ============ 分页 ============ */
.pagination-box { margin: 34px 0 10px; text-align: center; }
ul.pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}
ul.pagination li a,
ul.pagination li span {
    display: block;
    min-width: 38px;
    line-height: 38px;
    padding: 0 12px;
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gi-text);
}
ul.pagination li a:hover { border-color: var(--gi-red); color: var(--gi-red); }
ul.pagination li.active span,
ul.pagination li.active a {
    background: var(--gi-red);
    border-color: var(--gi-red);
    color: #fff;
}
.pagination-box > a {
    display: inline-block;
    min-width: 38px;
    line-height: 38px;
    padding: 0 12px;
    margin: 0 3px;
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}
.pagination-box > a:hover { border-color: var(--gi-red); color: var(--gi-red); }

/* ============ 文章页 ============ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 6px;
    margin-bottom: 44px;
}
.article-main {
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    box-shadow: var(--gi-shadow);
    padding: 30px 34px 34px;
}
.article-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: .01em;
    color: var(--gi-dark);
    margin-bottom: 14px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 14px 0;
    border-top: 1px solid var(--gi-line);
    border-bottom: 1px solid var(--gi-line);
    color: var(--gi-muted);
    font-size: 13px;
}
.article-meta .author-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--gi-text);
}
.author-chip::before {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gi-red), #FF6A3D);
}

.article-content { margin-top: 24px; font-size: 15.5px; line-height: 2; color: #2A2E36; word-break: break-word; }
.article-content p { margin-bottom: 20px; }
.article-content h2 {
    font-size: 21px;
    font-weight: 900;
    color: var(--gi-dark);
    margin: 34px 0 16px;
    padding-left: 14px;
    border-left: 5px solid var(--gi-red);
    line-height: 1.45;
}
.article-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--gi-dark);
    margin: 28px 0 14px;
}
.article-content h4 { font-size: 16px; font-weight: 800; margin: 22px 0 12px; }
.article-content img { max-width: 100% !important; height: auto !important; border-radius: 8px; margin: 10px auto; }
.article-content a { color: var(--gi-red); border-bottom: 1px dashed var(--gi-red); }
.article-content ul, .article-content ol { padding-left: 26px; margin-bottom: 20px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: var(--gi-bg);
    border-left: 4px solid var(--gi-red);
    border-radius: 0 8px 8px 0;
    color: #4A4F58;
}
.article-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.article-content th, .article-content td {
    border: 1px solid var(--gi-line);
    padding: 9px 12px;
    text-align: left;
}
.article-content th { background: var(--gi-bg); font-weight: 800; }
.article-content pre {
    background: var(--gi-dark);
    color: #E6E9F0;
    padding: 16px 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 18px 0;
    font-size: 13px;
}
.article-content strong { color: var(--gi-dark); }

.article-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-tags .tag-label { color: var(--gi-muted); font-size: 13px; font-weight: 700; }
.article-tags a {
    padding: 5px 14px;
    background: var(--gi-bg);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #555B66;
}
.article-tags a:hover { background: var(--gi-red); color: #fff; }

.pn-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--gi-line);
}
.pn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--gi-bg);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color .18s ease, background .18s ease;
}
.pn:hover { background: #fff; border-color: var(--gi-red); }
.pn span { color: var(--gi-muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.pn.next { text-align: right; align-items: flex-end; }
.pn strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related { margin-top: 36px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-grid .rel-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--gi-bg);
    border: 1px solid var(--gi-line);
    border-radius: 8px;
    padding: 10px;
}
.related-grid .rel-item:hover { border-color: var(--gi-red); }
.rel-thumb { flex-shrink: 0; width: 96px; height: 64px; border-radius: 6px; overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-item h4 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 搜索页 ============ */
.search-head { margin: 6px 0 24px; }
.search-head h1 { font-size: 26px; font-weight: 900; color: var(--gi-dark); }
.search-head h1 em { font-style: normal; color: var(--gi-red); }
.search-result-list { display: flex; flex-direction: column; gap: 16px; }
.no-result {
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    padding: 60px 20px;
    text-align: center;
    color: var(--gi-muted);
}
.no-result strong { display: block; font-size: 20px; color: var(--gi-text); margin-bottom: 8px; }

/* ============ 提示页 ============ */
.msg-box {
    background: var(--gi-card);
    border: 1px solid var(--gi-line);
    border-radius: var(--gi-radius);
    box-shadow: var(--gi-shadow);
    max-width: 640px;
    margin: 60px auto 80px;
    padding: 60px 40px;
    text-align: center;
}
.msg-box h2 { font-size: 26px; font-weight: 900; color: var(--gi-dark); margin-bottom: 14px; }
.msg-box p { color: var(--gi-muted); margin-bottom: 26px; }

/* ============ 页脚 ============ */
.site-footer {
    background: var(--gi-dark);
    color: rgba(255, 255, 255, .6);
    margin-top: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr .8fr;
    gap: 40px;
    padding: 46px 0 38px;
}
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text strong:hover { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.9; }
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gi-red);
    display: inline-block;
}
.footer-col ul li { margin-bottom: 9px; font-size: 13px; }
.footer-col ul li a { color: rgba(255, 255, 255, .6); }
.footer-col ul li a:hover { color: #fff; }
.footer-cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.follow-list li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.follow-list li a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gi-red);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 0 22px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .4);
}

/* ============ 友情链接 ============ */
.footer-links {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 0 6px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
}
.footer-links h4 {
    flex: 0 0 auto;
    font-size: 13px;
    color: rgba(255, 255, 255, .75);
    margin: 0;
    letter-spacing: 1px;
}
.friend-links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.friend-links::-webkit-scrollbar { display: none; }
.friend-links li { display: inline; flex-shrink: 0; }
.friend-links a {
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    padding: 3px 7px;
    display: inline-block;
    transition: color .2s;
}
.friend-links li + li a { position: relative; margin-left: 6px; padding-left: 13px; }
.friend-links li + li a::before {
    content: "|";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, .18);
}
.friend-links a:hover { color: #fff; }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: rgba(255, 255, 255, .4); }
.footer-bottom a:hover { color: #fff; }

/* ============ 返回顶部 ============ */
.backtop {
    position: fixed;
    right: 24px;
    bottom: 30px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--gi-red);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(232, 17, 45, .38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .18s ease;
    z-index: 950;
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: var(--gi-red-dark); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
    .layout { grid-template-columns: 1fr; }
    .layout-side { flex-direction: row; flex-wrap: wrap; }
    .layout-side .widget { flex: 1 1 320px; }
    .hero { grid-template-columns: 1fr; }
    .hero-img img { height: 380px; }
    .hero-side { flex-direction: row; }
    .cat-grid { grid-template-columns: 1fr; }
    .list-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .header-in { flex-wrap: wrap; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
    .logo-text strong { font-size: 20px; }
    .logo-mark { width: 48px; height: 48px; border-radius: 10px; }
    .header-search { order: 3; width: 100%; }
    .search-form { width: 100%; }
    .menu-toggle { display: flex; order: 2; margin-left: auto; }
    .main-nav { position: static; }
    .nav-list { display: none; flex-direction: column; overflow: visible; }
    .main-nav.open .nav-list { display: flex; }
    .nav-list > li > a { line-height: 1; padding: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
    .nav-list > li > a.active { background: var(--gi-red-dark); }
    .hero-side { flex-direction: column; }
    .hero-img img { height: 240px; }
    .hero-overlay { padding: 18px; }
    .hero-overlay h2 { font-size: 20px; }
    .hero-desc { display: none; }
    .feed-item { flex-direction: column; }
    .fi-thumb { width: 100%; height: 190px; }
    .cat-featured .cf-img { height: 150px; }
    .list-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .pn-box { grid-template-columns: 1fr; }
    .article-main { padding: 20px 18px 24px; }
    .article-title { font-size: 22px; }
    .article-content { font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 36px 0 30px; }
    .layout-side { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section-head h2 { font-size: 18px; }
    .page-head h1 { font-size: 24px; }
}
