:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* Header */
.site-header {
    background: #2b2b2b;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 56px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo:hover { color: #fff; }

.logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-main { flex: 1; justify-content: center; }

.nav a {
    color: rgba(255,255,255,0.82);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.92rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav a:hover, .nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav a.active {
    color: #4ade80;
}

.header-search {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    max-width: 280px;
    width: 100%;
}

.header-search input {
    flex: 1;
    min-width: 0;
    padding: 7px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.88rem;
    outline: none;
    background: #fff;
    color: var(--text);
}

.header-search button {
    padding: 0 16px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #f97316;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #ea580c;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.hero h1 { font-size: 2rem; margin-bottom: 12px; }
.hero p { opacity: 0.9; font-size: 1.1rem; }

/* Search */
.search-box {
    max-width: 560px;
    margin: 24px auto 0;
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 12px 28px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-box button:hover { transform: scale(1.05); }

/* Section */
.section { padding: 40px 0; }
.section-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* Category pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-filter {
    margin-bottom: 8px;
}

.category-filter .category-pills {
    align-items: center;
    margin-bottom: 12px;
}

.category-filter .filter-label {
    flex-shrink: 0;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 64px;
}

.category-pills-sub {
    padding-left: 12px;
    border-left: 3px solid #dbeafe;
}

.pill {
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pill:hover, .pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Netdisk grid - 网盘列表风格 */
.netdisk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.netdisk-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.netdisk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgb(0 0 0 / 0.15);
}

.card-cover {
    height: 140px;
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-cover .default-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.card-body { padding: 16px; }

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Netdisk badges */
.netdisk-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
}

.badge-baidu { background: #2932e1; }
.badge-aliyun { background: #ff6a00; }
.badge-quark { background: #00b4ff; }
.badge-tianyi { background: #0085d0; }
.badge-123pan { background: #6366f1; }
.badge-other { background: #64748b; }

.hero-compact {
    padding: 36px 0;
}

.hero-compact h1 {
    font-size: 1.75rem;
}

.hero-compact p {
    font-size: 1rem;
}

.home-page {
    padding-top: 24px;
}

.home-software-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-software-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-software-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgb(37 99 235 / 0.08);
}

.home-software-main {
    display: flex;
    gap: 16px;
    padding: 18px 18px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.home-software-cover {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.home-software-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-software-cover .default-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.home-software-info {
    flex: 1;
    min-width: 0;
}

.home-software-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.home-software-title a {
    color: var(--text);
    text-decoration: none;
}

.home-software-title a:hover {
    color: var(--primary);
}

.home-software-title small {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 6px;
}

.home-software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.home-software-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.home-detail-link {
    font-size: 0.85rem;
    color: var(--primary);
}

.home-software-downloads {
    padding: 14px 18px 16px;
}

.home-download-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.home-download-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-wrap: wrap;
}

.home-download-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.home-download-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.home-download-pwd {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.home-download-pwd code {
    color: var(--primary);
    font-weight: 600;
    margin: 0 4px;
}

.btn-copy-sm {
    padding: 2px 8px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-copy-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-download-sm {
    flex-shrink: 0;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-download-sm:hover {
    background: var(--primary-dark);
}

.home-download-empty {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.home-more-link {
    margin-top: 24px;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Unified media card grid */
.media-grid,
.release-grid,
.software-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.media-card,
.release-card,
.software-gallery-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    color: var(--text);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.media-card:hover,
.release-card:hover,
.software-gallery-card:hover {
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
    transform: translateY(-2px);
    color: inherit;
}

.media-card-cover,
.release-card-cover,
.software-gallery-cover {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e8eef5, #dbeafe);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card-cover img,
.release-card-cover img,
.software-gallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.software-gallery-card:hover .software-gallery-cover img,
.media-card:hover .media-card-cover img {
    transform: scale(1.03);
}

.media-card-fallback,
.release-cover-fallback,
.software-gallery-cover-fallback {
    font-size: 2.5rem;
    opacity: 0.5;
}

.media-card-body,
.release-card-body,
.software-gallery-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.media-card-title,
.release-card-title,
.software-gallery-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #222;
}

.media-card-desc,
.release-card-desc,
.software-gallery-card-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.media-card-foot,
.release-card-foot,
.software-gallery-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.media-card-stat,
.release-views,
.software-gallery-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.media-card-date,
.release-date,
.software-gallery-date {
    color: #aaa;
    white-space: nowrap;
}

/* Page hero banner (software / news) */
.page-hero {
    color: #fff;
    padding: 36px 0 40px;
}

.page-hero-software {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
}

.page-hero-news {
    background: linear-gradient(135deg, #581c87 0%, #7c3aed 55%, #8b5cf6 100%);
}

.page-hero-sponsor {
    background: linear-gradient(135deg, #92400e 0%, #d97706 55%, #f59e0b 100%);
}

.page-hero-complaint {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
}

.page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-hero-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page-hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.page-hero-desc {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    line-height: 1.6;
}

.page-hero-stats {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.page-hero-stat {
    min-width: 108px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.page-hero-stat strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.2;
}

.page-hero-stat span {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

/* Software gallery list page */
.software-gallery-page {
    padding: 20px 0 40px;
    background: #fff;
}

.software-gallery-container {
    max-width: 1320px;
}

.software-filter-panel {
    margin-bottom: 24px;
    padding: 18px 20px 8px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.software-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef1f4;
}

.software-filter-head-main {
    flex: 1;
    min-width: 0;
}

.software-filter-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.software-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.software-active-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.78rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    line-height: 1.4;
}

.software-filter-reset {
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.software-filter-reset:hover {
    color: #22c55e;
    background: #f8fafc;
}

.software-gallery-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 280px;
    max-width: 380px;
}

.software-gallery-search input {
    flex: 1;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.software-gallery-search input:focus {
    outline: none;
    border-color: #22c55e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.software-gallery-search button {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: #22c55e;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
}

.software-gallery-search button:hover {
    background: #16a34a;
}

.software-gallery-filters {
    background: transparent;
    margin-bottom: 0;
}

.dk-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed #eef1f4;
}

.dk-filter-row:last-child {
    border-bottom: none;
}

.dk-filter-label {
    flex-shrink: 0;
    width: 84px;
    padding-top: 7px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.dk-filter-body {
    flex: 1;
    min-width: 0;
}

.dk-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.dk-filter-row-collapsible:not(.is-expanded) .dk-filter-tags {
    max-height: 38px;
    overflow: hidden;
}

.dk-filter-row-collapsible.is-expanded .dk-filter-tags {
    max-height: none;
}

.dk-filter-toggle {
    display: none;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #22c55e;
    font-size: 0.82rem;
    cursor: pointer;
    line-height: 1.4;
}

.dk-filter-toggle:hover {
    color: #16a34a;
    text-decoration: underline;
}

.dk-filter-row-collapsible.is-collapsible .dk-filter-toggle {
    display: inline-block;
}

.dk-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.86rem;
    color: #374151;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 999px;
    line-height: 1.4;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.dk-tag:hover {
    color: #16a34a;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dk-tag.active {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.dk-tag.active:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.software-gallery-grid {
    gap: 18px 16px;
}

.software-gallery-card {
    border-color: #eee;
    border-radius: 4px;
}

.dk-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.dk-pagination-total {
    font-size: 0.88rem;
    color: #666;
}

.dk-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dk-pagination .pagination li {
    display: inline-block;
}

.dk-pagination .pagination li a,
.dk-pagination .pagination li span {
    display: inline-block;
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    padding: 0 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #333;
    font-size: 0.88rem;
}

.dk-pagination .pagination li a:hover {
    border-color: #22c55e;
    color: #22c55e;
}

.dk-pagination .pagination li.active span {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.dk-pagination .pagination li.disabled span {
    color: #ccc;
    background: #fafafa;
}

.software-gallery-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.software-gallery-stat svg {
    opacity: 0.75;
}

/* Detail page */
.detail-page { padding-top: 24px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current {
    color: var(--text);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Two-column layout */
.detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.detail-col-main {
    flex: 1;
    min-width: 0;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 24px 28px;
}

.detail-col-side {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-header,
.detail-hero {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
    border-left: none;
    border-right: none;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.detail-hero-media {
    flex-shrink: 0;
    width: 220px;
}

.detail-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.detail-kicker:hover {
    color: var(--primary-dark);
    background: #dbeafe;
}

.detail-page-title,
.detail-hero-body .detail-title {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

.detail-hero-body {
    flex: 1;
    min-width: 0;
}

.detail-hero-body .detail-stats {
    gap: 0 4px;
    margin-bottom: 12px;
}

.detail-hero-body .detail-stats span + span::before {
    content: "·";
    margin: 0 8px;
    color: #cbd5e1;
}

.detail-hero-body .detail-desc {
    margin: 0 0 16px;
}

.detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.btn-download-jump {
    width: auto;
    min-width: 140px;
    padding: 10px 22px;
}

.btn-detail-report {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.detail-hero-body .software-spec-grid {
    border-radius: 10px;
}

.detail-hero-body .software-spec-label {
    flex: 0 0 96px;
    padding: 10px 12px;
    font-size: 0.84rem;
}

.detail-hero-body .software-spec-value {
    padding: 10px 12px;
    font-size: 0.88rem;
}

.detail-hero-body .software-spec-item {
    min-height: 42px;
}

.detail-intro {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.detail-screenshots {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.screenshot-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    cursor: zoom-in;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.screenshot-item:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.screenshot-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #eef2f7;
}

.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.screenshot-lightbox[hidden] {
    display: none !important;
}

.screenshot-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
}

.screenshot-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.screenshot-lightbox-close,
.screenshot-lightbox-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.screenshot-lightbox-close {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.screenshot-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
}

.screenshot-lightbox-prev { left: -18px; }
.screenshot-lightbox-next { right: -18px; }

.screenshot-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.88rem;
    white-space: nowrap;
}

.detail-cover {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.cover-fallback { font-size: 3.5rem; }

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    background: #fff;
}

.detail-cover-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.detail-cover-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 220px;
    margin-top: 0;
}

.detail-cover-thumb {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.detail-cover-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.detail-cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 3px;
    background: #fff;
}

.detail-info { flex: 1; min-width: 0; }
.detail-info h1,
.detail-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin: 0 0 12px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 4px;
}

.detail-download {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 88px;
}

.detail-download-head {
    margin-bottom: 14px;
}

.detail-download-head .box-title {
    margin-bottom: 6px;
}

.detail-download-tip {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.detail-screenshots .box-title small {
    margin-left: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.detail-download .download-panel-list {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.download-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.download-panel-head {
    padding: 0 0 16px;
    border-bottom: none;
    background: transparent;
}

.download-panel-head h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.download-panel-head p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.download-panel-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-panel-item {
    display: grid;
    grid-template-columns: 1fr minmax(140px, 180px);
    align-items: center;
    gap: 14px 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.download-panel-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgb(37 99 235 / 0.08);
}

.download-panel-info {
    min-width: 0;
}

.download-panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.download-panel-info .download-code {
    margin: 10px 0 0;
}

.download-panel-action .btn-download {
    width: 100%;
}

.download-panel-top strong {
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.disk-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
}

.download-code {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
}

.download-code span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.download-code code {
    flex: 1;
    font-family: Consolas, Monaco, monospace;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
}

.btn-copy {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-download {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-download:hover { background: var(--primary-dark); }

.download-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--text-muted);
}

.download-empty .icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.download-empty p { font-size: 0.95rem; margin-bottom: 4px; }
.download-empty small { font-size: 0.82rem; opacity: 0.85; }

.detail-copyright {
    margin-top: 28px;
}

.detail-copyright .copyright-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.detail-copyright .copyright-custom {
    color: var(--text);
    white-space: pre-line;
    margin-bottom: 12px;
}

.detail-copyright .copyright-default {
    margin-bottom: 12px;
}

.detail-copyright .copyright-notes {
    margin: 0;
    padding-left: 1.2em;
}

.detail-copyright .copyright-notes li + li {
    margin-top: 6px;
}

.software-info-panel {
    margin-bottom: 24px;
    padding: 20px 22px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.software-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.software-spec-item {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border-bottom: 1px solid var(--border);
}

.software-spec-item:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.software-spec-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.software-spec-label {
    flex: 0 0 108px;
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.software-spec-value {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.92rem;
    word-break: break-word;
    display: flex;
    align-items: center;
}

@media (max-width: 640px) {
    .software-spec-grid {
        grid-template-columns: 1fr;
    }
    .software-spec-item:nth-child(odd) {
        border-right: none;
    }
    .software-spec-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }
    .software-spec-item:last-child {
        border-bottom: none;
    }
}

.software-info-dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px 20px;
    margin: 0;
}

.software-info-dl dt {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.software-info-dl dd {
    margin: 0;
    font-size: 0.92rem;
    word-break: break-word;
}

.detail-article {
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Sidebar widgets */
.side-widget {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.side-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 16px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.side-icon { font-size: 1rem; line-height: 1; }

.side-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.side-list li { margin: 0; }

.side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s;
}

.side-item:hover {
    background: #f1f5f9;
    color: inherit;
}

.side-rank {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.side-rank-hot:nth-child(1),
.side-item .side-rank-hot:first-child { color: #ef4444; }
.side-list li:nth-child(1) .side-rank-hot { color: #ef4444; }
.side-list li:nth-child(2) .side-rank-hot { color: #f97316; }
.side-list li:nth-child(3) .side-rank-hot { color: #eab308; }

.side-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid var(--border);
}

.side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-item-body {
    flex: 1;
    min-width: 0;
}

.side-item-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-item-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.side-item-simple .side-item-title {
    -webkit-line-clamp: 2;
}

.box-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-col-main,
.detail-article,
.detail-content {
    min-width: 0;
    overflow: hidden;
}

.detail-content {
    font-size: 0.96rem;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    max-width: 100%;
}

.detail-content img,
.detail-content video,
.detail-content iframe {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    margin: 12px auto;
    box-sizing: border-box;
}

.detail-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.detail-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-content h1,
.detail-content h2,
.detail-content h3 {
    margin: 1.2em 0 0.6em;
    line-height: 1.4;
    color: var(--text);
}

.detail-content p { margin-bottom: 0.8em; }
.detail-content ul, .detail-content ol { padding-left: 1.5em; margin-bottom: 0.8em; }

.empty-inline {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.related-box { margin-bottom: 0; }

.netdisk-card { color: inherit; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.copy-code {
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px dashed var(--border);
}

.content-box {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.content-box h2 { font-size: 1.2rem; margin-bottom: 16px; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
}

.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.site-main {
    min-height: calc(100vh - 56px - 320px);
}

.site-links-section {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 18px 0 14px;
}

.site-links-section .friend-links,
.site-links-section .single-pages-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.site-links-section .single-pages-footer {
    border-bottom: none;
    padding-bottom: 0;
}

.site-links-section-compact .single-pages-footer {
    border-bottom: none;
    padding: 8px 0;
}

.friend-links-label,
.single-pages-label {
    flex-shrink: 0;
    min-width: 72px;
    font-size: 0.88rem;
    color: #333;
    font-weight: 700;
    line-height: 1.8;
}

.friend-links-list,
.single-pages-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    line-height: 1.8;
}

.friend-link-item {
    font-size: 0.82rem;
    transition: opacity 0.2s;
}

.friend-link-item:hover {
    opacity: 0.75;
}

.friend-link-item:nth-child(6n+1) { color: #2563eb; }
.friend-link-item:nth-child(6n+2) { color: #dc2626; }
.friend-link-item:nth-child(6n+3) { color: #16a34a; }
.friend-link-item:nth-child(6n+4) { color: #9333ea; }
.friend-link-item:nth-child(6n+5) { color: #ea580c; }
.friend-link-item:nth-child(6n+6) { color: #0891b2; }

.single-page-footer-link {
    color: #64748b;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.single-page-footer-link:hover {
    color: #2563eb;
}

.site-footer {
    background: #2b2b2b;
    color: #94a3b8;
    padding: 40px 0 24px;
    margin-top: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about {
    padding-right: 12px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #e2e8f0;
}

.footer-brand:hover {
    color: #fff;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.footer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
}

.footer-desc {
    font-size: 0.84rem;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
}

.footer-contact {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact li {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #94a3b8;
}

.footer-icp {
    margin: 6px 0 0;
    font-size: 0.82rem;
}

.footer-icp a {
    color: #64748b;
}

.footer-icp a:hover {
    color: #e2e8f0;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #22c55e;
    display: inline-block;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 0.84rem;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-nav a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0 20px;
}

.footer-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-bottom {
    text-align: center;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-disclaimer {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 后台页脚友情链接（深色背景） */
.admin-footer .friend-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-footer .friend-links-label {
    color: #cbd5e1;
}

.admin-footer .friend-link-item {
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 6px;
}

.admin-footer .friend-link-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* Home carousel */
.page-home {
    background: #f0f2f5;
    overflow-x: clip;
}

.page-home .home-carousel {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    outline: none;
    background: #0b1220;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.page-home .home-carousel-fullscreen {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-home .home-carousel-main .carousel-track {
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    aspect-ratio: 1920 / 400;
    height: auto;
    min-height: 140px;
    max-height: min(400px, 42vw);
    background: #0b1220;
}

.page-home .carousel-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.page-home .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.page-home .carousel-link img {
    transform: scale(1.03);
    transition: transform 7s ease, opacity 0.3s ease;
    object-fit: cover;
    object-position: center;
}

.page-home .carousel-slide.active .carousel-link img {
    transform: scale(1);
}

.page-home .carousel-link img.is-broken {
    opacity: 0;
}

.page-home .carousel-caption {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 36px 56px 64px;
    background: linear-gradient(90deg, rgba(8, 15, 30, 0.72) 0%, rgba(8, 15, 30, 0.28) 46%, transparent 72%),
                linear-gradient(transparent, rgba(8, 15, 30, 0.18) 40%, rgba(8, 15, 30, 0.55) 100%);
}

.page-home .carousel-caption-title {
    display: block;
    max-width: min(720px, 86%);
    font-size: clamp(1.05rem, 2.1vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.page-home .carousel-caption-cta {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.page-home .carousel-ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    pointer-events: none;
}

.page-home .carousel-ui .carousel-dots,
.page-home .carousel-ui .carousel-meta,
.page-home .carousel-btn {
    pointer-events: auto;
}

.page-home .carousel-dots {
    position: static;
    transform: none;
    bottom: auto;
    left: auto;
    gap: 8px;
}

.page-home .carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.25s, background 0.25s, transform 0.25s;
}

.page-home .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.page-home .carousel-dot.active {
    width: 28px;
    background: #fff;
}

.page-home .carousel-meta {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.page-home .carousel-current {
    font-style: normal;
    font-size: 0.95rem;
}

.page-home .carousel-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.16);
    z-index: 4;
}

.page-home .carousel-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #60a5fa, #fff);
    animation: homeCarouselProgress 5.5s linear forwards;
}

.page-home .carousel-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-50%) scale(0.94);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s;
}

.page-home .home-carousel:hover .carousel-btn,
.page-home .home-carousel:focus-within .carousel-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.page-home .carousel-prev { left: 20px; }
.page-home .carousel-next { right: 20px; }

@keyframes homeCarouselProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (hover: none) {
    .page-home .carousel-btn {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .carousel-slide,
    .page-home .carousel-link img {
        transition: none;
        transform: none;
    }
    .page-home .carousel-progress-bar {
        animation: none;
        width: 100%;
    }
}

.home-carousel {
    position: relative;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
    aspect-ratio: 3 / 1;
    min-height: 180px;
    max-height: 400px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 24px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
}

.carousel-caption span {
    font-size: 1.25rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-prev { left: 32px; }
.carousel-next { right: 32px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.15);
}

/* Home blocks */
.home-block {
    margin-bottom: 36px;
}

.home-block:last-child {
    margin-bottom: 0;
}

.home-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.home-block-head .section-title {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-block-icon {
    font-size: 1.1rem;
}

.home-block-more {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.home-block-more:hover {
    color: var(--primary);
}

.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.home-latest-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-latest-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgb(37 99 235 / 0.08);
    color: var(--text);
}

.home-latest-cover {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.home-latest-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-latest-cover .default-icon {
    font-size: 1.5rem;
    opacity: 0.7;
}

.home-latest-body {
    flex: 1;
    min-width: 0;
}

.home-latest-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-latest-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Home hot tags */
.home-hot-tags {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
}

.hot-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    line-height: 1.8;
}

.hot-tag-item {
    font-size: 0.82rem;
    color: #2563eb;
    transition: opacity 0.2s;
}

.hot-tag-item:hover {
    opacity: 0.75;
    color: #1d4ed8;
}

.hot-tag-item:nth-child(6n+1) { color: #2563eb; }
.hot-tag-item:nth-child(6n+2) { color: #dc2626; }
.hot-tag-item:nth-child(6n+3) { color: #16a34a; }
.hot-tag-item:nth-child(6n+4) { color: #9333ea; }
.hot-tag-item:nth-child(6n+5) { color: #ea580c; }
.hot-tag-item:nth-child(6n+6) { color: #0891b2; }

.hot-tag-soft {
    color: #64748b !important;
}

/* Home latest release */
.home-release-section {
    padding: 24px 0 40px;
    background: #f5f5f5;
}

.home-release-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.home-release-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    padding-left: 12px;
    border-left: 4px solid #22c55e;
}

.home-release-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-release-tabs::-webkit-scrollbar {
    display: none;
}

.release-tab {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.release-tab:hover {
    color: var(--text);
}

.release-tab.active {
    color: #16a34a;
    font-weight: 600;
}

.release-tab.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: #22c55e;
    border-radius: 1px;
}

.release-panel {
    display: none;
}

.release-panel.active {
    display: block;
}

@media (max-width: 1100px) {
    .release-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
    }
    .nav-main {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .header-search {
        max-width: none;
        flex: 1;
        min-width: 160px;
    }
    .release-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-release-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-home .home-carousel-main .carousel-track {
        min-height: 112px;
        max-height: min(280px, 38vw);
    }

    .page-home .carousel-caption {
        padding: 20px 16px 48px;
        background: linear-gradient(transparent, rgba(8, 15, 30, 0.62) 100%);
        gap: 8px;
    }

    .page-home .carousel-caption-title {
        font-size: clamp(0.92rem, 4vw, 1.2rem);
        max-width: 92%;
    }

    .page-home .carousel-caption-cta {
        display: none;
    }

    .page-home .carousel-ui {
        bottom: 10px;
        padding: 0 12px;
    }

    .page-home .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        opacity: 1;
        transform: translateY(-50%);
    }

    .page-home .carousel-prev { left: 8px; }
    .page-home .carousel-next { right: 8px; }
}

@media (max-width: 480px) {
    .release-grid {
        grid-template-columns: 1fr;
    }

    .media-grid,
    .release-grid,
    .software-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dk-pagination-wrap {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1200px) {
    .media-grid,
    .release-grid,
    .software-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .detail-layout,
    .software-list-page .detail-layout {
        flex-direction: column;
    }

    .media-grid,
    .release-grid,
    .software-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dk-filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .dk-filter-label {
        width: auto;
        padding-top: 0;
    }

    .software-filter-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .software-gallery-search {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .page-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero-stats {
        width: 100%;
    }

    .page-hero-stat {
        flex: 1;
    }

    .detail-col-main,
    .list-col-main {
        padding: 20px;
    }
    .detail-col-side {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .side-widget {
        flex: 1 1 280px;
    }
    .detail-download .download-panel-list {
        grid-template-columns: 1fr;
    }
    .list-page-head {
        flex-direction: column;
        align-items: stretch;
    }
    .list-search-form {
        max-width: none;
    }
    .home-software-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .home-software-meta {
        justify-content: center;
    }
    .home-download-item {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-download-sm {
        text-align: center;
    }
    .home-latest-grid {
        grid-template-columns: 1fr;
    }
    .carousel-prev { left: 12px; }
    .carousel-next { right: 12px; }
    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .screenshot-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .screenshot-lightbox {
        padding: 12px;
    }

    .screenshot-lightbox-prev { left: 4px; }
    .screenshot-lightbox-next { right: 4px; }
    .screenshot-lightbox-close {
        top: 4px;
        right: 4px;
    }

    .detail-header,
    .detail-hero {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .detail-hero-media {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .detail-cover-wrap {
        width: 100%;
        align-items: center;
    }

    .detail-cover {
        width: min(100%, 180px);
        height: auto;
        aspect-ratio: 1;
    }

    .detail-cover-thumbs {
        max-width: min(100%, 180px);
        justify-content: center;
    }

    .download-panel-item {
        grid-template-columns: 1fr;
    }

    .btn-download-jump,
    .btn-detail-report {
        flex: 1;
        text-align: center;
    }

    .detail-meta,
    .detail-stats {
        justify-content: flex-start;
    }
    .detail-col-side { flex-direction: column; }
    .download-item { flex-direction: column; align-items: flex-start; }
}

/* Complaint form */
.complaint-page .breadcrumb {
    margin-bottom: 20px;
}

.complaint-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.card-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.complaint-intro-title {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.complaint-intro h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.complaint-desc {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.complaint-tips {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.complaint-tips li + li {
    margin-top: 8px;
}

.complaint-form .form-field {
    margin-bottom: 18px;
}

.complaint-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.complaint-form .required {
    color: var(--danger);
}

.complaint-form input[type="text"],
.complaint-form select,
.complaint-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.complaint-form input:focus,
.complaint-form select:focus,
.complaint-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.complaint-form textarea {
    resize: vertical;
    min-height: 120px;
}

.complaint-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.complaint-form .form-actions {
    margin-top: 8px;
}

.software-ref {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
}

.software-ref-name {
    font-weight: 600;
    color: #1e40af;
}

@media (max-width: 900px) {
    .complaint-layout {
        grid-template-columns: 1fr;
    }
    .complaint-form .form-row {
        grid-template-columns: 1fr;
    }
}

.complaint-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.complaint-tab {
    appearance: none;
    border: none;
    background: none;
    padding: 10px 18px;
    font: inherit;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.complaint-tab:hover {
    color: var(--primary);
}

.complaint-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.complaint-panel {
    display: none;
}

.complaint-panel.active {
    display: block;
}

.field-tip {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.query-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
}

.query-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.query-result-head h3 {
    font-size: 1.05rem;
}

.query-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.query-status.status-pending { background: #fef3c7; color: #92400e; }
.query-status.status-processing { background: #dbeafe; color: #1e40af; }
.query-status.status-resolved { background: #d1fae5; color: #065f46; }
.query-status.status-rejected { background: #fee2e2; color: #991b1b; }

.query-dl {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px 16px;
    margin: 0 0 20px;
}

.query-dl dt {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.query-dl dd {
    margin: 0;
    word-break: break-word;
}

.ticket-no-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.92rem;
}

.query-block + .query-block {
    margin-top: 16px;
}

.query-block h4 {
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.query-text,
.query-reply {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.query-reply {
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* News hub / collection page */
.news-hub-page .breadcrumb {
    margin-bottom: 20px;
}

.news-hub-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.news-hub-search-full {
    width: 100%;
    max-width: 420px;
}

.news-hub-search {
    flex: 0 1 360px;
    width: 100%;
    max-width: 420px;
}

.news-hub-search .search-box {
    background: rgba(255, 255, 255, 0.95);
}

.news-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
}

.filter-reset {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.filter-reset:hover {
    color: var(--primary);
}

.news-hero-section {
    margin-bottom: 28px;
}

.news-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgb(0 0 0 / 0.18);
}

.news-hero-cover {
    position: relative;
    min-height: 280px;
    background: #e2e8f0;
}

.news-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-hero-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ef4444;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.news-hero-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-hero-body h2 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-hero-body p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.news-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.news-featured-item {
    display: flex;
    gap: 14px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.12);
}

.news-featured-cover {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
}

.news-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-featured-body {
    min-width: 0;
}

.news-featured-tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.news-featured-body h3 {
    font-size: 0.92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-date {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.news-hub-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.news-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.news-section-head h2 {
    font-size: 1.15rem;
}

.news-section-count {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-feed-item {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-feed-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.12);
}

.news-feed-link {
    display: flex;
    gap: 20px;
    padding: 18px 20px;
    color: inherit;
}

.news-feed-thumb {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.news-feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-feed-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-feed-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.feed-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
}

.feed-tag-top {
    background: #fef3c7;
    color: #92400e;
}

.news-feed-content h3 {
    font-size: 1.08rem;
    line-height: 1.45;
    margin-bottom: 8px;
}

.news-feed-summary {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.news-hub-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-hub-side .side-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: sticky;
    top: 84px;
}

.news-hub-side .side-box + .side-box {
    position: static;
}

.news-rank-list {
    list-style: none;
    counter-reset: news-rank;
}

.news-rank-list li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.news-rank-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: inherit;
}

.news-rank-list a:hover .rank-title {
    color: var(--primary);
}

.rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-rank-list li:nth-child(1) .rank-num {
    background: #fef3c7;
    color: #b45309;
}

.news-rank-list li:nth-child(2) .rank-num {
    background: #e2e8f0;
    color: #475569;
}

.news-rank-list li:nth-child(3) .rank-num {
    background: #ffedd5;
    color: #c2410c;
}

.rank-title {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #94a3b8;
    background: #e2e8f0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.news-detail-main {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.news-detail-header h1 {
    font-size: 1.75rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.meta-top {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
}

.news-detail-cover {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.news-detail-cover img {
    width: 100%;
    display: block;
}

.news-detail-summary {
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.news-detail-content {
    line-height: 1.8;
    word-break: break-word;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-detail-content p {
    margin-bottom: 1em;
}

.news-detail-footer {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.news-share {
    margin-bottom: 24px;
}

.news-share-title,
.news-detail-copyright .box-title {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text);
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.share-btn-weibo:hover {
    border-color: #e11d48;
    color: #e11d48;
    background: #fff1f2;
}

.share-btn-qq:hover {
    border-color: #0ea5e9;
    color: #0284c7;
    background: #f0f9ff;
}

.share-icon {
    font-size: 1rem;
    line-height: 1;
}

.news-detail-copyright {
    margin-top: 0;
}

.news-detail-side .side-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: sticky;
    top: 84px;
}

.news-detail-side .side-box + .side-box {
    position: static;
    margin-top: 20px;
}

.news-detail-side .side-box-title .side-icon {
    margin-right: 4px;
}

.news-software-list .side-item {
    padding: 8px 0;
}

.side-more-link {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    text-align: center;
    font-size: 0.88rem;
    color: var(--primary);
}

.side-more-link:hover {
    color: var(--primary-dark);
}

.side-box-title {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.news-side-list {
    list-style: none;
}

.news-side-list li + li {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.news-side-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
}

.news-side-list a:hover .news-side-title {
    color: var(--primary);
}

.news-side-title {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-side-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.side-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .news-hero-card {
        grid-template-columns: 1fr;
    }
    .news-hero-cover {
        min-height: 220px;
    }
    .news-featured-grid {
        grid-template-columns: 1fr;
    }
    .news-hub-layout {
        grid-template-columns: 1fr;
    }
    .news-hub-side .side-box {
        position: static;
    }
    .news-detail-layout {
        grid-template-columns: 1fr;
    }
    .news-detail-side .side-box {
        position: static;
    }
}

@media (max-width: 640px) {
    .news-hub-header {
        justify-content: stretch;
    }

    .news-hub-search-full {
        max-width: none;
    }

    .news-feed-link {
        flex-direction: column;
    }
    .news-feed-thumb {
        width: 100%;
        height: 180px;
    }
    .news-detail-main {
        padding: 20px;
    }
}

.single-page-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.single-page-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-page-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.15);
    color: var(--primary);
}

.single-page-link-title {
    font-size: 1.02rem;
    font-weight: 600;
}

.single-page-link-arrow {
    color: var(--text-muted);
}

.single-page-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}

.single-page-main {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.single-page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.single-page-updated {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.single-page-content {
    line-height: 1.8;
    word-break: break-word;
}

.single-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-page-content p {
    margin-bottom: 1em;
}

.single-page-side .side-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    position: sticky;
    top: 84px;
}

.single-page-nav {
    list-style: none;
}

.single-page-nav li + li {
    margin-top: 4px;
}

.single-page-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: inherit;
    font-size: 0.92rem;
}

.single-page-nav a:hover {
    background: #eff6ff;
    color: var(--primary);
}

.single-page-nav li.active a {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .single-page-links {
        grid-template-columns: 1fr;
    }
    .single-page-layout {
        grid-template-columns: 1fr;
    }
    .single-page-side .side-box {
        position: static;
    }
    .single-page-main {
        padding: 22px;
    }
}

/* Sponsor page */
.sponsor-page {
    padding: 28px 0 48px;
}

.sponsor-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.sponsor-aside {
    position: sticky;
    top: 72px;
    padding: 24px;
}

.sponsor-aside-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sponsor-aside-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.sponsor-aside h1,
.sponsor-aside-title {
    font-size: 1.15rem;
    margin: 0;
}

.sponsor-aside h1 {
    font-size: 1.35rem;
    margin: 0;
}

.sponsor-intro {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.9rem;
    margin: 0 0 18px;
}

.sponsor-steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sponsor-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text);
}

.sponsor-steps .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-aside-note {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #f97316;
}

.sponsor-aside-note strong {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 6px;
    color: var(--text);
}

.sponsor-aside-note p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.sponsor-toolbar {
    margin-bottom: 16px;
}

.sponsor-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.sponsor-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}

.sponsor-card-head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sponsor-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sponsor-type-alipay .sponsor-type-badge { background: #eff6ff; color: #1677ff; }
.sponsor-type-wechat .sponsor-type-badge { background: #ecfdf5; color: #07c160; }
.sponsor-type-qq .sponsor-type-badge { background: #ecfeff; color: #0891b2; }
.sponsor-type-other .sponsor-type-badge { background: #fff7ed; color: #ea580c; }

.sponsor-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsor-type-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.sponsor-card-title h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.sponsor-card-body {
    padding: 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-qrcode-btn {
    width: 188px;
    height: 188px;
    padding: 8px;
    margin: 0 auto 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sponsor-qrcode-btn:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgb(37 99 235 / 0.12);
}

.sponsor-qrcode-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sponsor-qrcode-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.72rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.sponsor-qrcode-btn:hover .sponsor-qrcode-tip {
    opacity: 1;
}

.sponsor-qrcode-empty {
    width: 188px;
    height: 188px;
    margin: 0 auto 14px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sponsor-account {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: left;
}

.sponsor-account-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.sponsor-account-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsor-account-text {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: var(--text);
    background: transparent;
    padding: 0;
    word-break: break-all;
}

.btn-copy-sm {
    flex-shrink: 0;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-copy-sm:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.sponsor-desc {
    width: 100%;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: left;
    padding-top: 4px;
}

.sponsor-type-alipay { border-top: 3px solid #1677ff; }
.sponsor-type-wechat { border-top: 3px solid #07c160; }
.sponsor-type-qq { border-top: 3px solid #12b7f5; }
.sponsor-type-other { border-top: 3px solid #f97316; }

.sponsor-empty {
    text-align: center;
    padding: 48px 24px;
}

.sponsor-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}

.sponsor-empty h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.sponsor-empty p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-sponsor-back {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.88rem;
    transition: background 0.2s;
}

.btn-sponsor-back:hover {
    background: var(--primary-dark);
    color: #fff;
}

.sponsor-thank {
    margin-top: 24px;
    text-align: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-radius: var(--radius);
    border: 1px solid #fde68a;
}

.sponsor-thank-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 6px;
}

.sponsor-thank p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.7;
}

.sponsor-modal[hidden] {
    display: none !important;
}

.sponsor-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sponsor-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.sponsor-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.25);
}

.sponsor-modal-box h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.sponsor-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.sponsor-modal-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.sponsor-modal-qrcode {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.sponsor-modal-qrcode img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .sponsor-layout {
        grid-template-columns: 1fr;
    }
    .sponsor-aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .sponsor-grid {
        grid-template-columns: 1fr;
    }
    .sponsor-qrcode-btn,
    .sponsor-qrcode-empty {
        width: 168px;
        height: 168px;
    }
}

/* Member center */
.header-member {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex-shrink: 0;
}

.header-member-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.header-member-link:hover {
    color: var(--primary);
}

.header-member-accent {
    color: var(--primary);
}

.header-member-muted {
    opacity: 0.85;
}

.member-page .breadcrumb {
    margin-bottom: 20px;
}

.member-auth-layout,
.member-center-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.member-auth-intro h1,
.member-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.member-auth-desc {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.member-auth-tips {
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.member-auth-tips li + li {
    margin-top: 8px;
}

.member-form-foot {
    margin-top: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.member-code-row {
    display: flex;
    gap: 10px;
}

.member-code-row input {
    flex: 1;
    min-width: 0;
}

.member-code-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-block {
    width: 100%;
}

.member-profile-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}

.member-profile-info {
    min-width: 0;
}

.member-profile-info h1 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.member-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.member-avatar-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.member-level-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.member-email {
    color: var(--text-muted);
    font-size: 0.92rem;
    word-break: break-all;
}

.member-sidebar-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.member-sidebar-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.member-sidebar-meta span {
    color: var(--text-muted);
}

.member-main {
    display: grid;
    gap: 24px;
}

.member-logout {
    margin-top: 8px;
}

.member-side-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.member-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
}

.member-nav-icon {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.member-side-link:hover,
.member-side-link.active {
    color: var(--primary);
    background: #eff6ff;
}

.member-login-tabs {
    margin-bottom: 20px;
}

.member-panel-head {
    margin-bottom: 20px;
}

.member-panel-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 8px;
}

.member-download-list {
    display: grid;
    gap: 14px;
}

.member-download-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.member-download-item:last-child {
    border-bottom: none;
}

.member-download-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.member-download-item h3 a:hover {
    color: var(--primary);
}

.member-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.member-download-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.member-download-side time {
    color: var(--text-muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .header-member.nav-desktop {
        display: none;
    }
    .member-auth-layout,
    .member-center-layout {
        grid-template-columns: 1fr;
    }
    .member-code-row {
        flex-direction: column;
    }
    .member-download-item {
        flex-direction: column;
    }
    .member-download-side {
        align-items: flex-start;
    }
}

.download-login-tip {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.92rem;
}

.download-login-tip a {
    color: var(--primary);
    font-weight: 600;
}

.btn-download-login {
    background: #f59e0b;
}

.btn-download-login:hover {
    background: #d97706;
    color: #fff;
}

.download-quota-tip {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0.92rem;
}

.download-panel-vip {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.disk-vip-tag {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 0.78rem;
    font-weight: 600;
}

.download-panel-locked {
    opacity: 0.92;
}

.btn-download-locked,
.btn-download-locked.disabled {
    background: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

a.btn-download-locked {
    pointer-events: auto;
    background: #64748b;
}

a.btn-download-locked:hover {
    background: #475569;
    color: #fff;
}

/* Atmospheric software detail */
.software-detail-page {
    padding-top: 18px;
}

.software-detail-page .breadcrumb {
    margin-bottom: 16px;
}

.software-showcase {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    background:
        radial-gradient(1200px 280px at 12% -10%, rgba(59, 130, 246, 0.22), transparent 55%),
        radial-gradient(800px 240px at 92% 120%, rgba(14, 165, 233, 0.16), transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
}

.software-showcase-glow {
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(20px);
    pointer-events: none;
}

.software-showcase-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 36px;
    align-items: center;
}

.software-detail-page .detail-hero-media {
    width: 260px;
}

.software-detail-page .detail-cover-wrap {
    width: 260px;
}

.software-detail-page .detail-cover {
    width: 260px;
    height: 260px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.software-detail-page .detail-cover img {
    padding: 22px;
    background: transparent;
}

.software-detail-page .detail-cover-thumbs {
    max-width: 260px;
}

.software-detail-page .detail-cover-thumb {
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.9);
}

.software-detail-page .detail-cover-thumb.active {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.software-showcase-body {
    flex: 1;
    min-width: 0;
}

.software-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.software-detail-page .detail-kicker {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.software-detail-page .detail-kicker:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.software-detail-page .detail-kicker-muted {
    background: rgba(15, 23, 42, 0.2);
}

.software-showcase-title {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.software-showcase-desc {
    max-width: 720px;
    margin: 0 0 22px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.software-metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.software-metric {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.software-metric strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 4px;
    word-break: break-all;
}

.software-metric span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
}

.software-detail-page .detail-hero-actions {
    margin-bottom: 0;
}

.software-legal-banner {
    width: 100%;
    margin: 0 0 12px;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.85);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.35);
    color: #fff;
}

.software-legal-banner strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.software-legal-banner p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.7;
    color: #fffbeb;
}

.download-legal-notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #f59e0b;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.download-legal-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #9a3412;
}

.download-legal-notice p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.7;
    color: #7c2d12;
}

.software-detail-page .btn-detail-report {
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: transparent;
}

.software-detail-page .btn-detail-report:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.software-detail-page .detail-col-main {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.software-detail-page .detail-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 24px 26px;
}

.software-detail-page .detail-panel-title {
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--border);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.software-detail-page .detail-panel-title small {
    margin-left: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.software-detail-page .detail-screenshots,
.software-detail-page .detail-article,
.software-detail-page .detail-download,
.software-detail-page .detail-copyright {
    margin: 0;
    padding: 24px 26px;
    border: 1px solid var(--border);
}

.software-detail-page .detail-download-panel {
    background: linear-gradient(180deg, #f8fbff 0%, #fff 42%);
    border-color: #bfdbfe;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
}

.software-detail-page .download-panel-item {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
}

.software-detail-page .screenshot-gallery {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.software-detail-page .screenshot-item {
    border-radius: 16px;
}

.software-detail-page .screenshot-item img {
    aspect-ratio: 16 / 10;
}

.software-detail-page .software-spec-grid {
    border-radius: 14px;
}

@media (max-width: 900px) {
    .software-showcase {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .software-showcase-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .software-detail-page .detail-hero-media,
    .software-detail-page .detail-cover-wrap {
        width: 100%;
        align-items: center;
    }

    .software-detail-page .detail-cover {
        width: min(220px, 100%);
        height: auto;
        aspect-ratio: 1;
    }

    .software-metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .software-showcase-title {
        font-size: 1.7rem;
    }
}

.cs-widget {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cs-widget-toggle {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.38);
}

.cs-widget-toggle:hover {
    background: #1d4ed8;
}

.cs-widget-panel {
    width: 280px;
    max-height: min(70vh, 520px);
    overflow: auto;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.cs-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cs-widget-head strong {
    font-size: 0.95rem;
}

.cs-widget-notice {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.cs-widget-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.cs-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-widget-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cs-widget-qr {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.cs-widget-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-widget-meta {
    min-width: 0;
    flex: 1;
}

.cs-widget-meta strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.cs-widget-meta p {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-widget-copy {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 4px;
    padding: 0 6px;
    height: 22px;
    font-size: 0.72rem;
    cursor: pointer;
    color: var(--primary);
}

.cs-widget-meta small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
}

.cs-widget-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cs-widget-modal[hidden] {
    display: none;
}

.cs-widget-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.cs-widget-modal-box {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.cs-widget-modal-box h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.cs-widget-modal-notice {
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}

.cs-widget-modal-box img {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 8px;
}

.cs-widget-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}
