/* trustedsitesid Apps — 亮色天蓝系 */
:root {
    --cs-primary: #0ea5e9;
    --cs-primary-dark: #0284c7;
    --cs-success: #16a34a;
    --cs-lime: #0284c7;
    --cs-gold: #d97706;
    --cs-bg: #f0f7ff;
    --cs-card: #ffffff;
    --cs-card-2: #f8fbff;
    --cs-text: #1e3a5f;
    --cs-muted: #64748b;
    --cs-border: #dbe7f3;
    --cs-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
    --cs-shadow-hover: 0 10px 28px rgba(14, 165, 233, 0.16);
}

body.cs-apkluto {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #e0f2fe 0%, var(--cs-bg) 35%, #f8fafc 100%);
    color: var(--cs-text);
    min-height: 100vh;
}

body.cs-apkluto .breadcrumb-item a,
body.cs-apkluto .breadcrumb-item.active {
    color: var(--cs-muted);
}

body.cs-apkluto .breadcrumb-item a:hover {
    color: var(--cs-lime);
}

/* —— List hero (APKLUTO) —— */
.apk-list-hero-inner {
    padding: 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 55%, #f0f9ff 100%);
    border: 1px solid var(--cs-border);
}

.apk-list-hero-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.apk-list-hero-domain {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.12);
    padding: 5px 12px;
    border-radius: 6px;
}

.apk-list-hero-tag {
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0284c7;
    background: rgba(14, 165, 233, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
}

.apk-list-hero-title {
    font-size: clamp(1.45rem, 4vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.apk-list-hero-subtitle {
    color: var(--cs-muted);
    font-size: 1rem;
    max-width: 720px;
}

.apk-list-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--cs-muted);
}

.apk-list-hero-stats strong {
    color: var(--cs-lime);
}

.apk-list-search .input-group-text {
    background: var(--cs-card-2);
    border-color: var(--cs-border);
    color: var(--cs-muted);
}

.apk-list-search .form-control {
    background: var(--cs-card-2);
    border-color: var(--cs-border);
    color: var(--cs-text);
}

.apk-list-search .form-control:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
    background: #fff;
    color: var(--cs-text);
}

.apk-list-trust {
    margin-bottom: 1rem;
}

.highlight {
    font-weight: 800;
    color: var(--cs-lime);
}

/* —— Category nav (APKLUTO tabs) —— */
.apk-cat-nav {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--cs-shadow);
}

.apk-cat-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px;
    min-width: min-content;
}

@media (min-width: 768px) {
    .apk-cat-nav-inner {
        flex-wrap: wrap;
    }
}

.apk-cat-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--cs-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.apk-cat-nav-item i {
    font-size: 1rem;
    opacity: 0.85;
}

.apk-cat-nav-item em {
    font-style: normal;
    font-size: 0.72rem;
    background: rgba(14, 165, 233, 0.1);
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--cs-muted);
}

.apk-cat-nav-item:hover {
    background: var(--cs-card-2);
    color: var(--cs-text);
}

.apk-cat-nav-item.active {
    background: rgba(14, 165, 233, 0.14);
    color: var(--cs-primary-dark);
    box-shadow: inset 0 -3px 0 var(--cs-primary);
}

.apk-cat-nav-item.active em {
    background: rgba(14, 165, 233, 0.2);
    color: var(--cs-primary-dark);
}

/* —— App list (APKLUTO Latest Apps) —— */
.apk-list-result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    color: var(--cs-muted);
}

.apk-list-result-bar strong {
    color: var(--cs-text);
}

.apk-list-heading {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.28);
    color: var(--cs-text);
}

.apk-list-heading-sm {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.apk-list-panel {
    padding: 1.25rem 1rem;
}

@media (min-width: 576px) {
    .apk-list-panel {
        padding: 1.5rem;
    }
}

.apk-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .apk-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.apk-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--cs-card-2);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--cs-text);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.apk-list-item:hover {
    border-color: rgba(14, 165, 233, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: var(--cs-text);
}

.apk-list-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(240, 192, 64, 0.35);
    box-shadow: 0 6px 16px rgba(240, 192, 64, 0.15);
}

@media (min-width: 576px) {
    .apk-list-icon {
        width: 100px;
        height: 100px;
    }
}

.apk-list-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.apk-list-updated {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--cs-lime);
}

.apk-list-name {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    display: block;
}

.apk-list-meta {
    font-size: 0.8rem;
    color: var(--cs-muted);
}

.apk-list-cat {
    font-size: 0.72rem;
    color: #7ec8ff;
    font-weight: 600;
}

.apk-list-action {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.12);
    color: var(--cs-lime);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.apk-list-item:hover .apk-list-action {
    background: var(--cs-success);
    color: #fff;
}

/* —— Recent apps scroll —— */
.apk-recent-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apk-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    background: var(--cs-card-2);
    border: 1px solid var(--cs-border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--cs-text);
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

.apk-recent-item:hover {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.06);
    color: var(--cs-lime);
}

.apk-recent-item img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(240, 192, 64, 0.3);
}

/* —— Empty state —— */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--cs-card);
    border-radius: 16px;
    border: 1px dashed var(--cs-border);
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--cs-muted);
}

/* —— Detail / shared —— */
.card {
    box-shadow: var(--cs-shadow);
    border-radius: 12px;
    border: 1px solid var(--cs-border);
    margin-bottom: 20px;
}

.card-header {
    background: var(--cs-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 12px 12px 0 0 !important;
}

.btn-primary {
    background-color: var(--cs-primary);
    border-color: var(--cs-primary);
}

.btn-primary:hover {
    background-color: var(--cs-primary-dark);
    border-color: var(--cs-primary-dark);
}

.btn-success {
    background-color: var(--cs-success);
    border-color: var(--cs-success);
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--cs-border);
}

.app-icon-lg {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--cs-border);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--cs-muted);
}

.app-content {
    font-size: 1.06rem;
    line-height: 1.85;
}

.app-content h2,
.app-content h3 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.app-content p {
    margin-bottom: 1rem;
}

.screenshot-swiper {
    border-radius: 12px;
    overflow: hidden;
}

.screenshot-swiper .swiper-slide img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

/* —— Pagination —— */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--cs-primary);
    border-color: var(--cs-border);
}

.pagination .page-item.active .page-link {
    background: var(--cs-primary);
    border-color: var(--cs-primary);
}

/* —— Recent apps —— */
.recent-domains {
    background: var(--cs-card);
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: var(--cs-shadow);
    border: 1px solid var(--cs-border);
}

.recent-domains h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.domain-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.domain-item {
    background: var(--cs-card-2);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--cs-border);
    transition: all 0.2s;
}

.domain-item:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
}

.domain-item a {
    color: var(--cs-lime);
    text-decoration: none;
}

.domain-item a:hover {
    text-decoration: underline;
}

.site-footer-dark {
    background: #f0f9ff;
    color: #334155;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #bae6fd;
}

.site-footer-dark a {
    color: #0284c7;
}

.breadcrumb {
    background: transparent;
}

.category-intro-card {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cs-shadow);
}

.category-intro-card p:last-child {
    margin-bottom: 0;
}


/* —— APK detail (APKLUTO layout) —— */
.apk-panel {
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--cs-shadow);
}

.apk-hero-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 575px) {
    .apk-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .apk-hero-logo {
        display: flex;
        justify-content: center;
    }
}

.apk-logo-img {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.25);
    border: 2px solid rgba(240, 192, 64, 0.35);
}

.apk-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.apk-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.apk-badge-updated {
    background: rgba(14, 165, 233, 0.16);
    color: var(--cs-lime);
}

.apk-badge-cat {
    background: rgba(0, 123, 255, 0.15);
    color: #7ec8ff;
}

.apk-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
}

.apk-inline-label {
    color: var(--cs-muted);
    font-weight: 600;
    margin-right: 4px;
}

.apk-version {
    color: var(--cs-text);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.apk-rating-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.apk-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.apk-star {
    color: var(--cs-gold);
    font-size: 1rem;
}

.apk-rating-score {
    color: var(--cs-text);
    font-weight: 600;
}

.apk-votes {
    color: var(--cs-muted);
    font-size: 0.88rem;
}

.apk-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #34d058 0%, var(--cs-success) 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.apk-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
    color: #fff;
}

.apk-download-btn-sm {
    font-size: 1rem;
    padding: 12px 24px;
}

.apk-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--cs-muted);
}

.apk-share a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cs-card-2);
    color: var(--cs-text);
    text-decoration: none;
    border: 1px solid var(--cs-border);
    transition: background 0.2s, color 0.2s;
}

.apk-share a:hover {
    background: var(--cs-success);
    color: #fff;
}

dl.apk-meta-table.apk-panel {
    padding: 0;
}

.apk-meta-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    padding: 1px;
    overflow: hidden;
    background: var(--cs-border);
}

@media (min-width: 576px) {
    .apk-meta-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .apk-meta-table {
        grid-template-columns: repeat(4, 1fr);
    }
}

.apk-meta-row {
    display: grid;
    grid-template-columns: 7.75rem 1fr;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    background: var(--cs-card-2);
    min-height: 54px;
}

.apk-meta-row dt {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cs-muted);
    white-space: nowrap;
}

.apk-meta-row dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cs-text);
    word-break: break-word;
}

.cs-trust-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(2, 132, 199, 0.06) 100%);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.cs-trust-banner i {
    font-size: 1.75rem;
    color: var(--cs-primary);
    flex-shrink: 0;
}

.cs-trust-banner strong {
    display: block;
    margin-bottom: 4px;
}

.cs-trust-banner p {
    margin: 0;
    color: var(--cs-muted);
    font-size: 0.9rem;
}

.cs-trust-banner a {
    color: #0284c7;
}

.apk-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.28);
}

.apk-content {
    color: #d5dbe8;
}

.apk-faq .accordion-item {
    background: var(--cs-card-2);
    border-color: var(--cs-border);
    color: var(--cs-text);
}

.apk-faq .accordion-button {
    background: var(--cs-card-2);
    color: var(--cs-text);
    font-weight: 600;
}

.apk-faq .accordion-button:not(.collapsed) {
    background: rgba(14, 165, 233, 0.1);
    color: var(--cs-lime);
    box-shadow: none;
}

.apk-faq .accordion-body {
    background: var(--cs-card);
    color: var(--cs-muted);
}

.apk-tips li {
    margin-bottom: 8px;
    color: var(--cs-muted);
}

.apk-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.apk-related-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--cs-card);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--cs-text);
    transition: border-color 0.2s, transform 0.2s;
}

.apk-related-card:hover {
    border-color: rgba(14, 165, 233, 0.35);
    transform: translateY(-2px);
    color: var(--cs-text);
}

.apk-related-card img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.apk-related-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apk-related-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cs-lime);
    text-transform: uppercase;
}

.apk-related-ver {
    font-size: 0.8rem;
    color: var(--cs-muted);
}

body.cs-apkluto .btn-outline-primary {
    border-color: rgba(0, 123, 255, 0.5);
    color: #7ec8ff;
}

body.cs-apkluto .btn-outline-primary:hover {
    background: var(--cs-primary);
    color: #fff;
}

body.cs-apkluto .pagination .page-link {
    background: var(--cs-card);
    color: var(--cs-text);
}

body.cs-apkluto .pagination .page-item.active .page-link {
    background: var(--cs-success);
    border-color: var(--cs-success);
}
