* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

header, footer {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header p {
    font-size: 16px;
    font-weight: 500;
}

section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    font-size: 24px;
}

.upload-area {
    text-align: center;
}

#openUploadModal {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(37, 117, 252, 0.3);
}

#openUploadModal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 117, 252, 0.4);
}

#fileName {
    margin: 15px 0;
    font-weight: 500;
    color: #3498db;
}

.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.upload-modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
    color: #2c3e50;
}

.upload-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-option {
    padding: 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.upload-option:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.modal-close {
    margin-top: 25px;
    padding: 12px;
    width: 100%;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #e0e0e0;
}

.hidden-file-input {
    display: none;
}

/* 上传详情模态框样式 */
.upload-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1005;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.upload-detail-modal.show {
    display: flex;
}

.upload-detail-form {
    margin: 20px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
}

.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.screenshots-upload {
    margin-top: 10px;
}

.screenshot-input-container {
    margin-bottom: 15px;
}

.screenshot-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    color: #666;
}

.screenshot-upload-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

.screenshot-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.screenshot-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.screenshot-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.screenshot-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-screenshot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-screenshot:hover {
    background: rgba(255,0,0,1);
}

.upload-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.upload-detail-cancel, .upload-detail-submit {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.upload-detail-cancel {
    background: #f0f0f0;
    color: #333;
}

.upload-detail-cancel:hover {
    background: #e0e0e0;
}

.upload-detail-submit {
    background: #3498db;
    color: white;
}

.upload-detail-submit:hover {
    background: #2980b9;
}

/* 验证码模态框样式 */
.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.captcha-modal.show {
    display: flex;
}

.captcha-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.captcha-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

#captcha-container, #downloadCaptchaContainer {
    margin: 20px 0;
    min-height: 264px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.captcha-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.captcha-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.captcha-cancel {
    background: #f0f0f0;
    color: #333;
}

.captcha-cancel:hover {
    background: #e0e0e0;
}

.file-info {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

/* 免责声明模态框样式 */
.disclaimer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10010;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.disclaimer-modal.show {
    display: flex;
}

.disclaimer-content {
    max-height: 50vh;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 14px;
    line-height: 1.6;
}

.disclaimer-content p {
    margin-bottom: 12px;
}

.disclaimer-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.disagree-btn, .agree-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.disagree-btn {
    background: #f0f0f0;
    color: #333;
}

.disagree-btn:hover {
    background: #e0e0e0;
}

.agree-btn {
    background: #3498db;
    color: white;
}

.agree-btn:hover {
    background: #2980b9;
}

/* 消息提示样式 */
.msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.msg.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.msg.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* 脚本列表样式 - 表格布局 */
.filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #3498db;
    color: white;
}

/* 表格视图 */
.table-view {
    width: 100%;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
    word-wrap: break-word;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

.empty {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}

/* 类型标签样式 */
.type-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}

.type-tag.js {
    background: #e3f2fd;
    color: #1976d2;
}

.type-tag.py {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 下载按钮样式 */
.download-btn {
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
}

.download-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.3);
}

/* 加载指示器 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    section {
        padding: 20px;
        margin: 15px 0;
    }
    
    h2 {
        font-size: 20px;
    }
    
    #openUploadModal {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .upload-option {
        padding: 14px;
    }
    
    .filter {
        justify-content: center;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 14px;
        display: table-cell;
    }
    
    th:nth-child(1), td:nth-child(1) { width: 30%; }
    th:nth-child(2), td:nth-child(2) { width: 15%; }
    th:nth-child(3), td:nth-child(3) { width: 25%; }
    th:nth-child(4), td:nth-child(4) { width: 15%; }
    th:nth-child(5), td:nth-child(5) { width: 15%; }
    
    .download-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    #captcha-container, #downloadCaptchaContainer {
        min-height: 200px;
    }
    
    .disclaimer-content {
        max-height: 40vh;
        font-size: 13px;
    }
    
    .screenshot-preview-item {
        width: 80px;
        height: 80px;
    }
    
    .upload-detail-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header, footer {
        padding: 12px;
        margin: 10px 0;
    }
    
    header p {
        font-size: 14px;
    }
    
    section {
        padding: 15px;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    th:nth-child(1), td:nth-child(1) { width: 25%; }
    th:nth-child(2), td:nth-child(2) { width: 15%; }
    th:nth-child(3), td:nth-child(3) { width: 25%; }
    th:nth-child(4), td:nth-child(4) { width: 15%; }
    th:nth-child(5), td:nth-child(5) { width: 20%; }
    
    .download-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .type-tag {
        padding: 3px 8px;
        font-size: 11px;
    }

    #captcha-container, #downloadCaptchaContainer {
        min-height: 180px;
    }
    
    .disclaimer-content {
        max-height: 35vh;
        font-size: 12px;
    }
    
    .disclaimer-actions {
        flex-direction: column;
    }
    
    .screenshot-preview-item {
        width: 70px;
        height: 70px;
    }
    
    .upload-detail-form {
        margin: 15px 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}
.geetest_holder {
    width: 100% !important;
}
#captcha-container {
    min-height: 264px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.captcha-loading {
    color: #666;
    padding: 20px;
    text-align: center;
}
.geetest_radar_btn {
    height: 40px !important;
}
#downloadCaptchaModal {
    z-index: 10010;
}
#downloadCaptchaContainer {
    min-height: 264px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}