
:root {
    --brand-green: #8bc34a;
    --brand-green-dark: #7cb342;
    --brand-green-light: #f1f8e9;
    --tag-orange: #ff9800;
    --dark-hero: #111417;
    --dark-hero-card: #1c2127;
    --text-primary: #212529;
    --text-muted: #88929b;
    --bg-page: #f8f9fa;
    --bg-card: #ffffff;
    --border-light: #eaedf0;
    --border-dark: rgba(255, 255, 255, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-page); color: var(--text-primary); line-height: 1.6; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; }
.header-wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.site-logo { font-size: 20px; font-weight: 800; color: var(--brand-green); letter-spacing: -0.5px; text-transform: uppercase; }
.site-logo span { color: #558b2f; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #495057; padding: 8px 12px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.nav-link svg { width: 16px; height: 16px; fill: currentColor; }
.nav-link:hover, .nav-link.active { color: var(--brand-green-dark); background: var(--brand-green-light); }
.header-search { display: flex; align-items: center; }
.search-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f1f3f5; color: #495057; cursor: pointer; border: none; }

/* Index Top Featured Cards */
.top-featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 28px; }
.feat-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
.feat-img { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.feat-info { flex: 1; min-width: 0; }
.feat-title { font-size: 13.5px; font-weight: 700; color: #212529; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-cat { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.feat-badge { display: inline-block; font-size: 10px; font-weight: 700; color: var(--brand-green-dark); background: var(--brand-green-light); padding: 2px 6px; border-radius: 4px; margin-top: 4px; }

/* Section Header */
.section-box { margin-bottom: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 17px; font-weight: 700; color: #212529; display: flex; align-items: center; gap: 8px; }
.section-title-icon { width: 18px; height: 18px; color: var(--brand-green); }
.section-more { font-size: 13px; font-weight: 600; color: var(--brand-green); }

/* App Minimal Grid */
.lite-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.lite-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lite-item:hover .lite-thumb { transform: translateY(-3px); }
.lite-thumb { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.04); transition: transform 0.2s; }
.lite-title { font-size: 13px; font-weight: 600; color: #212529; margin-top: 8px; line-height: 1.35; height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.lite-score { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* Detail Dark Hero */
.detail-dark-hero { background: radial-gradient(circle at 75% 40%, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0) 60%), #0e1114; color: #fff; padding: 36px 0 44px; position: relative; overflow: hidden; }
.detail-dark-hero::before { content: ""; position: absolute; right: 10%; top: -100px; width: 450px; height: 450px; background: radial-gradient(circle, rgba(139,195,74,0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-breadcrumbs { font-size: 12.5px; color: #88929b; margin-bottom: 22px; display: flex; gap: 6px; flex-wrap: wrap; }
.hero-breadcrumbs a { color: #b0bec5; }
.hero-breadcrumbs span.active { color: var(--tag-orange); }

.hero-main-flex { display: flex; gap: 24px; align-items: flex-start; }
.hero-app-icon { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; border: 2px solid rgba(255,255,255,0.12); flex-shrink: 0; }
.hero-info { flex: 1; min-width: 0; }
.hero-title { font-size: 23px; font-weight: 800; line-height: 1.3; color: #ffffff; margin-bottom: 6px; }
.hero-dev { font-size: 13px; color: #90a4ae; margin-bottom: 8px; }
.tag-mod-orange { display: inline-block; background: var(--tag-orange); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.mod-desc-text { font-size: 12px; color: #ffb74d; margin-bottom: 16px; font-weight: 500; }

.hero-stats-row { display: flex; gap: 28px; align-items: center; margin-bottom: 20px; }
.stat-col { text-align: left; }
.stat-val { font-size: 15px; font-weight: 700; color: #eceff1; }
.stat-lbl { font-size: 11px; color: #78909c; }

.hero-btn-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-lite-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-green); color: #fff; font-size: 14.5px; font-weight: 700; padding: 11px 36px; border-radius: 24px; transition: background 0.2s, transform 0.2s; box-shadow: 0 4px 14px rgba(139,195,74,0.35); }
.btn-lite-download:hover { background: var(--brand-green-dark); transform: translateY(-1px); }
.btn-hero-action { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #b0bec5; padding: 6px 12px; border-radius: 16px; background: rgba(255,255,255,0.06); }

/* Detail White Recommendation Box */
.detail-recom-box { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 20px 24px; margin-top: -24px; position: relative; z-index: 10; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.recom-heading { font-size: 15px; font-weight: 700; color: #212529; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.recom-heading svg { fill: var(--tag-orange); width: 16px; height: 16px; }
.recom-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.recom-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.recom-item { text-align: center; }
.recom-item img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; margin: 0 auto 6px; }
.recom-item-title { font-size: 11.5px; font-weight: 600; color: #37474f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recom-item-score { font-size: 10.5px; color: var(--text-muted); }

/* Detail Horizontal Spec Bar */
.spec-bar-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 16px 20px; margin: 24px 0; text-align: center; }
.spec-cell-lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.spec-cell-val { font-size: 13.5px; font-weight: 700; color: #263238; }

/* Screenshots Row (Matching LiteAPKs) */
.detail-sec-card { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.detail-sec-title { font-size: 16px; font-weight: 700; color: #212529; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.detail-sec-title svg { width: 18px; height: 18px; fill: var(--brand-green); }
.screenshot-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screenshot-cell { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-light); background: #000; }
.screenshot-media { position: relative; width: 100%; padding-top: 60%; }
.screenshot-media img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }
.screenshot-caption { background: #fff; padding: 10px 12px; border-top: 1px solid var(--border-light); }
.screenshot-name { font-size: 12px; font-weight: 700; color: #212529; }
.screenshot-sub { font-size: 11px; color: #90a4ae; margin-top: 2px; }

/* Article & Reviews */
.article-text { font-size: 14px; line-height: 1.8; color: #37474f; }
.article-text p { margin-bottom: 12px; }
.article-text h4 { font-size: 15px; font-weight: 700; color: #212529; margin: 18px 0 8px; }

.review-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.review-item:last-child { border-bottom: none; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #eceff1; flex-shrink: 0; }
.review-author-name { font-size: 13.5px; font-weight: 700; color: #212529; }
.review-author-meta { font-size: 11.5px; color: var(--text-muted); margin-left: 8px; }
.review-stars { color: #ffb300; font-size: 11px; margin: 2px 0 6px; }
.review-content { font-size: 13px; color: #455a64; line-height: 1.6; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0 10px; }
.pg-item { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border-light); border-radius: 6px; font-size: 13px; font-weight: 600; color: #495057; padding: 0 10px; }
.pg-item:hover { border-color: var(--brand-green); color: var(--brand-green-dark); }
.pg-item.active { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border-light); padding: 40px 0 24px; margin-top: 40px; color: #607d8b; font-size: 13px; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
.footer-brand h4 { font-size: 18px; font-weight: 800; color: var(--brand-green); margin-bottom: 10px; }
.footer-brand p { line-height: 1.7; max-width: 420px; }
.footer-col h5 { font-size: 14px; font-weight: 700; color: #212529; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: var(--brand-green-dark); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 20px; text-align: center; font-size: 12px; color: #90a4ae; }

@media (max-width: 1080px) {
    .lite-grid { grid-template-columns: repeat(4, 1fr); }
    .top-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .recom-grid { grid-template-columns: repeat(4, 1fr); }
    .screenshot-row { grid-template-columns: repeat(2, 1fr); }
    .spec-bar-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .lite-grid { grid-template-columns: repeat(3, 1fr); }
    .top-featured-grid { grid-template-columns: 1fr; }
    .recom-grid { grid-template-columns: repeat(4, 1fr); }
    .screenshot-row { grid-template-columns: 1fr; }
    .hero-main-flex { flex-direction: column; align-items: center; text-align: center; }
    .hero-stats-row { justify-content: center; }
    .hero-btn-row { justify-content: center; width: 100%; }
    .btn-lite-download { width: 100%; }
    .footer-wrap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    .lite-grid { grid-template-columns: repeat(3, 1fr); }
    .recom-grid { grid-template-columns: repeat(3, 1fr); }
    .spec-bar-row { grid-template-columns: repeat(2, 1fr); }
}
