/* 天圆地方下载网 - 纯净现代样式表 (100% 本地化，无外部依赖) */
:root {
    --brand-blue: #1565B8;
    --brand-blue-dark: #0E4C8F;
    --brand-sky: #2A9AD6;
    --brand-orange: #E86F12;
    --brand-orange-soft: #FFF5EC;
    --brand-blue-soft: #EEF5FD;
    --bg-canvas: #F5F7FB;
    --bg-white: #FFFFFF;
    --border-color: #E3E8F1;
    --border-strong: #CBD5E4;
    --ink-primary: #142033;
    --ink-secondary: #48566D;
    --ink-muted: #6C7A91;
    --green-bg: #E7F7EE;
    --green-ink: #137A42;
    --teal-bg: #E6F6F7;
    --teal-ink: #0D7480;
    --amber-bg: #FEF4E4;
    --amber-ink: #B85B0A;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(15, 36, 70, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 36, 70, 0.08);
    --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink-primary);
    background: var(--bg-canvas);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
    color: var(--brand-blue-dark);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.site-main {
    flex: 1 0 auto;
}

/* Header */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(15, 36, 70, 0.04);
}

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

.brand-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item {
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-secondary);
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
}

.nav-item.active {
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    font-weight: 600;
}

.nav-item.nav-ai {
    color: var(--brand-orange);
}

.nav-item.nav-ai:hover,
.nav-item.nav-ai.active {
    background: var(--brand-orange-soft);
    color: #C95B07;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 3px 4px 3px 14px;
    width: 240px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.header-search:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 184, 0.12);
    background: var(--bg-white);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13.5px;
    color: var(--ink-primary);
    font-family: inherit;
    min-width: 0;
}

.header-search button {
    border: none;
    background: var(--brand-blue);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.header-search button:hover {
    background: var(--brand-blue-dark);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink-primary);
    border-radius: 2px;
}

.mobile-drawer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 14px 0 18px;
    box-shadow: var(--shadow-md);
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.mobile-search button {
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--brand-blue);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mobile-links a {
    padding: 9px 10px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--bg-canvas);
    color: var(--ink-primary);
    font-size: 14px;
    font-weight: 500;
}

.mobile-links a.active {
    background: var(--brand-blue);
    color: #fff;
}

/* Announcement Banner (Top full-width bar right below navigation on Home) */
.announce-bar {
    background: linear-gradient(90deg, #FFF7EE 0%, #EFF6FF 100%);
    border-bottom: 1px solid #E2E9F5;
    padding: 10px 0;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    font-size: 14px;
    color: #2B394E;
    font-weight: 500;
    word-break: break-word;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #0E3B75 0%, #1565B8 55%, #1E82C9 100%);
    color: #FFFFFF;
    padding: 46px 0 50px;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 14px;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: 33px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hero-lead {
    margin: 0 0 22px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-search {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 10px 28px rgba(8, 30, 66, 0.22);
    max-width: 580px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 15px;
    color: var(--ink-primary);
    font-family: inherit;
    background: transparent;
}

.hero-search button {
    border: none;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    padding: 0 24px;
    border-radius: 9px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    transition: background 0.16s ease;
}

.hero-search button:hover {
    background: #D15E07;
}

.hero-hot-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-hot-tags a {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12.5px;
}

.hero-hot-tags a:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(6px);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

.hero-quick-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    color: var(--ink-primary);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.quick-tool-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--ink-primary);
}

.quick-tool-card strong {
    display: block;
    font-size: 14px;
    color: var(--ink-primary);
}

.quick-tool-card span {
    display: block;
    font-size: 12.5px;
    color: var(--ink-muted);
}

.qt-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qt-blue {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.qt-orange {
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
}

/* Sections */
.section-block {
    padding: 40px 0;
}

.section-tinted {
    background: #EDF2FA;
    border-top: 1px solid #E1E8F4;
    border-bottom: 1px solid #E1E8F4;
}

.category-strip {
    padding: 26px 0 12px;
}

.cat-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--ink-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cat-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-md);
    color: var(--ink-primary);
}

.cat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cat-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.cat-count {
    font-size: 12px;
    color: var(--ink-muted);
    background: var(--bg-canvas);
    padding: 2px 8px;
    border-radius: 999px;
}

.cat-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}

.cat-card p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    line-height: 1.45;
}

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

.section-head h2 {
    margin: 0 0 4px;
    font-size: 23px;
    font-weight: 700;
    color: var(--ink-primary);
}

.section-head p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-muted);
}

.section-more {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* App Grid & Cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

.app-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    min-width: 0;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #BDD3F2;
}

.app-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-icon-link {
    flex-shrink: 0;
}

.app-emblem {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
}

.app-card-meta {
    min-width: 0;
    flex: 1;
}

.app-card-meta h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-meta h3 a {
    color: var(--ink-primary);
}

.app-card-meta h3 a:hover {
    color: var(--brand-blue);
}

.app-subline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-muted);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-green { background: var(--green-bg); color: var(--green-ink); }
.badge-blue { background: var(--brand-blue-soft); color: var(--brand-blue); }
.badge-teal { background: var(--teal-bg); color: var(--teal-ink); }
.badge-amber { background: var(--amber-bg); color: var(--amber-ink); }
.badge-safe { background: #E7F7EE; color: #126E3C; }
.badge-muted { background: #EEF1F6; color: var(--ink-secondary); }

.app-summary {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--ink-secondary);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #F0F3F8;
}

.plat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.plat-pill {
    font-size: 11.5px;
    color: var(--ink-muted);
    background: var(--bg-canvas);
    border: 1px solid var(--border-color);
    padding: 2px 7px;
    border-radius: 5px;
}

.plat-pill-lg {
    font-size: 13px;
    padding: 4px 11px;
    color: var(--ink-primary);
}

.rating-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-orange);
    background: var(--brand-orange-soft);
    padding: 3px 9px;
    border-radius: 6px;
}

.btn-card {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 7px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-card:hover {
    background: var(--brand-blue);
    color: #FFFFFF;
}

.btn-card-primary {
    background: var(--brand-blue);
    color: #FFFFFF;
}

.btn-card-primary:hover {
    background: var(--brand-blue-dark);
    color: #FFFFFF;
}

/* Dual Columns on Home */
.dual-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.col-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.compact-head {
    margin-bottom: 14px;
}

.compact-head h2 {
    font-size: 20px;
}

.compact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: var(--bg-canvas);
    color: var(--ink-primary);
    min-width: 0;
}

.compact-row:hover {
    border-color: #C4D9F5;
    background: #F8FBFF;
    color: var(--ink-primary);
}

.compact-row .app-emblem {
    width: 42px;
    height: 42px;
}

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

.compact-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.compact-title-row strong {
    font-size: 14.5px;
}

.compact-info p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-meta {
    font-size: 12px;
    color: var(--ink-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-mini {
    font-size: 11.5px;
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    padding: 1px 7px;
    border-radius: 5px;
}

/* Alternatives Cards */
.alt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.alt-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.alt-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.alt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.alt-group {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    padding: 2px 9px;
    border-radius: 999px;
}

.alt-save {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-ink);
    background: var(--green-bg);
    padding: 2px 9px;
    border-radius: 999px;
}

.alt-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    background: var(--bg-canvas);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.alt-vs small {
    display: block;
    font-size: 11px;
    color: var(--ink-muted);
    margin-bottom: 2px;
}

.alt-vs strong {
    font-size: 14.5px;
    word-break: break-word;
}

.alt-paid strong {
    color: var(--ink-secondary);
}

.alt-free strong {
    color: var(--brand-blue);
}

.alt-arrow {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-orange);
}

.alt-reason {
    margin: 0;
    font-size: 13.5px;
    color: var(--ink-secondary);
    line-height: 1.55;
    flex: 1;
}

.alt-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #F0F3F8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Guides Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.guide-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.guide-tag {
    background: var(--brand-orange-soft);
    color: #C75906;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
}

.guide-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
}

.guide-card h3 a {
    color: var(--ink-primary);
}

.guide-card h3 a:hover {
    color: var(--brand-blue);
}

.guide-card p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--ink-secondary);
    flex: 1;
}

.guide-more {
    font-size: 13.5px;
    font-weight: 600;
}

/* Inner Page Banner & Breadcrumb */
.page-banner {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 28px 0;
}

.banner-compact {
    padding: 14px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.banner-compact .breadcrumb {
    margin-bottom: 0;
}

.page-banner h1 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.3;
}

.page-banner p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-secondary);
    max-width: 780px;
}

/* Filter Panel */
.filter-panel {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.compact-filter {
    padding: 14px 18px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
}

.filter-row + .filter-row {
    border-top: 1px dashed #E9EEF6;
}

.filter-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
    white-space: nowrap;
    padding-top: 4px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-secondary);
    background: var(--bg-canvas);
    border: 1px solid transparent;
}

.pill:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.pill.active {
    background: var(--brand-blue);
    color: #FFFFFF;
    font-weight: 600;
}

.filter-summary-bar {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-secondary);
}

.sort-tabs {
    display: flex;
    gap: 6px;
}

.sort-tabs a {
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--ink-secondary);
    background: var(--bg-canvas);
}

.sort-tabs a.active {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-weight: 600;
}

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

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--ink-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.page-btn.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF;
}

/* Software Detail & Guide Detail Layout */
.detail-section {
    padding-top: 26px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.detail-hero-card,
.content-card,
.side-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.detail-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.detail-icon-wrap .app-emblem {
    width: 68px;
    height: 68px;
}

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

.detail-title-box h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.25;
}

.detail-ver {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-muted);
}

.detail-lead {
    margin: 0;
    font-size: 15px;
    color: var(--ink-secondary);
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--bg-canvas);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.spec-item span {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
}

.spec-item strong {
    font-size: 14px;
    color: var(--ink-primary);
    word-break: break-word;
}

.detail-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.spec-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
}

.download-action-box {
    background: #F4F9FF;
    border: 1px solid #CFE2FA;
    border-radius: var(--radius-md);
    padding: 18px;
}

.dl-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-download-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand-blue);
    color: #FFFFFF;
    font-size: 15.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(21, 101, 184, 0.28);
}

.btn-download-primary:hover {
    background: var(--brand-blue-dark);
    color: #FFFFFF;
}

.btn-download-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--brand-blue);
    border: 1px solid #BBD4F4;
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 10px;
}

.btn-download-secondary:hover {
    background: var(--brand-blue-soft);
}

.cli-box {
    background: #142033;
    color: #E7EFFA;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.cli-head {
    font-size: 12.5px;
    color: #9EB2CE;
    margin-bottom: 8px;
}

.cli-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.cli-row + .cli-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cli-os {
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(42, 154, 214, 0.22);
    color: #7AD0FF;
    padding: 2px 8px;
    border-radius: 5px;
    flex-shrink: 0;
}

.cli-row code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #F4F8FF;
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    min-width: 0;
}

.btn-copy {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
}

.btn-copy:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

.safety-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: var(--green-ink);
    font-weight: 500;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 19px;
    padding-left: 11px;
    border-left: 4px solid var(--brand-blue);
}

.prose p {
    margin: 0 0 12px;
    color: var(--ink-secondary);
    font-size: 15px;
}

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

.feature-list {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-secondary);
    font-size: 14.5px;
}

.feature-list li {
    margin-bottom: 8px;
}

.tip-card {
    background: #FFFBF6;
    border-color: #F5DEC3;
}

.tip-card h2 {
    border-left-color: var(--brand-orange);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-chip {
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--ink-secondary);
}

.tag-chip:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.side-card {
    padding: 20px;
}

.side-card h3 {
    margin: 0 0 14px;
    font-size: 16.5px;
}

.side-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-app-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-canvas);
    color: var(--ink-primary);
}

.side-app-item:hover {
    background: var(--brand-blue-soft);
}

.side-app-item .app-emblem {
    width: 38px;
    height: 38px;
}

.side-app-item strong {
    display: block;
    font-size: 14px;
}

.side-app-item span {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
}

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

.side-guide-list li {
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
}

.side-guide-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.side-guide-list a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-primary);
    margin-bottom: 3px;
}

.side-guide-list a:hover {
    color: var(--brand-blue);
}

.side-guide-list span {
    font-size: 12px;
    color: var(--ink-muted);
}

.side-cta {
    background: linear-gradient(145deg, #124C91, #1C74C4);
    color: #FFFFFF;
    border: none;
}

.side-cta p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 14px;
}

/* Article Content */
.article-title {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.32;
}

.article-lead {
    margin: 0;
    font-size: 15.5px;
    color: var(--ink-secondary);
}

.article-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

.article-content h2 {
    margin: 26px 0 10px;
    font-size: 19px;
}

.article-content h3 {
    margin: 20px 0 8px;
    font-size: 16.5px;
    color: var(--ink-primary);
}

.article-content p {
    margin: 0 0 13px;
    color: var(--ink-secondary);
    font-size: 15px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--ink-secondary);
    font-size: 15px;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content pre {
    background: #142033;
    color: #E7EFFA;
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    margin: 0 0 16px;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: #EEF3FA;
    color: #124C91;
    padding: 2px 6px;
    border-radius: 5px;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tools Page */
.tools-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tool-head h2 {
    margin-top: 10px;
}

.tool-head p {
    margin: 0 0 18px;
    color: var(--ink-secondary);
    font-size: 14.5px;
}

.drop-zone {
    border: 2px dashed #AFC8EA;
    border-radius: var(--radius-md);
    background: #F6FAFF;
    padding: 28px 18px;
    text-align: center;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.drop-zone.drag-over {
    border-color: var(--brand-orange);
    background: var(--brand-orange-soft);
}

.drop-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--brand-blue);
}

.drop-label strong {
    font-size: 16px;
    color: var(--ink-primary);
}

.drop-label span {
    font-size: 13px;
    color: var(--ink-muted);
}

.hash-results {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hash-meta {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    padding: 8px 12px;
    border-radius: 8px;
    word-break: break-all;
}

.hash-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-secondary);
    margin-bottom: 5px;
}

.hash-input-row {
    display: flex;
    gap: 8px;
}

.hash-field input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    background: #FAFCFF;
    color: var(--ink-primary);
}

.hash-input-row .btn-copy {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    padding: 0 14px;
    font-size: 13px;
}

.hash-compare-status {
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

.hash-compare-status.match { color: var(--green-ink); }
.hash-compare-status.mismatch { color: #C42B1C; }

.builder-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.os-switch {
    display: inline-flex;
    background: var(--bg-canvas);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.os-tab {
    border: none;
    background: transparent;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-secondary);
    cursor: pointer;
    font-family: inherit;
}

.os-tab.active {
    background: var(--brand-blue);
    color: #FFFFFF;
}

.builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-small {
    border: 1px solid var(--border-strong);
    background: var(--bg-white);
    color: var(--ink-primary);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-small:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.builder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-canvas);
    cursor: pointer;
    min-width: 0;
}

.builder-item.hidden-os {
    display: none;
}

.builder-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-blue);
    flex-shrink: 0;
}

.builder-item-text {
    min-width: 0;
}

.builder-item-text strong {
    display: block;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.builder-item-text small {
    display: block;
    font-size: 11.5px;
    color: var(--ink-muted);
}

.builder-output-box {
    background: #142033;
    border-radius: var(--radius-md);
    padding: 16px;
    color: #E7EFFA;
}

.builder-out-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13.5px;
}

.builder-pre {
    margin: 0;
    background: rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
}

/* Buttons & Empty States */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 20px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    background: #D05D07;
    color: #FFFFFF;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    background: var(--bg-white);
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 20px;
    border-radius: 9px;
}

.empty-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 46px 24px;
    text-align: center;
}

.empty-box h3,
.empty-box h1 {
    margin: 0 0 10px;
}

.empty-box p {
    margin: 0 auto 20px;
    max-width: 520px;
    color: var(--ink-muted);
    font-size: 14.5px;
}

.empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nf-code {
    font-size: 54px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 12px;
}

.search-page-form {
    margin-top: 16px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

/* Footer */
.site-footer {
    background: #101B2D;
    color: #B8C7DD;
    margin-top: 32px;
}

.footer-grid {
    padding: 42px 20px 30px;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.footer-logo-wrap {
    display: inline-block;
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.footer-desc,
.footer-note {
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0 0 12px;
    color: #9FB1CB;
}

.footer-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-pillars span {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #E2ECF9;
    padding: 3px 10px;
    border-radius: 999px;
}

.footer-col h3 {
    margin: 0 0 14px;
    font-size: 15.5px;
    color: #FFFFFF;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: #A9BAD4;
    font-size: 13.5px;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-sitemap {
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 16px 0;
    font-size: 13px;
    color: #8CA0BE;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center;
}

.footer-bottom a {
    color: #C7D7EE;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .app-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-cards { grid-template-columns: repeat(3, 1fr); }
    .builder-grid { grid-template-columns: repeat(3, 1fr); }
    .header-search { width: 190px; }
}

@media (max-width: 900px) {
    .main-nav,
    .header-search { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .hero-inner { grid-template-columns: 1fr; }
    .app-grid,
    .app-grid-3,
    .alt-grid,
    .alt-grid-2,
    .guide-grid,
    .dual-columns,
    .detail-layout,
    .about-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .builder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .container { padding: 0 14px; }
    .header-inner { height: 62px; }
    .brand-logo { height: 36px; }
    .announce-inner { align-items: flex-start; gap: 8px; }
    .announce-text { font-size: 13px; }
    .hero-section { padding: 30px 0 34px; }
    .hero-copy h1 { font-size: 24px; }
    .hero-lead { font-size: 14px; }
    .hero-search { flex-direction: column; gap: 6px; padding: 6px; }
    .hero-search input { padding: 9px 10px; }
    .hero-search button { padding: 10px 14px; width: 100%; }
    .cat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card { padding: 13px; }
    .section-block { padding: 28px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .section-head h2 { font-size: 20px; }
    .col-box,
    .detail-hero-card,
    .content-card,
    .side-card { padding: 16px; }
    .detail-hero-top { flex-direction: column; gap: 12px; }
    .detail-title-box h1 { font-size: 22px; }
    .detail-specs { grid-template-columns: repeat(2, 1fr); }
    .dl-buttons { flex-direction: column; }
    .btn-download-primary,
    .btn-download-secondary { width: 100%; }
    .cli-row { flex-wrap: wrap; }
    .cli-row code { flex-basis: 100%; order: 3; }
    .builder-grid { grid-template-columns: 1fr; }
    .mobile-links { grid-template-columns: repeat(2, 1fr); }
    .alt-vs { grid-template-columns: 1fr; text-align: left; }
    .alt-arrow { transform: rotate(90deg); width: fit-content; }
    .compact-meta { display: none; }
    .footer-sep { display: none; }
}
