
:root {
    --apk-green: #00ca72;
    --apk-green-deep: #00ab60;
    --apk-green-light: #e8f9f1;
    --apk-dark: #1e2022;
    --apk-gray: #687176;
    --apk-bg: #f4f6f9;
    --apk-card-bg: #ffffff;
    --apk-border: #eef0f3;
    --apk-border-hover: #d2d8e0;
    --apk-star: #ff9900;
    --apk-blue: #007aff;
    --apk-shadow: 0 4px 16px rgba(0,0,0,0.04);
    --apk-shadow-hover: 0 10px 24px rgba(0,0,0,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: var(--apk-bg); color: var(--apk-dark); 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: 1240px; margin: 0 auto; padding: 0 16px; }

/* Top Notice Bar */
.top-notice { background: linear-gradient(90deg, #1b2838, #2a475e); color: #c7d5e0; font-size: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-notice-inner { display: flex; justify-content: space-between; align-items: center; }
.top-notice-badges { display: flex; gap: 14px; }
.top-notice-badges span { display: inline-flex; align-items: center; gap: 4px; }

/* Header Navigation */
.header { background: #fff; border-bottom: 1px solid var(--apk-border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; color: var(--apk-green-deep); letter-spacing: -0.5px; }
.logo svg { width: 34px; height: 34px; fill: var(--apk-green-deep); }
.nav { display: flex; align-items: center; gap: 8px; margin-left: 24px; }
.nav-link { font-size: 14px; font-weight: 600; color: #495057; padding: 8px 14px; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.nav-link:hover { color: var(--apk-green-deep); background: var(--apk-green-light); }
.nav-link.active { color: #fff; background: var(--apk-green-deep); }
.search-bar { display: flex; align-items: center; background: #f1f3f5; border: 1px solid transparent; border-radius: 24px; padding: 8px 16px; width: 300px; transition: all 0.2s; }
.search-bar:focus-within { background: #fff; border-color: var(--apk-green); box-shadow: 0 0 0 3px rgba(0,202,114,0.15); }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 13px; margin-left: 8px; color: #333; }

/* Main Components */
.main-content { padding: 24px 0 50px; }
.breadcrumb { font-size: 13px; color: var(--apk-gray); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: #495057; font-weight: 500; }
.breadcrumb a:hover { color: var(--apk-green-deep); }

.box { background: var(--apk-card-bg); border-radius: 12px; border: 1px solid var(--apk-border); padding: 24px; margin-bottom: 20px; box-shadow: var(--apk-shadow); }
.box-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.box-title-text { display: flex; align-items: center; gap: 10px; font-size: 19px; color: #1a1e21; }
.box-title-text::before { content: ""; width: 5px; height: 20px; background: var(--apk-green); border-radius: 4px; display: inline-block; }

/* Banner / Hero Section */
.hero-banner { background: linear-gradient(135deg, #0e1e2d 0%, #17324d 100%); border-radius: 14px; padding: 32px 36px; margin-bottom: 24px; color: #fff; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 8px 24px rgba(14,30,45,0.25); position: relative; overflow: hidden; }
.hero-banner::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(0,202,114,0.25) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-content h1 { font-size: 28px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.hero-content p { color: #adb5bd; font-size: 15px; max-width: 650px; line-height: 1.6; }
.hero-features { display: flex; gap: 20px; margin-top: 18px; }
.hero-feat-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #e9ecef; background: rgba(255,255,255,0.08); padding: 6px 14px; border-radius: 20px; backdrop-filter: blur(4px); }

/* Grid Cards */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.app-item { background: #fff; border: 1px solid var(--apk-border); border-radius: 12px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: all 0.25s ease; position: relative; }
.app-item:hover { transform: translateY(-5px); border-color: var(--apk-green); box-shadow: var(--apk-shadow-hover); }
.app-thumb { width: 80px; height: 80px; border-radius: 18px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.app-title { font-size: 13px; font-weight: 700; margin-top: 12px; color: #212529; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; line-height: 1.4; height: 36px; }
.app-meta { font-size: 12px; color: var(--apk-gray); margin-top: 4px; }
.app-score { color: var(--apk-star); font-size: 12px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 3px; }

/* Detail Page Components */
.detail-layout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; }
.detail-header-card { display: flex; gap: 24px; align-items: flex-start; }
.detail-icon-wrap { position: relative; }
.detail-icon { width: 120px; height: 120px; border-radius: 24px; box-shadow: 0 6px 16px rgba(0,0,0,0.1); flex-shrink: 0; }
.detail-icon-tag { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 10px; letter-spacing: 0.5px; }
.detail-info { flex: 1; }
.detail-h1 { font-size: 26px; font-weight: 800; color: #111; line-height: 1.25; margin-bottom: 8px; }
.detail-dev { color: var(--apk-blue); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.detail-stats-bar { display: flex; gap: 20px; margin-bottom: 18px; border-top: 1px solid var(--apk-border); border-bottom: 1px solid var(--apk-border); padding: 10px 0; }
.stat-unit { text-align: left; }
.stat-val { font-size: 16px; font-weight: 800; color: #212529; }
.stat-lbl { font-size: 11px; color: var(--apk-gray); }

.detail-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.btn-download-main { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--apk-green) 0%, var(--apk-green-deep) 100%); color: #fff; font-size: 16px; font-weight: 700; padding: 14px 40px; border-radius: 32px; transition: all 0.25s ease; box-shadow: 0 6px 18px rgba(0,202,114,0.35); }
.btn-download-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,202,114,0.45); }
.btn-download-sub { display: inline-flex; align-items: center; gap: 6px; padding: 13px 22px; background: #f8f9fa; border: 1px solid var(--apk-border-hover); border-radius: 32px; font-size: 14px; font-weight: 600; color: #495057; }
.btn-download-sub:hover { background: #e9ecef; }

.security-trust-box { display: flex; align-items: center; justify-content: space-between; background: var(--apk-green-light); border: 1px solid rgba(0,202,114,0.2); border-radius: 8px; padding: 12px 18px; margin-top: 18px; }
.security-left { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--apk-green-deep); font-size: 13px; }

/* Screenshots Grid */
.screenshot-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.screen-card { border: 1px solid var(--apk-border); border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--apk-shadow); }
.screen-media { position: relative; width: 100%; padding-top: 55%; overflow: hidden; }
.screen-media img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; transition: transform 0.3s; }
.screen-card:hover .screen-media img { transform: scale(1.04); }
.screen-info-bar { background: #fff; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--apk-border); }
.screen-title { font-size: 13px; font-weight: 700; color: #212529; }
.screen-badge { font-size: 11px; background: #e9ecef; color: #495057; padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* Description Typography */
.app-description { font-size: 14px; color: #343a40; line-height: 1.8; }
.app-description p { margin-bottom: 14px; }
.app-description h4 { font-size: 16px; font-weight: 700; margin: 20px 0 10px; color: #111; }

/* Review Style */
.review-stats-summary { display: flex; align-items: center; gap: 28px; background: #f8f9fa; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.review-big-score { font-size: 46px; font-weight: 900; color: var(--apk-green-deep); line-height: 1; }
.review-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--apk-border); }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.08); flex-shrink: 0; }
.review-content-wrap { flex: 1; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.review-user-name { font-weight: 700; font-size: 14px; color: #212529; }
.review-device-tag { font-size: 11px; color: #868e96; background: #e9ecef; padding: 1px 6px; border-radius: 3px; }
.review-stars { color: var(--apk-star); font-size: 12px; margin-bottom: 6px; }
.review-body { font-size: 13px; color: #495057; line-height: 1.6; }
.review-foot { margin-top: 8px; font-size: 12px; color: #868e96; display: flex; gap: 14px; }

/* Meta Table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table tr { border-bottom: 1px solid var(--apk-border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 12px 0; }
.spec-table td:first-child { color: var(--apk-gray); font-weight: 500; width: 42%; }
.spec-table td:last-child { font-weight: 600; color: #212529; text-align: right; }

.side-recom-list { display: flex; flex-direction: column; gap: 14px; }
.side-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.side-item:hover { background: #f8f9fa; }
.side-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.side-title { font-size: 13px; font-weight: 700; color: #212529; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-desc { font-size: 12px; color: var(--apk-gray); margin-top: 2px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0 10px; }
.pg-btn { padding: 9px 16px; background: #fff; border: 1px solid var(--apk-border-hover); border-radius: 6px; font-size: 13px; font-weight: 600; color: #495057; }
.pg-btn:hover { border-color: var(--apk-green); color: var(--apk-green-deep); }
.pg-btn.active { background: var(--apk-green-deep); color: #fff; border-color: var(--apk-green-deep); }

/* Footer */
.footer { background: #111417; color: #868e96; padding: 48px 0 32px; border-top: 4px solid var(--apk-green); margin-top: 60px; }
.footer-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 460px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 10px; }
.footer-links-list a { font-size: 13px; color: #adb5bd; transition: color 0.2s; }
.footer-links-list a:hover { color: var(--apk-green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; font-size: 12px; color: #6c757d; }

@media (max-width: 1080px) {
    .app-grid { grid-template-columns: repeat(4, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .footer-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
    .header-wrap { height: 60px; }
    .nav, .top-notice, .search-bar { display: none; }
    .app-grid { grid-template-columns: repeat(3, 1fr); }
    .screenshot-grid-4 { grid-template-columns: 1fr; }
    .hero-banner { padding: 24px; }
    .hero-content h1 { font-size: 20px; }
    .detail-header-card { flex-direction: column; align-items: center; text-align: center; }
    .detail-stats-bar { justify-content: center; }
    .detail-actions { justify-content: center; width: 100%; }
    .btn-download-main { width: 100%; }
    .spec-table td:first-child { width: 50%; }
}
@media (max-width: 480px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); }
}
