/* ===== 前台样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1f2937;
    --text-2: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,.06);
}
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); }
.logo span { color: var(--primary); }
.nav { display: flex; gap: 18px; flex: 1; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--primary); }
.search-box { display: flex; }
.search-box input { border: 1px solid var(--border); border-radius: 20px 0 0 20px; padding: 7px 14px; width: 220px; outline: none; font-size: 14px; }
.search-box button { border: none; background: var(--primary); color: #fff; border-radius: 0 20px 20px 0; padding: 0 16px; cursor: pointer; }

/* 轮播 */
.banner-wrap { margin: 20px 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-item { min-width: 100%; position: relative; }
.banner-item img { width: 100%; height: 280px; object-fit: cover; display: block; }
.banner-item .banner-title { position: absolute; left: 24px; bottom: 20px; color: #fff; font-size: 22px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.banner-dots { position: absolute; right: 20px; bottom: 16px; display: flex; gap: 8px; }
.banner-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.banner-dots i.on { background: #fff; }

/* 分区标题 */
.section { margin: 28px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { font-size: 20px; font-weight: 700; }
.section-title h2::before { content: ""; display: inline-block; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; margin-right: 8px; vertical-align: -3px; }
.section-title .more { font-size: 14px; color: var(--text-2); }

/* 应用卡片 */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.app-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; gap: 12px; transition: transform .15s, box-shadow .15s; color: var(--text); }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.app-card img.icon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: #eef2f7; }
.app-card .info { min-width: 0; flex: 1; }
.app-card .name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card .brief { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0; min-height: 40px; }
.app-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.btn-dl { display: inline-block; background: var(--primary); color: #fff !important; border-radius: 16px; padding: 3px 14px; font-size: 13px; }
.btn-dl:hover { background: var(--primary-dark); }

/* 平台徽标 */
.badge { display: inline-block; font-size: 11px; border-radius: 4px; padding: 1px 7px; margin-right: 4px; color: #fff; }
.badge-android { background: #3ddc84; color: #053b1e; }
.badge-ios { background: #111827; }
.badge-windows { background: #0078d4; }

/* 列表行（分类页） */
.app-row { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; color: var(--text); }
.app-row img.icon { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #eef2f7; }
.app-row .info { flex: 1; min-width: 0; }
.app-row .name { font-weight: 600; }
.app-row .brief { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .meta { font-size: 12px; color: var(--text-2); white-space: nowrap; }

/* 详情页 */
.detail-head { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.detail-head img.icon { width: 108px; height: 108px; border-radius: 22px; object-fit: cover; background: #eef2f7; }
.detail-head .head-info { flex: 1; min-width: 240px; }
.detail-head h1 { font-size: 26px; margin-bottom: 6px; }
.detail-head .brief { color: var(--text-2); margin-bottom: 10px; }
.detail-head .stat { display: flex; gap: 24px; font-size: 13px; color: var(--text-2); margin: 8px 0 14px; }
.detail-head .stat b { display: block; font-size: 18px; color: var(--text); }
.dl-buttons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-platform { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff !important; padding: 10px 20px; border-radius: 10px; font-size: 15px; }
.btn-platform:hover { background: var(--primary-dark); }
.btn-platform small { opacity: .85; font-size: 12px; }
.qr-box { text-align: center; font-size: 12px; color: var(--text-2); }
.qr-box #qrcode { padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; display: inline-block; }

.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shots img { height: 320px; border-radius: 10px; box-shadow: var(--shadow); flex-shrink: 0; }

.desc-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.desc-body p { margin-bottom: 10px; color: #374151; }

.ver-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ver-table th, .ver-table td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.ver-table th { background: #f9fafb; color: var(--text-2); font-weight: 500; }
.ver-table tr:last-child td { border-bottom: none; }
.changelog { color: var(--text-2); font-size: 13px; white-space: pre-line; }

.empty { text-align: center; color: var(--text-2); padding: 60px 0; background: var(--card); border-radius: var(--radius); }

/* 页脚 */
.site-footer { margin-top: 40px; background: var(--card); border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--text-2); font-size: 13px; }

@media (max-width: 640px) {
    .search-box input { width: 130px; }
    .nav { display: none; }
    .banner-item img { height: 160px; }
    .detail-head img.icon { width: 84px; height: 84px; }
    .shots img { height: 220px; }
}
