@charset "utf-8";
/* 电脑软件频道首页（须先加载 public.css） */

body.kx-channel-soft {
    color: #666;
    background: #f2f2f2;
}

.kx-ch-wrap {
    width: var(--kx-page-width);
    min-width: var(--kx-page-width);
    margin: 15px auto 0;
    padding-bottom: 24px;
}

.kx-ch-section {
    margin-bottom: 15px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    box-sizing: border-box;
}

.kx-ch-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.kx-ch-hd h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #47b751;
    line-height: 1.3;
}

.kx-ch-hd h2 a {
    color: inherit;
}

.kx-ch-hd h2 a:hover {
    color: #47b751;
}

.kx-ch-more {
    font-size: 13px;
    color: #999;
}

.kx-ch-more:hover {
    color: #47b751;
}

/* ---------- 焦点：幻灯 + 最新更新 ---------- */
.kx-ch-focus {
    display: flex;
    gap: 20px;
    align-items: stretch;
    padding: 18px 20px;
}

.kx-ch-slide {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    height: 380px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    background: #f5f5f5;
}

.kx-ch-slide ul {
    position: absolute;
    left: 0;
    top: 0;
    height: 380px;
}

.kx-ch-slide li {
    float: left;
    width: 100%;
    height: 380px;
    position: relative;
    overflow: hidden;
}

.kx-ch-slide li a {
    display: block;
    height: 100%;
}

.kx-ch-slide li img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.kx-ch-slide li s {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #000;
    filter: alpha(opacity=60);
    opacity: .6;
    z-index: 2;
}

.kx-ch-slide li strong {
    display: block;
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 18px;
    height: 24px;
    line-height: 24px;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 4;
}

.kx-ch-slide .btn {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    margin: 0;
    padding: 0;
    z-index: 5;
    display: flex;
    font-size: 0;
    line-height: 0;
}

.kx-ch-slide .btn span {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    height: 8px;
    margin: 0;
    border: none;
    border-right: 1px solid #a2a2a2;
    cursor: pointer;
    background: #373737;
    border-radius: 0;
    text-indent: 0;
    overflow: visible;
}

.kx-ch-slide .btn span:last-child {
    border-right: none;
}

.kx-ch-slide .btn span.on {
    background: #47b751;
}

.kx-ch-slide .preNext {
    display: none;
}

.kx-ch-latest {
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    min-width: 0;
    height: 380px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.kx-ch-latest-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.kx-ch-latest-hd h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.kx-ch-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.kx-ch-latest-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    flex: 1 1 0;
    min-height: 0;
    border-bottom: 1px solid #f5f5f5;
    box-sizing: border-box;
}

.kx-ch-latest-list li:last-child {
    border-bottom: none;
}

.kx-ch-latest-list .cat {
    flex: 0 0 72px;
    color: #47b751;
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kx-ch-latest-list .cat::before {
    content: "[";
}

.kx-ch-latest-list .cat::after {
    content: "]";
}

.kx-ch-latest-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.kx-ch-latest-list .thumb {
    flex: 0 0 26px;
    display: block;
    width: 26px;
    height: 26px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ccc'%3E%3Cpath d='M4 5h16v14H4zM8 9l3 3 2-2 3 3V7H8v2z'/%3E%3C/svg%3E") center/14px no-repeat;
    line-height: 0;
    font-size: 0;
}

.kx-ch-latest-list .thumb img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    display: block;
}

.kx-ch-latest-list .title {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kx-ch-latest-list .title:hover {
    color: #47b751;
}

.kx-ch-latest-list .date {
    flex: 0 0 38px;
    font-style: normal;
    color: #aaa;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

/* ---------- 装机必备：Tab + 图标墙 ---------- */
.kx-ch-must-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.kx-ch-must-hd h2 {
    flex-shrink: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #47b751;
    line-height: 1.3;
}

.kx-ch-must-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kx-ch-must-tabs span {
    display: block;
    padding: 0 14px;
    height: 28px;
    line-height: 26px;
    font-size: 13px;
    color: #666;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s, background .2s;
}

.kx-ch-must-tabs span:hover {
    color: #47b751;
}

.kx-ch-must-tabs .cur span {
    color: #47b751;
    font-weight: 600;
    border-color: #47b751;
    background: #f7fbf7;
}

.kx-ch-must-panel {
    display: none;
}

.kx-ch-must-panel.on {
    display: block;
}

.kx-ch-icon-grid {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 16px 8px;
}

.kx-ch-icon-grid li a {
    display: block;
    text-align: center;
    color: #555;
}

.kx-ch-icon-grid li a:hover {
    color: #47b751;
}

.kx-ch-icon-grid img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin: 0 auto 6px;
    display: block;
    transition: transform .2s;
}

.kx-ch-icon-grid a:hover img {
    transform: translateY(-2px);
}

.kx-ch-icon-grid span {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    height: 32px;
    overflow: hidden;
}

/* ---------- 三栏分类推荐 ---------- */
.kx-ch-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.kx-ch-col {
    margin-bottom: 0;
    padding: 16px 18px;
}

.kx-ch-col .kx-ch-hd {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.kx-ch-col .kx-ch-hd h2 {
    font-size: 16px;
}

.kx-ch-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kx-ch-item-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #eee;
}

.kx-ch-item-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kx-ch-item-list .icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.kx-ch-item-list .icon img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: block;
}

.kx-ch-item-list .body {
    flex: 1;
    min-width: 0;
}

.kx-ch-item-list h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.kx-ch-item-list h3 a {
    color: #333;
}

.kx-ch-item-list h3 a:hover {
    color: #47b751;
}

.kx-ch-item-list .desc {
    margin: 0;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kx-ch-btn-view {
    flex-shrink: 0;
    align-self: center;
    padding: 0 14px;
    height: 28px;
    line-height: 26px;
    font-size: 12px;
    color: #47b751;
    border: 1px solid #47b751;
    border-radius: 4px;
    white-space: nowrap;
}

.kx-ch-btn-view:hover {
    background: #47b751;
    color: #fff;
}

/* ---------- 正版软件卡片（左文右图 + 查看按钮） ---------- */
.kx-ch-genuine-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.kx-ch-genuine-grid .kx-ch-genuine-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    min-height: 148px;
    padding: 16px 14px 14px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    box-sizing: border-box;
    transition: box-shadow .2s, border-color .2s;
}

.kx-ch-genuine-grid .kx-ch-genuine-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.kx-ch-genuine-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.kx-ch-genuine-name {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.kx-ch-genuine-name a {
    color: #333;
}

.kx-ch-genuine-name a:hover {
    color: #47b751;
}

.kx-ch-genuine-star {
    margin: 0 0 10px;
    line-height: 1;
}

.kx-ch-genuine-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.kx-ch-genuine-cat {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 18px;
    color: #666;
    background: #f3f3f3;
    border-radius: 2px;
}

.kx-ch-genuine-size {
    font-size: 12px;
    color: #999;
    line-height: 18px;
}

.kx-ch-genuine-date {
    margin: auto 0 0;
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}

.kx-ch-genuine-side {
    flex-shrink: 0;
    width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.kx-ch-genuine-icon {
    display: block;
    line-height: 0;
}

.kx-ch-genuine-icon img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.kx-ch-genuine-btn {
    display: block;
    width: 72px;
    height: 30px;
    line-height: 30px;
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #ffc940 0%, #ffb300 100%);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(255, 179, 0, .35);
    transition: filter .2s, box-shadow .2s;
}

.kx-ch-genuine-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 3px 10px rgba(255, 179, 0, .45);
}

@media (max-width: 1200px) {
    .kx-ch-genuine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kx-ch-genuine-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 分类更新 Tab ---------- */
.kx-ch-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #eee;
}

.kx-ch-cat-tabs li {
    margin-bottom: -1px;
}

.kx-ch-cat-tabs span {
    display: block;
    padding: 0 18px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.kx-ch-cat-tabs span:hover {
    color: #47b751;
}

.kx-ch-cat-tabs .cur span {
    color: #47b751;
    font-weight: 600;
    border-bottom-color: #47b751;
}

.kx-ch-cat-panel {
    display: none;
}

.kx-ch-cat-panel.on {
    display: block;
}

.kx-ch-cat-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}

.kx-ch-cat-grid li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    color: #444;
}

.kx-ch-cat-grid li a:hover {
    background: #f7fbf7;
    color: #47b751;
}

.kx-ch-cat-grid img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.kx-ch-cat-grid .info {
    flex: 1;
    min-width: 0;
}

.kx-ch-cat-grid .info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kx-ch-cat-grid .info em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 底部：电脑软件全部分类 */
.kx-ch-all-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 16px;
}

.kx-ch-all-cats-group {
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
}

.kx-ch-all-cats-parent {
    margin: 0 0 10px;
    padding: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 1px dashed #e5e5e5;
}

.kx-ch-all-cats-parent a {
    color: #333;
}

.kx-ch-all-cats-parent a:hover {
    color: #47b751;
    text-decoration: none;
}

.kx-ch-all-cats-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.kx-ch-all-cats-subs a {
    display: inline-block;
    padding: 2px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    white-space: nowrap;
}

.kx-ch-all-cats-subs a:hover {
    color: #47b751;
    text-decoration: none;
}

.kx-ch-all-cats-subs:empty::after {
    content: "—";
    font-size: 12px;
    color: #ccc;
}

/* 星级（频道页内） */
.kx-channel-soft .star0,
.kx-channel-soft .star1,
.kx-channel-soft .star2,
.kx-channel-soft .star3,
.kx-channel-soft .star4,
.kx-channel-soft .star5,
.kx-channel-soft .star6 {
    background: url(/static/images/litterStar.png) no-repeat;
    width: 84px;
    height: 13px;
    display: inline-block;
}

.kx-channel-soft .star1 { background-position: 0 -26px; }
.kx-channel-soft .star2 { background-position: 0 -52px; }
.kx-channel-soft .star3 { background-position: 0 -78px; }
.kx-channel-soft .star4 { background-position: 0 -104px; }
.kx-channel-soft .star5,
.kx-channel-soft .star6 { background-position: 0 -130px; }

#image-preview {
    position: absolute;
    z-index: 1000;
    border: 2px solid #47b751;
    padding: 5px;
    background: #fff;
    border-radius: 4px;
}
