/* ===== 基础变量 ===== */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== 提示 ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert ul { margin-left: 20px; }

/* ===== 表单 ===== */
.app-form {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 720px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}
.required { color: var(--danger); }

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }

.preview-box .thumb-wrap,
.preview-box img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
}
.preview-box .thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border: none;
    margin-top: 0;
}
.preview-box img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--border);
}

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.preview-grid .thumb-wrap,
.preview-grid img {
    width: 60px !important;
    height: 108px !important;
    max-width: 60px !important;
    max-height: 108px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ===== 后台 ===== */
.admin-body { min-height: 100vh; }

.admin-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 32px;
}
.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header h1 { font-size: 20px; }
.header-actions { display: flex; gap: 10px; }

.admin-main { padding-bottom: 40px; }

.admin-table-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    vertical-align: middle;
}
.admin-table th {
    background: #f1f5f9;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

.table-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}
.no-logo { color: var(--text-muted); font-size: 13px; }

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) { width: 72px; }
.admin-table th:nth-child(2),
.admin-table td:nth-child(2) { width: 12%; }
.admin-table th:nth-child(3),
.admin-table td:nth-child(3) { width: 26%; }
.admin-table th:nth-child(4),
.admin-table td:nth-child(4) { width: 72px; text-align: center; }
.admin-table th:nth-child(5),
.admin-table td:nth-child(5) { width: 100px; }
.admin-table th:nth-child(6),
.admin-table td:nth-child(6) { width: 140px; }
.admin-table th:nth-child(7),
.admin-table td:nth-child(7) { width: 130px; }

.name-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desc-cell {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    max-height: 3em;
}

.link-cell { white-space: nowrap; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}
.badge-android { background: #dcfce7; color: #166534; }
.badge-ios { background: #e0e7ff; color: #3730a3; }

.inline-form { display: inline; }

.td-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.current-asset {
    margin-bottom: 10px;
}

/* 缩略图容器：限制图片显示尺寸 */
.thumb-wrap {
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    vertical-align: top;
    flex-shrink: 0;
}

.thumb-logo {
    width: 72px;
    height: 72px;
}

.thumb-shot {
    width: 60px;
    height: 108px;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-current {
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    margin-bottom: 6px;
}

.existing-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.screenshot-item {
    position: relative;
    cursor: pointer;
    width: 60px;
    text-align: center;
}

.screenshot-item .thumb-wrap {
    border-width: 2px;
}

.screenshot-item:has(input:checked) .thumb-wrap {
    border-color: var(--danger);
    opacity: .5;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.screenshot-remove {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.upload-input-hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.screenshot-upload-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.screenshot-upload-list {
    margin-top: 12px;
}

.screenshot-upload-item {
    position: relative;
}

.screenshot-upload-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.screenshot-upload-remove:hover {
    background: var(--danger-hover);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ===== 登录 ===== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-card h1 { font-size: 24px; margin-bottom: 8px; }
.login-subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.login-form { text-align: left; }
.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}
.back-link:hover { color: var(--primary); }

/* ===== 前台 ===== */
.front-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 280px);
}

.front-body a {
    text-decoration: none;
}

.front-header {
    background: linear-gradient(135deg, #5b6eea 0%, #7c4dbd 50%, #9b59b6 100%);
    color: #fff;
    padding: 56px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.front-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%);
    pointer-events: none;
}

.front-header .container {
    position: relative;
    z-index: 1;
}

.site-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.site-subtitle {
    font-size: 16px;
    opacity: .9;
    font-weight: 400;
}

.front-main {
    flex: 1;
    padding: 0 0 48px;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.app-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 4px 20px rgba(79, 70, 229, .08), 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, .14), 0 4px 8px rgba(0,0,0,.06);
}

.app-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.app-card-header {
    display: flex;
    gap: 16px;
    padding: 22px 22px 18px;
    align-items: flex-start;
    transition: background .2s;
}

.app-card-link:hover .app-card-header {
    background: linear-gradient(135deg, rgba(79,70,229,.03) 0%, rgba(124,77,189,.03) 100%);
}

.app-logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    border: 2px solid #fff;
}

.app-logo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .35);
    border: 2px solid #fff;
}

.app-info { flex: 1; min-width: 0; }

.app-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    line-height: 1.35;
}

.app-card-link:hover .app-name {
    color: var(--primary);
}

.app-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    background: rgba(79, 70, 229, .08);
    border-radius: 20px;
    transition: background .2s, color .2s;
}

.app-more::after {
    content: '→';
    transition: transform .2s;
}

.app-card-link:hover .app-more {
    background: rgba(79, 70, 229, .14);
    color: var(--primary-hover);
}

.app-card-link:hover .app-more::after {
    transform: translateX(3px);
}

.app-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.screenshots-slider {
    padding: 0 22px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.screenshots-slider.has-more {
    mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}

.screenshots-slider::-webkit-scrollbar { height: 4px; }
.screenshots-slider::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.screenshots-track {
    display: flex;
    gap: 10px;
    padding-right: 10px;
}

.screenshots-track.is-single {
    justify-content: center;
    width: 100%;
}

.screenshots-track.is-double {
    justify-content: center;
    width: 100%;
}

.screenshot-img {
    width: 110px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.download-buttons {
    display: flex;
    gap: 10px;
    padding: 14px 22px 22px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.download-btn.android { background: linear-gradient(135deg, #3ddc84, #2bc96d); color: #1a1a1a; }
.download-btn.ios { background: linear-gradient(135deg, #007aff, #0066d6); }

.no-download {
    color: var(--text-muted);
    font-size: 14px;
    padding: 10px 0;
}

.front-empty {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}

.front-empty .empty-icon { font-size: 48px; margin-bottom: 12px; }

.front-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 应用详情页 ===== */
.front-header-compact {
    padding: 18px 0;
    text-align: left;
}

.front-header-compact .container {
    display: flex;
    align-items: center;
}

.site-home-link {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: opacity .2s;
}

.site-home-link:hover { opacity: .8; }

.detail-main {
    padding: 28px 0 56px;
    max-width: 820px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: color .2s, border-color .2s, box-shadow .2s;
}

.detail-back:hover {
    color: var(--primary);
    border-color: rgba(79, 70, 229, .3);
    box-shadow: 0 2px 8px rgba(79, 70, 229, .1);
}

.detail-back-icon {
    font-size: 16px;
    line-height: 1;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 8px 32px rgba(79, 70, 229, .1), 0 2px 8px rgba(0,0,0,.04);
    overflow: hidden;
}

.detail-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 36px 36px 28px;
    background: linear-gradient(135deg, rgba(79,70,229,.06) 0%, rgba(124,77,189,.04) 100%);
    border-bottom: 1px solid var(--border);
}

.detail-logo {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    border: 3px solid #fff;
}

.detail-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, .35);
    border: 3px solid #fff;
}

.detail-info { flex: 1; min-width: 0; }

.detail-name {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--text);
}

.detail-download {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-section {
    padding: 28px 36px;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    line-height: 1.4;
}

.detail-desc {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.detail-privacy {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
}

.detail-privacy-clickable {
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.detail-privacy-clickable:hover {
    border-color: rgba(79, 70, 229, .35);
    background: #f1f5ff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .08);
}

.privacy-more-hint {
    display: block;
    margin-top: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

/* 用户隐私弹层 */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.privacy-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
}

.privacy-modal-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px);
    transition: transform .25s;
}

.privacy-modal.is-open .privacy-modal-box {
    transform: translateY(0);
}

.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.privacy-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.privacy-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .2s, color .2s;
}

.privacy-modal-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.privacy-modal-body {
    padding: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
}

.detail-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.detail-screenshot {
    width: 150px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}

.detail-screenshot:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* ===== 安装向导 ===== */
.install-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.install-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.install-header {
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}

.install-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.install-header p {
    opacity: .9;
    font-size: 14px;
}

.install-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.install-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.install-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.install-section h2 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 16px;
}

.install-form .form-actions {
    margin-top: 0;
    padding-top: 8px;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-header .container { flex-direction: column; gap: 12px; }
    .app-grid { grid-template-columns: 1fr; }
    .site-title { font-size: 26px; }
    .front-header { padding: 40px 0 52px; }
    .front-main { margin-top: -24px; }
    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 24px 24px;
    }
    .detail-download { justify-content: center; }
    .detail-name { font-size: 24px; }
    .detail-section { padding: 24px 20px; }
    .detail-screenshots { justify-content: center; }
    .detail-screenshot { width: 130px; height: 240px; }
}
