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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

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

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[readonly] {
    background-color: #f9f9f9;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-warn {
    background-color: #c3a535;
    color: white;
}

.btn-warn:hover {
    background-color: #d4b505;
}

.actions {
    margin-bottom: 20px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.upload-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#apk-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#apk-info h3 {
    margin-bottom: 20px;
}

/* 新增样式 */
.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.md5-text {
    font-family: monospace;
    font-size: 12px;
}

.patch-count {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.patch-count:hover {
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.patch-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.patch-table th,
.patch-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.patch-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.patch-table tr:hover {
    background-color: #f8f9fa;
}

/* 编译模式样式 */
.build-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.build-type.release {
    background-color: #d4edda;
    color: #155724;
}

.build-type.debug {
    background-color: #fff3cd;
    color: #856404;
}

/* 语言切换样式 */
.language-switch {
    text-align: center;
    margin-bottom: 20px;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 200px;
}

.action-buttons .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
}

/* 表格响应式 */
.config-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    table-layout: auto;
    min-width: 1000px;
}

.config-table th,
.config-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.config-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.config-table tr:hover {
    background-color: #f8f9fa;
}

/* 操作列宽度 */
.config-table td:last-child {
    min-width: 200px;
}

/* MD5列宽度 */
.config-table td:nth-child(5) {
    min-width: 200px;
}

.config-table th:nth-child(5) {
    min-width: 200px;
}

/* MD5文本样式 */
.md5-text {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 12px;
    display: block;
    white-space: nowrap;
}
