﻿:root {
    --ink: #14545b;
    --text: #27424a;
    --muted: #6b7f86;
    --paper: #ffffff;
    --page: #f2fbf8;
    --line: #cfe4e2;
    --cyan: #20b8a6;
    --coral: #ff7a3d;
    --lime: #a9e875;
    --yellow: #ffe28a;
    --violet: #8aa8ff;
    --shadow: rgba(20, 84, 91, .14);
    --wrap: 1200px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    letter-spacing: 0;
    background: radial-gradient(circle at 12% 8%, rgba(32, 184, 166, .14), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 122, 61, .1), transparent 24%),
    linear-gradient(90deg, rgba(20, 84, 91, .045) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(20, 84, 91, .04) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--page);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: transparent;
    font: 14px/1.55 Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--coral);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.wrap {
    width: min(var(--wrap), calc(100% - 24px));
    margin: 0 auto;
}

.site-header {
    background: transparent;
    border-bottom: 2px solid var(--ink);
}

.brand-strip {
    border-top: 6px solid var(--cyan);
}

.brand-row {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    width: 272px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.hot-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.hot-cloud b {
    color: var(--coral);
}

.hot-cloud a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
}

.main-nav {
    background: var(--ink);
}

.nav-track {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}

.nav-track a {
    min-width: 0;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.nav-track a.active {
    background: var(--coral);
    color: #fff;
}

.hvr-sweep-to-right::before {
    background: var(--cyan);
}

.page {
    padding: 16px 0 34px;
}

.headline-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.headline-strip a {
    min-width: 0;
    padding: 10px 12px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 3px 3px 0 rgba(30, 35, 48, .12);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.headline-strip b {
    color: var(--coral);
}

.first-screen {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
    align-items: stretch;
}

.first-screen > * {
    min-width: 0;
}

.uk-card-default {
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
    color: var(--text);
    overflow: hidden;
}

.uk-card-body {
    padding: 16px;
}

.focus-swiper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 338px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: 4px 4px 0 var(--shadow);
    overflow: hidden;
}

.focus-swiper .swiper-wrapper,
.focus-swiper .swiper-slide {
    height: 100%;
    min-width: 0;
}

.focus-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.focus-slide img {
    width: 100%;
    height: 100%;
    min-height: 338px;
    object-fit: cover;
}

.focus-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 56px 16px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(30, 35, 48, .88));
}

.focus-caption span {
    display: inline-grid;
    place-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
}

.focus-caption strong {
    display: block;
    font-size: 20px;
    line-height: 1.35;
}

.focus-dots.swiper-pagination {
    left: auto;
    right: 14px;
    bottom: 12px;
    width: auto;
}

.focus-dots .swiper-pagination-bullet {
    width: 22px;
    height: 6px;
    border-radius: 4px;
    background: #fff;
    opacity: .75;
}

.focus-dots .swiper-pagination-bullet-active {
    background: var(--yellow);
    opacity: 1;
}

.weekly-panel h1 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.18;
}

.weekly-panel .uk-card-body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weekly-panel p {
    margin: 0;
    color: var(--muted);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 0;
}

.tag-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
}

.mini-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-icon-grid li {
    min-width: 0;
    text-align: center;
}

.mini-icon-grid img {
    width: 52px;
    height: 52px;
    margin: 0 auto 6px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.mini-icon-grid a,
.compact-rank a,
.dated-list a,
.news-list a,
.rank-board a,
.compact-card span,
.app-card strong {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-icon-grid a {
    display: block;
    max-width: 5em;
    margin: 0 auto;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.weekly-fill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.weekly-fill-grid div {
    min-width: 0;
    padding: 8px 9px;
    border: 1px dashed var(--ink);
    border-radius: 6px;
    background: #fff8e4;
}

.weekly-fill-grid b,
.weekly-fill-grid a,
.weekly-fill-grid span {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.weekly-fill-grid b {
    color: var(--coral);
    font-size: 12px;
}

.weekly-fill-grid a {
    color: var(--ink);
    font-weight: 900;
}

.weekly-fill-grid span {
    color: var(--muted);
    font-size: 12px;
}

.weekly-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.weekly-points li {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: #f4fbf9;
}

.weekly-points b,
.weekly-points span,
.weekly-points em {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.weekly-points b {
    color: var(--coral);
}

.weekly-points span {
    color: var(--ink);
    font-weight: 900;
}

.weekly-points em {
    color: var(--muted);
    font-style: normal;
}

.side-stack {
    display: grid;
    gap: 16px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    width: fit-content;
    max-width: 100%;
    padding: 0 8px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--lime);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.side-feature h2 {
    margin: 10px 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.side-feature img {
    width: 100%;
    height: 108px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.side-feature p {
    margin: 10px 0 0;
    color: var(--muted);
}

.hot-rank-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.compact-rank,
.rank-board ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}

.compact-rank li,
.rank-board li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 32px;
    border-top: 1px dashed var(--line);
    counter-increment: rank;
}

.compact-rank li::before,
.rank-board li::before {
    content: counter(rank);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 900;
}

.compact-rank li:nth-child(-n+3)::before,
.rank-board li:nth-child(-n+3)::before {
    background: var(--coral);
    color: #fff;
}

.compact-rank em,
.rank-board span {
    color: var(--coral);
    font-style: normal;
    font-weight: 800;
}

.live-board,
.module-band,
.module-panel,
.friend-links {
    margin-top: 18px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 12px;
    min-width: 0;
}

.section-head h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.15;
}

.more-link {
    flex: 0 0 auto;
    color: var(--ink);
    font-weight: 800;
}

.channel-tabs,
.module-tabs {
    margin: 0 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.channel-tabs::-webkit-scrollbar,
.module-tabs::-webkit-scrollbar,
.nav-track::-webkit-scrollbar {
    display: none;
}

.uk-tab::before {
    border-bottom-color: var(--ink);
}

.uk-tab > * > a {
    min-height: 34px;
    padding: 0 14px 8px;
    color: var(--muted);
    font-weight: 800;
    text-transform: none;
}

.uk-tab > .uk-active > a {
    color: var(--coral);
    border-color: var(--coral);
}

.live-switcher {
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.dated-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
    padding: 14px;
    list-style: none;
}

.dated-list li {
    display: grid;
    grid-template-columns: 52px 46px minmax(0, 1fr) 74px;
    gap: 8px;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: #fbfffd;
}

.dated-list time {
    color: var(--coral);
    font-weight: 800;
}

.dated-list span,
.dated-list em {
    min-width: 0;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dated-list em {
    color: var(--coral);
    font-style: normal;
    font-weight: 800;
    text-align: right;
}

.module-tabs {
    flex: 0 1 auto;
    max-width: 60%;
    margin-bottom: 0;
}

.tile-wall {
    --tile-gap: 16px;
}

.masonry-item {
    width: calc(25% - 12px);
    margin-bottom: var(--tile-gap);
}

.tile-card .uk-card-body {
    min-height: 218px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
}

.tile-card.tall .uk-card-body {
    min-height: 276px;
}

.tile-card img {
    width: 72px;
    height: 72px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.tile-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.tile-card p {
    margin: 0;
    color: var(--muted);
}

.meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.meta-line span,
.meta-line em {
    min-width: 0;
    color: var(--ink);
    font-style: normal;
    font-weight: 800;
}

.download-chip {
    display: inline-grid;
    place-items: center;
    width: max-content;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--coral);
    color: #fff;
    font-weight: 800;
}

.color-cyan {
    background: #e6fbf7;
}

.color-coral {
    background: #fff1e9;
}

.color-lime {
    background: #f1ffe6;
}

.color-yellow {
    background: #fff8dd;
}

.color-violet {
    background: #f0f4ff;
}

.compact-card-grid,
.app-grid,
.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 14px;
}

.compact-card img {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.compact-card span {
    color: var(--ink);
    font-weight: 900;
}

.compact-card em {
    min-width: 0;
    color: var(--muted);
    font-style: normal;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 3px 12px;
    padding: 14px;
}

.app-card img {
    grid-row: 1 / 4;
    width: 62px;
    height: 62px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.app-card strong {
    color: var(--ink);
    font-size: 16px;
}

.app-card span {
    color: var(--muted);
}

.app-card em {
    width: max-content;
    max-width: 100%;
    padding: 1px 7px;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--cyan);
    color: var(--ink);
    font-style: normal;
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.split-section {
    margin-top: 18px;
}

.module-panel {
    padding: 0;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 16px;
}

.news-feature img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.news-feature h3 {
    margin: 10px 0 8px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.3;
}

.news-feature p {
    margin: 0;
    color: var(--muted);
}

.news-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-list li {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: center;
    min-height: 41px;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 3px 3px 0 var(--shadow);
}

.news-list span {
    display: grid;
    place-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--ink);
    border-radius: 5px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.news-list time {
    color: var(--muted);
    text-align: right;
}

.rank-board h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 20px;
}

.rank-board li {
    grid-template-columns: 24px minmax(0, 1fr) 56px;
    min-height: 36px;
}

.topic-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.topic-duo .module-band {
    margin-top: 18px;
}

.topic-stack {
    display: grid;
    gap: 16px;
}

.topic-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: 14px;
}

.topic-card > img {
    width: 100%;
    height: 126px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.topic-card div {
    min-width: 0;
}

.topic-card span {
    color: var(--coral);
    font-weight: 800;
}

.topic-card h3 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
}

.topic-card p {
    margin: 0 0 10px;
    color: var(--muted);
}

.included-icons {
    display: flex;
    gap: 6px;
}

.included-icons img {
    width: 28px;
    height: 28px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    object-fit: cover;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.friend-links strong {
    color: var(--coral);
}

.friend-links a {
    color: var(--muted);
}

.site-footer {
    padding: 28px 0;
    border-top: 2px solid var(--ink);
    background: var(--ink);
    color: #d8deea;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr);
    gap: 24px;
}

.site-footer h2,
.site-footer strong {
    display: block;
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

.site-footer a {
    display: inline-block;
    margin: 0 12px 8px 0;
    color: #d8deea;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 800;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: var(--line);
}

.page-title {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.page-title > .section-label {
    justify-self: start;
}

.page-title h1,
.collection-head h1,
.article-header h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.15;
}

.page-title p,
.collection-head p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
}

.category-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.category-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.category-row b {
    padding-top: 4px;
    color: var(--coral);
}

.category-links {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-panel a,
.filter-row a,
.about-linkbar a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 800;
}

.filter-row,
.about-linkbar,
.feature-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-row {
    margin-bottom: 14px;
}

.filter-row a.active,
.about-linkbar a:first-child {
    background: var(--yellow);
}

.home-tab-control {
    display: grid;
    gap: 14px;
}

.home-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.home-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.home-tab-button.active {
    background: var(--yellow);
    box-shadow: 2px 2px 0 var(--shadow);
}

.home-tab-panel[hidden] {
    display: none;
}

.empty-note {
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: #fbfffd;
    color: var(--muted);
    font-weight: 800;
}

.resource-list,
.article-list,
.included-list,
.topic-list {
    display: grid;
    gap: 12px;
}

.resource-row,
.article-row,
.included-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.resource-row img,
.included-row img {
    width: 76px;
    height: 76px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.resource-row h2,
.article-row h2,
.included-row h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.25;
}

.resource-row p,
.article-row p,
.included-row p {
    margin: 0 0 6px;
    color: var(--muted);
}

.resource-row span,
.article-row span,
.included-row span {
    color: var(--coral);
    font-weight: 800;
}

.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.pager a,
.pager span {
    min-width: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--paper);
    font-weight: 900;
}

.pager a.active {
    background: var(--coral);
    color: #fff;
}

.pager .disabled {
    color: var(--muted);
    background: #edf5f4;
}

.detail-hero,
.detail-layout,
.article-layout,
.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.detail-hero {
    align-items: stretch;
}

.detail-hero > * {
    min-height: 100%;
}

.detail-hero .download-card {
    height: 100%;
}

.detail-main-card,
.download-card {
    padding: 16px;
}

.download-card .uk-card-body {
    padding: 0;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.detail-title-row img {
    width: 92px;
    height: 92px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
}

.detail-title-row h1 {
    margin: 0;
    color: var(--ink);
    line-height: 1.15;
}

.detail-tags {
    margin-top: 10px;
}

.info-matrix,
.apk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
}

.info-matrix div,
.apk-grid div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: #fbfffd;
}

.info-matrix dt,
.apk-grid b {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.info-matrix dd,
.apk-grid span {
    display: block;
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.download-card h2,
.side-list h2 {
    margin: 10px 0 12px;
    color: var(--ink);
    font-size: 20px;
}

.download-state-grid {
    display: grid;
    gap: 8px;
}

.download-state {
    display: grid;
    gap: 2px;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid var(--ink);
    border-radius: 6px;
    background: var(--lime);
    color: var(--ink);
    font-weight: 900;
}

.download-state.ios {
    background: var(--cyan);
}

.download-state.disabled {
    background: #edf5f4;
    color: var(--muted);
}

.download-state span {
    font-size: 12px;
    font-weight: 700;
}

.permission-button {
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.permission-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.permission-modal-layer[hidden] {
    display: none;
}

.permission-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 35, 48, .62);
}

.permission-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(76vh, 620px);
    overflow: auto;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .2);
}

.permission-modal-dialog h2 {
    margin: 0 42px 14px 0;
    color: var(--ink);
    font-size: 22px;
}

.permission-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.detail-layout,
.article-layout,
.rank-layout,
.detail-extra-grid,
.sitemap-list,
.topic-list {
    margin-top: 16px;
}

.detail-content,
.detail-sidebar {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding-top: 20px;
}

.detail-sidebar .side-list .uk-card-body {
    padding-top: 16px;
}

.module-panel,
.article-main {
    min-width: 0;
    padding: 16px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.screenshot-grid,
.detail-extra-grid,
.news-mini-grid {
    display: grid;
    gap: 10px;
}

.screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screenshot-swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.screenshot-swiper .swiper-wrapper,
.screenshot-swiper .swiper-slide {
    min-width: 0;
}

.screenshot-slide {
    margin: 0;
}

.screenshot-grid img,
.screenshot-slide img,
.article-row img,
.topic-list-card > img,
.collection-head > img {
    width: 100%;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    object-fit: cover;
}

.screenshot-grid img {
    height: 150px;
}

.screenshot-slide img {
    height: 260px;
}

.screenshot-slide figcaption {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: #fbfffd;
    color: var(--ink);
    font-weight: 900;
}

.screenshot-dots {
    position: static;
    margin-top: 8px;
}

.screenshot-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border: 1px solid var(--ink);
    background: var(--paper);
    opacity: 1;
}

.screenshot-dots .swiper-pagination-bullet-active {
    background: var(--coral);
}

.rich-text {
    color: var(--text);
    font-size: 15px;
}

.rich-text p {
    margin: 0 0 12px;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text img {
    display: block;
    margin: 16px auto;
    max-width: 100%;
    height: auto;
}

.news-article .article-rich-content img {
    display: block;
    margin: 16px auto;
    max-width: 100%;
    height: auto;
}

.side-list a,
.news-mini-grid a,
.sitemap-list a,
.feature-strip a {
    display: block;
    min-width: 0;
    padding: 8px 0;
    border-top: 1px dashed var(--line);
    color: var(--ink);
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-list a:first-of-type,
.news-mini-grid a:first-child {
    border-top: 0;
}

.news-detail-layout .detail-content {
    padding-top: 0;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-card-grid > .empty-note {
    grid-column: 1 / -1;
}

.news-mini-card {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 6px;
    background: #fbfffd;
    color: var(--ink);
}

.news-mini-card b,
.news-mini-card span,
.news-mini-card p {
    min-width: 0;
}

.news-mini-card b {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.news-mini-card span {
    color: var(--coral);
    font-weight: 900;
}

.news-mini-card p {
    margin: 0;
    color: var(--muted);
}

.permission-modal ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.permission-modal li {
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 6px;
}

.permission-modal b,
.permission-modal span {
    display: block;
}

.article-header {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-weight: 800;
}

.article-row {
    grid-template-columns: 168px minmax(0, 1fr);
}

.article-row img {
    height: 104px;
}

.feature-strip {
    margin-top: 14px;
    padding: 12px 14px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.feature-strip a {
    flex: 1 1 280px;
    border-top: 0;
}

.detail-extra-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rank-title {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.inline-filter {
    margin: 0;
    justify-content: flex-end;
}

.rank-main-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}

.rank-main-list li {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 38px 64px minmax(0, 1fr) 82px;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    margin-bottom: 10px;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 4px 4px 0 var(--shadow);
}

.rank-main-list li::before {
    content: counter(rank);
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--coral);
    color: #fff;
    font-weight: 900;
}

.rank-main-list img {
    width: 64px;
    height: 64px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
}

.rank-main-list a {
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.rank-main-list p {
    margin: 4px 0 0;
    color: var(--muted);
}

.rank-main-list b {
    color: var(--coral);
    text-align: right;
}

.topic-list-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.topic-list-card > img {
    height: 138px;
}

.topic-list-card h2 {
    margin: 4px 0 8px;
    color: var(--ink);
    font-size: 22px;
}

.topic-list-card p {
    margin: 0 0 10px;
    color: var(--muted);
}

.topic-list-card span {
    color: var(--coral);
    font-weight: 900;
}

.collection-head {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.collection-head > img {
    height: 190px;
}

.compact-info {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.included-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
}

.sitemap-list {
    display: grid;
    gap: 12px;
}

.sitemap-list .module-panel {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.sitemap-list h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
}

.sitemap-list div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
}

.sitemap-list a {
    padding: 0;
    border-top: 0;
}

.about-linkbar {
    margin-top: 4px;
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.error-shell {
    width: min(520px, 100%);
}

.error-card {
    display: grid;
    justify-items: start;
    gap: 14px;
    padding: 28px;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 6px 6px 0 var(--shadow);
}

.error-card h1 {
    margin: 0;
    color: var(--ink);
    font-size: 34px;
}

.error-card p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 1120px) {
    .first-screen {
        grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
    }

    .side-stack {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .masonry-item {
        width: calc(33.333% - 11px);
    }

    .app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-hero,
    .detail-layout,
    .article-layout,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-extra-grid,
    .screenshot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-list-card,
    .collection-head {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .topic-list-card > .download-chip {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .brand-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .hot-cloud {
        justify-content: flex-start;
    }

    .nav-track {
        display: flex;
        overflow-x: auto;
    }

    .nav-track a {
        flex: 0 0 auto;
        min-width: 96px;
        padding: 0 14px;
    }

    .headline-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .first-screen,
    .news-layout,
    .topic-duo,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .side-stack {
        grid-template-columns: 1fr;
    }

    .module-tabs {
        max-width: 100%;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .compact-card-grid,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-title,
    .topic-list-card,
    .collection-head,
    .sitemap-list .module-panel {
        grid-template-columns: 1fr;
    }

    .inline-filter {
        justify-content: flex-start;
    }

    .topic-list-card > img,
    .collection-head > img {
        height: 180px;
    }

    .topic-list-card > .download-chip {
        grid-column: auto;
    }

    .sitemap-list div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100% - 20px, var(--wrap));
    }

    .brand-logo {
        width: 240px;
        max-height: 58px;
    }

    .headline-strip,
    .compact-card-grid,
    .app-grid,
    .news-card-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .focus-swiper {
        min-height: 280px;
    }

    .focus-slide img {
        min-height: 280px;
    }

    .focus-caption {
        padding: 46px 14px 14px;
    }

    .focus-caption strong {
        font-size: 18px;
    }

    .uk-card-body {
        padding: 12px;
    }

    .mini-icon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-tab-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .home-tab-list::-webkit-scrollbar {
        display: none;
    }

    .home-tab-button {
        flex: 0 0 auto;
    }

    .weekly-fill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .dated-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .dated-list li {
        grid-template-columns: 50px 46px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 12px;
    }

    .dated-list em {
        grid-column: 2 / -1;
        text-align: left;
    }

    .masonry-item {
        width: 100%;
    }

    .tile-card .uk-card-body,
    .tile-card.tall .uk-card-body {
        min-height: 0;
        grid-template-columns: 62px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: start;
        gap: 3px 12px;
    }

    .tile-card img {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 62px;
        height: 62px;
    }

    .tile-card h3 {
        grid-column: 2;
        min-width: 0;
        font-size: 16px;
    }

    .tile-card p {
        display: none;
    }

    .tile-card .meta-line {
        grid-column: 2;
        justify-content: flex-start;
        gap: 4px;
        min-width: 0;
        color: var(--muted);
    }

    .tile-card .meta-line span,
    .tile-card .meta-line em {
        color: var(--muted);
        font-weight: 400;
    }

    .tile-card .meta-line span::after {
        content: " /";
    }

    .tile-card .download-chip {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        align-self: start;
        min-height: 0;
        padding: 1px 7px;
        border-radius: 5px;
        background: var(--cyan);
        color: var(--ink);
        white-space: nowrap;
    }

    .app-card,
    .compact-card,
    .topic-card {
        padding: 12px;
    }

    .topic-card {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 12px;
    }

    .topic-card > img {
        height: 116px;
    }

    .topic-card p {
        display: none;
    }

    .news-list li {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .news-list time {
        display: none;
    }

    .page-title {
        padding: 12px;
    }

    .category-row {
        grid-template-columns: 1fr;
    }

    .resource-row,
    .included-row {
        grid-template-columns: 56px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .resource-row img,
    .included-row img {
        width: 56px;
        height: 56px;
    }

    .resource-row .download-chip,
    .included-row .download-chip {
        grid-column: 3;
        justify-self: end;
        white-space: nowrap;
    }

    .article-row {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .article-row img {
        height: 86px;
    }

    .resource-row h2,
    .article-row h2,
    .included-row h2 {
        font-size: 17px;
    }

    .rank-main-list li {
        grid-template-columns: 28px 52px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .rank-main-list li::before {
        width: 26px;
        height: 26px;
    }

    .rank-main-list img {
        width: 52px;
        height: 52px;
    }

    .rank-main-list a {
        font-size: 16px;
    }

    .rank-main-list b {
        grid-column: 3;
        text-align: left;
    }

    .info-matrix,
    .apk-grid,
    .compact-info,
    .detail-extra-grid,
    .screenshot-grid,
    .sitemap-list div {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .detail-title-row img {
        width: 72px;
        height: 72px;
    }

    .screenshot-grid img,
    .screenshot-slide img,
    .topic-list-card > img,
    .collection-head > img {
        height: 150px;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

}
