* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #4ca1af;
    --primary-dark: #2c3e50;
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #ebeef5;
    --text: #303133;
    --text-2: #606266;
    --text-3: #909399;
    --success: #67c23a;
    --warning: #e6a23c;
    --danger: #f56c6c;
}
body { font-family: 'Segoe UI', Tahoma, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }

/* 顶部导航 */
.topbar { background: linear-gradient(135deg, #2c3e50, #1f2d3a); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 58px; display: flex; align-items: center; justify-content: space-between; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.topbar .brand .logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #4ca1af, #2c3e50); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.topbar .links a { color: #cfd8dc; text-decoration: none; font-size: 13px; padding: 7px 12px; border-radius: 8px; transition: .15s; }
.topbar .links a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* 容器 */
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 700; color: var(--primary-dark); }
.page-head p { color: var(--text-3); margin-top: 6px; font-size: 14px; }

/* 应用列表网格 */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.app-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; gap: 16px; text-decoration: none; color: inherit; transition: .18s; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(44,62,80,.12); border-color: #d3e2e6; }
.app-card .icon { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; object-fit: cover; background: #eef3f5; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: var(--primary); }
.app-card .meta { min-width: 0; flex: 1; }
.app-card .name { font-size: 17px; font-weight: 600; color: var(--primary-dark); }
.app-card .desc { color: var(--text-3); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-card .go { margin-top: 12px; color: var(--primary); font-size: 13px; font-weight: 600; }

/* 应用详情 */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: 13px; margin-bottom: 18px; }
.back:hover { color: var(--primary); }
.app-hero { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.app-hero .icon { width: 84px; height: 84px; border-radius: 18px; flex-shrink: 0; object-fit: cover; background: #eef3f5; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: var(--primary); }
.app-hero .name { font-size: 24px; font-weight: 700; color: var(--primary-dark); }
.app-hero .desc { color: var(--text-3); margin-top: 8px; max-width: 640px; }

/* 平台版本卡片 */
.plat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.plat-card .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.plat-card .ver { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.plat-card .info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; }
.plat-card .info .k { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.plat-card .info .v { font-size: 14px; color: var(--text); font-weight: 500; }
.notes { margin-top: 16px; background: #f7fafb; border: 1px solid #eef1f4; border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.notes .t { font-size: 12px; color: var(--text-3); margin-bottom: 6px; font-weight: 600; }

/* 徽章 */
.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-plat { background: #ecf5ff; color: #409eff; text-transform: capitalize; }
.badge-chan { background: #fdf6ec; color: var(--warning); }
.badge-force { background: #fef0f0; color: var(--danger); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; border: none; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; }
.btn-primary { background: linear-gradient(135deg, #4ca1af, #2c3e50); color: #fff; }
.btn-primary:hover { opacity: .92; }

/* 空/错误 */
.empty { text-align: center; color: var(--text-3); padding: 60px 0; font-size: 15px; }
.empty a { color: var(--primary); }

/* Toast */
#toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast-item { background: #303133; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: toastIn .2s ease; }
.toast-item.err { background: #f56c6c; }
.toast-item.ok { background: #67c23a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
