.page-submit {
    padding: 20px;
    background: var(--bg);
    min-height: calc(100vh - 180px);
}

.submit-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.stats-bar {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
    flex-wrap: wrap;
    gap: 5px;
}

.stats-bar span {
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-bar .stat-green {
    color: #27AE60;
    font-weight: bold;
    font-size: 16px;
}

.stats-bar .stat-orange {
    color: #F7A434;
    font-weight: bold;
    font-size: 16px;
}

.stats-bar .stat-red {
    color: #E74C3C;
    font-weight: bold;
    font-size: 16px;
}

.help-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2586EB;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-content {
    display: flex;
    gap: 30px;
}

.form-left,
.form-right {
    flex: 1;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    background: var(--input);
    box-sizing: border-box;
}

.form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row .form-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.url-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.url-input-wrap select {
    padding: 10px 8px;
    min-width: 100px;
    cursor: pointer;
}

.url-input-wrap input {
    flex: 1;
}

.fetch-btn {
    padding: 10px 20px;
    background: #2586EB;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text);
    background: var(--input);
}

.captcha-img {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-action {
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-submit {
    background: #2586EB;
    color: #fff;
}

.btn-submit:hover {
    background: #1a73d9;
}

.btn-quick {
    background: #F7A434;
    color: #fff;
}

.btn-quick:hover {
    background: #e6942e;
}

.btn-reset {
    background: #F5F5F5;
    color: #666;
    border: 1px solid #E8E8E8;
}

.btn-reset:hover {
    background: #e8e8e8;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-header {
    padding: 16px 20px;
    background: #2586EB;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.modal-body {
    padding: 20px;
}

.modal-body h4 {
    font-size: 14px;
    color: var(--primary);
    margin: 0 0 12px 0;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body li {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.modal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: #2586EB;
    border-radius: 50%;
}

.modal-footer {
    padding: 14px 20px;
    background: var(--bg);
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.modal-footer button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.modal-footer .btn-secondary {
    background: var(--input);
    color: var(--text-secondary);
    margin-right: 10px;
}

.modal-footer .btn-primary {
    background: #2586EB;
    color: #fff;
}

@media (max-width: 1024px) {
    .submit-container {
        padding: 16px;
        margin: 0 10px;
    }
    
    .form-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-left,
    .form-right {
        width: 100%;
    }
}

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .page-submit {
        padding: 10px;
    }
    
    .submit-container {
        padding: 12px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .form-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-left,
    .form-right {
        width: 100%;
    }
    
    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .help-btn {
        position: static;
        transform: none;
        margin-top: 8px;
    }
    
    .url-input-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .url-input-wrap select,
    .url-input-wrap input,
    .url-input-wrap .fetch-btn {
        width: 100%;
    }
    
    .captcha-group {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .captcha-group input {
        width: calc(100% - 130px);
    }
    
    .form-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .form-actions .btn-action {
        flex: 1;
        min-width: calc(50% - 5px);
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .page-submit {
        padding: 8px;
    }
    
    .submit-container {
        padding: 10px;
    }
    
    .form-row input,
    .form-row select,
    .form-row textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .captcha-group input {
        width: 100%;
    }
    
    .captcha-img {
        width: 100%;
        height: 44px;
    }
    
    .form-actions .btn-action {
        width: 100%;
        min-width: 100%;
        padding: 12px;
    }
    
    .btn-action {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    .stats-bar span {
        font-size: 13px;
    }
    
    .stats-bar .stat-green,
    .stats-bar .stat-orange,
    .stats-bar .stat-red {
        font-size: 14px;
    }
}