* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}
.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}
.header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 8px;
}
.header p {
    color: #86909c;
    font-size: 15px;
}
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.upload-area {
    border: 2px dashed #c9cdd4;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    background: #fafbfc;
}
.upload-area:hover, .upload-area.dragover {
    border-color: #1677ff;
    background: #e8f3ff;
}
.upload-area .icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.upload-area p {
    color: #4e5969;
    font-size: 15px;
}
.upload-area .tip {
    color: #86909c;
    font-size: 13px;
    margin-top: 8px;
}
.form-item {
    margin-bottom: 16px;
}
.form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
}
.form-item input, .form-item textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9cdd4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
}
.form-item input:focus, .form-item textarea:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}
.form-item textarea {
    resize: vertical;
    min-height: 80px;
}
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.3);
}
.btn:active {
    transform: translateY(0);
}
.btn.ios {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}
.btn.ios:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.btn.android {
    background: linear-gradient(135deg, #3ddc84 0%, #25b264 100%);
}
.btn.android:hover {
    box-shadow: 0 6px 16px rgba(61, 220, 132, 0.3);
}
.app-list h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d2129;
}
.app-item {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fafbfc;
    transition: background 0.3s;
}
.app-item:hover {
    background: #f2f3f5;
}
.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 14px;
    background: #e8f3ff;
    flex-shrink: 0;
}
.app-info {
    flex: 1;
    min-width: 0;
}
.app-name {
    font-size: 15px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-meta {
    font-size: 13px;
    color: #86909c;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.platform-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.platform-tag.ios {
    background: #f2f3f5;
    color: #4e5969;
}
.platform-tag.android {
    background: #e8ffea;
    color: #00b42a;
}
.download-count {
    color: #1677ff;
}
.app-item a {
    color: #1677ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}
.app-detail {
    text-align: center;
    padding: 30px 20px;
}
.app-detail .big-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    background: #e8f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.app-detail h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2129;
}
.app-detail .version {
    color: #86909c;
    font-size: 14px;
    margin-bottom: 20px;
}
.qrcode {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    border-radius: 12px;
    padding: 10px;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.qrcode img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.tip-box {
    background: #fff7e8;
    border-left: 4px solid #ff7d00;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    font-size: 14px;
    color: #d46b08;
    line-height: 1.6;
}
.update-desc {
    background: #f7f8fa;
    padding: 16px;
    border-radius: 10px;
    text-align: left;
    margin: 20px 0;
    font-size: 14px;
    color: #4e5969;
    white-space: pre-wrap;
}
.update-desc h4 {
    margin-bottom: 8px;
    color: #1d2129;
    font-size: 14px;
}
.wechat-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    color: white;
    text-align: center;
    padding-top: 40px;
}
.wechat-mask .arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 60px;
}
.wechat-mask p {
    font-size: 18px;
    margin-top: 100px;
    padding: 0 40px;
    line-height: 1.8;
}
.share-link {
    background: #f7f8fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #4e5969;
    word-break: break-all;
    margin: 20px 0;
    text-align: left;
    font-family: monospace;
}
.empty {
    text-align: center;
    padding: 40px 20px;
    color: #86909c;
    font-size: 14px;
}
/* 后台样式 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-header h1 {
    font-size: 22px;
    color: #1d2129;
}
.admin-header a {
    color: #1677ff;
    text-decoration: none;
    font-size: 14px;
    margin-left: 15px;
}
.stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.stat-num {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 14px;
    color: #86909c;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    color: white;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}
.btn-sm:hover {
    opacity: 0.8;
}
.btn-edit {
    background: #1677ff;
}
.btn-del {
    background: #ff4d4f;
}
.btn-view {
    background: #00b42a;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
th, td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f2f3f5;
}
th {
    font-weight: 500;
    color: #86909c;
    font-size: 13px;
}
td {
    color: #1d2129;
}
.login-box {
    max-width: 400px;
    margin: 100px auto 0;
}
.error {
    color: #ff4d4f;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: center;
}
@media (max-width: 600px) {
    body {
        padding: 16px;
    }
    .header h1 {
        font-size: 24px;
    }
    .card {
        padding: 16px;
    }
    .upload-area {
        padding: 30px 16px;
    }
    .stat-cards {
        grid-template-columns: 1fr;
    }
    .app-item {
        padding: 12px;
    }
    .app-icon {
        width: 48px;
        height: 48px;
    }
    table {
        font-size: 12px;
    }
    th, td {
        padding: 10px 4px;
    }
    .btn-sm {
        margin: 2px;
    }
}
