:root {
    --primary: #1e9fff;
    --primary-hover: #0d8aee;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #111827;
    --text-1: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --border: #e5e7eb;
    --r: 2px;
}

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

body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
    font-size: 14px; line-height: 1.65; color: var(--text-1); background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.top-bar { background: var(--dark); height: 38px; line-height: 38px; font-size: 12px; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.top-bar a { color: rgba(255,255,255,.55); padding: 0 16px; transition: .2s; font-size: 12px; letter-spacing: .2px; }
.top-bar a:hover, .top-bar a.active { color: #fff; }

.header { background: transparent; border-bottom: 1px solid var(--border); }
.header-content { display: flex; align-items: center; height: 54px; gap: 36px; }
.logo { font-size: 17px; font-weight: 700; color: var(--text-1); letter-spacing: -.5px; }

.main-nav { display: flex; gap: 30px; }
.nav-link { color: var(--text-2); font-size: 14px; font-weight: 400; padding: 16px 0; transition: .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); font-weight: 500; }

.header-search { flex: 1; max-width: 280px; }
.search-input {
    width: 100%; padding: 7px 16px;
    border: 1.5px solid var(--border); border-radius: var(--r);
    font-size: 13px; outline: none; background: transparent; transition: .25s;
}
.search-input:focus { border-color: var(--primary); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 20px; font-size: 13px; font-weight: 500;
    border-radius: var(--r); cursor: pointer; border: none; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); border-radius: var(--r); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-default { background: #fff; border: 1px solid var(--border); color: var(--text-2); border-radius: var(--r); }
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-warn { background: #f59e0b; color: #fff; border-radius: var(--r); }
.btn-sm { padding: 5px 14px; font-size: 12px; border-radius: var(--r); }
.btn-block { width: 100%; }

.main { min-height: calc(100vh - 154px); padding-top: 36px; padding-bottom: 60px; }

.home-layout { display: grid; grid-template-columns: 200px 1fr; gap: 36px; }

.sidebar { padding-right: 20px; border-right: 1px solid var(--border); }
.sidebar-login { text-align: center; margin-bottom: 20px; }
.sidebar-login .btn { width: 100%; margin-bottom: 10px; border-radius: var(--r); }
.sidebar-login .btn:last-child { margin-bottom: 0; }
.sidebar-register-hint { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.sidebar-register-hint a { color: var(--primary); font-weight: 500; }
.sidebar-user { text-align: center; margin-bottom: 20px; padding: 16px; background: #f9fafb; border-radius: var(--r); }
.sidebar-user-name { font-weight: 600; margin-bottom: 10px; color: var(--text-1); }
.sidebar-section { margin-bottom: 20px; }
.sidebar-title {
    padding: 0 0 8px; margin-bottom: 8px;
    font-size: 12px; font-weight: 600;
    color: var(--text-2); 
    border-bottom: 1px solid var(--border);
}
.sidebar-links { display: flex; flex-direction: column; }
.sidebar-link {
    display: block; padding: 8px 10px;
    color: var(--text-2); font-size: 13px; transition: .15s; border-radius: var(--r);
}
.sidebar-link:hover { color: var(--primary); background: #f8faff; }
.sidebar-link.active { color: var(--primary); font-weight: 500; background: #f0f7ff; }
.sidebar-count { float: right; font-size: 11px; color: var(--text-3); font-weight: 400; }

.content-area { min-width: 0; }

.sub-nav-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.sub-tab { padding: 11px 18px; font-size: 14px; color: var(--text-3); cursor: pointer; position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .2s; font-weight: 500; }
.sub-tab:hover { color: var(--text-1); }
.sub-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.section-more { color: var(--text-3); font-size: 13px; }
.section-more:hover { color: var(--primary); }

.app-icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 20px 0; }
.app-icon-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.app-icon-item a { display: flex; flex-direction: column; align-items: center; }
.app-icon-thumb {
    width: 60px; height: 60px; border-radius: var(--r);
    border: 1px solid var(--border); overflow: hidden; transition: .2s;
    display: flex; align-items: center; justify-content: center;
}
.app-icon-item:hover .app-icon-thumb { border-color: var(--primary); }
.app-icon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.icon-placeholder { font-size: 11px; color: #d1d5db; }
.icon-text { font-size: 11px; color: #bbb; }
.app-icon-name { font-size: 12px; color: var(--text-1); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; text-align: center; }
.badge-recommend { display: inline-block; padding: 1px 6px; background: var(--success); color: #fff; font-size: 10px; border-radius: var(--r); font-weight: 500; }

.category-tabs { display: flex; gap: 28px; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.category-tab { padding: 10px 2px; font-size: 14px; color: var(--text-3); cursor: pointer; position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .2s; font-weight: 500; }
.category-tab:hover { color: var(--text-1); }
.category-tab.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: all .2s; }
.app-card:hover { border-color: var(--primary); }
.app-card-cover { width: 100%; aspect-ratio: 16/10; background: #f9fafb; overflow: hidden; }
.app-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: .3s; }
.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f4f6ff; color: #bbb; font-size: 13px; }
.app-card:hover .app-card-cover img { transform: scale(1.02); }
.app-card-body { padding: 14px 16px 16px; }
.app-card-name { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-name a { color: inherit; }
.app-card-desc { color: var(--text-3); font-size: 12.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.app-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.price-free { color: var(--success); font-weight: 600; }
.price-paid { color: var(--danger); font-weight: 700; }

.app-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.app-list-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; transition: .15s; min-width: 0; overflow: hidden; }
.app-list-item:hover { border-color: var(--primary); }
.app-list-icon { width: 44px; height: 44px; border-radius: var(--r); background: #f9fafb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.app-list-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-list-icon .icon-text { font-size: 10px; color: #bbb; }
.app-list-info { flex: 1; min-width: 0; overflow: hidden; }
.app-list-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-list-desc { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list-price, .app-list-meta-right {
    flex-shrink: 0; text-align: right;
    display: flex; align-items: center; justify-content: center;
    min-width: 60px; font-size: 12px; color: var(--text-3);
}

.footer { background: #fafafa; border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 40px; }
.footer-main { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 32px; }
.footer-brand { max-width: 280px; }
.footer-logo { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; display: block; }
.footer-desc { font-size: 13px; color: var(--text-3); line-height: 1.7; margin: 0; }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-1); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 10px; transition: .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-3); margin: 0; }

.auth-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 140px); padding: 20px 0; }
.auth-layout { display: grid; grid-template-columns: 380px 400px; width: 100%; min-height: 480px; max-width: 780px; margin: 0 auto; border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.auth-banner { position: relative; background: linear-gradient(135deg, #1e9fff 0%, #0066cc 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner-bg { position: absolute; inset: 0; overflow: hidden; }
.floating-shapes { position: absolute; inset: 0; }
.floating-shapes span { position: absolute; display: block; width: 20px; height: 20px; background: rgba(255,255,255,.15); animation: float 25s linear infinite; bottom: -160px; border-radius: 50%; }
.floating-shapes span:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-delay: 0s; }
.floating-shapes span:nth-child(2) { left: 20%; width: 30px; height: 30px; animation-delay: 2s; animation-duration: 20s; }
.floating-shapes span:nth-child(3) { left: 25%; width: 60px; height: 60px; animation-delay: 4s; }
.floating-shapes span:nth-child(4) { left: 40%; width: 100px; height: 100px; animation-delay: 0s; animation-duration: 22s; }
.floating-shapes span:nth-child(5) { left: 55%; width: 40px; height: 40px; animation-delay: 3s; }
.floating-shapes span:nth-child(6) { left: 65%; width: 70px; height: 70px; animation-delay: 5s; animation-duration: 18s; }
.floating-shapes span:nth-child(7) { left: 70%; width: 50px; height: 50px; animation-delay: 1s; }
.floating-shapes span:nth-child(8) { left: 80%; width: 90px; height: 90px; animation-delay: 4s; animation-duration: 24s; }
.floating-shapes span:nth-child(9) { left: 85%; width: 35px; height: 35px; animation-delay: 2s; }
.floating-shapes span:nth-child(10) { left: 90%; width: 60px; height: 60px; animation-delay: 6s; }
@keyframes float { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(-800px) rotate(600deg); opacity: 0; } }
.banner-content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 40px; }
.banner-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.banner-desc { font-size: 15px; opacity: .9; margin-bottom: 32px; line-height: 1.6; }
.banner-features { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: .9; }
.feature-item .feature-icon { font-size: 18px; }
.auth-form-area { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 340px; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 28px; color: var(--text-1); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--r); font-size: 14px; outline: none; transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-hint { font-size: 12px; color: var(--text-3); }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-3); font-size: 13px; }
.auth-footer a { color: var(--primary); font-weight: 500; }

.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r); color: var(--text-2); font-size: 13px; transition: .2s; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { color: var(--text-3); cursor: not-allowed; opacity: .45; }

.empty-state { text-align: center; padding: 64px 20px; }
.empty-text { color: var(--text-3); margin-bottom: 16px; }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r); font-size: 12px; font-weight: 500; }
.status-success { background: #ecfdf5; color: #065f46; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-rejected, .status-banned { background: #fef2f2; color: #991b1b; }
.status-paid { background: #eff6ff; color: var(--primary); }

.badge { display: inline-block; padding: 2px 8px; border-radius: var(--r); font-size: 11px; font-weight: 600; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-success { background: var(--success); color: #fff; }

.apps-layout { display: grid; grid-template-columns: 200px 1fr; gap: 36px; }
.apps-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.apps-title { font-size: 18px; font-weight: 700; }
.apps-count { color: var(--text-3); font-size: 13px; }

.detail-page { padding: 0; }
.product-breadcrumb { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.product-breadcrumb a { color: var(--text-3); }
.product-breadcrumb a:hover { color: var(--primary); }
.product-breadcrumb span { margin: 0 6px; }

.product-card { display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin-bottom: 24px; }
.product-gallery { }
.gallery-preview { width: 100%; height: 238px; background: #f5f5f5; border-radius: var(--r); overflow: hidden; }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; border:1px solid #ddd;}
.preview-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.thumb-item { width: 44px; height: 32px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: .15s; }
.thumb-item:hover, .thumb-item.active { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-side { height: 238px; display: flex; flex-direction: column; }
.product-header { margin-bottom: 16px; }
.product-title { font-size: 20px; font-weight: 700; color: var(--text-1); margin: 0 0 12px; }
.product-meta { display:flex;align-items:center;gap:20px;flex-wrap:wrap; }
.product-meta span { font-size:13px;color:#6b7280;display:inline-flex;align-items:center;gap:4px; }
.product-meta span::before { content:'';width:4px;height:4px;border-radius:50%;background:#d1d5db;display:inline-block; }

.product-specs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.spec-row { display: flex; padding: 6px 0; font-size: 13px; align-items: center; }
.spec-label { color: var(--text-3); width: 70px; flex-shrink: 0; }
.spec-val { color: var(--text-1); }

.product-footer { margin-top: 12px; }
.product-price { }
.price { font-size: 22px; font-weight: 700; color: var(--danger); }
.price-free { font-size: 14px; font-weight: 600; color: var(--success); }
.product-actions { margin-top: 12px; }
.product-actions .btn { padding: 8px 24px; }

.btn-disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

.detail-tabs { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.tabs-nav { display: flex; background: #f9fafb; border-bottom: 1px solid var(--border); }
.tab-link { padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.tab-link:hover { color: var(--primary); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); background: #fff; }
.tabs-content { padding: 20px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.detail-content { color: var(--text-2); line-height: 1.75; font-size: 13px; }
.detail-content h1 { font-size: 22px; font-weight: 700; margin: 20px 0 12px; color: var(--text-1); }
.detail-content h2 { font-size: 18px; font-weight: 700; margin: 18px 0 10px; color: var(--text-1); }
.detail-content h3 { font-size: 15px; font-weight: 600; margin: 14px 0 8px; color: var(--text-1); }
.detail-content p { margin: 10px 0; }
.detail-content ul, .detail-content ol { margin: 10px 0; padding-left: 24px; }
.detail-content li { margin: 4px 0; }
.detail-content blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--primary); background: #f9fafb; border-radius: 0 var(--r) var(--r) 0; }
.detail-content a { color: var(--primary); }
.detail-content a:hover { text-decoration: underline; }
.detail-content img { max-width: 100%; border-radius: var(--r); margin: 10px 0; }
.detail-content strong { font-weight: 600; color: var(--text-1); }
.detail-content em { font-style: italic; }
.detail-content u { text-decoration: underline; }
.detail-content s { text-decoration: line-through; color: var(--text-3); }
.detail-content img {width: 100%;}

.version-list { display: flex; flex-direction: column; gap: 10px; }
.version-item { padding: 12px; border: 1px solid var(--border); border-radius: var(--r); }
.version-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.version-number { font-weight: 600; color: var(--primary); font-size: 13px; }
.version-date { color: var(--text-3); font-size: 12px; }
.version-changelog { color: var(--text-2); font-size: 12px; line-height: 1.6; }

.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; font-size: 12.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; background: #f9fafb; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f9fafb; }
.table input[type="text"],
.table input[type="number"],
.table input[type="email"],
.table select {
    padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 4px;
    font-size: 13px; color: var(--text-1); background: #fff; outline: none; transition: .15s;
    min-width: 60px;
}
.table input:focus,
.table select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(30,159,255,.1); }
.table .btn-sm { padding: 5px 12px; font-size: 12px; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.page-title { font-size: 19px; font-weight: 700; }

.dev-page { padding: 28px 0; }
.dev-page .page-header { margin-bottom: 24px; }
.dev-page .dev-section { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 24px; margin-bottom: 24px; }
.dev-page .dev-section .section-title { font-size: 14px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.dev-page .dev-section .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dev-page .dev-section .section-more { color: var(--text-3); font-size: 13px; }
.dev-page .dev-form { }
.dev-page .dev-form .form-group { margin-bottom: 18px; }
.dev-page .dev-form .form-group:last-child { margin-bottom: 0; }
.dev-page .dev-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.dev-page .dev-form .form-row:last-child { margin-bottom: 0; }
.dev-page .dev-form .form-row .form-group { margin-bottom: 0; }
.dev-page .dev-form label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.dev-page .dev-form input,
.dev-page .dev-form select,
.dev-page .dev-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; color: var(--text-1); background: #fff; outline: none; transition: .15s; }
.dev-page .dev-form input:focus,
.dev-page .dev-form select:focus,
.dev-page .dev-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,159,255,.1); }
.dev-page .dev-form .form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.dev-page .dev-form .form-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

.panel { border: 1px solid var(--border); border-radius: var(--r); }
.panel-header { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel-title { font-size: 14px; font-weight: 600; }
.panel-body { padding: 18px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

.user-page .user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }
.user-sidebar { display: flex; flex-direction: column; gap: 18px; }
.user-card { border: 1px solid var(--border); border-radius: var(--r); padding: 22px; text-align: center; }
.user-avatar-wrapper { position: relative; display: inline-block; margin-bottom: 14px; }
.user-avatar-wrapper .user-avatar { width: 68px; height: 68px; font-size: 32px; border-radius: 50%; }
.avatar-form { position: absolute; bottom: 0; left: 0; right: 0; }
.avatar-upload-btn { display: block; padding: 4px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; cursor: pointer; border-radius: 0 0 34px 34px; }
.user-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.user-email { color: var(--text-3); font-size: 13px; }
.user-nav { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.user-nav-link { display: block; padding: 12px 16px; color: var(--text-2); border-bottom: 1px solid var(--border); font-size: 14px; transition: .15s; }
.user-nav-link:last-child { border-bottom: none; }
.user-nav-link:hover, .user-nav-link.active { color: var(--primary); background: #f8faff; }

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--r); padding: 14px; transition: .15s; }
.order-item:hover { border-color: var(--primary); }
.order-app { display: flex; align-items: center; gap: 12px; flex: 1; }
.order-app-icon { width: 44px; height: 44px; border-radius: var(--r); background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.order-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.order-app-name { font-weight: 600; font-size: 13px; }
.order-app-name a { color: var(--text-1); }
.order-no { font-size: 12px; color: var(--text-3); }
.order-info { text-align: right; }
.order-amount { font-size: 15px; font-weight: 700; }
.order-date { font-size: 12px; color: var(--text-3); }
.order-status { min-width: 80px; text-align: center; }
.order-action { min-width: 100px; text-align: right; }

.admin-login-page { min-height: calc(100vh - 92px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #1e293b; }
.admin-login-container { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.admin-login-header { text-align: center; margin-bottom: 32px; }
.admin-login-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: #1e9fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.admin-login-icon svg { width: 32px; height: 32px; color: #fff; }
.admin-login-title { font-size: 22px; font-weight: 700; color: var(--text-1); margin: 0 0 8px; }
.admin-login-subtitle { font-size: 13px; color: var(--text-3); margin: 0; }
.admin-login-form { display: flex; flex-direction: column; gap: 16px; }
.admin-login-form .form-group label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.admin-login-form .form-group input { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); font-size: 14px; outline: none; transition: .2s; }
.admin-login-form .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,159,255,.1); }
.admin-login-form .btn-primary { background: var(--primary); border: none; padding: 14px; font-size: 14px; font-weight: 500; }
.admin-login-form .btn-primary:hover { background: var(--primary-hover); }
.admin-login-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.admin-login-footer a { color: var(--text-3); font-size: 13px; }
.admin-login-footer a:hover { color: var(--primary); }

.admin-body { background: #f9fafb; }
.admin-page { min-height: 100vh; }
.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.admin-sidebar { background: #1f2937; display: flex; flex-direction: column; }
.admin-brand { padding: 20px; color: #fff; font-size: 15px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav .nav-item { display: block; padding: 10px 20px; color: rgba(255,255,255,.6); font-size: 13px; transition: .15s; }
.admin-nav .nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-nav .nav-item.active { color: var(--primary); background: rgba(30,159,255,.1); }
.admin-logout { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-logout a { color: rgba(255,255,255,.4); font-size: 13px; }
.admin-logout a:hover { color: #fff; }
.admin-content { padding: 24px; overflow-y: auto; }
.admin-header { margin-bottom: 20px; }
.admin-title { font-size: 18px; font-weight: 700; color: var(--text-1); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.admin-section { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.admin-section .section-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.admin-section .form-group { margin-bottom: 16px; }
.admin-section .form-group:last-child { margin-bottom: 0; }
.admin-section .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.admin-section input[type="text"],
.admin-section input[type="email"],
.admin-section input[type="password"],
.admin-section input[type="number"],
.admin-section input[type="date"],
.admin-section select,
.admin-section textarea {
    width: 100%; max-width: 400px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; color: var(--text-1); background: #fff; outline: none; transition: .15s;
}
.admin-section input:focus,
.admin-section select:focus,
.admin-section textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,159,255,.1); }
.admin-section input::placeholder { color: #9ca3af; }
.admin-section .form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.admin-section .form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-section .form-inline input,
.admin-section .form-inline select { width: auto; min-width: 120px; }
.admin-section .filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 0; }
.admin-section .filter-form input,
.admin-section .filter-form select { width: auto; min-width: 100px; padding: 8px 12px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-1); }
.stat-label { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.pending-list { display: flex; flex-direction: column; gap: 8px; }
.pending-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f9fafb; border-radius: var(--r); color: var(--text-2); font-size: 13px; transition: .15s; }
.pending-item:hover { background: #f3f4f6; color: var(--primary); }
.empty-pending { color: var(--text-3); font-size: 13px; padding: 12px 0; }

.dev-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border: 1px solid var(--border); border-radius: var(--r); transition: .15s; }
.quick-action:hover { border-color: var(--primary); }
.action-text { font-size: 13px; color: var(--text-2); font-weight: 500; }

.search-page { padding: 28px 0; }
.search-header { max-width: 560px; margin: 0 auto 36px; }
.search-form-large { display: flex; gap: 10px; }
.search-input-large { flex: 1; padding: 12px 18px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 15px; outline: none; transition: .2s; }
.search-input-large:focus { border-color: var(--primary); }
.search-result .result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.result-title { font-size: 16px; font-weight: 600; }
.result-count { color: var(--text-3); font-size: 13px; }
.search-tips { text-align: center; padding: 48px 0; }
.search-tips h3 { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }
.hot-keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.keyword-tag { padding: 8px 16px; background: #f3f4f6; border-radius: var(--r); color: var(--text-2); font-size: 13px; transition: .15s; }
.keyword-tag:hover { background: var(--primary); color: #fff; }

.buy-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: 28px 0; }
.buy-card { max-width: 440px; width: 100%; border: 1px solid var(--border); border-radius: var(--r); padding: 32px; }
.buy-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.buy-app { display: flex; gap: 16px; padding: 18px; background: #f9fafb; border-radius: var(--r); margin-bottom: 20px; }
.buy-app-icon { width: 56px; height: 56px; border-radius: var(--r); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.buy-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.buy-app-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.buy-app-desc { font-size: 13px; color: var(--text-3); }
.buy-price { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.price-label { color: var(--text-3); font-size: 14px; }
.price-value { font-size: 24px; font-weight: 700; color: var(--danger); }
.buy-form { margin-bottom: 20px; }
.pay-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-type { cursor: pointer; }
.pay-type input { display: none; }
.pay-type-label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 12px; color: var(--text-2); transition: .15s; }
.pay-type input:checked + .pay-type-label { border-color: var(--primary); background: #f0f7ff; color: var(--primary); }
.pay-icon { font-size: 22px; }
.buy-footer { text-align: center; }
.buy-footer a { color: var(--text-3); font-size: 13px; }

.upload-page { padding: 28px 0; }
.upload-form { max-width: 1100px; }
.form-layout { display: flex; gap: 20px; }
.form-left { flex: 1; min-width: 0; }
.form-right { width: 340px; flex-shrink: 0; }
.form-section { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title { font-size: 14px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-section .form-group { margin-bottom: 18px; }
.form-section .form-group:last-child { margin-bottom: 0; }
.form-section .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-section .form-row:last-child { margin-bottom: 0; }
.form-section .form-row .form-group { margin-bottom: 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox-label input { width: 16px; height: 16px; }

.app-review-list { display: flex; flex-direction: column; gap: 16px; }
.app-review-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.app-review-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-review-icon { width: 52px; height: 52px; border-radius: var(--r); background: #f9fafb; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.app-review-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-review-info { flex: 1; }
.app-review-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.app-review-meta { font-size: 12px; color: var(--text-3); }
.app-review-price { text-align: right; }
.app-review-body { padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 14px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.app-review-actions { display: flex; align-items: center; gap: 10px; }
.reject-form { display: flex; align-items: center; gap: 10px; }
.reject-form input { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; outline: none; }
.reject-form input:focus { border-color: var(--primary); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0d9668; }
.btn-danger { background: var(--danger) !important; color: #fff !important; border-radius: var(--r) !important; }
.btn-danger:hover { background: #dc2626; }
.btn-lg { padding: 12px 28px; font-size: 14px; }

.dev-apps-page { padding: 28px 0; }
.app-table { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.app-table table { width: 100%; border-collapse: collapse; }
.app-table th, .app-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.app-table th { font-weight: 600; font-size: 12px; color: var(--text-3); background: #f9fafb; text-transform: uppercase; letter-spacing: .3px; }
.app-table tr:last-child td { border-bottom: none; }
.app-table tr:hover td { background: #f9fafb; }
.app-table .app-info { display: flex; align-items: center; gap: 12px; }
.app-table .app-icon { width: 40px; height: 40px; border-radius: var(--r); background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.app-table .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-table .app-name { font-weight: 500; }
.action-btns { display: flex; gap: 6px; align-items: center; }
.status-offline { background: #f3f4f6; color: var(--text-2); }

.apps-page { padding-top: 0; }
.apps-content { min-width: 0; }

.image-picker-box{width:100px;height:100px;border-radius:2px;border:2px dashed #d1d5db;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;background:#f9fafb;transition:border-color .15s;overflow:hidden;}
.image-picker-box:hover{border-color:#1e9fff;}
.picker-plus{font-size:32px;color:#9ca3af;font-weight:300;line-height:1;}
.picker-preview{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;}
.picker-remove{position:absolute;top:-6px;right:-6px;width:20px;height:20px;border:none;background:#ef4444;color:#fff;border-radius:50%;cursor:pointer;font-size:14px;line-height:20px;text-align:center;padding:0;z-index:2;}
.picker-remove:hover{background:#dc2626;}
.image-picker-list{display:flex;flex-wrap:wrap;gap:10px;}
.image-picker-list .picker-add-btn{flex-shrink:0;}
