
:root {
    --apk-green: #24b47e;
    --apk-green-hover: #1ea370;
    --apk-dark: #1b1c1d;
    --apk-gray: #666;
    --apk-light-gray: #f7f9fa;
    --apk-border: #e8e8e8;
    --apk-blue: #1890ff;
    --apk-star: #ff9800;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f2f5f8; color: #333; line-height: 1.5; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.header { background: #fff; border-bottom: 1px solid var(--apk-border); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--apk-green); }
.logo svg { width: 30px; height: 30px; fill: var(--apk-green); }
.nav { display: flex; align-items: center; gap: 20px; margin-left: 30px; }
.nav-link { font-size: 15px; font-weight: 500; color: #333; transition: color 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--apk-green); }
.search-bar { display: flex; align-items: center; background: #f0f2f5; border-radius: 20px; padding: 6px 14px; width: 280px; }
.search-bar input { border: none; background: transparent; outline: none; width: 100%; font-size: 13px; margin-left: 6px; }

.main-content { padding: 20px 0 40px; }
.breadcrumb { font-size: 13px; color: var(--apk-gray); margin-bottom: 16px; }
.breadcrumb a { color: #333; }
.breadcrumb a:hover { color: var(--apk-green); }

.box { background: #fff; border-radius: 8px; border: 1px solid var(--apk-border); padding: 20px; margin-bottom: 20px; }
.box-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.box-title span { border-left: 4px solid var(--apk-green); padding-left: 8px; }

.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.app-item { text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform 0.2s; }
.app-item:hover { transform: translateY(-3px); }
.app-thumb { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.app-title { font-size: 13px; font-weight: 600; margin-top: 8px; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; line-height: 1.3; height: 34px; }
.app-meta { font-size: 12px; color: var(--apk-gray); margin-top: 2px; }
.app-score { color: var(--apk-star); font-size: 11px; font-weight: 700; margin-top: 2px; }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.detail-top { display: flex; gap: 20px; align-items: flex-start; }
.detail-icon { width: 110px; height: 110px; border-radius: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); flex-shrink: 0; }
.detail-info { flex: 1; }
.detail-h1 { font-size: 24px; font-weight: 700; color: #111; line-height: 1.2; margin-bottom: 6px; }
.detail-dev { color: var(--apk-blue); font-size: 14px; margin-bottom: 12px; }
.detail-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-badge { font-size: 12px; background: #eaf8f1; color: var(--apk-green); padding: 4px 10px; border-radius: 4px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.btn-download { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--apk-green); color: #fff; font-size: 16px; font-weight: 700; padding: 12px 36px; border-radius: 28px; transition: background 0.2s; box-shadow: 0 4px 12px rgba(36,180,126,0.3); }
.btn-download:hover { background: var(--apk-green-hover); }

.mirror-box { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; padding-top: 15px; border-top: 1px dashed var(--apk-border); }
.mirror-btn { font-size: 12px; background: #f0f2f5; color: #444; padding: 6px 14px; border-radius: 14px; border: 1px solid #ddd; }
.mirror-btn:hover { background: #e4e6ea; border-color: #ccc; }

.screenshot-section { margin: 24px 0; }
.screenshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.screenshot-item { border: 1px solid var(--apk-border); border-radius: 8px; overflow: hidden; background: #fafafa; }
.screenshot-img-wrap { position: relative; width: 100%; padding-top: 60%; background: #000; overflow: hidden; }
.screenshot-img-wrap img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }
.screenshot-label { padding: 8px 10px; }
.screenshot-title { font-size: 12px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screenshot-desc { font-size: 11px; color: var(--apk-gray); margin-top: 2px; }

.app-description { font-size: 14px; color: #444; line-height: 1.7; word-break: break-word; }
.app-description p { margin-bottom: 14px; }

.review-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; }
.review-main { flex: 1; }
.review-user { font-weight: 600; font-size: 13px; color: #222; }
.review-score { color: var(--apk-star); font-size: 12px; margin: 2px 0 6px; }
.review-text { font-size: 13px; color: #555; line-height: 1.5; }

.faq-card { border: 1px solid var(--apk-border); border-radius: 6px; margin-bottom: 10px; padding: 12px 14px; }
.faq-card summary { font-weight: 600; font-size: 14px; color: #222; cursor: pointer; outline: none; }
.faq-card p { font-size: 13px; color: #555; margin-top: 8px; line-height: 1.6; }

.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table td { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.info-table td:first-child { color: var(--apk-gray); width: 40%; }
.info-table td:last-child { font-weight: 500; color: #222; text-align: right; }

.side-app { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.side-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.side-info { flex: 1; min-width: 0; }
.side-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-meta { font-size: 12px; color: var(--apk-gray); }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.pg-btn { padding: 8px 14px; background: #fff; border: 1px solid var(--apk-border); border-radius: 4px; font-size: 13px; font-weight: 500; }
.pg-btn.active { background: var(--apk-green); color: #fff; border-color: var(--apk-green); }

.footer { background: #fff; border-top: 1px solid var(--apk-border); padding: 30px 0; margin-top: 40px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--apk-gray); }
.footer-links a:hover { color: var(--apk-green); }
.footer-text { text-align: center; font-size: 12px; color: #999; line-height: 1.6; max-width: 900px; margin: 0 auto; }

@media (max-width: 992px) {
    .app-grid { grid-template-columns: repeat(4, 1fr); }
    .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .nav { display: none; }
    .search-bar { width: 180px; }
}
@media (max-width: 600px) {
    .app-grid { grid-template-columns: repeat(3, 1fr); }
    .screenshot-grid { grid-template-columns: 1fr; }
    .detail-top { flex-direction: column; align-items: center; text-align: center; }
    .detail-badges { justify-content: center; }
    .detail-info { width: 100%; }
    .btn-download { width: 100%; }
}
